/* Fuentes de la marca (licencia OFL, en fuentes/): Archivo para el texto y Archivo Expanded para los titulares */
@font-face { font-family: "Archivo"; src: url("../fuentes/Archivo-Regular.woff2") format("woff2"); font-weight: 400; font-stretch: 100%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fuentes/Archivo-SemiBold.woff2") format("woff2"); font-weight: 600; font-stretch: 100%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fuentes/Archivo-Bold.woff2") format("woff2"); font-weight: 700; font-stretch: 100%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fuentes/ArchivoExpanded-ExtraBold.woff2") format("woff2"); font-weight: 800; font-stretch: 125%; font-display: swap; }
[hidden] { display: none !important; }

/* Layout: una columna de 1200 px con secciones que alternan hueso, blanco y tinta; Archivo Expanded para titulares, Archivo normal para el resto. */
:root {
  --fondo: #F4F0E8; --superficie: #FFFFFF; --superficie-2: #ECEEF2; --pista: #DCDEE5; --linea: #E4E6EC;
  --texto: #151A33; --texto-2: #5A5F73; --borde: #80869A;
  --franja: #151A33; --franja-texto: #F4F0E8; --franja-texto-2: #AEB2C2; --franja-linea: #3A4166; --franja-superficie: #262D4D;
  --boton-bg: #151A33; --boton-fg: #FFFFFF;
  --lima: #CDE23A; --lima-suave: #EEF3CF;
  --espera-fondo: #F6DE9E; --espera-texto: #5C4300;
  --aprob-fondo: #DDD6F7; --aprob-texto: #3A2C85;
  --alta: #C4381C; --media: #B07400; --baja: #80869A;
  --hoja-cabeza: #5A5F73; --hoja-progreso: #B9DDA3; --hoja-aprobacion: #D9CCF2; --hoja-pendiente: #FBF1D5;
  --sombra: rgba(21, 26, 51, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #0F1226; --superficie: #1A1F3A; --superficie-2: #232948; --pista: #2C3355; --linea: #2A3050;
    --texto: #F4F0E8; --texto-2: #AEB2C2; --borde: #6B7089;
    --franja: #0B0E1F; --franja-texto: #F4F0E8; --franja-texto-2: #AEB2C2; --franja-linea: #3A4166; --franja-superficie: #1E2442;
    --boton-bg: #F4F0E8; --boton-fg: #151A33;
    --lima-suave: #2A3214;
    --espera-fondo: #4A3A0E; --espera-texto: #F6DE9E;
    --aprob-fondo: #2F2860; --aprob-texto: #DDD6F7;
    --alta: #E5603F; --media: #D69A1F; --baja: #8A8FA3;
    --hoja-cabeza: #3A4166; --hoja-progreso: #3F6A2E; --hoja-aprobacion: #4A3C8A; --hoja-pendiente: #5A4A1E;
    --sombra: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #0F1226; --superficie: #1A1F3A; --superficie-2: #232948; --pista: #2C3355; --linea: #2A3050;
  --texto: #F4F0E8; --texto-2: #AEB2C2; --borde: #6B7089;
  --franja: #0B0E1F; --franja-texto: #F4F0E8; --franja-texto-2: #AEB2C2; --franja-linea: #3A4166; --franja-superficie: #1E2442;
  --boton-bg: #F4F0E8; --boton-fg: #151A33;
  --lima-suave: #2A3214;
  --espera-fondo: #4A3A0E; --espera-texto: #F6DE9E;
  --aprob-fondo: #2F2860; --aprob-texto: #DDD6F7;
  --alta: #E5603F; --media: #D69A1F; --baja: #8A8FA3;
  --hoja-cabeza: #3A4166; --hoja-progreso: #3F6A2E; --hoja-aprobacion: #4A3C8A; --hoja-pendiente: #5A4A1E;
  --sombra: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--texto); outline-offset: 3px; border-radius: 4px; }
