/* Portada pública de Neocont (prueba, solo en el dev). Estructura Hallmark; colores de Neocont: azul (barra del programa)
   y naranja (identidad), los del logo. Los datos de las ilustraciones usan los tonos del Balance (facturado turquesa,
   gastos coral). Modo oscuro: azul pizarra. Títulos de modales en mayúsculas con icono naranja; avisos con «Entendido». */

@font-face { font-family: 'Manrope NC'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/manrope-var/manrope-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope NC'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/manrope-var/manrope-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  /* Neocont */
  --azul: #2e69b2; --azul-hover: #275b9c; --azul-hondo: #1d4a86; --azul-noche: #163a6b; --azul-cielo: #1f97d6;
  --azul-texto: #24599c; --azul-suave: #e9f1fb; --azul-suave-2: #d6e5f7;
  --naranja: #d9771c; --naranja-hover: #c4681a; --naranja-vivo: #f29322; --naranja-texto: #a95812; --naranja-suave: #fdf1e3;
  /* Datos (Balance) y estados */
  --c-ventas: #0f766e; --c-gastos: #e0533d; --c-hacienda: #b7791f;
  --c-hecho: #3f7a14; --c-hecho-fondo: #ecf5e1; --c-peligro: #c22630; --c-peligro-fondo: #fbe9ea;
  /* Superficies */
  --fondo: #f6f8fb; --fondo-2: #eef3f9; --tarjeta: #ffffff; --tinta: #16223a; --tinta-2: #33415a; --gris: #5d6b82;
  --raya: #dfe6ef; --raya-2: #c9d4e2;
  --sombra: 0 1px 2px rgb(22 34 58 / .06), 0 8px 24px -8px rgb(22 34 58 / .14);
  --sombra-alta: 0 2px 4px rgb(22 34 58 / .08), 0 22px 48px -16px rgb(22 34 58 / .30);
  --foco: #f29322;
  --font: 'Manrope NC', 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --r: 14px; --r-s: 10px; --r-xs: 8px;
  --container: 1280px; --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --azul: #3b78c4; --azul-hover: #4a86d1; --azul-hondo: #1c3a63; --azul-noche: #13294a; --azul-cielo: #5cb6ea;
  --azul-texto: #8dbcf2; --azul-suave: #1d2c45; --azul-suave-2: #253756;
  --naranja: #d97a22; --naranja-hover: #e88a32; --naranja-vivo: #f4a24a; --naranja-texto: #f2ad69; --naranja-suave: #33291f;
  --c-ventas: #2fb5a6; --c-gastos: #f07a66; --c-hacienda: #e6b450;
  --c-hecho: #a8d86a; --c-hecho-fondo: #26361c; --c-peligro: #f3625f; --c-peligro-fondo: #3a2228;
  --fondo: #141d2e; --fondo-2: #182335; --tarjeta: #1e2a40; --tinta: #e8eef8; --tinta-2: #c4cfe0; --gris: #95a3ba;
  --raya: #2b3a54; --raya-2: #364863;
  --sombra: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -8px rgb(0 0 0 / .5);
  --sombra-alta: 0 2px 4px rgb(0 0 0 / .3), 0 22px 48px -16px rgb(0 0 0 / .7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--font); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font); margin: 0; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; max-width: 15ch; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.85rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; max-width: 20ch; }
