/* Planillas en pesos y dólares. Los colores son los de la planilla: azul de los encabezados, amarillo de las
   celdas donde se escribe, gris azulado de las que se calculan. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/Inter-latin.woff2) format("woff2");
}

:root {
  --azul: #0e1b3d;
  --azul-2: #1d2d57;
  --amarillo: #ffc83d;
  --carga: #fff8e1;
  --calculo: #eef1f6;
  --tinta: #111827;
  --gris: #4b5563;
  --filete: #d5dae3;
  --rojo: #9b1c1c;
  --ancho: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 1.0625rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tinta);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; color: var(--azul); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--azul); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--azul-2); }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }

.aviso-preview {
  margin: 0;
  padding: .5rem 1rem;
  background: var(--carga);
  border-bottom: 1px solid #f1d98a;
  font-size: .9rem;
  text-align: center;
}

/* cabezal */
.cabezal {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  color: var(--azul);
  text-decoration: none;
}
.marca-icono {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--azul);
  color: var(--amarillo);
  font-weight: 800;
  border-radius: 6px;
}

/* botones */
.btn {
  display: inline-block;
  padding: .85rem 1.3rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color .15s ease-out, border-color .15s ease-out;
}
.btn-chico { padding: .45rem .9rem; font-size: .95rem; white-space: nowrap; }
.btn-fuerte { background: var(--azul); color: #fff; }
.btn-fuerte:hover { background: var(--azul-2); }
.btn-claro { background: #fff; color: var(--azul); border-color: var(--azul); }
.btn-claro:hover { background: var(--calculo); }
.btn-amarillo { background: var(--amarillo); color: var(--azul); }
.btn-amarillo:hover { background: #ffd666; }
.btn-borde { color: #fff; border-color: #fff; }
.btn-borde:hover { background: var(--azul-2); }

/* portada */
.portada {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  gap: 2rem;
}
.bajada { font-size: 1.2rem; color: var(--gris); margin-top: 1.1rem; max-width: 36em; }
.bajada b { color: var(--tinta); }
.sellos {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.sellos li {
  background: var(--calculo);
  border: 1px solid var(--filete);
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--azul);
}
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (min-width: 960px) {
  .portada { grid-template-columns: 0.9fr 1.1fr; align-items: center; padding-top: 2.5rem; padding-bottom: 4rem; }
  .captura-portada { margin-right: -6vw; }
}

/* capturas */
.captura { margin: 0; }
.captura-marco {
  border: 1px solid var(--filete);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 27, 61, .06), 0 12px 32px -12px rgba(14, 27, 61, .25);
}
.captura img { display: block; width: 100%; height: auto; }
.captura figcaption { font-size: .9rem; color: var(--gris); margin-top: .6rem; }

/* en el celular la planilla no entra: se desliza de costado y se lee */
@media (max-width: 959px) {
  .desliza { overflow-x: auto; overscroll-behavior-x: contain; }
  .desliza img { width: 820px; max-width: none; }
  .desliza + figcaption::before { content: "Deslizá para ver toda la hoja. "; font-weight: 600; }
}

/* bloques */
.bloque {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--filete);
}
.bloque > p { max-width: 42em; }
.pasos { padding-left: 1.3rem; margin: 0 0 2rem; max-width: 46em; }
.pasos li { margin-bottom: .6rem; padding-left: .3rem; }
.pasos li::marker { font-weight: 800; color: var(--azul); }
mark { padding: 0 .25em; border-radius: 3px; }
mark.amarillo { background: #fdecc8; }
mark.rojo { background: #f8c9c4; color: var(--rojo); font-weight: 600; }
.bloque .captura { margin-top: 1.5rem; }
@media (min-width: 960px) { .bloque .captura { max-width: 900px; } }

/* versiones */
.fichas { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
@media (min-width: 860px) { .fichas { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.ficha {
  position: relative;
  background: #fff;
  border: 1px solid var(--filete);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.ficha-destacada { border: 2px solid var(--azul); }
.cinta {
  position: absolute;
  top: -.85rem;
  left: 1.25rem;
  margin: 0;
  background: var(--amarillo);
  color: var(--azul);
  font-size: .8rem;
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 4px;
}
.precio { font-size: 2rem; font-weight: 800; color: var(--azul); margin: .3rem 0 .2rem; }
.precio span { background: var(--carga); box-shadow: inset 0 -.35em 0 var(--amarillo); padding: 0 .1em; }
.para { color: var(--gris); }
.ficha ul { padding-left: 1.1rem; margin: 0 0 1.5rem; flex: 1; }
.ficha li { margin-bottom: .45rem; }
.ficha li.no { color: var(--gris); list-style: "– "; }
.ficha .btn { width: 100%; }
.nota { font-size: .875rem; color: var(--gris); margin: .6rem 0 0; text-align: center; }

/* preguntas */
.preguntas { max-width: 46em; }
details { border-bottom: 1px solid var(--filete); }
summary {
  cursor: pointer;
  padding: 1rem 2rem 1rem 0;
  font-weight: 700;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: .85rem;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--azul);
}
details[open] summary::after { content: "–"; }
details p { color: #374151; }

/* cierre */
.cierre {
  background: var(--azul);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.25rem;
}
.cierre h2 { color: #fff; }
.cierre p { color: #d6dcea; max-width: 36em; margin-left: auto; margin-right: auto; }
.cierre .acciones { justify-content: center; margin-top: 1.5rem; }

.pie { text-align: center; padding: 2rem 1.25rem; font-size: .875rem; color: var(--gris); }
.pie p { margin: 0; }

/* botones sin link de Payhip todavía: se ven, pero avisan */
.pendiente[aria-disabled="true"] { cursor: help; }
