/* Routero: web de venta. Sin dependencias externas: las fuentes (Bricolage Grotesque e IBM Plex Mono, licencia OFL) viajan en /fonts. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --tinta: #0f2a33;        /* texto y fondos oscuros */
  --verde: #16616a;        /* verde azulado del logo: enlaces y portada */
  --verde-oscuro: #0d4249;
  --naranja: #ee8434;      /* naranja del logo: botones (texto en tinta) */
  --naranja-hover: #f59a52;
  --naranja-texto: #a94d0c; /* naranja legible sobre blanco */
  --menta: #e8f4f3;
  --linea: #b8d0d1;
  --suave: #4a6670;        /* texto secundario sobre blanco */
  --blanco: #fff;
  --fuente: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ancho: 71rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--fuente); font-size: 1.0625rem; line-height: 1.6; color: var(--tinta); background: var(--blanco); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--verde); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--verde-oscuro); }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 3px; }
.heroe :focus-visible, .banda :focus-visible, .pie :focus-visible { outline-color: var(--blanco); }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 0.75rem; top: -4rem; z-index: 20; padding: 0.7rem 1rem; background: var(--tinta); color: var(--blanco); border-radius: 0 0 8px 8px; }
.saltar:focus { top: 0; }

.envoltura { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.envoltura--estrecha { max-width: 46rem; }
.envoltura--legal { max-width: 50rem; }

/* ---------- cabecera ---------- */
.cabecera { background: var(--blanco); border-bottom: 1px solid var(--linea); }
.cabecera__in { width: min(100% - 2rem, var(--ancho)); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.75rem; row-gap: 0.25rem; padding: 0.7rem 0; }
.marca { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--tinta); }
.marca__texto { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.marca img { border-radius: 8px; }
.menu { order: 3; width: 100%; }
.menu ul { display: flex; gap: 0.25rem 1.2rem; flex-wrap: wrap; }
.menu a { display: inline-block; padding: 0.55rem 0; color: var(--tinta); text-decoration: none; font-weight: 550; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--naranja); }
.menu a[aria-current="page"] { border-bottom-color: var(--verde); }
.cabecera__acc { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.idioma, .enlace-entrar { color: var(--tinta); font-weight: 550; text-decoration: none; padding: 0.5rem 0.2rem; }
.idioma:hover, .enlace-entrar:hover { text-decoration: underline; }
.enlace-entrar { display: none; }
@media (min-width: 52rem) {
  .cabecera__in { column-gap: 1.5rem; }
  .cabecera__acc { gap: 0.9rem; }
  .menu { order: 0; width: auto; }
  .cabecera__in { flex-wrap: nowrap; }
  .enlace-entrar { display: inline; }
}

/* ---------- botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6rem 1.25rem; border-radius: 10px; border: 2px solid var(--naranja); background: var(--naranja); color: var(--tinta); font: inherit; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; }
.boton:hover { background: var(--naranja-hover); border-color: var(--naranja-hover); color: var(--tinta); }
.boton--chico { min-height: 2.5rem; padding: 0.4rem 0.85rem; font-size: 0.95rem; }
.boton--grande { min-height: 3.25rem; padding: 0.8rem 1.6rem; font-size: 1.1rem; }
.boton--claro { background: var(--blanco); border-color: var(--verde); color: var(--verde); }
.boton--claro:hover { background: var(--menta); border-color: var(--verde-oscuro); color: var(--verde-oscuro); }
.boton--fantasma { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--blanco); }
.boton--fantasma:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--blanco); color: var(--blanco); }
.acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- portada ---------- */
.heroe { background: var(--verde); color: var(--blanco); overflow: hidden; }
.heroe__in { display: grid; gap: 2.5rem 3rem; align-items: center; padding: 3.5rem 0 3.5rem; }
.heroe h1 { font-size: clamp(2.5rem, 1.3rem + 4.8vw, 4.7rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.heroe__l { display: block; }
.heroe__sub { margin-top: 1.5rem; max-width: 34rem; font-size: 1.2rem; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.heroe .acciones { margin-top: 2rem; }
.heroe__nota { margin-top: 1.1rem; color: rgba(255, 255, 255, 0.86); font-size: 0.98rem; }
.heroe__recibo { justify-self: center; width: 100%; max-width: 21rem; }
@media (min-width: 56rem) {
  .heroe__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); padding: 4.5rem 0; }
  .heroe__recibo { justify-self: end; }
}

/* el recibo que se imprime: lo memorable de la página */
.recibo-bloque { position: relative; padding-top: 0.2rem; }
.ranura { position: relative; z-index: 2; height: 0.95rem; border-radius: 0.5rem; background: var(--verde-oscuro); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35), 0 2px 0 rgba(255, 255, 255, 0.12); }
.recibo { position: relative; z-index: 1; margin: -0.35rem 0.55rem 0; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.3)); transform: rotate(1.2deg); transform-origin: top center; color: var(--tinta); }
.recibo__papel { position: relative; background: var(--blanco); padding: 1.3rem 1.15rem 1.5rem; font-family: var(--mono); font-size: 0.78rem; line-height: 1.5; clip-path: inset(0 0 -14px 0); }
.recibo__papel::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: linear-gradient(-135deg, var(--blanco) 5px, transparent 0), linear-gradient(135deg, var(--blanco) 5px, transparent 0); background-size: 10px 10px; }
.recibo__papel p { margin: 0 0 0.55rem; }
.recibo__tienda { font-weight: 500; text-align: center; font-size: 0.95rem; letter-spacing: 0.02em; }
.recibo__centro { text-align: center; }
.recibo__linea { border: 0; border-top: 1.5px dashed #8aa2a8; margin: 0.6rem 0; }
.recibo__fila { display: flex; justify-content: space-between; gap: 0.6rem; }
.recibo__fila span:last-child { white-space: nowrap; }
.recibo__fila--total { font-weight: 500; font-size: 0.92rem; }
.recibo__firma { display: block; margin: 0.3rem auto 0.4rem; color: #1b3d8f; }
.recibo__pie { margin-top: 1.6rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.88); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .recibo__papel { animation: imprimir 2.6s steps(22, end) 0.35s both; }
  @keyframes imprimir { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -14px 0); } }
}

