/* =========================================================================
   Escucha y Opina — Sistema de diseño
   -------------------------------------------------------------------------
   1. Fuentes            6. Encabezado y navegación   11. Formulario
   2. Tokens             7. Botones                   12. FAQ
   3. Base               8. Hero                      13. CTA final y pie
   4. Tipografía         9. Artículo editorial        14. Páginas internas
   5. Layout            10. Tarjetas y pasos          15. Utilidades, movimiento
   ========================================================================= */

/* 1. FUENTES — archivos WOFF2 locales (SIL Open Font License) ------------ */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-wght-normal.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";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/source-sans-3-latin-wght-normal.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: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. TOKENS ---------------------------------------------------------------
   Contraste verificado (WCAG 2.2):
   text #202635 / bg #FFF9F0 ........ 14.4:1
   muted #4A5163 / bg #FFF9F0 ....... 7.6:1
   primary #2448D8 / white .......... 7.0:1  (texto y botones)
   #1B36A8 / primary-50 #EDF1FE .... 8.7:1
   coral-ink #B23A22 / white ........ 6.0:1  (solo si hay texto coral)
   El coral #EF6248 y el amarillo #FFD66B se usan como superficies o
   acentos gráficos, nunca como color de texto pequeño sobre blanco.
   ------------------------------------------------------------------------ */
:root {
  /* Color — marca */
  --c-bg: #FFF9F0;
  --c-bg-deep: #FBEFDD;
  --c-surface: #FFFFFF;
  --c-primary: #2448D8;
  --c-primary-700: #1B36A8;
  --c-primary-900: #14286F;
  --c-primary-50: #EDF1FE;
  --c-primary-100: #DCE3FC;
  --c-accent: #EF6248;
  --c-accent-50: #FDECE8;
  --c-accent-ink: #B23A22;
  --c-highlight: #FFD66B;
  --c-highlight-50: #FFF3D1;
  --c-text: #202635;
  --c-muted: #4A5163;
  --c-border: #E6DCCB;
  --c-border-strong: #8A8F9C;

  /* Color — semántico */
  --c-error: #B42318;
  --c-error-50: #FEF0EE;
  --c-success: #1D6B45;
  --c-success-50: #E9F6EF;
  --c-info: var(--c-primary);
  --c-info-50: var(--c-primary-50);
  --c-warning-50: var(--c-highlight-50);

  /* Tipografía */
  --f-display: "Manrope", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Escala tipográfica fluida (360 → 1440 px) */
  --t-xs: 1rem;                                        /* 16  — mínimo absoluto */
  --t-sm: 1.0625rem;                                   /* 17  */
  --t-base: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem); /* 18 → 20 */
  --t-lead: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);  /* 20 → 24 */
  --t-h4: 1.25rem;                                     /* 20  */
  --t-h3: clamp(1.375rem, 1.3rem + 0.35vw, 1.625rem);  /* 22 → 26 */
  --t-h2: clamp(1.875rem, 1.55rem + 1.45vw, 2.75rem);  /* 30 → 44 */
  --t-h1: clamp(2.25rem, 1.7rem + 2.5vw, 4rem);        /* 36 → 64 */
  --t-h1-inner: clamp(2rem, 1.6rem + 1.8vw, 3.25rem);  /* 32 → 52 */

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Espaciado — base 8 px */
  --s-0: 4px;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;
  --section-y: clamp(64px, 5vw + 40px, 128px);

  /* Layout */
  --container: 1200px;
  --measure: 70ch;          /* ≈ 65–75 caracteres por línea */
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  /* Radios */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-1: 0 1px 2px rgba(32, 38, 53, .06), 0 2px 8px rgba(32, 38, 53, .05);
  --shadow-2: 0 2px 4px rgba(32, 38, 53, .05), 0 12px 32px rgba(32, 38, 53, .09);
  --shadow-3: 0 24px 64px rgba(20, 40, 111, .16);

  /* Foco */
  --focus-ring: 0 0 0 3px var(--c-bg), 0 0 0 6px var(--c-text);

  /* Movimiento */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;
}

