/* Cuota a Mano · landing. Sin dependencias: un solo archivo de estilos. */

:root {
  --teal-950: #082f35;
  --teal-900: #134b52;
  --teal-800: #1b6670;
  --teal-600: #2b8a98;
  --teal-500: #3b9fad;
  --teal-300: #8fd0da;
  --teal-100: #dff1f4;
  --teal-50: #f0f9fa;
  --ink: #0c2a2f;
  --ink-soft: #3d5b60;
  --linea: #d6e5e8;
  --fondo: #f7fbfb;
  --blanco: #ffffff;
  --ok: #1f9d6b;
  --aviso: #c98a1a;
  --sombra: 0 1px 2px rgb(8 47 53 / 0.06), 0 12px 32px -12px rgb(8 47 53 / 0.18);
  --radio: 18px;
  --ancho: 72.5rem;
  --alto-encabezado: 73px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.contenedor--angosto { width: min(100% - 2.5rem, 780px); }

.saltar {
  position: absolute; left: 1rem; top: -4rem; background: var(--teal-900); color: #fff;
  padding: .6rem 1rem; border-radius: 8px; z-index: 100; text-decoration: none; transition: top .2s;
}
.saltar:focus { top: 1rem; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 12px; padding: .65rem 1.2rem;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton--primario { background: var(--teal-900); color: #fff; box-shadow: 0 8px 20px -8px rgb(19 75 82 / .6); }
.boton--primario:hover { background: var(--teal-800); }
.boton--fantasma { color: var(--teal-900); }
.boton--fantasma:hover { background: var(--teal-100); }
.boton--borde { border-color: var(--teal-900); color: var(--teal-900); background: transparent; }
.boton--borde:hover { background: var(--teal-100); }
.boton--grande { padding: .85rem 1.6rem; font-size: 1rem; }
.boton--ancho { width: 100%; }
.boton[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 251 251 / .86); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.encabezado.con-sombra { border-color: var(--linea); box-shadow: 0 6px 20px -14px rgb(8 47 53 / .35); }
.encabezado__fila { display: flex; align-items: center; justify-content: space-between; min-height: calc(var(--alto-encabezado) - 1px); gap: 1rem; }
.marca { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: .95rem; color: var(--teal-900); }
.marca img { width: auto; height: 38px; }

.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu > a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.menu > a:hover { color: var(--teal-900); }
.menu__acciones { display: flex; gap: .5rem; margin-left: .5rem; }

.menu-boton { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-boton span { width: 22px; height: 2px; background: var(--teal-900); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-boton[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-boton[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-boton[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__fondo {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% -10%, rgb(59 159 173 / .28), transparent 60%),
    radial-gradient(700px 420px at -5% 30%, rgb(143 208 218 / .35), transparent 60%),
    linear-gradient(180deg, var(--teal-50), var(--fondo));
}
.hero__grilla { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.etiqueta { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin-bottom: .9rem; }
.etiqueta--clara { color: var(--teal-300); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; color: var(--teal-950); }
.resalte { background: linear-gradient(100deg, var(--teal-800), var(--teal-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__bajada { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 36rem; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__puntos { list-style: none; display: grid; gap: .55rem; margin-top: 2rem; color: var(--ink-soft); font-size: .93rem; }
.hero__puntos li { display: flex; gap: .6rem; align-items: center; }
.hero__puntos li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23134b52' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- Demo de consulta ---------- */
.demo { background: linear-gradient(160deg, var(--teal-900), var(--teal-950)); border-radius: 22px; color: #e8f6f8; box-shadow: 0 30px 60px -24px rgb(8 47 53 / .55), 0 0 0 1px rgb(255 255 255 / .06) inset; padding-bottom: .4rem; }
.demo__barra { display: flex; align-items: center; gap: 6px; padding: .85rem 1.1rem; border-bottom: 1px solid rgb(255 255 255 / .08); font-size: .8rem; color: var(--teal-300); }
.demo__barra i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .18); }
.demo__barra span { margin-left: auto; letter-spacing: .04em; }
.demo__cuerpo { padding: 1.2rem 1.2rem .6rem; display: grid; gap: .9rem; }
.demo__campo small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-300); margin-bottom: .35rem; }
.demo__cuil { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: 10px; padding: .6rem .85rem; font-size: 1.05rem; font-weight: 500; letter-spacing: .06em; min-height: 2.7rem; font-variant-numeric: tabular-nums; }
.cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--teal-300); margin-left: 2px; vertical-align: -0.15em; animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.demo__estado { font-size: .82rem; color: var(--teal-300); min-height: 1.3rem; }
.demo__lista { list-style: none; display: grid; gap: .5rem; }
.fila { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: 12px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08); opacity: .5; transition: opacity .3s, background-color .3s, border-color .3s, transform .3s; }
.fila.lista { opacity: 1; }
.fila.mejor { background: rgb(31 157 107 / .16); border-color: rgb(52 211 153 / .55); transform: scale(1.015); }
.fila__logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: rgb(255 255 255 / .12); }
.fila__nombre { font-size: .88rem; font-weight: 500; }
.fila__detalle { font-size: .74rem; color: var(--teal-300); }
.fila__estado { font-size: .8rem; font-weight: 600; text-align: right; white-space: nowrap; }
.fila__estado.ok { color: #6ee7b7; }
.fila__estado.no { color: #94b6bb; font-weight: 500; }
.giro { display: inline-block; width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / .25); border-top-color: var(--teal-300); border-radius: 50%; animation: gira .8s linear infinite; vertical-align: -3px; }
@keyframes gira { to { transform: rotate(360deg); } }
.demo__pie { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem .9rem; border-radius: 12px; background: rgb(255 255 255 / .06); font-size: .85rem; }
.demo__pie strong { font-size: 1.05rem; color: #6ee7b7; }
.demo__nota { text-align: center; font-size: .7rem; color: rgb(143 208 218 / .7); padding: .35rem 0 .7rem; }

/* ---------- Franja ---------- */
.franja { background: var(--teal-900); color: #dff1f4; }
.franja__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 2rem; padding: 1.1rem 0; font-size: .9rem; }
.franja__fila span { color: var(--teal-300); }
.franja__fila b { font-weight: 600; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.seccion--suave { background: var(--teal-50); }
.seccion--oscura { background: linear-gradient(160deg, var(--teal-900), var(--teal-950)); color: #e8f6f8; }
.encabezado-seccion { max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3.2rem); text-align: center; }
.encabezado-seccion h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--teal-950); }
.encabezado-seccion p:not(.etiqueta) { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }

/* Pasos */
.pasos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: p; position: relative; }
.pasos li { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.8rem; box-shadow: var(--sombra); }
.paso__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--teal-900); color: #fff; font-weight: 700; margin-bottom: 1.1rem; }
.pasos h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.pasos p { color: var(--ink-soft); font-size: .96rem; }

/* Funciones */
.funciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.funcion { padding: 1.7rem; border-radius: var(--radio); background: var(--blanco); border: 1px solid var(--linea); transition: transform .2s, box-shadow .2s, border-color .2s; }
.funcion:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: var(--teal-300); }
.icono { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--teal-100); margin-bottom: 1.1rem; }
.icono svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-900); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.funcion h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.funcion p { color: var(--ink-soft); font-size: .94rem; }

/* Ahorro */
.ahorro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ahorro h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; color: #fff; }
.ahorro__texto p:not(.etiqueta) { margin-top: 1rem; color: #bfe0e5; font-size: 1.05rem; }
.calculadora { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: 22px; padding: 1.8rem; display: grid; gap: 1.3rem; }
.calculadora label span { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .55rem; color: #d4ecef; }
.calculadora output { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
input[type='range'] { width: 100%; height: 32px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; outline-offset: 2px; touch-action: pan-y; }
input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: rgb(255 255 255 / .2); }
input[type='range']::-moz-range-track { height: 6px; border-radius: 6px; background: rgb(255 255 255 / .2); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; margin-top: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-300); border: 3px solid var(--teal-900); box-shadow: 0 0 0 2px var(--teal-300); cursor: pointer; }
input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--teal-300); border: 3px solid var(--teal-900); box-shadow: 0 0 0 2px var(--teal-300); cursor: pointer; }
.resultado { margin-top: .4rem; padding: 1.2rem; border-radius: 16px; background: linear-gradient(135deg, rgb(52 211 153 / .2), rgb(59 159 173 / .22)); border: 1px solid rgb(110 231 183 / .4); text-align: center; }
.resultado small { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #bfe9de; }
.resultado strong { display: block; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.resultado p { font-size: .85rem; color: #cfeae3; margin-top: .2rem; }
.calculadora__nota { font-size: .72rem; color: #94c3ca; }

/* FAQ */
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 0 1.3rem; }
.faq details[open] { border-color: var(--teal-500); box-shadow: var(--sombra); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--teal-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-soft); }

/* Contacto */
.contacto__grilla { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contacto__logo { filter: brightness(0) invert(1); opacity: .9; margin-bottom: 1.4rem; }
.contacto h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; color: #fff; }
.contacto__texto p:not(.etiqueta) { margin-top: 1rem; color: #bfe0e5; font-size: 1.05rem; }
.formulario { background: var(--blanco); color: var(--ink); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.1rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; box-shadow: 0 30px 60px -28px rgb(0 0 0 / .5); }
.campo { display: grid; gap: .4rem; }
.campo--ancho, .formulario > p, .formulario > button { grid-column: 1 / -1; }
.campo label { font-size: .85rem; font-weight: 600; }
.campo label span { font-weight: 400; color: var(--ink-soft); }
.campo input, .campo select, .campo textarea { font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1.5px solid var(--linea); border-radius: 10px; padding: .7rem .85rem; width: 100%; transition: border-color .15s, box-shadow .15s; }
.campo textarea { resize: vertical; min-height: 92px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgb(59 159 173 / .2); }
.campo [aria-invalid='true'] { border-color: #c0392b; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario__aviso { padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; font-weight: 500; }
.formulario__aviso.ok { background: #e3f6ee; color: #12664a; }
.formulario__aviso.error { background: #fdecea; color: #9b2c20; }
.formulario__legal { font-size: .74rem; color: var(--ink-soft); }

/* Pie */
.pie { background: var(--teal-950); color: #9fc7cd; padding: 2.2rem 0; font-size: .85rem; }
.pie__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.marca--pie { color: #fff; }
.marca--pie img { filter: brightness(0) invert(1); }
.pie nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.pie nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pie nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Animación de entrada ---------- */
.aparece { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.aparece.visible { opacity: 1; transform: none; }

/* ---------- Hero en dos columnas ---------- */
@media (width > 960px) {
  .portada {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: calc(100vh - var(--alto-encabezado));
    min-height: calc(100dvh - var(--alto-encabezado));
  }
  .hero {
    display: grid;
    align-items: center;
    padding-block: clamp(1rem, 4vh, 4rem);
    padding-block: clamp(1rem, 4dvh, 4rem);
  }
  .hero h1 { font-size: clamp(2.3rem, min(5.2vw, 7dvh), 4rem); }
}

@media (width > 960px) and (max-height: 950px) {
  .hero { padding-block: clamp(1rem, 2.8dvh, 2rem); }
  .hero__bajada { margin-top: 1rem; }
  .hero__acciones, .hero__puntos { margin-top: 1.2rem; }
  .demo__barra { padding-block: .65rem; }
  .demo__cuerpo { padding-top: .85rem; gap: .6rem; }
  .demo__lista { gap: .35rem; }
  .fila { padding-block: .35rem; }
  .demo__pie { padding-block: .5rem; }
}

@media (width > 960px) and (max-height: 800px) {
  .hero { padding-block: .75rem; }
  .demo__cuerpo { padding-top: .65rem; gap: .4rem; }
  .demo__lista { gap: .3rem; }
  .fila { padding-block: .2rem; }
  .fila__nombre, .fila__detalle { line-height: 1.4; }
}

/* ---------- Pantallas chicas ---------- */
@media (max-width: 960px) {
  .hero__grilla, .ahorro, .contacto__grilla { grid-template-columns: 1fr; }
  .funciones { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-boton { display: flex; }
  .menu {
    position: fixed; inset: var(--alto-encabezado) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--fondo); padding: .5rem 1.25rem 1.4rem; border-bottom: 1px solid var(--linea); max-height: calc(100vh - var(--alto-encabezado)); max-height: calc(100dvh - var(--alto-encabezado)); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 20px 30px -20px rgb(8 47 53 / .35); transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .menu.abierto { transform: none; visibility: visible; }
  .menu > a { padding: .95rem .2rem; border-bottom: 1px solid var(--linea); font-size: 1rem; }
  .menu__acciones { margin: 1rem 0 0; flex-direction: column; }
  .menu__acciones .boton { width: 100%; }
}
@media (max-width: 640px) {
  .funciones, .formulario { grid-template-columns: 1fr; }
  .hero__acciones .boton { width: 100%; }
  .pie__fila { flex-direction: column; align-items: flex-start; }
}

/* Monitores grandes: todo escala en proporción (la tipografía y los espacios están en rem). */
@media (min-width: 1600px) { html { font-size: 112.5%; } }
@media (min-width: 2200px) { html { font-size: 131%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .aparece { opacity: 1; transform: none; }
}