h3 { font-size: 1.125rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
.fig { font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.ti { line-height: 1; }

/* Antetítulo: el título de cada sección, en mayúsculas con su icono naranja */
.antetitulo { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-texto); }
.antetitulo .ti { font-size: 18px; color: var(--naranja); }
.antetitulo--claro { color: #fff; }
.antetitulo--claro .ti { color: var(--naranja-vivo); }
.lead-s { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--tinta-2); line-height: 1.6; max-width: 56ch; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-s); font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease), color .15s; }
.btn .ti { font-size: 20px; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--naranja { background: var(--naranja); color: #fff; box-shadow: 0 6px 16px -6px rgb(217 119 28 / .7); }
.btn--naranja:hover { background: var(--naranja-hover); }
.btn--azul { background: var(--azul); color: #fff; }
.btn--azul:hover { background: var(--azul-hover); }
.btn--blanco { background: #fff; color: var(--azul-hondo); }
.btn--blanco .ti { color: var(--azul); }
.btn--blanco:hover { background: var(--azul-suave); }
:root[data-theme="dark"] .btn--blanco { background: rgb(255 255 255 / .12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
:root[data-theme="dark"] .btn--blanco .ti { color: var(--azul-cielo); }
.btn--linea { background: transparent; color: var(--azul-texto); box-shadow: inset 0 0 0 1.5px var(--azul); }
.btn--linea:hover { background: var(--azul-suave); }
/* Entrar: línea naranja, distinto de Precios (línea azul), Prueba gratis (naranja relleno) y el menú (azul relleno) */
.btn--linea-naranja { color: var(--naranja-texto); box-shadow: inset 0 0 0 1.5px var(--naranja); }
.btn--linea-naranja:hover { background: var(--naranja-suave); }
.btn--neutro { background: transparent; color: var(--gris); box-shadow: inset 0 0 0 1px var(--raya-2); }
.btn--neutro:hover { color: var(--tinta); }
.enlace { background: none; border: 0; padding: 0; font: inherit; color: var(--azul-texto); font-weight: 650; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.enlace:hover { text-decoration-color: currentColor; }
.btn-falso { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-xs); background: var(--naranja); color: #fff; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.btn-falso .ti { font-size: 16px; }

/* ---------- Barra ---------- */
.barra { position: sticky; top: 0; z-index: 300; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--raya); }
:root[data-theme="dark"] .barra { background: rgb(20 29 46 / .9); }
.barra .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marca { display: inline-flex; align-items: center; flex-shrink: 0; }
.marca img { height: 30px; width: auto; display: block; }
.barra nav { display: flex; align-items: center; gap: 18px; }
.barra nav a.nav-link { white-space: nowrap; text-decoration: none; color: var(--tinta-2); font-size: .9375rem; font-weight: 600; }
.barra nav a.nav-link:hover { color: var(--azul-texto); }
.barra-botones { display: flex; gap: 8px; }
.barra nav a.nav-link[aria-current] { color: var(--naranja-texto); }
.barra-menu { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-s); border: 0; background: #1f97d6; color: #fff; box-shadow: 0 6px 16px -6px rgb(31 151 214 / .7); cursor: pointer; transition: background-color .15s var(--ease); }
.barra-menu .ti { font-size: 22px; }
.barra-menu:hover { background: #1a84bd; }
/* El azul del logo, igual en claro y en oscuro: junto al naranja de «Prueba gratis», los dos colores de la marca */
.barra-menu { display: inline-flex; } /* el menú va siempre en la hamburguesa (decisión del usuario, 29/11/2026) */
:root:not(.es-app) .solo-app { display: none !important; }
@media (max-width: 30rem) { .barra .btn--linea .ti { display: none; } .barra-botones { gap: 6px; } .barra .marca img { height: 20px; width: auto; } .barra .btn--sm { padding: 0 10px; } .barra .container { gap: 8px; padding-inline: 12px; } }
/* «Entrar»: en el móvil, solo la silueta en su caja cuadrada */
@media (max-width: 30rem) { .barra .barra-cuenta { width: 40px; padding: 0; justify-content: center; } .barra .barra-cuenta .ti { display: inline-block; font-size: 20px; margin: 0; } .barra .barra-cuenta-txt { display: none; } }
@media (max-width: 30rem) { .marca img { height: 24px; } .barra .btn--naranja .largo { display: none; } .barra .btn--sm { padding: 0 12px; } }
@media (min-width: 30.01rem) { .barra .btn--naranja .corto { display: none; } }
/* Móvil: que quepan Precios, Probar, Entrar y el menú sin salirse (30/11/2026); por debajo de 376 px, Precios solo en el menú */
@media (max-width: 30rem) { .barra .marca img { height: 18px; } .barra .container { gap: 6px; padding-inline: 12px; } .barra-botones { gap: 4px; } .barra .btn--sm { padding: 0 8px; } }
@media (max-width: 23.5rem) { .barra .barra-botones > a[href="/precios"] { display: none; } }

/* ---------- El trazo del logo (adorno de fondo) ---------- */
.trazo { position: absolute; pointer-events: none; color: rgb(255 255 255 / .07); width: min(780px, 70vw); right: -6vw; bottom: -14%; }
.trazo-punto { fill: var(--naranja-vivo); opacity: .22; }
.hero .trazo { top: 8%; bottom: auto; color: rgb(255 255 255 / .09); }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 10%, var(--azul-cielo) 0%, transparent 55%), linear-gradient(160deg, var(--azul) 0%, var(--azul-hondo) 60%, var(--azul-noche) 100%); }
:root[data-theme="dark"] .hero { background: radial-gradient(120% 90% at 85% 10%, #24507f 0%, transparent 55%), linear-gradient(160deg, #1f416d 0%, #172f52 60%, #111f38 100%); }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 7vw, 104px); }
.hero-texto { display: grid; gap: 22px; }
.hero .lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: rgb(255 255 255 / .88); max-width: 44ch; line-height: 1.6; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-condiciones { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: rgb(255 255 255 / .8); }
.hero-condiciones .ti { color: var(--naranja-vivo); font-size: 18px; }
@media (max-width: 62rem) { .hero .container { grid-template-columns: minmax(0, 1fr); } }

.ap-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ap-titulo { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.ap-titulo .ti { color: var(--naranja); font-size: 18px; }
.ap-chip { font-size: .8125rem; font-weight: 700; color: var(--azul-texto); background: var(--azul-suave); padding: 4px 10px; border-radius: 999px; }
.c-ventas { color: var(--c-ventas); } .c-gastos { color: var(--c-gastos); } .c-hacienda { color: var(--c-hacienda); }
.ap-par { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.ap-par span { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; transform-origin: bottom; }
.b-ventas { background: var(--c-ventas); } .b-gastos { background: var(--c-gastos); opacity: .85; }

/* Motor: entran facturas y gastos, Neocont los clasifica, salen los impuestos */
.motor { position: relative; container-type: inline-size; width: 100%; max-width: 640px; aspect-ratio: 600 / 440; justify-self: end; }
.motor-lineas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.motor-lineas path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 5 7; stroke-linecap: round; }
.ml-entra { stroke: rgb(255 255 255 / .45); }
.ml-sale { stroke: var(--naranja-vivo); }
.motor-rotulo { position: absolute; top: 0; font-size: clamp(.6875rem, 1.9cqi, .8125rem); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
.mr-1 { left: 0; } .mr-2 { right: 0; }
.pieza { position: absolute; top: calc(var(--y) / 440 * 100%); translate: 0 -50%; width: 35.5%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(8px, 2cqi, 12px); align-items: center; padding: clamp(10px, 2.3cqi, 14px); border-radius: clamp(10px, 2.3cqi, 14px); background: var(--tarjeta); color: var(--tinta); border: 1px solid var(--raya-2); box-shadow: 0 18px 36px -14px rgb(8 20 45 / .55); font-size: clamp(.75rem, 2.2cqi, .875rem); line-height: 1.3; }
.pieza--entra { left: 0; }
.pieza--sale { right: 0; }
.pz-icono { width: clamp(30px, 6.4cqi, 38px); aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: clamp(16px, 3.4cqi, 20px); }
.pz-azul { background: var(--azul-suave); color: var(--azul-texto); }
.pz-naranja { background: var(--naranja-suave); color: var(--naranja); }
.pz-texto { min-width: 0; display: grid; gap: 1px; }
.pz-texto b { font-weight: 750; }
.pz-texto small { color: var(--gris); font-size: .85em; }
.pieza--entra { grid-template-columns: auto minmax(0, 1fr); }
.pieza--entra .pz-tag { grid-column: 2; justify-self: start; }
.pz-tag { font-size: .72em; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag-vf { color: var(--azul-texto); background: var(--azul-suave); }
.tag-turquesa { color: var(--c-ventas); background: color-mix(in srgb, var(--c-ventas) 14%, transparent); }
.tag-azul-lleno { color: #fff; background: var(--azul); }
.pz-modelo { min-width: clamp(38px, 8cqi, 48px); aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; align-content: center; background: var(--azul-suave); color: var(--azul-texto); font-weight: 800; font-size: 1.05em; letter-spacing: -0.01em; }
.pz-modelo--fecha { background: var(--naranja-suave); color: var(--tinta); line-height: 1; }
.pz-modelo--fecha small { display: block; font-size: .6em; font-weight: 800; letter-spacing: .08em; color: var(--naranja); margin-bottom: 2px; }
.pz-ok { width: clamp(22px, 4.4cqi, 26px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--c-hecho); color: #fff; font-size: clamp(13px, 2.6cqi, 15px); }
:root[data-theme="dark"] .pz-ok { color: #16223a; }
.nucleo { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 15cqi; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / .14), 0 20px 40px -12px rgb(8 20 45 / .6); }
.nucleo img { width: 64%; height: auto; position: relative; }
.nucleo-onda { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--naranja-vivo); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .motor-lineas path { animation: fluir 1.1s linear infinite; }
  @keyframes fluir { to { stroke-dashoffset: -24; } }
  .nucleo-onda { animation: onda 2.6s ease-out infinite; }
  .nucleo-onda--2 { animation-delay: 1.3s; }
  @keyframes onda { from { opacity: .7; scale: 1; } to { opacity: 0; scale: 1.9; } }
  .js .motor .pieza, .js .motor .nucleo { opacity: 0; transition: opacity .6s var(--ease), translate .6s var(--ease); }
  .js .motor .pieza--entra { translate: -14px -50%; } .js .motor .pieza--sale { translate: 14px -50%; }
  .js .motor .pieza { transition-delay: calc(var(--i) * 160ms + .1s); }
  .js .motor .nucleo { transition-delay: .45s; }
  .js .motor.visto .pieza { opacity: 1; translate: 0 -50%; }
  .js .motor.visto .nucleo { opacity: 1; }
}
@media (max-width: 62rem) { .motor { justify-self: center; } }
/* Móvil: tres cuadros arriba (facturas y gastos), el logo con sus ondas en medio y tres abajo (impuestos), unidos por
   líneas de rayas que bajan (blancas hasta el logo, naranjas después), con el mismo movimiento que en pantalla grande */
.motor-lineas-movil { display: none; }
@media (max-width: 40rem) {
  .motor { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; max-width: 420px; }
  .motor-lineas { display: none; }
  .motor-lineas-movil { display: block; grid-row: 3; grid-column: 1 / -1; width: 100%; height: 140px; overflow: visible; }
  .motor-lineas-movil path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 5 7; stroke-linecap: round; }
  .motor-rotulo, .pieza, .nucleo { position: relative; left: auto; right: auto; top: auto; translate: none; width: auto; }
  .motor-rotulo { grid-column: 1 / -1; justify-self: center; text-align: center; }
  .mr-1 { grid-row: 1; margin-bottom: 12px; } .pieza--entra { grid-row: 2; } .nucleo { grid-row: 3; grid-column: 1 / -1; } .pieza--sale { grid-row: 4; } .mr-2 { grid-row: 5; margin-top: 12px; }
  .nucleo { width: 72px; justify-self: center; align-self: center; }
  .pieza { font-size: .75rem; padding: 10px 8px; gap: 6px; align-content: start; border-radius: 12px; }
  .pieza--entra { grid-template-columns: minmax(0, 1fr); }
  .pieza--entra .pz-tag { grid-column: 1; }
  .pieza--sale { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .pieza--sale .pz-modelo { grid-row: 1; grid-column: 1; justify-self: start; }
  .pieza--sale .pz-ok { grid-row: 1; grid-column: 2; }
  .pieza--sale .pz-texto { grid-row: 2; grid-column: 1 / -1; }
  .pz-icono { width: 30px; font-size: 16px; }
  .pz-modelo { min-width: 38px; }
  .pz-tag { font-size: .62rem; letter-spacing: .02em; padding: 2px 6px; }
}
@media (max-width: 40rem) and (prefers-reduced-motion: no-preference) {
  .motor-lineas-movil path { animation: fluir 1.1s linear infinite; }
  .js .motor .pieza--entra { translate: 0 -12px; } .js .motor .pieza--sale { translate: 0 12px; }
  .js .motor.visto .pieza { translate: 0 0; }
}

/* ---------- Secciones ---------- */
.seccion { padding-block: var(--sec); position: relative; }
.seccion--tinte { background: var(--fondo-2); }
.bloque { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.bloque--invertido { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.bloque--invertido .bloque-texto { order: 2; }
.bloque-texto { display: grid; gap: 18px; align-content: start; }
@media (max-width: 62rem) { .bloque, .bloque--invertido { grid-template-columns: minmax(0, 1fr); } .bloque--invertido .bloque-texto { order: 0; } }

.ventajas { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.ventajas li { display: flex; gap: 14px; align-items: flex-start; color: var(--tinta-2); }
.ventajas li > .ti { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; color: var(--azul-texto); background: var(--azul-suave); }
.ventajas li span { padding-top: 6px; }
.ventajas b { color: var(--tinta); font-weight: 750; }

/* Marco de las ilustraciones */
.visual { position: relative; border-radius: 22px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; }
.visual--azul { background: linear-gradient(145deg, var(--azul-suave) 0%, var(--azul-suave-2) 100%); }
.visual--naranja { background: linear-gradient(145deg, var(--naranja-suave) 0%, var(--azul-suave) 100%); }
.v-tarjeta { background: var(--tarjeta); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sombra); }
.v-fila { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 36rem) { .v-fila { grid-template-columns: minmax(0, 1fr); } }

.estado { display: inline-flex; align-items: center; gap: 5px; font-size: .8125rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; justify-self: start; }
.estado .ti { font-size: 15px; }
.estado--hecho { color: var(--c-hecho); background: var(--c-hecho-fondo); }
.estado--azul { color: var(--azul-texto); background: var(--azul-suave); }

/* ---------- Gastos: el móvil escaneando y cuatro gastos clasificados ---------- */
.visual--gastos { grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.5vw, 28px); align-items: center; }
.visual--gastos .movil { margin: 0; }
.visual--gastos .cl-gastos { margin: 0; }
.visual--gastos .cl-gastos li { background: var(--tarjeta); box-shadow: var(--sombra); }
@media (max-width: 36rem) { .visual--gastos { grid-template-columns: minmax(0, 1fr); } .visual--gastos .movil { justify-self: center; } }

.movil { position: relative; width: 132px; aspect-ratio: 9 / 17; margin: 18px auto 4px; border-radius: 22px; background: var(--tinta); padding: 8px 7px 22px; box-shadow: var(--sombra-alta); }
:root[data-theme="dark"] .movil { background: #0b1220; box-shadow: var(--sombra-alta), 0 0 0 1px var(--raya-2); }
.movil-pantalla { position: relative; height: 100%; border-radius: 15px; background: linear-gradient(170deg, #2a3a55, #151f33); overflow: hidden; display: grid; place-items: center; }
.movil-ticket { font-size: 54px; color: rgb(255 255 255 / .85); }
.movil-boton { position: absolute; left: 50%; bottom: 6px; width: 30px; height: 5px; margin-left: -15px; border-radius: 3px; background: rgb(255 255 255 / .3); }
.visor { position: absolute; width: 20px; height: 20px; border: 3px solid var(--naranja-vivo); }
.visor--1 { top: 14px; left: 12px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.visor--2 { top: 14px; right: 12px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.visor--3 { bottom: 14px; left: 12px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.visor--4 { bottom: 14px; right: 12px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.escaner { position: absolute; left: 10px; right: 10px; top: 20%; height: 2px; background: var(--naranja-vivo); box-shadow: 0 0 12px 2px rgb(242 147 34 / .7); }
@media (prefers-reduced-motion: no-preference) {
  .escaner { animation: escanear 2.6s ease-in-out infinite alternate; }
  @keyframes escanear { from { top: 18%; } to { top: 80%; } }
}

.cl-gastos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.cl-gastos li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "gasto clase" "detalle detalle"; gap: 8px 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-s); background: var(--fondo-2); position: relative; }
.cl-gastos li:has(.cg-amortiza) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "gasto clase" "detalle amortiza"; }
.cg-gasto { grid-area: gasto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cg-gasto > .ti { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--tarjeta); color: var(--azul-texto); font-size: 19px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--raya); }
.cg-gasto b { display: block; font-weight: 750; line-height: 1.2; }
.cg-gasto small { color: var(--gris); font-size: .8125rem; }
.cg-clase { grid-area: clase; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.clase--inmovilizado { color: #fff; background: var(--azul); }
.clase--consumible { color: var(--c-ventas); background: color-mix(in srgb, var(--c-ventas) 14%, transparent); }
.clase--no { color: var(--c-peligro); background: var(--c-peligro-fondo); }
.cg-detalle { grid-area: detalle; font-size: .875rem; color: var(--tinta-2); line-height: 1.45; }
.cg-amortiza { grid-area: amortiza; display: flex; align-items: flex-end; gap: 4px; height: 30px; justify-self: end; }
.cg-amortiza span { width: 10px; height: var(--h); border-radius: 3px 3px 0 0; background: var(--azul); opacity: .85; }
.cg-amortiza span:nth-child(2) { opacity: .65; } .cg-amortiza span:nth-child(3) { opacity: .48; } .cg-amortiza span:nth-child(4) { opacity: .32; }

/* ---------- Facturación: lo que se hace con una factura ---------- */
.funciones { list-style: none; margin: 0; padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border-radius: 22px; background: linear-gradient(145deg, var(--azul-suave) 0%, var(--azul-suave-2) 100%); }
.funciones li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--tarjeta); box-shadow: var(--sombra); }
.funciones li > .ti { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; color: var(--naranja); background: var(--naranja-suave); }
.funciones span { font-size: .9375rem; color: var(--gris); line-height: 1.45; }
.funciones b { display: block; color: var(--tinta); font-weight: 750; font-size: 1rem; margin-bottom: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .js .funciones li { opacity: 0; translate: 0 8px; transition: opacity .4s var(--ease), translate .4s var(--ease); }
  .js .funciones.visto li { opacity: 1; translate: 0 0; }
  .js .funciones.visto li:nth-child(2n) { transition-delay: .08s; }
}
.funciones .funcion-vf { grid-column: 1 / -1; align-items: center; color: #fff; background: linear-gradient(135deg, #1b3b66 0%, #153156 100%); box-shadow: 0 12px 26px -14px rgb(21 49 86 / .55); }
.funciones .funcion-vf > .ti { color: #fff; background: rgb(255 255 255 / .16); }
.funciones .funcion-vf span { color: rgb(255 255 255 / .86); }
.funciones .funcion-vf b { color: #fff; }
@media (max-width: 34rem) { .funciones { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Multiempresa: balance de ejemplo que cambia al elegir empresa ---------- */
.grupo { display: grid; gap: 14px; padding: 20px; }
.grupo-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grupo-filtro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: var(--fondo-2); }
.grupo-filtro button { border: 0; background: none; font: 650 .8125rem/1.2 var(--font); padding: 8px 12px; border-radius: 7px; color: var(--gris); cursor: pointer; transition: background-color .15s, color .15s; }
.grupo-filtro button:hover { color: var(--tinta); }
.grupo-filtro .activo { background: var(--tarjeta); color: var(--naranja-texto); box-shadow: 0 1px 3px rgb(22 34 58 / .14); }
.grupo-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grupo-cifras div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-s); background: var(--fondo-2); }
.grupo-cifras span { font-size: .75rem; color: var(--gris); font-weight: 600; }
.grupo-cifras b { font-size: clamp(.95rem, 1.5vw, 1.2rem); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.c-resultado { color: var(--azul-texto); }
.grupo-barras { display: flex; gap: 10px; height: 120px; }
.gb-mes { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; }
.gb-mes .ap-par { height: 100%; border-bottom: 1px solid var(--raya); }
.gb-mes .ap-par span { transition: height .5s var(--ease); }
.gb-mes small { text-align: center; font-size: .6875rem; color: var(--gris); font-weight: 600; }
.grupo-lista { display: grid; }
.empresa { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 8px; margin: 0 -8px; border: 0; border-top: 1px solid var(--raya); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 0; transition: opacity .25s, background-color .15s; }
.empresa:hover { background: var(--fondo-2); }
.empresa.elegida { background: var(--naranja-suave); border-radius: 10px; border-top-color: transparent; }
.empresa.apagada { opacity: .45; }
.avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1rem; }
.av-azul { background: var(--azul); } .av-naranja { background: var(--naranja); } .av-turquesa { background: var(--c-ventas); }
.em-datos b { display: block; font-size: .9375rem; line-height: 1.25; }
.em-datos small { color: var(--gris); font-size: .8125rem; }
.em-cifra { font-weight: 800; white-space: nowrap; color: var(--c-ventas); }
@media (max-width: 30rem) { .grupo-cifras { grid-template-columns: minmax(0, 1fr); } .grupo-cifras div { grid-template-columns: 1fr auto; align-items: baseline; } }

/* ---------- Impuestos ---------- */
.plazo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; border-left: 4px solid var(--c-hacienda); }
.plazo-fecha { width: 58px; text-align: center; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--raya); }
.plazo-fecha small { display: block; background: var(--naranja); color: #fff; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; padding: 3px 0; }
.plazo-fecha b { display: block; font-size: 1.5rem; font-weight: 800; padding: 4px 0 6px; }
.plazo-texto b { display: block; }
.plazo-texto span { font-size: .875rem; color: var(--gris); }
.modelos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.modelo { background: var(--tarjeta); border-radius: var(--r-s); padding: 14px 14px 12px; display: grid; gap: 2px; box-shadow: 0 0 0 1px var(--raya); }
.modelo b { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; color: var(--azul-texto); line-height: 1.1; }
.modelo span { font-size: .875rem; font-weight: 650; }
.modelo small { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--gris); }
.modelo--listo { box-shadow: 0 0 0 2px var(--c-hecho); }
.modelo--listo small { color: var(--c-hecho); font-weight: 700; }
@media (max-width: 30rem) { .modelos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plazo { grid-template-columns: auto minmax(0, 1fr); } .plazo .btn-falso { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Asistente ---------- */
.chat { padding: 0; overflow: hidden; display: grid; }
.chat-cab { padding: 16px 20px; border-bottom: 1px solid var(--raya); }
.chat-cuerpo { display: grid; gap: 12px; padding: 20px; background: var(--fondo-2); }
.burbuja { padding: 11px 15px; border-radius: 16px; font-size: .9375rem; line-height: 1.45; max-width: 88%; }
.burbuja--tu { justify-self: end; background: var(--azul); color: #fff; border-bottom-right-radius: 5px; }
.burbuja--tu .ti { margin-right: 6px; opacity: .85; }
.burbuja--ia { justify-self: start; background: var(--tarjeta); border-bottom-left-radius: 5px; box-shadow: 0 0 0 1px var(--raya); display: grid; gap: 10px; }
.burbuja--ia .ficha { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--raya); font-size: .875rem; }
.chat-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; color: var(--gris); font-size: .9375rem; }
.chat-barra .ti { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; color: var(--naranja); box-shadow: inset 0 0 0 1px var(--raya-2); }

/* ---------- Nuestro objetivo ---------- */
.objetivo { overflow: hidden; color: #fff; background: linear-gradient(150deg, var(--azul) 0%, var(--azul-hondo) 70%, var(--azul-noche) 100%); }
:root[data-theme="dark"] .objetivo { background: linear-gradient(150deg, #1f416d 0%, #172f52 70%, #111f38 100%); }
.objetivo .trazo { left: -8vw; right: auto; top: auto; bottom: -16%; transform: scaleX(-1); }
.objetivo-rejilla { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.objetivo-rejilla > div { display: grid; gap: 18px; }
.objetivo .lead-s { color: rgb(255 255 255 / .86); }
.mejoras { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mejoras li { position: relative; padding: 14px 18px 14px 44px; border-radius: 12px; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.mejoras li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--naranja-vivo); box-shadow: 0 0 0 4px rgb(242 147 34 / .25); }
.mejoras span { color: rgb(255 255 255 / .85); }
.mejoras b { color: #fff; }
@media (max-width: 62rem) { .objetivo-rejilla { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Precio ---------- */
.precio-caja { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--tarjeta); border-radius: 24px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--sombra), 0 0 0 1px var(--raya); }
.precio-izq { display: grid; gap: 12px; }
.precio { display: flex; align-items: baseline; gap: 10px; }
.precio b { font-size: clamp(4rem, 8vw, 6.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: .9; color: var(--azul-texto); }
.precio span { font-size: 1.375rem; font-weight: 600; color: var(--gris); }
.precio-nota { color: var(--gris); max-width: 32ch; }
.incluye { list-style: none; margin: 0; padding: 0; }
.incluye li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--raya); color: var(--tinta-2); }
.incluye li:first-child { border-top: 1px solid var(--raya); }
.incluye .ti { color: var(--c-hecho); font-size: 18px; transform: translateY(2px); flex-shrink: 0; }
.tarjeta-prueba { padding: 28px 24px; border-radius: 18px; color: #fff; background: linear-gradient(150deg, var(--azul) 0%, var(--azul-hondo) 100%); display: grid; gap: 12px; }
.tarjeta-prueba h3 { font-size: 1.5rem; font-weight: 800; }
.tarjeta-prueba p { color: rgb(255 255 255 / .85); font-size: .9375rem; }
.tarjeta-prueba .btn { width: 100%; margin-top: 6px; }
@media (max-width: 66rem) { .precio-caja { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tarjeta-prueba { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .precio-caja { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Preguntas ---------- */
.preguntas { padding-top: 0; }
.preguntas .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); }
.preguntas .container > div { display: grid; gap: 14px; align-content: start; position: sticky; top: 100px; align-self: start; }
.preguntas dl { margin: 0; }
.preguntas dl div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--raya); }
.preguntas dl div:last-child { border-bottom: 1px solid var(--raya); }
.preguntas dt { font-weight: 750; font-size: 1.0625rem; }
.preguntas dd { margin: 0; color: var(--gris); }
@media (max-width: 62rem) { .preguntas .container { grid-template-columns: minmax(0, 1fr); } .preguntas .container > div { position: static; } .preguntas dl div { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--raya); background: var(--tarjeta); padding-block: clamp(56px, 7vw, 88px) 32px; }
.pie-mastil { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.pie-logo { height: clamp(40px, 5vw, 56px); width: auto; display: block; }
.pie-lema { color: var(--gris); max-width: 36ch; margin-top: 14px; }
.pie-titular { color: var(--gris); font-size: .8125rem; line-height: 1.6; margin-top: 10px; }
.pie-titular a { color: var(--azul-texto); }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--raya); font-size: .875rem; color: var(--gris); }
.pie-enlaces button { background: none; border: 0; padding: 0; font: inherit; color: var(--azul-texto); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.pie-enlaces button:hover { text-decoration-color: currentColor; }
.pie-enlaces .copy { margin-left: auto; }
.pie-enlaces .copy a { color: inherit; text-decoration: none; }

/* ---------- Animación de entrada de las ilustraciones (una vez) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .visual .em-barras span { transform: scaleX(0); transition: transform .8s var(--ease) .2s; }
  .js .visual.visto .em-barras span { transform: scaleX(1); }
  .js .modelo { opacity: 0; translate: 0 8px; transition: opacity .4s var(--ease), translate .4s var(--ease); transition-delay: calc(var(--i) * 50ms); }
  .js .visual.visto .modelo { opacity: 1; translate: 0 0; }
  .js .burbuja { opacity: 0; translate: 0 8px; transition: opacity .45s var(--ease), translate .45s var(--ease); transition-delay: calc(var(--i) * 350ms); }
  .js .visual.visto .burbuja { opacity: 1; translate: 0 0; }
  .js .mejoras li { opacity: 0; translate: -8px 0; transition: opacity .5s var(--ease), translate .5s var(--ease); }
  .js .mejoras.visto li { opacity: 1; translate: 0 0; }
  .js .mejoras.visto li:nth-child(2) { transition-delay: .08s; } .js .mejoras.visto li:nth-child(3) { transition-delay: .16s; } .js .mejoras.visto li:nth-child(4) { transition-delay: .24s; } .js .mejoras.visto li:nth-child(5) { transition-delay: .32s; }
  .js .cl-gastos li { opacity: 0; translate: 0 8px; transition: opacity .5s var(--ease), translate .5s var(--ease); transition-delay: calc(var(--i) * 180ms + .2s); }
  .js .clasifica.visto .cl-gastos li { opacity: 1; translate: 0 0; }
}

/* ---------- Modales (NOVO-DESIGN: título en mayúsculas con icono naranja, pie volver/acción) ---------- */
dialog.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; background: var(--tarjeta); color: var(--tinta); box-shadow: 0 24px 60px -12px rgb(8 20 45 / .45), 0 0 0 1px var(--raya); overflow: auto; }
dialog.modal--ancho { width: min(820px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgb(16 30 56 / .55); backdrop-filter: blur(2px); }
@media (prefers-reduced-motion: no-preference) {
  dialog.modal[open] { animation: entrar .4s var(--ease); }
  @keyframes entrar { from { opacity: 0; transform: translateY(8px); } }
}
.modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; }
.modal-titulo { font: 700 17px/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; margin: 0; display: flex; gap: 8px; align-items: center; }
.modal-titulo .ti { color: var(--naranja); font-size: 20px; }
.modal-cerrar { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--raya-2); background: var(--fondo-2); color: var(--gris); cursor: pointer; flex-shrink: 0; }
.modal-cerrar:hover { color: var(--tinta); }
.modal-cerrar .ti { font-size: 20px; }
.modal-cuerpo { padding: 8px 24px 24px; }
.modal-pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--raya); background: var(--fondo-2); }
.modal-legal { line-height: 1.6; font-size: .9375rem; color: var(--tinta-2); }
.modal-legal h1, .modal-legal h2, .modal-legal h3, .modal-legal h4 { font-size: 1.0625rem; letter-spacing: -0.01em; margin: 24px 0 8px; max-width: none; }
.modal-legal p, .modal-legal ul { margin: 0 0 12px; }
.modal-legal a { color: var(--azul-texto); }

.surco { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--fondo-2); box-shadow: inset 0 0 0 1px var(--raya); }
.surco input { position: absolute; opacity: 0; pointer-events: none; }
.surco label { min-height: 42px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 9px; font-size: .9375rem; font-weight: 650; color: var(--gris); cursor: pointer; }
.surco label:hover { color: var(--tinta); }
.surco input:checked + label { background: var(--tarjeta); color: var(--naranja-texto); box-shadow: 0 1px 4px rgb(22 34 58 / .15); }
.surco input:focus-visible + label { outline: 2px solid var(--foco); outline-offset: 2px; }
.acceso .surco { display: flex; margin-bottom: 22px; }
.acceso .surco label { flex: 1; justify-content: center; }
.panel { display: none; }
.panel.activo { display: grid; gap: 18px; }
.campo-f { display: grid; gap: 6px; }
.campo-f label { font-size: .875rem; font-weight: 650; color: var(--tinta-2); }
.campo-f input { min-height: 44px; padding: 0 12px; border-radius: var(--r-xs); border: 1px solid var(--raya-2); background: var(--tarjeta); color: var(--tinta); font: 500 1rem var(--font); width: 100%; }
:root[data-theme="dark"] .campo-f input { background: var(--fondo-2); }
.campo-f input:focus-visible { outline: 2px solid var(--azul); outline-offset: -1px; border-color: transparent; }
.fila-f { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 30rem) { .fila-f { grid-template-columns: minmax(0, 1fr); } }
.casilla { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--tinta-2); }
.casilla input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--azul); flex-shrink: 0; }
.casilla button { background: none; border: 0; padding: 0; font: inherit; font-weight: 650; color: var(--azul-texto); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.panel-otros { font-size: .875rem; color: var(--gris); }
.aviso-texto { font-size: 1rem; line-height: 1.55; }

/* App de Neocont (vista web dentro de la app): solo el acceso */
.es-app .solo-web { display: none !important; }

/* Portada centrada: el texto arriba y la ilustración debajo */
.hero .container { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: clamp(40px, 5vw, 64px); }
.hero-texto { justify-items: center; max-width: 820px; }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 52ch; }
.hero-acciones { justify-content: center; }
.hero .motor { justify-self: center; max-width: 760px; text-align: left; }
.hero .antetitulo, .hero .hero-condiciones { display: block; }
.hero .antetitulo .ti, .hero .hero-condiciones .ti { display: inline-block; vertical-align: -3px; margin-right: 6px; }
@media (max-width: 30rem) { .hero-acciones { width: 100%; flex-direction: column; } .hero-acciones .btn { width: 100%; } }

/* Una sola columna (hasta 992 px): el texto de cada sección alterna izquierda y derecha, con su ilustración debajo.
   Facturación a la izquierda, Gastos a la derecha, Impuestos a la izquierda… y Nuestro objetivo a la derecha. */
@media (max-width: 62rem) {
  .bloque:not(.bloque--invertido) .bloque-texto, .objetivo-rejilla > div { justify-items: end; text-align: right; }
  .bloque:not(.bloque--invertido) .ventajas li { flex-direction: row-reverse; }
  .objetivo .trazo { left: auto; right: -6vw; transform: none; }
}

/* ---------- Menú principal en el móvil: panel lateral por encima de la página (sources/web_cabecera.php) ---------- */
dialog.menu-movil { margin: 0 0 0 auto; width: min(320px, 86vw); height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: var(--tarjeta); color: var(--tinta); box-shadow: var(--sombra-alta); display: none; flex-direction: column; }
dialog.menu-movil[open] { display: flex; }
dialog.menu-movil::backdrop { background: rgb(16 30 56 / .55); backdrop-filter: blur(2px); }
@media (prefers-reduced-motion: no-preference) {
  dialog.menu-movil[open] { animation: menu-entra .3s var(--ease); }
  @keyframes menu-entra { from { translate: 100% 0; } }
}
.mm-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--raya); }
.mm-cab .marca img { height: 26px; }
.mm-enlaces { display: grid; padding: 10px 10px; }
.mm-enlaces a { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: var(--r-s); text-decoration: none; font-weight: 650; color: var(--tinta-2); }
.mm-enlaces a .ti { font-size: 21px; color: var(--naranja); }
.mm-acceso { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--raya); }
.mm-raya { margin: 6px 12px; border: 0; border-top: 1px solid var(--raya); }
.mm-enlaces a:hover { background: var(--fondo-2); color: var(--tinta); }
.mm-enlaces a[aria-current] { background: var(--naranja-suave); color: var(--naranja-texto); }
.mm-botones { display: grid; gap: 10px; margin-top: auto; padding: 18px 20px 24px; border-top: 1px solid var(--raya); }

/* ---------- Antetítulo que lleva a su página y «Todo sobre…» al final de cada sección de la portada ---------- */
a.antetitulo--enlace { text-decoration: none; }
a.antetitulo--enlace:hover { text-decoration: underline; text-underline-offset: 4px; }
.ver-mas { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 4px; font-weight: 750; color: var(--azul-texto); text-decoration: none; }
.ver-mas .ti { font-size: 18px; color: var(--naranja); transition: translate .2s var(--ease); }
.ver-mas:hover { text-decoration: underline; text-underline-offset: 4px; }
.ver-mas:hover .ti { translate: 3px 0; }
.ver-mas + .ver-mas { margin-top: -8px; }
@media (max-width: 62rem) { .bloque:not(.bloque--invertido) .ver-mas { justify-self: end; } }

/* ---------- Pie: las secciones ---------- */
.pie-secciones { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; }
.pie-secciones a { color: var(--tinta-2); font-weight: 650; text-decoration: none; }
.pie-secciones a:hover { color: var(--azul-texto); text-decoration: underline; text-underline-offset: 3px; }
.pie-secciones + .pie-enlaces { margin-top: 24px; }