/* 3. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: var(--c-primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary-700); text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
::selection { background: var(--c-highlight); color: var(--c-text); }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-6) 0; }

.skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: 100;
  background: var(--c-text); color: #fff; padding: 12px 20px; border-radius: var(--r-sm);
  font-family: var(--f-display); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--s-2); color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 4. TIPOGRAFÍA ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-text);
  margin: 0 0 var(--s-2);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--t-h2); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: var(--t-h3); line-height: var(--lh-snug); font-weight: 700; }
h4 { font-size: var(--t-h4); line-height: var(--lh-snug); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s-3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.25em; }
li + li { margin-top: var(--s-1); }

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--c-text); }
.muted { color: var(--c-muted); }
.small { font-size: var(--t-xs); line-height: 1.55; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700;
  font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-primary-700);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--c-accent);
}

mark, .mark {
  background: linear-gradient(transparent 58%, var(--c-highlight) 58%, var(--c-highlight) 92%, transparent 92%);
  color: inherit; padding: 0 .08em;
}

/* 5. LAYOUT -------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }
.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * .6) 0; }
.section--surface { background: var(--c-surface); }
.section--deep { background: var(--c-bg-deep); }
.section__head { max-width: 760px; margin-bottom: var(--s-6); }
.section__head .lead { margin-top: var(--s-2); color: var(--c-muted); }

.grid-2 { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-10); }
  .grid-2--wide-text { grid-template-columns: 1.1fr .9fr; }
  .grid-2--reverse > :first-child { order: 2; }
}

/* 6. ENCABEZADO Y NAVEGACIÓN -------------------------------------------- */
.ad-bar {
  background: var(--c-text); color: #fff;
  font-size: var(--t-xs); line-height: 1.4;
}
.ad-bar .container { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.ad-bar svg { width: 18px; height: 18px; color: var(--c-highlight); }
.ad-bar strong { font-family: var(--f-display); letter-spacing: .02em; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 240, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: 0 6px 24px rgba(32, 38, 53, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); min-height: 44px; }
.brand:hover { color: var(--c-text); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c-primary); color: #fff; position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; right: -4px; top: -4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--c-accent); border: 3px solid var(--c-bg);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand__tag { font-size: .875rem; color: var(--c-muted); margin-top: 2px; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 48px; min-width: 48px; padding: 0 14px;
  border: 1.5px solid var(--c-border-strong); border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-text); cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s-1); }
.site-nav li + li { margin-top: 0; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem;
  color: var(--c-text); text-decoration: none; border-radius: var(--r-pill);
}
.site-nav a:not(.btn):hover { background: var(--c-primary-50); color: var(--c-primary-700); }
.site-nav a[aria-current="page"] { color: var(--c-primary-700); background: var(--c-primary-50); }
.site-nav .btn { margin-left: var(--s-1); }

@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    box-shadow: 0 24px 40px rgba(32, 38, 53, .10);
    padding: var(--s-2) var(--gutter) var(--s-3);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a:not(.btn) { min-height: 52px; font-size: 1.125rem; border-radius: var(--r-sm); }
  .site-nav .btn { margin: var(--s-1) 0 0; width: 100%; }
  /* Sin JavaScript: la navegación queda visible debajo de la marca */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-bottom: var(--s-2); }
  html:not(.js) .site-nav { width: 100%; }
}
@media (max-width: 420px) { .brand__tag { display: none; } }