/* ---------- secciones ---------- */
.seccion { padding: 4.5rem 0; }
.seccion--menta { background: var(--menta); }
.seccion--cabecera { padding: 3.5rem 0 4rem; }
.titulo-seccion { font-size: clamp(1.8rem, 1.1rem + 2.2vw, 2.8rem); font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.titulo-pagina { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.subtitulo { font-size: 1.35rem; font-weight: 700; margin: 2.2rem 0 0.4rem; letter-spacing: -0.01em; }
.intro { margin-top: 1rem; max-width: 40rem; font-size: 1.15rem; color: var(--suave); }
.nota { margin-top: 1.5rem; color: var(--suave); font-size: 0.95rem; }
.dos-col { display: grid; gap: 2.5rem 4rem; }
.dos-col p { margin-top: 0.9rem; max-width: 34rem; }
@media (min-width: 52rem) { .dos-col { grid-template-columns: 1fr 1fr; } }

/* pasos (sí son una secuencia) */
.pasos { display: grid; gap: 2.2rem 2.5rem; margin-top: 2.6rem; }
.paso { position: relative; padding-top: 1.1rem; border-top: 2px dashed var(--linea); }
.paso__n { display: block; font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--naranja-texto); }
.paso h3 { margin-top: 0.7rem; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.paso p { margin-top: 0.5rem; max-width: 26rem; color: var(--suave); }
@media (min-width: 52rem) { .pasos { grid-template-columns: repeat(3, 1fr); } }

/* funciones: lista de renglones separados como en un ticket */
.funciones { display: grid; gap: 2rem 4.5rem; }
.funciones__intro p { margin-top: 1rem; max-width: 24rem; color: var(--suave); }
.lista-func > div { padding: 1.1rem 0 1.2rem; border-top: 2px dashed var(--linea); }
.lista-func > div:last-child { border-bottom: 2px dashed var(--linea); }
.lista-func dt { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.lista-func dd { margin-top: 0.3rem; max-width: 40rem; color: var(--suave); }
@media (min-width: 60rem) {
  .funciones { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: start; }
  .funciones__intro { position: sticky; top: 2rem; }
}

/* capturas */
.galeria { display: grid; gap: 2rem; margin-top: 2.4rem; }
.captura { margin: 0; }
.captura img { display: block; width: 100%; height: auto; background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 42, 51, 0.12); }
.captura figcaption { margin-top: 0.7rem; color: var(--suave); font-size: 0.98rem; max-width: 34rem; }
.captura--movil { max-width: 17rem; margin-inline: auto; }
.captura--movil img { border: 6px solid var(--tinta); border-radius: 30px; }
@media (min-width: 40rem) { .galeria { grid-template-columns: 1fr 1fr; } .captura--pos { grid-column: 1 / -1; } }
@media (min-width: 64rem) {
  .galeria { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .captura--pos { grid-column: 1 / 10; grid-row: 1; }
  .captura--movil { grid-column: 10 / 13; grid-row: 1; max-width: none; margin: 0; }
  .captura--movil img { border-width: 5px; border-radius: 26px; }
  .captura--med { grid-column: span 6; grid-row: 2; }
}

/* banda final */
.banda { background: var(--tinta); color: var(--blanco); padding: 3.5rem 0; }
.banda__in { display: grid; gap: 1.6rem 3rem; align-items: center; }
.banda h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); font-weight: 750; line-height: 1.12; letter-spacing: -0.02em; }
.banda p { margin-top: 0.5rem; color: rgba(255, 255, 255, 0.88); }
@media (min-width: 52rem) { .banda__in { grid-template-columns: 1fr auto; } }

/* ---------- precios ---------- */
.aviso { margin: 1.8rem 0 0; padding: 0.9rem 1.1rem; background: #fdf1e4; border-left: 5px solid var(--naranja); border-radius: 4px; max-width: 46rem; }
.planes { display: grid; gap: 1.5rem; margin-top: 2.2rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.7rem; background: var(--blanco); border: 1.5px solid var(--linea); border-radius: 14px; }
.plan--destacado { border: 2px solid var(--verde); box-shadow: 0 12px 30px rgba(22, 97, 106, 0.16); }
.plan__nombre { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.plan__marca { position: absolute; top: -0.85rem; left: 1.3rem; padding: 0.15rem 0.8rem; border-radius: 99px; background: var(--verde); color: var(--blanco); font-weight: 600; font-size: 0.88rem; }
.plan__desc { margin-top: 0.5rem; color: var(--suave); }
.plan__precio { margin-top: 1.2rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem; }
.plan__monto { font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.plan__unidad { color: var(--suave); font-weight: 550; }
.plan__lista { margin: 1.3rem 0 1.6rem; flex: 1; }
.plan__lista li { padding: 0.55rem 0; border-top: 1.5px dashed var(--linea); }
.plan__cta { align-self: stretch; }
@media (min-width: 52rem) { .planes { grid-template-columns: repeat(3, 1fr); } }

.tabla-caja { margin-top: 1.8rem; overflow-x: auto; background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; }
.tabla { width: 100%; min-width: 34rem; border-collapse: collapse; }
.tabla th, .tabla td { padding: 0.8rem 1rem; text-align: center; border-bottom: 1.5px dashed var(--linea); }
.tabla thead th { font-weight: 800; border-bottom: 2px solid var(--tinta); }
.tabla tbody th { text-align: left; font-weight: 550; }
.tabla tbody tr:last-child th, .tabla tbody tr:last-child td { border-bottom: 0; }
.tabla thead th:first-child { text-align: left; }
.marca-si { color: var(--verde); vertical-align: middle; }
.marca-no { color: var(--suave); }

/* ---------- preguntas ---------- */
.preguntas { margin-top: 2.2rem; border-bottom: 2px dashed var(--linea); }
.pregunta { border-top: 2px dashed var(--linea); }
.pregunta summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.4rem; padding: 0.9rem 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--menta); color: var(--verde); text-align: center; line-height: 2rem; font-size: 1.4rem; font-weight: 600; }
.pregunta[open] summary::after { content: "\2212"; }
.pregunta p { padding: 0 0 1.3rem; max-width: 40rem; color: var(--tinta); }

/* ---------- contacto y legales ---------- */
.correo-grande { margin-top: 1.8rem; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.1rem); font-weight: 750; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.envoltura--estrecha p + .subtitulo + p { max-width: 38rem; }
.meta-legal { margin-top: 0.8rem; color: var(--suave); }
.envoltura--legal > p { margin-top: 1rem; }
.legal { margin-top: 1.5rem; max-width: 44rem; }
.legal h2 { margin: 2rem 0 0.4rem; font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.legal p, .legal ul { margin-top: 0.7rem; }
.legal ul { padding-left: 1.3rem; list-style: disc; }
.legal li { margin-top: 0.35rem; }
.legal p, .legal li { overflow-wrap: anywhere; }

/* ---------- pie ---------- */
.pie { background: var(--tinta); color: #d4e4e6; padding: 3rem 0 2.5rem; }
.pie__in { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; display: grid; gap: 2rem; }
.pie a { color: #d4e4e6; }
.pie a:hover { color: var(--blanco); }
.marca--pie { color: var(--blanco); }
.pie__marca p { margin-top: 0.6rem; max-width: 20rem; }
.pie__col h2 { font-size: 1rem; font-weight: 700; color: var(--blanco); margin-bottom: 0.5rem; }
.pie__col li { padding: 0.25rem 0; }
.pie__nota { color: #b6cdd0; font-size: 0.92rem; max-width: 46rem; }
@media (min-width: 52rem) { .pie__in { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .pie__nota { grid-column: 1 / -1; } }

@media (forced-colors: active) { .boton { border: 2px solid ButtonText; } .ranura { border: 1px solid CanvasText; } }
@media print { .cabecera, .pie, .banda, .heroe__recibo { display: none; } }
