/* ==========================================================================
   Suma Canales de Venta — Sistema de diseño corporativo (SUMA+)
   Web estática · SEO y rendimiento · Identidad: azul corporativo + grafito
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Tokens / Variables
   ------------------------------------------------------------------------- */
:root {
  /* Azul corporativo (del logo SUMA+) */
  --brand:        #2B57C4;   /* Azul principal */
  --brand-600:    #2B57C4;
  --brand-700:    #234AA8;
  --brand-800:    #1B3C8C;
  --brand-900:    #15306B;   /* Azul profundo — secciones oscuras */
  --brand-50:     #EDF2FC;
  --brand-100:    #DCE6FA;

  /* Grafito (del logo SUMA+) */
  --ink:          #23272F;   /* Titulares / texto fuerte */
  --ink-2:        #495260;   /* Texto secundario */
  --muted:        #717A88;
  --graphite:     #2A2E35;

  /* Acento de apoyo (éxito / dato positivo, uso muy puntual) */
  --ok:           #15976A;
  --ok-50:        #E6F4EE;

  /* Energía (uso mínimo) */
  --energy:       #E8A317;

  --line:         #E5E8EE;
  --line-2:       #EEF1F5;
  --bg:           #FFFFFF;
  --bg-soft:      #F5F7FB;
  --bg-deep:      #0F1B33;    /* Navy corporativo profundo */

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Medidas — radios más sobrios (corporativo) */
  --container: 1180px;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --btn-radius: 9px;

  /* Sombras sutiles */
  --shadow-sm: 0 1px 2px rgba(16,27,51,.05), 0 1px 3px rgba(16,27,51,.08);
  --shadow:    0 6px 20px rgba(16,27,51,.08);
  --shadow-lg: 0 20px 50px rgba(16,27,51,.14);

  /* Gradientes sobrios */
  --grad-brand: linear-gradient(160deg, #15306B 0%, #234AA8 100%);
  --grad-deep:  linear-gradient(160deg, #0F1B33 0%, #1B3C8C 100%);

  --header-h: 76px;
}

/* -------------------------------------------------------------------------
   2. Reset / Base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.05rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }

p { margin: 0 0 1rem; }

a { color: var(--brand-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

strong { color: var(--ink); font-weight: 700; }

/* Negritas legibles sobre fondos oscuros */
.hero strong,
.section--deep strong,
.cta-band strong,
.hero-card strong,
.media-card strong { color: #fff; }
/* …salvo en tarjetas claras, donde el texto va oscuro */
.media-card.light strong { color: var(--ink); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-900); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.section { padding: clamp(3.5rem, 7vw, 5.8rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #C2CEE2; }
.section--deep h2, .section--deep h3 { color: #fff; }

.section-head { max-width: 770px; margin: 0 auto clamp(2rem,4vw,3rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50);
  padding: .35rem .8rem; border-radius: 6px; margin-bottom: 1rem;
}
.section--deep .eyebrow { color: #9FBCF5; background: rgba(43,87,196,.20); }

.lead { font-size: 1.16rem; color: var(--ink-2); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------------------------------
   4. Botones (corporativos, esquinas sobrias)
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .9rem 1.5rem; border-radius: var(--btn-radius); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(43,87,196,.26); }
.btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: 0 10px 22px rgba(43,87,196,.34); }

.btn--brand { background: var(--brand-900); color: #fff; }
.btn--brand:hover { background: var(--brand-800); color: #fff; }

.btn--ghost { background: transparent; color: var(--brand-700); border-color: var(--brand-100); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }

.btn--white { background: #fff; color: var(--brand-900); }
.btn--white:hover { color: var(--brand-900); box-shadow: var(--shadow); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------------------
   5. Header / Navegación
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand .brand-logo { height: 38px; width: auto; display: block; }

/* Wordmark SUMA+ */
.brand .brandtext {
  display: inline-flex; flex-wrap: wrap; align-items: baseline;
  line-height: 1; font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em;
}
.brand .bt-1 { color: var(--graphite); }
.brand .bt-2 { color: var(--brand-600); }
.brand .bt-plus { color: var(--brand-600); font-weight: 800; margin-left: 1px; }
.brand small {
  flex-basis: 100%; font-size: .6rem; font-weight: 600; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase; margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .85rem; border-radius: 8px; font-weight: 600; font-size: .97rem; color: var(--ink-2);
}
.nav-links a.nav-link:hover, .nav-links a.nav-link[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }

/* Dropdown */
.has-menu > button.nav-link {
  background: none; border: none; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .85rem; border-radius: 8px; font-weight: 600; color: var(--ink-2);
}
.has-menu > button.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.caret { width: 14px; height: 14px; transition: transform .2s ease; }
.has-menu[aria-expanded="true"] .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-menu[aria-expanded="true"] .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .7rem; border-radius: 8px; color: var(--ink);
}
.submenu a:hover { background: var(--bg-soft); }
.submenu a .ic { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; background: var(--brand-50); display: grid; place-items: center; }
.submenu a .ic svg { width: 18px; height: 18px; color: var(--brand-600); }
.submenu a span strong { display: block; font-size: .95rem; }
.submenu a span small { color: var(--muted); font-size: .82rem; }

.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--brand-900); }

/* -------------------------------------------------------------------------
   6. Hero (corporativo, degradado sobrio)
   ------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--grad-deep); color: #C8D5EA; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 55% at 88% 8%, rgba(43,87,196,.40), transparent 62%),
    radial-gradient(40% 45% at 5% 95%, rgba(43,87,196,.18), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding: clamp(3rem,6vw,5.5rem) 0; }
.hero h1 { color: #fff; }
.hero .lead { color: #BCCBE4; font-size: 1.2rem; max-width: 38ch; }
.hero .pill {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 600;
  color: #BCD0F7; background: rgba(43,87,196,.22); border: 1px solid rgba(122,160,238,.35);
  padding: .4rem .9rem; border-radius: 6px; margin-bottom: 1.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 2.2rem; color: #91A4C2; font-size: .9rem; }
.hero-trust b { color: #fff; }

/* Tarjeta visual del hero */
.hero-card {
  background: #122C54; border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.hero-card .row:last-child { border-bottom: none; }
.hero-card .row span { color: #A9BAD6; font-size: .94rem; }
.hero-card .row b { color: #fff; font-size: 1.05rem; }
.hero-card .tag-up { color: #5FD0A0; font-weight: 700; font-size: .9rem; }
.hero-card .barwrap { margin-top: 1.2rem; }
.hero-card .bar { height: 9px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.hero-card .bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg,#2B57C4,#5B8DEF); }

/* -------------------------------------------------------------------------
   7. Tarjetas / Cards
   ------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card .ic {
  width: 50px; height: 50px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--brand-50); color: var(--brand-600);
}
.card .ic svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.card p { margin: 0; font-size: .97rem; }
.card--green .ic { background: var(--ok-50); color: var(--ok); }
.card--amber .ic { background: #FBEFD6; color: #B57C0C; }

.card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 700; }
.card-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* Tarjeta de sector con CTA */
.sector-card { display: flex; flex-direction: column; }
.sector-card ul { margin: 1rem 0 1.4rem; display: grid; gap: .5rem; }
.sector-card ul li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.sector-card ul li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; background: var(--brand-50); border-radius: 50%; }
.sector-card ul li::after { content: ""; position: absolute; left: 5px; top: .58em; width: 6px; height: 3px; border-left: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600); transform: rotate(-45deg); }
.sector-card .card-link { margin-top: auto; }

/* -------------------------------------------------------------------------
   8. Stats
   ------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat .num { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: var(--brand-700); letter-spacing: -.03em; line-height: 1; }
.section--deep .stat .num { color: #fff; }
.stat .num em { font-style: normal; color: var(--ok); }
.stat .lbl { margin-top: .5rem; font-size: .94rem; color: var(--muted); }
.section--deep .stat .lbl { color: #91A4C2; }

/* -------------------------------------------------------------------------
   9. Lista de ventajas (check)
   ------------------------------------------------------------------------- */
.checklist { display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2.2rem; }
.checklist li strong { display: block; }
.checklist li .ck {
  position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 7px;
  background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center;
}
.checklist li .ck svg { width: 16px; height: 16px; }

/* Split (texto + visual) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split--media-first .media { order: -1; }

.media-card {
  background: var(--grad-brand); border-radius: var(--radius-lg); padding: 2rem; color: #fff; box-shadow: var(--shadow-lg);
}
.media-card.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* Imágenes reales */
.media-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--bg-soft); }
.media-figure img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.media-shot { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.media-video { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #0B1B2B; aspect-ratio: 16 / 9; }
.media-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* App (novedad) */
.app-showcase { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.app-icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: var(--shadow-lg); display: block; }
.app-badges { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.store-badge { display: inline-flex; align-items: center; gap: .6rem; background: #0B1B2B; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: .55rem 1rem; cursor: default; }
.store-badge svg { width: 24px; height: 24px; flex: 0 0 auto; }
.store-badge small { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.store-badge b { display: block; font-size: .98rem; line-height: 1.1; }
.badge-soon { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); background: var(--ok-50); padding: .25rem .6rem; border-radius: 999px; }

/* Rejilla de comercializadoras (chips, listas para logo) */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.logo-chip { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 66px; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: .98rem; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease; }
.logo-chip:hover { transform: translateY(-2px); border-color: var(--brand-100); color: var(--brand-700); box-shadow: var(--shadow); }
.logo-chip img { max-height: 48px; max-width: 120px; width: auto; height: auto; object-fit: contain; display: block; }

/* Carrusel de logos (marquee) */
.logo-carousel { position: relative; overflow: hidden; padding: .5rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; align-items: center; gap: clamp(2rem, 5vw, 4rem); width: max-content; animation: logoscroll 55s linear infinite; }
.logo-carousel:hover .logo-track { animation-play-state: paused; }
.logo-track img { height: 44px; width: auto; max-width: 150px; object-fit: contain; opacity: .9; flex: 0 0 auto; transition: opacity .15s ease, transform .15s ease; }
.logo-track a:hover img { opacity: 1; transform: scale(1.06); }
@keyframes logoscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* -------------------------------------------------------------------------
   10. Pasos / Proceso
   ------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.steps.cols { grid-template-columns: repeat(4,1fr); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--grad-brand); color: #fff; font-weight: 800; margin-bottom: 1rem;
}
.step h3 { font-size: 1.08rem; }
.step p { margin: 0; font-size: .95rem; }

/* -------------------------------------------------------------------------
   11. CTA band
   ------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad-brand); border-radius: var(--radius-lg); padding: clamp(2.5rem,5vw,3.6rem); color: #fff; text-align: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 82% 0%, rgba(91,141,239,.35), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C6D4EC; max-width: 62ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* -------------------------------------------------------------------------
   12. FAQ accordion
   ------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink); font-size: 1.04rem;
  padding: 1.15rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .pm { flex: 0 0 auto; width: 24px; height: 24px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--brand-600); border-radius: 2px; transition: transform .2s ease; }
.faq-q .pm::before { left: 4px; right: 4px; top: 11px; height: 2px; }
.faq-q .pm::after { top: 4px; bottom: 4px; left: 11px; width: 2px; }
.faq-item[open] .faq-q .pm::after { transform: scaleY(0); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-2); }
.faq-a p { margin: 0; }

/* -------------------------------------------------------------------------
   13. Testimonios
   ------------------------------------------------------------------------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.quote p { font-size: 1.04rem; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-weight: 800; }
.quote .who b { display: block; color: var(--ink); }
.quote .who span { font-size: .9rem; color: var(--muted); }
.stars { color: var(--energy); letter-spacing: 2px; margin-bottom: .6rem; }

/* -------------------------------------------------------------------------
   14. Breadcrumb
   ------------------------------------------------------------------------- */
.breadcrumb { padding: 1.1rem 0 0; font-size: .88rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb li::after { content: "›"; margin-left: .4rem; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb [aria-current] { color: var(--ink-2); }

/* Page hero (interiores) */
.page-hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero .inner { max-width: 820px; padding: 1rem 0 clamp(2.4rem,5vw,3.4rem); }
.page-hero h1 { margin-bottom: .6rem; }

/* -------------------------------------------------------------------------
   15. Formulario
   ------------------------------------------------------------------------- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .94rem; }
.field .req { color: var(--brand-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .87rem; color: var(--muted); }
.consent input { width: auto; margin-top: .25rem; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 1rem; text-align: center; }

/* -------------------------------------------------------------------------
   16. WhatsApp flotante
   ------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25D366; color: #fff; font-weight: 700;
  padding: .85rem 1.2rem; border-radius: 999px; box-shadow: 0 10px 28px rgba(37,211,102,.40);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 34px rgba(37,211,102,.5); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float .lbl { display: inline; }

/* -------------------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--bg-deep); color: #8DA0BE; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .brand-logo { height: 30px; background: #fff; padding: 8px 12px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.site-footer .brand .bt-1 { color: #fff; }
.site-footer .brand .bt-2, .site-footer .brand .bt-plus { color: #7AA0EE; }
.site-footer .brand small { color: #6B7E9C; }
.footer-about { max-width: 36ch; margin: 1rem 0 1.3rem; font-size: .94rem; }
.footer-col h4 { color: #fff; font-size: .92rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; color: #8DA0BE; padding: .3rem 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact a { color: #9FBCF5; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.10); font-size: .87rem; }
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom a { color: #8DA0BE; }
.footer-bottom a:hover { color: #fff; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 9px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #C2CEE2; }
.social a:hover { background: var(--brand); color: #fff; }
.social svg { width: 20px; height: 20px; }

.disclaimer { font-size: .8rem; color: #6B7E9C; margin-top: 1rem; max-width: 70ch; }

/* -------------------------------------------------------------------------
   18. Utilidades
   ------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.tag {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 6px; background: var(--brand-50); color: var(--brand-700);
}
.tag--green { background: var(--ok-50); color: var(--ok); }
.tag--amber { background: #FBEFD6; color: #B57C0C; }

/* Artículo / Noticias */
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-thumb { aspect-ratio: 16/9; background: var(--grad-brand); position: relative; display: grid; place-items: center; }
.article-thumb svg { width: 60px; height: 60px; color: rgba(255,255,255,.55); }
.article-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.article-body .meta { font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.article-body h3 { font-size: 1.12rem; }
.article-body .card-link { margin-top: auto; }

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul:not(.checklist) { margin: 0 0 1.2rem; padding-left: 1.2rem; list-style: disc; }
.prose ul:not(.checklist) li { margin-bottom: .4rem; }

/* -------------------------------------------------------------------------
   19. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .split--media-first .media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .steps.cols { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 1rem; gap: .2rem; margin: 0;
    transform: translateY(-130%); transition: transform .25s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.nav-link, .has-menu > button.nav-link { width: 100%; padding: .85rem 1rem; font-size: 1.05rem; }
  .has-menu > button.nav-link { justify-content: space-between; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
    min-width: 0; padding: .2rem .2rem .6rem 1rem; display: none;
  }
  .has-menu[aria-expanded="true"] .submenu { display: block; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-4, .grid-3, .grid-2, .stats, .steps.cols, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-about { grid-column: 1 / -1; }
  .wa-float .lbl { display: none; }
  .wa-float { padding: .9rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