/* 7. BOTONES ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-primary); --btn-fg: #fff; --btn-bd: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  border-radius: var(--r-pill); border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn svg { width: 20px; height: 20px; transition: transform var(--dur) var(--ease); }
.btn:hover { --btn-bg: var(--c-primary-700); --btn-bd: var(--c-primary-700); color: var(--btn-fg); text-decoration: none; box-shadow: 0 8px 20px rgba(36, 72, 216, .25); }
.btn:hover svg.icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--r-pill); }
.btn[disabled], .btn[aria-disabled="true"] {
  --btn-bg: #C9CCD4; --btn-bd: #C9CCD4; --btn-fg: #3B4150; cursor: not-allowed; box-shadow: none; transform: none;
}
.btn--lg { min-height: 60px; padding: 16px 34px; font-size: 1.125rem; }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--c-primary-700); --btn-bd: var(--c-primary); }
.btn--secondary:hover { --btn-bg: var(--c-primary-50); --btn-fg: var(--c-primary-900); --btn-bd: var(--c-primary-700); box-shadow: none; }
.btn--highlight { --btn-bg: var(--c-highlight); --btn-fg: var(--c-text); --btn-bd: var(--c-highlight); }
.btn--highlight:hover { --btn-bg: #FFE08F; --btn-bd: #FFE08F; --btn-fg: var(--c-text); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .7); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-bd: #fff; --btn-fg: #fff; box-shadow: none; }
.btn--text {
  --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--c-primary-700);
  padding-left: 4px; padding-right: 4px; min-height: 44px;
}
.btn--text:hover { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--c-primary-900); box-shadow: none; text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* 8. HERO ---------------------------------------------------------------- */
.hero { padding: clamp(32px, 4vw, 72px) 0 clamp(40px, 4vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 78%;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(36, 72, 216, .08), transparent 60%),
    radial-gradient(600px 300px at 0% 20%, rgba(255, 214, 107, .22), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.02fr 1fr; gap: var(--s-8); } }

.ad-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
  background: var(--c-surface); border: 1.5px solid var(--c-text);
  font-family: var(--f-display); font-weight: 700; font-size: .9375rem; letter-spacing: .01em;
  margin-bottom: var(--s-3);
}
.ad-label svg { width: 18px; height: 18px; color: var(--c-accent-ink); }

.hero h1 { margin-bottom: var(--s-3); }
.hero h1 .accent { color: var(--c-primary); }
.hero__lead { font-size: var(--t-lead); line-height: 1.5; max-width: 34em; margin-bottom: var(--s-4); }
.hero__note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: var(--s-3);
  font-size: var(--t-sm); color: var(--c-muted); max-width: 32em;
}
.hero__note svg { width: 22px; height: 22px; color: var(--c-primary); margin-top: 2px; }

.hero__media { position: relative; }
.hero__photo {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--c-primary-100); box-shadow: var(--shadow-3);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__media::before {
  content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--c-highlight); right: -6%; bottom: -10%;
}
.hero__media::after {
  content: ""; position: absolute; z-index: -1; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: var(--c-accent); left: -5%; top: -6%;
}
.hero__badge {
  position: absolute; left: var(--s-2); bottom: var(--s-1); right: var(--s-3);
  max-width: 340px; display: flex; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, .96); border-radius: var(--r-md); padding: 14px 16px;
  box-shadow: var(--shadow-2); font-size: var(--t-xs); line-height: 1.4;
}
.hero__badge .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c-primary-50); color: var(--c-primary); flex-shrink: 0;
}
.hero__badge .ico svg { width: 22px; height: 22px; }
.hero__badge strong { font-family: var(--f-display); display: block; font-size: 1rem; }
@media (max-width: 520px) {
  .hero__photo { aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); }
  .hero__badge { position: static; max-width: none; margin-top: var(--s-2); box-shadow: var(--shadow-1); }
  .hero__media::before, .hero__media::after { display: none; }
}

.caption, figcaption {
  font-size: var(--t-xs); line-height: 1.45; color: var(--c-muted); margin-top: 10px;
}

/* 9. ARTÍCULO EDITORIAL -------------------------------------------------- */
.byline {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  padding: var(--s-2) 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
  font-size: var(--t-xs); color: var(--c-muted);
}
.byline span { display: inline-flex; align-items: center; gap: 8px; }
.byline svg { width: 18px; height: 18px; color: var(--c-primary); }