.franja :focus-visible, .oscura :focus-visible { outline-color: var(--lima); }
.marca { font-weight: 800; font-stretch: 125%; letter-spacing: -0.01em; text-wrap: balance; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-2); }
.oscura .eyebrow { color: var(--lima); }
.contenedor { max-width: 1200px; margin: 0 auto; }
section, header, footer { padding-inline: 32px; }
.seccion { padding-block: 96px; }
.seccion-blanca { background: var(--superficie); }
.oscura { background: var(--franja); color: var(--franja-texto); }
.titulo-seccion { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; }
.intro { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.lead { font-size: 17px; line-height: 1.55; }
.oscura .lead, .oscura .texto-2 { color: var(--franja-texto-2); }
.texto-2 { color: var(--texto-2); }
.chico { font-size: 14px; line-height: 20px; }

/* Botones */
.boton { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 26px; border-radius: 27px; border: 0; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.boton:hover { transform: translateY(-1px); }
.boton-primario { background: var(--boton-bg); color: var(--boton-fg); }
.boton-secundario { background: var(--superficie); color: var(--texto); box-shadow: inset 0 0 0 1px var(--borde); }
.boton-lima { background: var(--lima); color: #151A33; }
.boton-fantasma { background: transparent; color: var(--franja-texto); box-shadow: inset 0 0 0 1px var(--borde); }
.boton-chico { min-height: 46px; padding: 0 18px; border-radius: 23px; font-size: 14px; }

/* Navegación */
.nav-barra { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--fondo); border-bottom: 1px solid var(--linea); }
.nav { min-height: 84px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-nombre { font-size: 23px; line-height: 1; font-weight: 800; font-stretch: 125%; letter-spacing: -0.01em; }
.logo-by { font-size: 9px; line-height: 1; font-weight: 600; letter-spacing: 0.3em; color: var(--texto-2); margin-top: 3px; }
.nav-enlaces { display: flex; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 600; }
.nav-enlaces a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.nav-enlaces a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .boton { min-height: 48px; padding: 0 22px; border-radius: 24px; font-size: 15px; }
.nav-acciones { display: flex; align-items: center; gap: 10px; }
.tema { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 22px; background: var(--superficie-2); color: var(--texto); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tema:hover { background: var(--pista); }

/* Portada */
.hero { padding-block: 72px 96px; }
.hero .contenedor { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; }
.hero-texto { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(46px, 5.6vw, 82px); line-height: 0.98; letter-spacing: -0.015em; }
.hero-lead { font-size: 20px; line-height: 1.5; max-width: 520px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { flex: 1 1 480px; min-width: 0; display: flex; justify-content: center; }

/* Muestra de la app */
.app { width: 100%; max-width: 640px; background: var(--fondo); border-radius: 18px; box-shadow: 0 28px 64px var(--sombra), 0 0 0 1px var(--linea); overflow: hidden; font-size: 14px; }
.app-franja { background: var(--franja); color: var(--franja-texto); padding: 14px 20px 8px; display: flex; flex-direction: column; gap: 6px; }
.app-franja-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1; font-weight: 800; font-stretch: 125%; letter-spacing: -0.01em; }
.app-agregar { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px; border-radius: 17px; background: var(--lima); color: #151A33; font-size: 13px; font-weight: 600; }
.rumbo { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rumbo-linea { position: absolute; left: 10%; right: 10%; top: 17px; height: 2px; border-radius: 1px; background: var(--franja-linea); }
.rumbo-punto { position: absolute; left: 30%; top: 11px; width: 14px; height: 14px; margin-left: -7px; border-radius: 7px; background: var(--lima); box-shadow: 0 0 0 5px rgba(205, 226, 58, 0.16); z-index: 2; }
.estacion { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 2px 4px; font-size: 11px; font-weight: 600; color: var(--franja-texto-2); white-space: nowrap; }
.estacion.activa { color: var(--franja-texto); font-weight: 700; }
.boya { width: 12px; height: 12px; border-radius: 6px; background: var(--franja); box-shadow: inset 0 0 0 2px #80869A; }
.app-cuerpo { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.app-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.app-titulo strong { font-size: 22px; line-height: 1.1; font-weight: 800; font-stretch: 125%; }
.aviso-toca { background: var(--lima); color: #151A33; border-radius: 14px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.aviso-toca .cuerpo { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.aviso-toca .titulo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.aviso-toca .titulo::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #151A33; }
.aviso-toca .accion { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; background: #151A33; color: #FFFFFF; font-size: 13px; font-weight: 600; }
.fila { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--superficie); }
.fila.actual { background: var(--lima-suave); }
.casilla { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--borde); flex-shrink: 0; margin-top: 2px; }
.fila-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fila-nombre { font-size: 14px; line-height: 19px; font-weight: 600; }
.meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--texto-2); }
.punto { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; display: inline-block; }
.espera-txt { font-size: 12px; font-weight: 600; color: var(--espera-texto); }
.fila-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.chip-progreso { background: var(--lima); color: #151A33; }
.chip-espera { background: var(--espera-fondo); color: var(--espera-texto); }
.chip-no { background: var(--superficie); color: var(--texto); box-shadow: inset 0 0 0 1px var(--borde); }
.prioridad { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; }
.prioridad::before { content: ""; width: 4px; height: 11px; border-radius: 2px; background: var(--baja); }
.prioridad.alta::before { background: var(--alta); }
.prioridad.media::before { background: var(--media); }

/* Origen */
.origen .contenedor { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.origen-texto { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.origen-visual { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hoja { background: var(--fondo); border-radius: 14px; padding: 16px; overflow-x: auto; }
.hoja .eyebrow { margin-bottom: 10px; }
.hoja table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.hoja th { background: var(--hoja-cabeza); color: #FFFFFF; text-align: left; padding: 8px 10px; font-weight: 600; }
.hoja td { padding: 8px 10px; border-top: 1px solid var(--pista); background: var(--superficie); }
.hoja tr.clave td { font-weight: 700; }
.hoja td.progreso { background: var(--hoja-progreso); }
.hoja td.aprobacion { background: var(--hoja-aprobacion); }
.hoja td.pendiente { background: var(--hoja-pendiente); }
.flecha { display: flex; justify-content: center; color: var(--borde); }
.ahora { background: var(--fondo); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ahora .fila { padding: 12px 14px; }
.ahora .casilla { width: 20px; height: 20px; border-radius: 6px; }
.ahora .fila-nombre { font-size: 15px; line-height: 21px; }
.ahora .meta { font-size: 13px; }
.ahora .chip { height: 26px; padding: 0 10px; font-size: 12px; }

/* Funciones */
.funciones .contenedor { display: flex; flex-direction: column; gap: 40px; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tarjeta { background: var(--superficie); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.tarjeta h3 { font-size: 22px; line-height: 1.15; font-weight: 800; font-stretch: 125%; }
.tarjeta p { font-size: 15px; line-height: 22px; color: var(--texto-2); }
.icono { width: 48px; height: 48px; border-radius: 24px; background: var(--boton-bg); color: var(--boton-fg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icono-suave { background: var(--lima-suave); color: var(--texto); }
.excel { background: var(--superficie); border-radius: 14px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; box-shadow: inset 0 0 0 1px var(--pista); }
.excel p { flex: 1 1 360px; font-size: 16px; line-height: 24px; }

/* La promesa */
.promesa .contenedor { display: flex; flex-direction: column; gap: 48px; }
.pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pilar { padding-top: 28px; border-top: 2px solid var(--franja-linea); display: flex; flex-direction: column; gap: 12px; }
.pilar h3 { font-size: 22px; line-height: 1.15; font-weight: 800; font-stretch: 125%; }
.pilar p { font-size: 15px; line-height: 22px; color: var(--franja-texto-2); }
.cita { max-width: 900px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-weight: 600; }

/* Para quién es */
.quien .contenedor { display: flex; flex-direction: column; gap: 40px; }
.dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dos .tarjeta { background: var(--fondo); padding: 30px; }
.dos .tarjeta h3 { font-size: 26px; }
.dos .tarjeta p { font-size: 16px; line-height: 24px; color: var(--texto); }

/* Planes */
.planes .contenedor { display: flex; flex-direction: column; gap: 40px; }
.botes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.bote { background: var(--superficie); border-radius: 14px; padding: 24px 18px; display: flex; flex-direction: column; gap: 10px; }
.bote h3 { font-size: 24px; line-height: 1.1; font-weight: 800; font-stretch: 125%; }
.bote .tamano { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--texto-2); }
.bote .precio { margin-top: 8px; font-size: 26px; line-height: 1.1; font-weight: 800; font-stretch: 125%; overflow-wrap: anywhere; }
.bote .precio span { font-size: 14px; font-weight: 600; font-stretch: 100%; color: var(--texto-2); }
.bote .precio .monto { display: block; font-size: 22px; font-weight: 800; font-stretch: 125%; color: var(--texto); white-space: nowrap; }
.bote .precio .periodo { display: block; margin-top: 4px; font-size: 13px; line-height: 18px; }
.pago { align-self: flex-start; display: inline-flex; gap: 4px; padding: 4px; border-radius: 26px; background: var(--superficie-2); }
.pago[hidden] { display: none; }
.pago button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 22px; background: transparent; color: var(--texto); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pago button[aria-pressed="true"] { background: var(--boton-bg); color: var(--boton-fg); }
.pago-ahorro { padding: 2px 8px; border-radius: 10px; background: var(--lima-suave); color: var(--texto); font-size: 12px; line-height: 16px; }
.pago button[aria-pressed="true"] .pago-ahorro { background: var(--lima); color: #151A33; }
.bote .para { font-size: 14px; line-height: 20px; color: var(--texto-2); flex-grow: 1; }
.bote .boton { min-height: 46px; padding: 0 14px; border-radius: 23px; font-size: 14px; }
.bote-oscuro { background: var(--franja); color: var(--franja-texto); }
.bote-oscuro .tamano, .bote-oscuro .para { color: var(--franja-texto-2); }

/* Preguntas */
.faq .contenedor { display: flex; flex-direction: column; gap: 40px; }
.preguntas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; }
.pregunta { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--pista); }
.pregunta h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.pregunta p { font-size: 15px; line-height: 22px; color: var(--texto-2); }

/* Familia */
.familia .contenedor { display: flex; flex-direction: column; gap: 36px; }
.hermanos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.hermano { background: var(--superficie); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.hermano h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; line-height: 1.15; font-weight: 800; font-stretch: 125%; }
.hermano .by { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.3em; color: var(--texto-2); }
.hermano p { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--texto-2); }
.hermano-oscuro { background: var(--franja); color: var(--franja-texto); }
.hermano-oscuro .by, .hermano-oscuro p { color: var(--franja-texto-2); }

/* Llamado final */
.cierre { padding-block: 104px; }
.cierre .contenedor { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cierre h2 { max-width: 820px; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.015em; }
.cierre .lead { max-width: 620px; font-size: 18px; }
.contacto { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.dato { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px 0 14px; border-radius: 22px; background: var(--franja-superficie); font-size: 15px; }
.dato a { text-decoration: none; font-weight: 600; }
.dato a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copiar { width: 36px; height: 36px; border: 0; border-radius: 18px; background: transparent; color: var(--franja-texto); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.copiar:hover { background: var(--franja-linea); }
.copiado { font-size: 13px; color: var(--lima); min-height: 20px; }

/* Pie */
.pie { padding-block: 32px; border-top: 1px solid var(--linea); }
.pie .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 14px; line-height: 20px; color: var(--texto-2); }
.pie-marca { display: inline-flex; align-items: center; gap: 8px; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.pie-enlaces a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.pie-enlaces a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  html { scroll-padding-top: 190px; }
  section, header, footer { padding-inline: 20px; }
  .seccion { padding-block: 64px; }
  .hero { padding-block: 40px 64px; }
  .nav { gap: 10px 16px; }
  .nav-enlaces { order: 3; width: 100%; overflow-x: auto; gap: 20px; padding-bottom: 4px; }
  .nav .boton { padding: 0 16px; }
  .tema { width: 44px; padding: 0; justify-content: center; }
  .tema-txt { display: none; }
  .hero-lead { font-size: 18px; }
  .acciones .boton { flex: 1 1 auto; }
  .cierre { padding-block: 72px; }
  .cierre .boton { flex: 1 1 auto; }
}