.article { max-width: var(--measure); }
.dropcap::first-letter {
  float: left; font-family: var(--f-display); font-weight: 800; color: var(--c-primary);
  font-size: 4.2em; line-height: .82; margin: .06em .1em 0 0;
}
.article h2 { margin-top: var(--s-2); }

.situations { display: grid; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .situations { grid-template-columns: 1fr 1fr; } }
.situations li {
  margin: 0; display: flex; gap: 14px; align-items: flex-start;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: var(--s-2) 20px; font-size: var(--t-sm); line-height: 1.5;
}
.situations li strong { display: block; font-family: var(--f-display); font-size: 1.0625rem; margin-bottom: 2px; }
.situations .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--c-highlight-50); color: var(--c-text);
}
.situations .ico svg { width: 22px; height: 22px; }

.figure { margin: 0; }
.figure__frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--c-bg-deep); }
.figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall .figure__frame { aspect-ratio: 4 / 5; }
@media (max-width: 899px) { .figure--tall .figure__frame { aspect-ratio: 3 / 2; } }

.callout {
  display: flex; gap: var(--s-2); align-items: flex-start;
  border-radius: var(--r-md); padding: 20px var(--s-3);
  background: var(--c-info-50); border-left: 5px solid var(--c-primary);
  font-size: var(--t-sm); line-height: 1.55;
}
.callout svg { width: 24px; height: 24px; color: var(--c-primary); margin-top: 2px; }
.callout--warm { background: var(--c-highlight-50); border-left-color: #E3A800; }
.callout--warm svg { color: #8A5A00; }
.callout--coral { background: var(--c-accent-50); border-left-color: var(--c-accent); }
.callout--coral svg { color: var(--c-accent-ink); }
.callout p { margin-bottom: var(--s-1); }
.callout strong { font-family: var(--f-display); }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.checklist li { position: relative; padding-left: 36px; }
.checklist li + li { margin-top: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232448D8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* 10. TARJETAS Y PASOS --------------------------------------------------- */
.aspects { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.aspect {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-3);
}
.aspect .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--c-primary); color: #fff; margin-bottom: var(--s-3);
}
.aspect:nth-child(2) .ico { background: var(--c-accent); color: var(--c-text); }
.aspect:nth-child(3) .ico { background: var(--c-highlight); color: var(--c-text); }
.aspect:nth-child(4) .ico { background: var(--c-text); color: #fff; }
.aspect .ico svg { width: 26px; height: 26px; }
.aspect h3 { font-size: var(--t-h4); }
.aspect p { font-size: var(--t-sm); color: var(--c-muted); }

.devices { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.device {
  display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  overflow: hidden; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.device:hover { box-shadow: var(--shadow-2); }
.device__media { aspect-ratio: 4 / 3; background: var(--c-bg-deep); overflow: hidden; }
.device__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.device:hover .device__media img { transform: scale(1.03); }
.device__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-3); }
.device__tag {
  align-self: flex-start; font-family: var(--f-display); font-weight: 700; font-size: .875rem;
  padding: 4px 12px; border-radius: var(--r-pill); background: var(--c-primary-50); color: var(--c-primary-700);
  margin-bottom: var(--s-2);
}
.device h3 { font-size: var(--t-h4); margin-bottom: var(--s-1); }
.device__body > p { font-size: var(--t-sm); color: var(--c-muted); }
.device__more { margin-top: auto; padding-top: var(--s-2); border-top: 1px solid var(--c-border); }
.device__toggle { width: 100%; justify-content: space-between; }
.device__toggle svg { transition: transform var(--dur) var(--ease); }
.device__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.device__specs { padding-top: var(--s-2); }
.device__specs ul { font-size: var(--t-sm); margin-bottom: var(--s-2); }
.device__specs p { font-size: var(--t-xs); color: var(--c-muted); }
.js .device__specs[hidden] { display: none; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { margin: 0; counter-increment: step; position: relative;
  background: var(--c-surface); border-radius: var(--r-lg); padding: var(--s-4) var(--s-3) var(--s-3);
  border: 1px solid var(--c-border);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; right: var(--s-3); top: var(--s-3);
  font-family: var(--f-display); font-weight: 800; font-size: 2.5rem; line-height: 1;
  color: var(--c-primary-100);
}
.steps .ico {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-primary-50); color: var(--c-primary); margin-bottom: var(--s-3);
}
.steps .ico svg { width: 26px; height: 26px; }
.steps h3 { font-size: var(--t-h4); padding-right: 48px; }
.steps p { font-size: var(--t-sm); color: var(--c-muted); }

.panel {
  background: var(--c-surface); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--c-border);
}
.panel--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.panel--primary h2, .panel--primary h3 { color: #fff; }
.panel--primary a:not(.btn) { color: #fff; }

.reward { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .reward { grid-template-columns: 1fr 1fr; align-items: start; } }
.reward__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reward__list li {
  margin: 0; display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-md); padding: 14px 18px; font-size: var(--t-sm); line-height: 1.5;
}
.reward__list svg { width: 22px; height: 22px; color: var(--c-highlight); margin-top: 2px; }
.reward__quote {
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-h3); line-height: 1.35;
  border-left: 4px solid var(--c-highlight); padding-left: var(--s-3); margin: var(--s-3) 0;
}

/* 11. FORMULARIO --------------------------------------------------------- */
.apply { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1000px) { .apply { grid-template-columns: .85fr 1.15fr; gap: var(--s-8); } }
.apply__aside .checklist { font-size: var(--t-sm); }

.form-card {
  background: var(--c-surface); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-2); border: 1px solid var(--c-border);
}
.form-card h3 { margin-bottom: var(--s-1); }
.form-card__intro { font-size: var(--t-sm); color: var(--c-muted); margin-bottom: var(--s-4); }

.field { margin-bottom: var(--s-3); }
.field__label {
  display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem;
  margin-bottom: 8px; color: var(--c-text);
}
.field__opt { font-family: var(--f-body); font-weight: 400; color: var(--c-muted); }
.field__hint { display: block; font-size: var(--t-xs); color: var(--c-muted); margin: -2px 0 8px; line-height: 1.45; }
.input, .select {
  display: block; width: 100%; min-height: 56px; padding: 12px 16px;
  font: inherit; font-size: 1.125rem; color: var(--c-text);
  background: var(--c-surface); border: 2px solid var(--c-border-strong); border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #6B7180; opacity: 1; }
.input:hover, .select:hover { border-color: var(--c-text); }
.input:focus, .select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(36, 72, 216, .22); }
.input:disabled, .select:disabled { background: #F2F0EC; color: #5D6270; cursor: not-allowed; }
.select {
  padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23202635' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 22px;
}
.field.has-error .input, .field.has-error .select { border-color: var(--c-error); background-color: var(--c-error-50); }
.field.has-error .input:focus, .field.has-error .select:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .2); }
.field__error {
  display: none; align-items: flex-start; gap: 8px; margin-top: 8px;
  color: var(--c-error); font-size: var(--t-xs); font-weight: 600; line-height: 1.4;
}
.field__error svg { width: 18px; height: 18px; margin-top: 1px; }
.field.has-error .field__error { display: flex; }

.check { display: flex; gap: 14px; align-items: flex-start; margin-bottom: var(--s-2); }
.check input {
  -webkit-appearance: none; appearance: none; flex-shrink: 0;
  width: 28px; height: 28px; margin: 0; border: 2px solid var(--c-border-strong); border-radius: 7px;
  background: var(--c-surface); cursor: pointer; display: grid; place-items: center;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.check input::after {
  content: ""; width: 16px; height: 16px; transform: scale(0); transition: transform 150ms var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check input:checked { background: var(--c-primary); border-color: var(--c-primary); }
.check input:checked::after { transform: scale(1); }
.check input:focus-visible { box-shadow: var(--focus-ring); }
.check label { font-size: var(--t-sm); line-height: 1.5; cursor: pointer; padding-top: 1px; }
.check-wrap.has-error .check input { border-color: var(--c-error); background: var(--c-error-50); }
.check-wrap .field__error { margin: -6px 0 var(--s-2) 42px; }
.check-wrap.has-error .field__error { display: flex; }

.form-note { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-xs); color: var(--c-muted); margin-top: var(--s-2); line-height: 1.5; }
.form-note svg { width: 18px; height: 18px; margin-top: 2px; color: var(--c-primary); }

.alert {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--r-md); padding: var(--s-2) 20px; margin-bottom: var(--s-3);
  font-size: var(--t-sm); line-height: 1.5; border: 1.5px solid;
}
.alert[hidden] { display: none; }
.alert svg { width: 24px; height: 24px; margin-top: 1px; }
.alert h4 { font-size: 1.0625rem; margin-bottom: 4px; }
.alert ul { margin: 6px 0 0; padding-left: 1.1em; }
.alert li + li { margin-top: 2px; }
.alert--error { background: var(--c-error-50); border-color: #F2B8B2; color: #7A1A12; }
.alert--error svg { color: var(--c-error); }
.alert--error a { color: #7A1A12; font-weight: 700; }
.alert--info { background: var(--c-primary-50); border-color: var(--c-primary-100); color: var(--c-text); }
.alert--info svg { color: var(--c-primary); }
.alert--success { background: var(--c-success-50); border-color: #A9D8BE; color: #123F29; }
.alert--success svg { color: var(--c-success); }
.alert .contact-inline { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.alert .contact-inline a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.alert .contact-inline svg { width: 18px; height: 18px; margin: 0; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.spinner {
  width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .8s linear infinite; display: none;
}
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 12. FAQ ---------------------------------------------------------------- */
.faq { max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__item:first-child { border-top: 1px solid var(--c-border); }
.faq__q { margin: 0; font-size: inherit; }
.faq__btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: 64px; padding: 18px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem);
  line-height: 1.35; color: var(--c-text); letter-spacing: -0.01em;
}
.faq__btn:hover { color: var(--c-primary-700); }
.faq__btn:focus-visible { border-radius: var(--r-sm); }
.faq__icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--c-primary-50); color: var(--c-primary); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq__icon svg { width: 22px; height: 22px; }
.faq__btn[aria-expanded="true"] .faq__icon { transform: rotate(180deg); background: var(--c-primary); color: #fff; }
.faq__a { padding: 0 56px var(--s-3) 4px; color: var(--c-text); }
.faq__a p { font-size: var(--t-base); }
.js .faq__a[hidden] { display: none; }
@media (max-width: 600px) { .faq__a { padding-right: 4px; } }

/* 13. CTA FINAL Y PIE ---------------------------------------------------- */
.final-cta {
  position: relative; overflow: hidden;
  background: var(--c-primary); color: #fff; border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px);
}
.final-cta::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  right: -120px; top: -160px; background: var(--c-primary-700);
}
.final-cta::after {
  content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  right: 12%; bottom: -60px; background: var(--c-accent);
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; max-width: 18em; }
.final-cta p { max-width: 36em; font-size: var(--t-lead); line-height: 1.5; color: #E6EBFF; margin-bottom: var(--s-4); }

.site-footer { background: var(--c-text); color: #D5D8E0; padding: var(--s-10) 0 var(--s-4); margin-top: var(--section-y); font-size: var(--t-sm); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--c-highlight); }
.footer__grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-8); } }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__tag { color: #B9BECB; }
.footer__brand .brand__mark::after { border-color: var(--c-text); }
.footer__title { font-family: var(--f-display); font-weight: 700; color: #fff; font-size: 1.0625rem; margin-bottom: var(--s-2); }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li + li { margin-top: 4px; }
.footer__list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__list svg { width: 18px; height: 18px; color: var(--c-highlight); }
.footer__legal { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: var(--s-2); color: #B9BECB; font-size: var(--t-xs); }
.footer__disclosure {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-md);
  padding: var(--s-2) 20px; color: #E1E4EB;
}
.footer__disclosure strong { color: #fff; font-family: var(--f-display); }
address { font-style: normal; }

/* 14. PÁGINAS INTERNAS --------------------------------------------------- */
.page-hero { padding: clamp(40px, 5vw, 88px) 0 clamp(32px, 4vw, 56px); position: relative; }
.page-hero::after {
  content: ""; position: absolute; left: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: 0; width: 72px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--c-primary) 0 50%, var(--c-accent) 50% 75%, var(--c-highlight) 75%);
}
.page-hero .container { position: relative; }
.page-hero .ad-label { display: flex; width: fit-content; }
.page-hero h1 { font-size: var(--t-h1-inner); max-width: 20em; }
.page-hero .lead { color: var(--c-muted); max-width: 40em; margin-top: var(--s-2); }
.breadcrumb { font-size: var(--t-xs); color: var(--c-muted); margin-bottom: var(--s-2); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary-700); }

.doc { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1000px) { .doc { grid-template-columns: 260px 1fr; gap: var(--s-8); } }
.doc__toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--t-xs); }
.doc__toc p { font-family: var(--f-display); font-weight: 700; margin-bottom: var(--s-1); color: var(--c-text); }
.doc__toc ol { padding-left: 1.2em; margin: 0; }
.doc__toc li + li { margin-top: 4px; }
.doc__toc a { color: var(--c-muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.doc__toc a:hover { color: var(--c-primary-700); text-decoration: underline; }
@media (max-width: 999px) { .doc__toc { position: static; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-2) 20px; } }
.doc__body { max-width: var(--measure); }
.doc__body h2 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); margin-top: var(--s-8); padding-top: var(--s-1); }
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { margin-top: var(--s-4); }
.doc__body .callout { margin: var(--s-3) 0; }
.doc__meta { font-size: var(--t-xs); color: var(--c-muted); margin-bottom: var(--s-4); }

.pending {
  display: inline; background: var(--c-highlight-50); border: 1px dashed #C99400; border-radius: 6px;
  padding: 1px 6px; font-size: .95em;
}

.contact-cards { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-4) var(--s-3); }
.contact-card .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--c-primary-50); color: var(--c-primary); margin-bottom: var(--s-2);
}
.contact-card .ico svg { width: 26px; height: 26px; }
.contact-card h2 { font-size: var(--t-h4); margin-bottom: var(--s-1); }
.contact-card ul { list-style: none; padding: 0; margin: 0; }
.contact-card li + li { margin-top: 0; }
.contact-card a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: var(--t-sm); word-break: break-word; }

.data-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); margin: var(--s-2) 0 var(--s-3); }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.data-table th { font-family: var(--f-display); font-weight: 700; width: 36%; }
@media (max-width: 560px) {
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table th { border-bottom: 0; padding-bottom: 0; }
}

.thanks { max-width: 760px; }
.thanks__icon {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-success-50); color: var(--c-success); margin-bottom: var(--s-3);
}
.thanks__icon svg { width: 36px; height: 36px; }
.thanks__icon--neutral { background: var(--c-primary-50); color: var(--c-primary); }

/* 15. UTILIDADES Y MOVIMIENTO ------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--s-2) !important; }
.mt-3 { margin-top: var(--s-3) !important; }
.mt-4 { margin-top: var(--s-4) !important; }
.mt-6 { margin-top: var(--s-6) !important; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

@media print {
  .site-header, .ad-bar, .nav-toggle, .final-cta, .form-card { display: none !important; }
  body { background: #fff; }
}
