/* ============================================================
   Quotanda — sistema de diseño "Mosaico" (Liquid Glass 2026)
   ------------------------------------------------------------
   La estructura de Pura (tiles en bento, eyebrows en chip mono,
   botones tinta con letra celeste) hecha de Liquid Glass con tres
   materiales:
     · esmerilado (frost): blanco translúcido + blur/saturate
     · ahumado (smoke): grafito NEUTRO rgba(18,21,24,.88), nunca navy
     · tintado (tint): celeste pálido
   Borde especular de 1px (mask-composite) y radios CONCÉNTRICOS:
   tile 30px; elemento interno = 30px − inset del tile.
   Lienzo #EEF2F6 con retícula de keylines cada 48px y brillo celeste.
   Tipografía: Bricolage Grotesque (títulos y cifras grandes, opsz 96)
   + Manrope (cuerpo/UI) + JetBrains Mono (chips, etiquetas, legal),
   las tres autoalojadas (variables, subsets latin y latin-ext).
   Marca: azul del logo #26A9E0 (nunca texto blanco sobre él); links
   sobre claro #146F9E; botón primario tinta #0E1B24 con letra celeste
   #7FD4F6 — #0E1B24 solo vive en botones, ninguna superficie grande
   es azul oscuro. Footer grafito neutro #26282A.
   ============================================================ */

/* ---------- fuentes autoalojadas (OFL) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-var.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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-var-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-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: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-var-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-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;
}

:root {
  color-scheme: light;

  /* lienzo y tinta */
  --canvas: #EEF2F6;
  --keyline: rgba(14, 27, 36, .045);
  --ink: #0F1B24;            /* títulos */
  --text: #3D4B55;           /* cuerpo */
  --muted: #586A76;          /* secundario (≥ 4.5:1 sobre lienzo y vidrio) */

  /* marca: el azul del logo no da contraste con texto blanco */
  --blue: #26A9E0;           /* acentos, ícono, anillos */
  --link: #146F9E;           /* links y texto de acento sobre claro (AA) */
  --blue-deep: #146F9E;      /* alias en uso (SVG y UK): antes #1B8CBF no pasaba AA como texto */
  --sky: #7FD4F6;            /* letra celeste sobre superficies oscuras */

  /* los tres materiales Liquid */
  --frost: rgba(255, 255, 255, .62);    /* esmerilado */
  --smoke: rgba(18, 21, 24, .88);       /* ahumado, neutro (R≈G≈B) */
  --smoke-solid: #24272A;               /* ahumado opaco (diagramas SVG) */
  --tint: rgba(38, 169, 224, .14);      /* tintado, sobre vidrio blanco */
  --edge: rgba(255, 255, 255, .75);     /* borde especular */

  /* botón primario aprobado: tinta con letra celeste (único uso de #0E1B24) */
  --dark: #0E1B24;
  --dark-hi: #142835;

  /* auxiliares */
  --white: #FFFFFF;
  --line: rgba(14, 27, 36, .09);
  --ok-text: #1E7A44;
  --error: #C6362F;

  /* footer: grafito neutro (texto en escala de grises suaves, sin azul) */
  --footer-bg: #26282A;
  --footer-head: #C8CBCF;        /* títulos de columna (9.1:1) */
  --footer-text: #B4B7BB;        /* cuerpo/tagline (7.3:1) */
  --footer-muted: #93969A;       /* legal/secundario (5.0:1) */
  --footer-link: #C0C3C7;        /* links (8.4:1) */
  --footer-link-hover: #DDDFE2;  /* hover — nunca blanco puro */
  --footer-hairline: rgba(214, 218, 222, .10);

  /* tipografía */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --fs-900: clamp(2.1rem, 4.3vw, 3.4rem);    /* h1 de página interna */
  --fs-800: clamp(1.75rem, 3.1vw, 2.5rem);   /* h2 de sección */
  --fs-700: 1.35rem;                         /* h3 */
  --fs-600: 1.1rem;                          /* h4 / destacado */
  --fs-500: 1rem;                            /* cuerpo */
  --fs-400: .875rem;                         /* secundario */
  --fs-300: .78rem;                          /* labels */

  /* geometría: el tile mide 30px; cada elemento interno usa radio = 30px − inset */
  --gap: 16px;
  --r-tile: 30px;
  --r-header: 20px;
  --radius: 14px;
  --container: 1248px;           /* 1200px de contenido + 2 × 24px de gutter */
  --ease: cubic-bezier(.22, .8, .22, 1);
  --shadow: 0 0 0 1px rgba(14, 27, 36, .035), 0 1px 2px rgba(14, 27, 36, .04), 0 22px 44px -22px rgba(14, 27, 36, .20);
  --shadow-lift: 0 0 0 1px rgba(14, 27, 36, .05), 0 2px 4px rgba(14, 27, 36, .06), 0 30px 56px -24px rgba(14, 27, 36, .32);
}

/* ---------- reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;       /* el header sticky no tapa los anclas (#aplicar, #referir) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  position: relative;
  isolation: isolate;
  display: flex;                    /* footer pegado al fondo en páginas cortas */
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--fs-500);
  line-height: 1.65;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(38, 169, 224, .25); }

/* cubre la zona del notch para que el contenido no se vea bajo la barra de estado */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--canvas);
}

/* ---------- lienzo: brillo celeste arriba + retícula de keylines cada 48px ---------- */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 560px at 66% 270px, rgba(38, 169, 224, .20), rgba(38, 169, 224, 0) 70%),
    radial-gradient(ellipse 620px 420px at 12% 150px, rgba(127, 212, 246, .26), rgba(127, 212, 246, 0) 72%),
    /* centrada: con .container de 1200px de contenido, las líneas verticales caen en los bordes de los tiles */
    linear-gradient(to right, var(--keyline) 1px, transparent 1px) 50% 0 / 48px 48px,
    linear-gradient(to bottom, var(--keyline) 1px, transparent 1px) 0 0 / 48px 48px;
}

/* ---------- tipografía ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-900); font-weight: 760; line-height: 1.02; letter-spacing: -.028em; }
h2 { font-size: var(--fs-800); font-weight: 720; line-height: 1.06; letter-spacing: -.024em; }
h3 { font-size: var(--fs-700); font-weight: 700; line-height: 1.12; letter-spacing: -.016em; }
h4 { font-family: var(--font); font-variation-settings: normal; font-size: var(--fs-600); font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* en texto corrido el color solo no distingue un link: va subrayado */
main p a:not(.btn), .prose a, .accordion__body a, .consent a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.lead { font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.6; color: var(--text); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tile--smoke :focus-visible, .plan-card :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }

/* eyebrow: pastilla mono en cápsula (chip) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 16px;
  /* base blanca bajo el tinte: el texto --link mantiene ≥ 4.5:1 incluso sobre el brillo celeste del lienzo (medido) */
  background: linear-gradient(var(--tint), var(--tint)), rgba(255, 255, 255, .96);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 224, .24), inset 0 1px 0 rgba(255, 255, 255, .6);
  color: var(--link);
  font: 600 11.5px/1.3 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: top;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 169, 224, .18);
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(2.25rem, 5.5vw, 4.25rem); }
/* Mosaico no usa bandas full-bleed: el ritmo lo marcan los tiles (cards, hero, CTA).
   .section--mist se conserva como gancho semántico, sin fondo propio. */
.section--mist { background: transparent; }
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }   /* máx. 3 columnas en 1200px */
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* 4 → 2 → 1 columnas: sin viuda 3+1 en tablet */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* ============================================================
   MATERIALES — superficies de vidrio compartidas
   ============================================================ */

/* base de toda superficie: contexto de apilamiento propio (el borde especular y los reflejos viven dentro) */
:is(.tile, .card, .cta-band, .accordion, .table-wrap, .program-detail__meta, .plan-card, .team-photo, .video-embed,
    .contact-form, .marketplace-form, .referral-form, .steps__item, .logo-grid, .sdg-row, .team-card, .site-footer__tile) {
  --inset: 10px;                /* separación entre el borde del tile y su contenido interno */
  position: relative;
  isolation: isolate;
  min-width: 0;
  border-radius: var(--r-tile);
}

/* borde especular: anillo de 1px con luz arriba a la izquierda y rebote abajo a la derecha */
:is(.tile, .card, .cta-band, .accordion, .table-wrap, .program-detail__meta, .plan-card, .team-photo, .video-embed,
    .contact-form, .marketplace-form, .referral-form, .steps__item, .logo-grid, .sdg-row, .team-card, .site-footer__tile)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, var(--spec-a, .95)), rgba(255, 255, 255, .20) 38%, rgba(255, 255, 255, .04) 62%, rgba(255, 255, 255, var(--spec-b, .60)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* esmerilado: blanco translúcido + blur/saturate + reflejo arriba a la izquierda */
:is(.tile--frost, .card, .accordion, .table-wrap, .program-detail__meta, .contact-form, .marketplace-form, .referral-form,
    .steps__item, .logo-grid, .sdg-row, .team-card) {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
    var(--frost);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 0 0 1px rgba(14, 27, 36, .035),
    0 1px 2px rgba(14, 27, 36, .04),
    0 22px 44px -22px rgba(14, 27, 36, .20),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(14, 27, 36, .04);
}
/* listas densas: mismo aspecto sin el coste de un blur por card */
:is(.program-card, .post-card, .steps__item, .team-card, .office-card) {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
    rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* tintado: celeste pálido */
:is(.tile--tint, .cta-band) {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 56%),
    linear-gradient(var(--tint), var(--tint)),
    var(--frost);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 0 0 1px rgba(14, 27, 36, .035),
    0 1px 2px rgba(14, 27, 36, .04),
    0 22px 44px -22px rgba(14, 27, 36, .20),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(14, 27, 36, .04);
}

/* ahumado: grafito NEUTRO (R≈G≈B); saturate bajo para que el brillo celeste del lienzo no lo tiña de azul */
:is(.tile--smoke, .plan-card) {
  --spec-a: .32;
  --spec-b: .10;
  color: #EEF1F3;
  background:
    radial-gradient(90% 55% at 0% 0%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%),
    var(--smoke);
  -webkit-backdrop-filter: blur(24px) saturate(.5);
  backdrop-filter: blur(24px) saturate(.5);
  box-shadow:
    0 1px 2px rgba(14, 27, 36, .10),
    0 30px 60px -24px rgba(14, 27, 36, .55),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

/* tile con relleno propio: bloques de texto que de otro modo quedarían sueltos sobre el brillo celeste del lienzo
   (ahí un link #146F9E baja de 4.5:1; sobre el vidrio blanco no) */
.tile--pad { padding: clamp(24px, 4vw, 48px); }

/* imagen y video como tile de vidrio: radio de tile, sin fondo */
.team-photo, .video-embed { overflow: hidden; box-shadow: var(--shadow); }
.media-tile {
  border-radius: var(--r-tile);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .75), 0 0 0 2px rgba(14, 27, 36, .04), 0 22px 44px -22px rgba(14, 27, 36, .30);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1.1 var(--font);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }
/* regla aprobada: fondo tinta #0E1B24 con letra celeste; el highlight de vidrio va en background-image */
.btn--primary {
  color: var(--sky);
  background-color: var(--dark);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 52%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 10px 22px -8px rgba(14, 27, 36, .55);
}
.btn--primary:hover { background-color: var(--dark-hi); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0) scale(.985); }
/* secundario: vidrio esmerilado con borde blanco */
.btn--outline {
  color: var(--ink);
  background: rgba(255, 255, 255, .66);
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 1px rgba(14, 27, 36, .06), 0 6px 14px -6px rgba(14, 27, 36, .16), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.btn--outline:hover { background: rgba(255, 255, 255, .9); transform: translateY(-1px); }
.btn--outline:active { transform: translateY(0) scale(.985); }
.btn--ghost { color: var(--link); background: transparent; }
.btn--ghost:hover { background: var(--tint); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

/* ============================================================
   HEADER — topbar mono fina + tile flotante de vidrio sticky
   ============================================================ */
.topbar {
  padding-block: 12px 10px;
  /* velo blanco que se desvanece hacia abajo: el texto pequeño de la topbar mantiene ≥ 4.5:1 sobre el brillo celeste del lienzo */
  background: linear-gradient(to bottom, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--text);
}
.topbar__socials, .site-nav__socials { display: flex; align-items: center; gap: 16px; }
.topbar__socials a, .site-nav__socials a {
  display: inline-flex;
  padding: 4px;
  margin: -4px;
  border-radius: 8px;
  color: var(--text);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.topbar__socials a:hover, .site-nav__socials a:hover { color: var(--link); transform: translateY(-1px); }
.topbar__socials svg, .site-nav__socials svg { width: 15px; height: 15px; fill: currentColor; }
.site-nav__socials { margin-left: auto; }   /* sin selector de idioma (UK) las redes siguen alineadas a la derecha */
.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__sep { width: 1px; height: 14px; background: rgba(14, 27, 36, .16); }
.topbar__login { color: var(--link); font-weight: 600; white-space: nowrap; }
.topbar__login:hover { text-decoration: underline; text-underline-offset: 3px; }
.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-switch a { color: var(--text); font-weight: 500; }
.lang-switch a:hover { color: var(--link); text-decoration: none; }
.lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--blue); }
.lang-switch span { color: var(--muted); }

/* el contenedor sticky no intercepta clics: solo el tile los recibe */
.site-header {
  position: sticky;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 50;
  pointer-events: none;
}
.site-header__inner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 8px 8px 22px;      /* inset 8px → los ítems internos usan radio 20 − 8 = 12px */
  border-radius: var(--r-header);
  pointer-events: auto;
}
/* el vidrio vive en un pseudo-elemento: así el desplegable (con su propio blur) no queda atrapado en un backdrop root */
.site-header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--frost);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 1px rgba(14, 27, 36, .035), 0 14px 34px -16px rgba(14, 27, 36, .22), inset 0 1px 0 rgba(255, 255, 255, .95);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header__inner.is-scrolled::before {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 1px rgba(14, 27, 36, .05), 0 20px 44px -14px rgba(14, 27, 36, .30), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.site-header__logo { display: inline-flex; flex: none; }
.site-header__logo img { width: 112px; height: 28.4px; }

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__item { position: relative; }
.site-nav__item > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--ink);
  font: 600 14px/1 var(--font);
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-nav__item > a:hover { background: rgba(255, 255, 255, .8); text-decoration: none; }
.site-nav__item > a[aria-current="page"] {
  background: var(--tint);
  color: var(--link);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 224, .22);
}
.caret {
  width: 10px;
  height: 6px;
  flex: none;
  opacity: .65;
  transition: transform .25s var(--ease);
}
.has-drop.is-open > a .caret { transform: rotate(180deg); }

/* desplegables de vidrio que flotan con aire bajo el header (solo escritorio) */
.drop {
  margin: 0;
  padding: 8px;                   /* inset 8px → ítems con radio 22 − 8 = 14px */
  list-style: none;
  display: grid;
}
.drop a {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.drop a:hover { background: rgba(38, 169, 224, .12); color: var(--link); text-decoration: none; }
.drop a[aria-current="page"] { background: var(--tint); color: var(--link); }

.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 0 0 1px rgba(14, 27, 36, .07), inset 0 1px 0 rgba(255, 255, 255, .95);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
/* bloque que solo existe dentro del sheet móvil */
.site-nav__meta, .site-nav__cta { display: none; }

@media (min-width: 1141px) {
  .drop {
    position: absolute;
    top: calc(100% + 24px);       /* el panel flota con aire bajo el borde del header */
    left: 50%;
    z-index: 60;
    min-width: 310px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid var(--edge);
    box-shadow: 0 22px 48px -14px rgba(14, 27, 36, .28), inset 0 1px 0 rgba(255, 255, 255, .95);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  /* puente invisible sobre el hueco entre el enlace y el panel: el hover no se pierde */
  .drop::before { content: ""; position: absolute; inset: -26px 0 auto; height: 26px; }
  .site-nav__item:last-child > .drop { left: auto; right: 0; transform: translate(0, -6px); }
  .has-drop.is-open > .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .site-nav__item:last-child.is-open > .drop { transform: translate(0, 0); }
}
@media (min-width: 1141px) and (hover: hover) {
  .has-drop:hover > .drop, .has-drop:focus-within > .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .site-nav__item:last-child:hover > .drop, .site-nav__item:last-child:focus-within > .drop { transform: translate(0, 0); }
  .has-drop:hover > a .caret, .has-drop:focus-within > a .caret { transform: rotate(180deg); }
  /* Escape: oculta el panel aunque el puntero o el foco sigan encima (site.js quita la marca al salir) */
  .has-drop.is-dismissed > .drop { opacity: 0; visibility: hidden; }
  .has-drop.is-dismissed > a .caret { transform: none; }
}

/* menú móvil: la misma navegación se vuelve un sheet de vidrio bajo el header */
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(100%, 520px);
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;                /* inset 10px → ítems con radio 30 − 10 = 20px */
    border-radius: var(--r-tile);
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--edge);
    box-shadow: 0 28px 60px -18px rgba(14, 27, 36, .34), inset 0 1px 0 rgba(255, 255, 255, .95);
  }
  .site-nav.is-open { display: block; animation: sheet-in .3s var(--ease) both; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item > a {
    display: flex;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.6;
  }
  /* el padre de un grupo funciona como etiqueta del grupo */
  .site-nav__item.has-drop > a {
    padding: 14px 16px 6px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--link);
    font: 600 11px/1 var(--font-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .site-nav__item.has-drop > a:hover { background: none; text-decoration: none; }
  .site-nav__item.has-drop > a .caret { display: none; }
  .drop { position: static; padding: 0; }
  .drop a { padding: 12px 16px; border-radius: 20px; font-size: 15px; font-weight: 600; }
  .site-nav__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding: 14px 16px 12px;
    border-top: 1px solid rgba(14, 27, 36, .08);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
  }
  .site-nav__cta { display: flex; width: calc(100% - 8px); margin: 4px; }
}
@keyframes sheet-in { from { transform: translateY(-8px); } to { transform: none; } }

/* ============================================================
   HERO — interno (texto sobre el lienzo) y bento del home
   ============================================================ */
.hero { padding-block: clamp(2.25rem, 5.5vw, 4.25rem) clamp(1rem, 2.5vw, 2rem); }
.hero h1 { max-width: 1000px; }
.hero.center h1 { margin-inline: auto; }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@keyframes rise { from { transform: translateY(16px); } to { transform: translateY(0); } }

/* home: tile esmerilado (7 col) + tile ahumado con el dashboard (5 col) */
.hero--bento { padding-block: 16px 64px; }   /* el margen inferior deja espacio a la nota flotante */
.hero__copy {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;     /* chip arriba, titular al centro, CTA abajo */
  gap: 28px;
  padding: clamp(28px, 4.4vw, 52px);
  animation: rise .8s var(--ease) backwards;
}
.hero__copy .eyebrow { margin-bottom: 0; }
.hero--bento h1 {
  max-width: none;
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5.2vw, 4.5rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.028em;
}
.hero--bento .lead { max-width: 34em; margin-bottom: 0; }

/* ---------- dashboard demo (tile ahumado) ---------- */
/* min-width:0 — sin esto el item del grid no puede encogerse por debajo del título nowrap de la barra
   y desborda toda la página en móvil */
.dash-wrap {
  grid-column: span 5;
  position: relative;
  display: flex;
  min-width: 0;
  animation: rise .8s var(--ease) .12s backwards;
}
.dash { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.dash__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
}
.dash__traffic { display: flex; flex: none; gap: 7px; }
.dash__traffic i { display: block; width: 11px; height: 11px; border-radius: 50%; }
.dash__traffic i:nth-child(1) { background: #FF5F57; }
.dash__traffic i:nth-child(2) { background: #FEBC2E; }
.dash__traffic i:nth-child(3) { background: #28C840; }
.dash__title {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #E9EDF0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.005em;
}
.dash__tag {
  flex: none;
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(127, 212, 246, .12);
  box-shadow: inset 0 0 0 1px rgba(127, 212, 246, .22);
  color: var(--sky);
  font: 600 10px/1.4 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dash__body {
  --inset: 16px;        /* inset del cuerpo → KPIs y paneles con radio 30 − 16 = 14px */
  flex: 1;
  display: grid;
  /* minmax(0, 1fr): sin esto el nowrap de los subtítulos fija el min-content de la columna y el panel desborda en móvil */
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  padding: var(--inset);
}
.dash__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash__kpi, .dash__panel {
  border-radius: calc(var(--r-tile) - var(--inset));
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .10);
}
.dash__kpi { min-width: 0; padding: 12px 14px 13px; }
.dash__k {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #B3BABF;
  font: 500 9.5px/1.4 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dash__v {
  color: #F5F7F8;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dash__v.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); } }
.dash__delta {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(46, 158, 91, .22);
  color: #78E0A5;
  font: 600 11px/1.5 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
/* mini-switch de moneda de ejemplo: cápsula de vidrio claro translúcido */
.dash__fx {
  display: inline-flex;
  gap: 2px;
  margin-top: 6px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}
.dash__fx button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #BDC3C8;
  font: 600 11.5px/1 var(--font-mono);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.dash__fx button:hover:not([aria-pressed="true"]) { color: #F0F3F5; }
.dash__fx button[aria-pressed="true"] { background: var(--sky); color: var(--dark); }
.dash__panel { padding: 14px; }
.dash__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash__panel-head strong { color: #F0F3F5; font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.dash__seg {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}
.dash__seg button {
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #BDC3C8;
  font: 600 11.5px/1.2 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.dash__seg button:hover:not([aria-pressed="true"]) { color: #F0F3F5; }
.dash__seg button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 6px rgba(0, 0, 0, .25);
}
.dash__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 96px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 100% 33.33%;
}
.dash__bars i {
  flex: 1;
  min-height: 6%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(127, 212, 246, .85), rgba(38, 169, 224, .45));
  transition: height .55s var(--ease);
}
.dash__bars i:last-child {
  background: linear-gradient(180deg, var(--sky), var(--blue));
  box-shadow: 0 0 18px rgba(127, 212, 246, .35);
}
.dash__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: #B3BABF;
  font: 500 10px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dash__meta b { color: var(--sky); font-weight: 600; font-variant-numeric: tabular-nums; }
.dash__rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.dash__row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.dash__row + .dash__row { border-top: 1px solid rgba(255, 255, 255, .07); }
.dash__av {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: .04em;
}
.dash__av--1 { background: linear-gradient(135deg, var(--sky), var(--blue)); color: var(--dark); }
.dash__av--2 { background: linear-gradient(135deg, #E3E6E9, #A9B0B6); color: #14181B; }
.dash__av--3 { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: #F0F3F5; }
.dash__who { min-width: 0; flex: 1; line-height: 1.3; }
.dash__who b { display: block; color: #F0F3F5; font-size: 13px; font-weight: 650; }
.dash__who span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #B3BABF;
  font-size: 12px;
}
.dash__pill {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 9.5px/1.2 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.dash__pill--ok { background: rgba(46, 158, 91, .20); box-shadow: inset 0 0 0 1px rgba(46, 158, 91, .30); color: #78E0A5; }
.dash__pill--rev { background: rgba(254, 188, 46, .15); box-shadow: inset 0 0 0 1px rgba(254, 188, 46, .28); color: #F2C46B; }
.dash__pill--out { background: rgba(127, 212, 246, .13); box-shadow: inset 0 0 0 1px rgba(127, 212, 246, .26); color: var(--sky); }

/* nota flotante: hermana del tile (no hija) para que su blur vea el lienzo y no quede dentro del tile */
.dash__note {
  --inset: 10px;        /* inset de la nota → el ícono usa radio 24 − 10 = 14px */
  position: absolute;
  left: -28px;
  bottom: -38px;        /* cuelga bajo el tile sin tapar la última fila del panel */
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--inset) 20px var(--inset) var(--inset);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--edge);
  box-shadow: 0 22px 44px -14px rgba(14, 27, 36, .40), 0 0 0 1px rgba(14, 27, 36, .04), inset 0 1px 0 rgba(255, 255, 255, .95);
  animation: floaty 7s ease-in-out 1s infinite alternate;
}
@keyframes floaty { to { transform: translateY(-6px); } }
.dash__note-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: calc(24px - var(--inset));
  background: rgba(46, 158, 91, .14);
  box-shadow: inset 0 0 0 1px rgba(46, 158, 91, .24);
}
.dash__note-ic svg { width: 16px; height: 16px; fill: none; stroke: var(--ok-text); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.dash__note b { display: block; color: var(--ink); font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.dash__note span span { display: block; color: var(--text); font-size: 12px; line-height: 1.35; }

/* ---------- soluciones: encabezado + 4 tiles con pozo tintado ---------- */
.sec-head { margin-bottom: 22px; }
.sec-head h2 { max-width: 17ch; margin: 0; font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 720; line-height: 1.04; letter-spacing: -.024em; }
.solution {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(112px, 172px) minmax(0, 1fr);
  min-height: 204px;
  padding: var(--inset);
  /* un reflejo celeste en la esquina opuesta al pozo: el vidrio se siente cargado de luz */
  background:
    radial-gradient(70% 100% at 100% 100%, rgba(38, 169, 224, .12), rgba(38, 169, 224, 0) 70%),
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
    var(--frost);
}
/* pozo tintado: radio concéntrico = 30 − 10 = 20px */
.solution__well {
  display: grid;
  place-items: center;
  border-radius: calc(var(--r-tile) - var(--inset));
  background:
    radial-gradient(90% 90% at 30% 0%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 62%),
    var(--tint);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 224, .22), inset 0 -12px 20px -14px rgba(38, 169, 224, .26);
}
/* el PNG real del ícono, teñido por máscara (--ic viene inline desde la plantilla) */
.solution__icon {
  display: block;
  width: 60px;
  height: 60px;
  background: var(--link);
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}
.solution__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 18px 20px 12px 24px;
}
.solution__body h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 700; line-height: 1.1; letter-spacing: -.016em; }

/* ---------- filas del home (CTA, clientes) ---------- */
.home-row { padding-block: var(--gap) 0; }

/* ---------- clientes con lente líquida ---------- */
.clients { padding: var(--inset); }
.clients__head { padding: 22px; }
.clients__head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 720; line-height: 1.06; letter-spacing: -.024em; }
.rail {
  --logo-h: 120px;
  --logo-gap: 16px;
  --rail-h: 208px;
  --lens-w: 264px;
  --lens-h: 152px;
  --zoom: 1.3;
  --dur: 100s;
  position: relative;
  isolation: isolate;
  height: var(--rail-h);
  overflow: hidden;
  /* radio concéntrico del riel = 30 − 10 = 20px */
  border-radius: calc(var(--r-tile) - var(--inset));
  background:
    linear-gradient(to right, var(--keyline) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, #F6F9FB, #EEF3F7);
  box-shadow: inset 0 1px 3px rgba(14, 27, 36, .10), inset 0 0 0 1px rgba(14, 27, 36, .05);
}
.track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  gap: var(--logo-gap);
  padding-inline-end: var(--logo-gap);   /* completa el periodo: el loop en −50% no da salto */
  animation: rail-scroll var(--dur) linear infinite;
  will-change: transform;
}
.track img { flex: none; display: block; width: auto; max-width: none; height: var(--logo-h); user-select: none; -webkit-user-drag: none; }
@keyframes rail-scroll { to { transform: translate3d(-50%, 0, 0); } }
/* la pausa por hover alcanza a las dos pistas porque ambas viven dentro de .rail */
.rail:hover .track { animation-play-state: paused; }
/* pista base: gris, tenue y sin el blanco de los JPG (multiply) */
.rail__base {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: grayscale(1);
  opacity: .7;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
/* ventana de la lente: recorte cápsula centrado en el riel */
.rail__lens {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: inset(calc(50% - var(--lens-h) / 2) calc(50% - var(--lens-w) / 2) round 999px);
}
/* mismo origen que el centro de la lente; el fondo propio hace que multiply funcione dentro del grupo aislado */
.rail__zoom {
  position: absolute;
  inset: 0;
  transform: scale(var(--zoom));
  transform-origin: 50% 50%;
  background: radial-gradient(100% 120% at 30% 0%, #FFFFFF, #F1F7FC 70%);
}
.rail__color { position: absolute; inset: 0; overflow: hidden; mix-blend-mode: multiply; }
/* aro de vidrio de la lente */
.lens-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--lens-w);
  height: var(--lens-h);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(14, 27, 36, .09),
    0 22px 38px -14px rgba(14, 27, 36, .32),
    0 4px 10px rgba(14, 27, 36, .08),
    inset 0 0 0 2px rgba(255, 255, 255, .92),
    inset 0 12px 16px -10px rgba(255, 255, 255, .95),
    inset 0 -16px 22px -14px rgba(38, 169, 224, .38);
}
.lens-ring::before {   /* reflejo curvo en el borde superior */
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 6px;
  height: 34%;
  border-radius: 999px 999px 60% 60% / 100% 100% 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .40), rgba(255, 255, 255, 0));
}
.lens-ring::after {    /* brillo especular rotatorio en el canto */
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from 200deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .95) 64%, rgba(255, 255, 255, 0) 82%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* ============================================================
   CTA — tile tintado con retícula que se desvanece
   ============================================================ */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(28px, 3.6vw, 44px);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(to right, rgba(14, 27, 36, .055) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(14, 27, 36, .055) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(90% 100% at 100% 100%, #000, transparent 72%);
  mask-image: radial-gradient(90% 100% at 100% 100%, #000, transparent 72%);
  pointer-events: none;
}
.cta-band h2 { margin: 0; font-size: clamp(1.7rem, 3.1vw, 2.6rem); font-weight: 740; line-height: 1.05; letter-spacing: -.026em; }
.cta-band p { max-width: 36em; margin: 12px 0 0; color: var(--text); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  padding: clamp(22px, 2.4vw, 30px);
  transition: box-shadow .25s var(--ease), translate .25s var(--ease);
}
.card:hover {
  translate: 0 -3px;
  box-shadow:
    0 0 0 1px rgba(14, 27, 36, .05),
    0 2px 4px rgba(14, 27, 36, .06),
    0 30px 56px -24px rgba(14, 27, 36, .30),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(14, 27, 36, .04);
}
.card h3 { margin-bottom: .4rem; }
.card h3 a { color: inherit; }
.card > :last-child { margin-bottom: 0; }

/* card de programa (marketplace) */
.program-card { display: flex; flex-direction: column; gap: 14px; }
.program-card h3 { margin: 0; }
.program-card__school {
  color: var(--link);
  font: 600 11.5px/1.3 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.program-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-400);
}
.program-card__meta dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.program-card__meta dd { margin: 0 0 .35rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.program-card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(var(--tint), var(--tint)), rgba(255, 255, 255, .75);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 224, .22);
  color: var(--link);
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge--ok { background: linear-gradient(rgba(46, 158, 91, .14), rgba(46, 158, 91, .14)), rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(46, 158, 91, .26); color: var(--ok-text); }

/* detalle de programa */
.program-detail__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem 2rem;
  padding: clamp(22px, 2.6vw, 30px);
}

/* ---------- tabs: píldora de vidrio con la pestaña activa tintada ---------- */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 6px;                   /* inset 6px → pestañas con radio 24 − 6 = 18px */
  list-style: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 1px rgba(14, 27, 36, .035), 0 14px 30px -18px rgba(14, 27, 36, .22), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.center .tabs__list, .tabs__list.center { margin-inline: auto; }
.tabs__tab {
  padding: 10px 16px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  font: 600 14px/1.2 var(--font);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tabs__tab:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.tabs__tab[aria-selected="true"] {
  background: linear-gradient(var(--tint), var(--tint)), rgba(255, 255, 255, .8);
  color: var(--link);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 224, .22);
}
.tabs__panel[hidden] { display: none; }
.landing .tabs__panel {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-tile);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}

/* ---------- acordeón ---------- */
.accordion { overflow: hidden; }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 20px 26px;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 224, .22);
  color: var(--link);
  font: 500 18px/1 var(--font-mono);
}
.accordion summary:hover { color: var(--link); }
/* el tile recorta (overflow:hidden): el anillo de foco va hacia adentro para que no se corte */
.accordion summary:focus-visible { outline-offset: -3px; border-radius: 18px; }
.accordion details[open] summary { color: var(--link); }
.accordion details[open] summary::after { content: "–"; }
.accordion .accordion__body { padding: 0 26px 22px; overflow-wrap: anywhere; }
.accordion .accordion__body > :last-child { margin-bottom: 0; }

/* ---------- tabla (precios / datos) ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-400); }
.table th {
  text-align: left;
  background: var(--tint);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .8rem 1.1rem;
}
.table td { padding: .8rem 1.1rem; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table tr:hover td { background: rgba(38, 169, 224, .06); }

/* ---------- formularios: el formulario es un tile y los campos son de vidrio ---------- */
.contact-form, .marketplace-form, .referral-form { padding: clamp(22px, 3.2vw, 36px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: var(--fs-400); font-weight: 650; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(14, 27, 36, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 2px rgba(14, 27, 36, .05);
  color: var(--ink);
  font: 400 var(--fs-500)/1.4 var(--font);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #7A8B97; }
.field input:hover, .field select:hover, .field textarea:hover { background: rgba(255, 255, 255, .9); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(38, 169, 224, .18);
}
.field .field__hint { font-size: var(--fs-300); color: var(--muted); }
.field--error input { border-color: var(--error); }
.field--error .field__hint { color: var(--error); }
/* fieldsets (form de referidos): panel interior; el tile mide 30px y el relleno es mayor, el radio propio es 20px */
.referral-form fieldset {
  margin: 0 0 20px;
  padding: 22px 22px 6px;
  border: 1px solid rgba(14, 27, 36, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .42);
}
.referral-form legend {
  padding: 0 .6rem;
  color: var(--link);
  font: 600 11.5px/1.3 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.consent {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  color: var(--text);
  font-size: var(--fs-400);
  cursor: pointer;
}
.consent input { flex: none; margin-top: .25rem; accent-color: var(--blue); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-notice {
  margin-top: 1rem;
  padding: .8rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(var(--tint), var(--tint)), rgba(255, 255, 255, .75);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 224, .24);
  color: var(--link);
  font-size: var(--fs-400);
  font-weight: 600;
}
.form-notice[hidden] { display: none; }

/* ---------- grid de logos (clientes) ---------- */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 36px;
  padding: clamp(24px, 3.4vw, 44px);
}
/* multiply: el blanco de los JPG se funde con el vidrio y quedan solo los logos */
.logo-grid img { height: 44px; width: auto; mix-blend-mode: multiply; opacity: .92; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.logo-grid img:hover { opacity: 1; transform: translateY(-2px); }

/* ============================================================
   FOOTER — tile grafito dentro de los márgenes, radios superiores 30px
   ============================================================ */
.site-footer { padding-block: 72px 0; }
.site-footer__tile {
  --spec-a: .22;
  --spec-b: .05;
  padding-block: clamp(36px, 5vw, 56px) 28px;
  padding-inline: clamp(22px, 4.4vw, 52px);
  border-radius: var(--r-tile) var(--r-tile) 0 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 -20px 50px -26px rgba(14, 27, 36, .40);
  font-size: 14px;
}
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: var(--footer-link-hover); text-decoration: underline; text-underline-offset: 3px; }
.site-footer h4 {
  margin: 0 0 16px;
  color: var(--footer-head);
  font: 600 11px/1.2 var(--font-mono);
  font-variation-settings: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer__brand { min-width: 0; }
/* logo suavizado sobre el grafito (no blanco puro duro) */
.site-footer__logo { display: inline-flex; }
.site-footer__logo img { width: 124px; height: 31.4px; filter: brightness(0) invert(1); opacity: .88; }
.site-footer__brand p { max-width: 26em; margin: 16px 0 0; color: var(--footer-text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* franja Kit Digital OBLIGATORIA: leyenda en texto real + insignias blancas */
.site-footer__kit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--footer-hairline);
}
.site-footer__kit p {
  max-width: 48ch;
  margin: 0;
  color: var(--footer-muted);
  font: 400 10px/1.6 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.site-footer__badges img { width: auto; height: 28px; opacity: .82; }
.site-footer__badges img.site-footer__badge--sm { height: 22px; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--footer-hairline);
  color: var(--footer-muted);
  font: 400 12px/1.5 var(--font-mono);
}
/* líneas regulatorias largas (UK): ocupan su propio renglón */
.site-footer__legal span + span { flex: 1 1 100%; max-width: 110ch; }

/* ============================================================
   ISA / PÁGINAS DE PRODUCTO
   ============================================================ */
.benefit-card { text-align: center; }
/* los íconos de beneficio son PNG a color: se asientan en un pozo tintado (radio 30 − 10 = 20px) */
.benefit-card img {
  width: 92px;
  height: 92px;
  margin: 0 auto 1rem;
  padding: 14px;
  object-fit: contain;
  border-radius: calc(var(--r-tile) - var(--inset));
  background:
    radial-gradient(90% 90% at 30% 0%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 62%),
    var(--tint);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 224, .22), inset 0 -12px 20px -14px rgba(38, 169, 224, .26);
}
.benefit-card h3 { font-size: 1.15rem; }
.benefit-card p { font-size: var(--fs-400); color: var(--text); margin-inline: auto; }
/* variante en fila (fundaciones): pozo a la izquierda, texto a la derecha */
.benefit-card--row { display: flex; align-items: center; gap: 1.2rem; text-align: left; }
.benefit-card--row img { flex: none; width: 76px; height: 76px; margin: 0; }
.benefit-card--row p { margin: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap);
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.steps__item { padding: clamp(22px, 2.4vw, 30px); text-align: left; }
/* el número es un círculo tintado (nunca una superficie oscura) */
.steps__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(var(--tint), var(--tint)), rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 224, .26);
  color: var(--link);
  font: 700 1.3rem/1 var(--font-display);
  font-variation-settings: "opsz" 96;
}
.steps__item h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.steps__item p { font-size: var(--fs-400); color: var(--text); margin: 0; }

/* historias de éxito */
.story-card img { height: 40px; width: auto; margin-bottom: 1rem; }
.story-card p { font-size: var(--fs-400); }
.story-card cite { color: var(--link); font-size: var(--fs-300); font-style: normal; font-weight: 700; }

/* diagramas SVG inline (ISA, plataforma): núcleo ahumado neutro, nodos de vidrio blanco */
.dgm { width: 100%; height: auto; display: block; }
.dgm text { font-family: var(--font); }
.dgm .dgm-core { fill: var(--smoke-solid); }
.dgm .dgm-node { fill: #fff; stroke: rgba(14, 27, 36, .10); stroke-width: 1.5; filter: drop-shadow(0 6px 10px rgba(14, 27, 36, .10)); }
.dgm .dgm-pct { font-family: var(--font-display); font-size: 40px; font-weight: 800; fill: var(--sky); }
.dgm .dgm-center-sub { font-size: 15.5px; font-weight: 650; fill: #F0F3F5; }
.dgm .dgm-hub-word { font-size: 19px; font-weight: 750; fill: #F0F3F5; letter-spacing: -.01em; }
.dgm .dgm-node-label { font-size: 14px; font-weight: 650; fill: var(--ink); }
.dgm .dgm-pill-label { font-size: 12px; font-weight: 600; fill: var(--ink); }

/* tarjeta de plan (home UK): tile ahumado neutro (ver "ahumado" arriba) */
.plan-card { padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-lift); }
.plan-card h2 { margin-bottom: .5em; color: #fff; font-size: 1.5rem; }
.plan-card p { color: rgba(255, 255, 255, .92); font-size: var(--fs-400); }
.plan-card ul { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; font-size: var(--fs-400); }
.plan-card li { padding-left: 1.5rem; position: relative; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sky); font-weight: 800; }
.plan-card a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

/* video embebido responsivo */
.video-embed {
  max-width: 820px;
  margin: 2.5rem auto 0;
  aspect-ratio: 16 / 9;
  background: #14171A;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   CONTACTO
   ============================================================ */
.office-list .grid--3 { grid-template-columns: 1fr; }
.office-card { padding: var(--inset); overflow: hidden; }
.office-card__map { aspect-ratio: 21 / 9; border-radius: calc(var(--r-tile) - var(--inset)); overflow: hidden; background: var(--tint); }
.office-card__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.office-card h3 { padding: 16px 16px 0; font-size: 1.1rem; margin-bottom: .2rem; }
.office-card p { padding: 0 16px 12px; margin: 0; font-size: var(--fs-400); }

/* ============================================================
   EQUIPO / ACERCA DE
   ============================================================ */
.team-photo { margin: 0; }
.team-photo img { width: 100%; }
/* cuadrícula 4 × 2 (7 personas): foto con radio concéntrico 30 − 10 = 20px */
.team-grid {
  --team-cols: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;          /* la última fila (3 de 7) queda centrada, no pegada a la izquierda */
  gap: var(--gap);
  margin: 2.25rem auto 0;
}
.team-card { flex: 0 0 calc((100% - (var(--team-cols) - 1) * var(--gap)) / var(--team-cols)); padding: var(--inset); }
.team-card img {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  margin: 0 0 14px;
  object-fit: cover;
  border-radius: calc(var(--r-tile) - var(--inset));
  box-shadow: 0 0 0 1px rgba(14, 27, 36, .06);
}
.team-card h3 { margin: 0 8px .15rem; font-size: 1.05rem; font-variation-settings: normal; }
.team-card p { margin: 0 8px 8px; font-size: var(--fs-400); color: var(--muted); }
.sdg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
  margin-top: 2rem;
  padding: clamp(22px, 3vw, 36px);
}
.sdg-row img { height: 88px; width: auto; border-radius: 14px; }
.sdg-row .sdg-row__main { height: 72px; border-radius: 0; }

/* ============================================================
   NOTICIAS
   ============================================================ */
.post-card { display: flex; flex-direction: column; padding: var(--inset); overflow: hidden; }
.post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--r-tile) - var(--inset));
  background: var(--tint);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
/* banners de logos (panorámicos): mostrar completos, sin recorte */
.post-card__media--contain { background: var(--white); padding: 1.4rem; }
.post-card__media--contain img { object-fit: contain; }
.post-card:hover .post-card__media--contain img { transform: none; }
.post-card__body { padding: 18px 14px 12px; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.post-card__date { color: var(--muted); font: 600 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.post-card__body h3 { font-size: 1.15rem; margin: 0; }
.post-card__body p { font-size: var(--fs-400); color: var(--text); margin: 0; }
.post-card__more { margin-top: auto; padding-top: .5rem; font-weight: 700; font-size: var(--fs-400); }

.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pagination__num:hover { background: rgba(255, 255, 255, .8); color: var(--ink); text-decoration: none; }
/* página actual: tintado con aro (la tinta oscura queda solo para botones) */
.pagination__num--on {
  background: linear-gradient(var(--tint), var(--tint)), rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 224, .28);
  color: var(--link);
}

.post { max-width: 840px; }
.post__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: .4rem;
  padding: 8px 16px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 1px rgba(14, 27, 36, .05), 0 6px 14px -8px rgba(14, 27, 36, .18), inset 0 1px 0 rgba(255, 255, 255, .95);
  font-size: var(--fs-400);
  font-weight: 700;
  line-height: 1.2;
}
.post__back:hover { background: rgba(255, 255, 255, .95); text-decoration: none; }
.post__header h1 { margin-top: .8rem; }
.post__date { color: var(--text); font: 600 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }   /* sobre el brillo del lienzo --muted no llega a 4.5:1 */
.post__hero { margin: 2rem 0; border-radius: var(--r-tile); overflow: hidden; box-shadow: var(--shadow-lift); }
.post__hero img { width: 100%; }

/* ============================================================
   CONTENIDO MIGRADO (posts, páginas legales, landings)
   ============================================================ */
.prose { margin-top: 1.5rem; overflow-wrap: anywhere; }   /* URLs y palabras largas se parten en vez de desbordar */
.prose p { margin-bottom: 1.2em; }
.prose img { border-radius: 20px; margin: 1.5rem auto; }
.prose h1 { font-size: var(--fs-800); }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.prose h4, .prose h5, .prose h6 {
  margin: 1.4em 0 .5em;
  font-family: var(--font);
  font-variation-settings: normal;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
.prose blockquote {
  margin: 1.5rem 0;
  padding: .9rem 1.4rem;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, .6);
}
/* documentos largos: tile sin blur ni anillo (un backdrop-filter de decenas de miles de px se degrada) */
.container > .prose, .landing > .prose {
  padding: clamp(22px, 4vw, 48px);
  border-radius: var(--r-tile);
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}
/* landings: muchos bloques de texto son de una sola línea; tiles compactos para que no pesen */
.landing > .prose { padding: clamp(16px, 2.4vw, 28px) clamp(20px, 3vw, 36px); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
/* tablas dentro de contenido migrado (precios de landings): no parten palabras, hacen scroll horizontal propio */
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: normal;
  border-collapse: collapse;
  font-size: var(--fs-400);
  margin: 1.2rem 0;
  font-variant-numeric: tabular-nums;
}
.prose table td, .prose table th {
  border: 1px solid var(--line);
  padding: .6rem .9rem;
  text-align: left;
  min-width: 110px;
}
.prose table tr:first-child td, .prose table th {
  background: var(--tint);
  font-weight: 700;
  color: var(--ink);
}

/* landings de escuelas */
/* minmax(0, 1fr) + min-width:0: una tabla o lista ancha del contenido migrado no debe fijar el min-content del track */
.landing { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.landing > * { min-width: 0; }
.landing__heading { margin: 1.2rem 0 0; text-align: center; }
.landing__cta { text-align: center; margin: .5rem 0; }
.landing__img { margin-inline: auto; border-radius: var(--r-tile); box-shadow: var(--shadow); }
.landing .steps { margin-top: .5rem; }

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 100;
  padding: .7rem 1.2rem;
  border-radius: 14px;
  background: var(--dark);
  color: var(--sky);
  font-weight: 600;
}
.skip-link:focus { left: 10px; }

/* ---------- banner de cookies: panel de vidrio ---------- */
.cookie-banner {
  position: fixed;
  /* respeta el notch en horizontal y el indicador de inicio abajo (viewport-fit=cover) */
  inset: auto max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.2rem;
  max-width: 600px;
  margin-inline: auto;
  padding: 14px 14px 14px 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--edge);
  box-shadow: 0 28px 60px -18px rgba(14, 27, 36, .34), inset 0 1px 0 rgba(255, 255, 255, .95);
  font-size: var(--fs-400);
}
.cookie-banner p { margin: 0; flex: 1 1 260px; }
.cookie-banner__actions { display: flex; gap: .5rem; }
.cookie-banner .btn { min-height: 42px; padding: 0 20px; font-size: 14px; }
.cookie-banner[hidden] { display: none; }

/* ---------- reveal al hacer scroll (fade-in-up) ----------
   Los elementos con .reveal aparecen al entrar al viewport (IO en site.js).
   Solo se ocultan bajo html.has-js: sin JS todo queda visible. */
.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  /* el retardo del stagger (--rd) solo afecta a la aparición, no al hover de las cards */
  transition: opacity .6s ease var(--rd, 0s), transform .6s ease var(--rd, 0s), translate .25s var(--ease), box-shadow .25s var(--ease);
}
.has-js .reveal.is-in { opacity: 1; transform: none; }
/* stagger para grids de cards */
.has-js .reveal--d1 { --rd: .1s; }
.has-js .reveal--d2 { --rd: .2s; }
.has-js .reveal--d3 { --rd: .3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Por debajo de ~1080px el botón más largo ("¿Eres una entidad gubernamental?") ya no cabe junto al pozo: el pozo pasa arriba */
@media (max-width: 1080px) {
  .solution { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .solution__well { min-height: 112px; }
  .solution__body { padding: 20px 14px 12px; }
}
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* tablet: tres tarjetas en 2 columnas dejan una viuda; la tercera ocupa el ancho completo
   (rangos = donde cada cuadrícula realmente tiene 2 columnas: grid--3 min 320px, steps min 260px) */
@media (min-width: 704px) and (max-width: 1039px) {
  .grid--3 > :nth-child(3):last-child { grid-column: 1 / -1; }
}
@media (min-width: 584px) and (max-width: 859px) {
  .steps > :nth-child(3):last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero__copy, .dash-wrap { grid-column: 1 / -1; }
  .dash__note { left: 12px; bottom: -34px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .team-grid { --team-cols: 3; }
  .program-card__meta { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .solution { grid-column: 1 / -1; }
  .team-grid { --team-cols: 2; }
}
@media (max-width: 620px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .hero--bento { padding-block: 14px 68px; }
  .dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__kpi:first-child { grid-column: 1 / -1; }
  .dash__bar { padding: 12px 16px; }
  .dash__body { --inset: 12px; gap: 10px; }
  .dash__panel { padding: 12px; }
  .dash__panel-head { flex-wrap: wrap; }
  .clients__head { padding: 18px 14px; }
  .rail { --logo-h: 84px; --logo-gap: 12px; --rail-h: 156px; --lens-w: 196px; --lens-h: 116px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer { padding-block: 56px 0; }
  .accordion summary { padding: 18px 20px; }
  .accordion .accordion__body { padding: 0 20px 20px; }
  .logo-grid { gap: 22px 32px; }
}
@media (max-width: 520px) {
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .topbar__socials { display: none; }       /* las redes siguen disponibles dentro del sheet */
  .topbar__inner { justify-content: flex-end; }
  .benefit-card--row { flex-direction: column; text-align: center; }
  .tabs__list { width: 100%; }
}
/* Pantallas angostas: el texto de los botones puede partirse en dos líneas en vez de desbordar el tile */
@media (max-width: 480px) {
  .btn { max-width: 100%; padding-block: 12px; line-height: 1.2; white-space: normal; text-align: center; }
  .btn--lg { padding-inline: 24px; }
}

/* ---------- movimiento reducido: sin marquee, sin lente, logos en grilla estática a color ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* con animaciones reducidas, los reveal quedan siempre visibles */
  .has-js .reveal { opacity: 1; transform: none; }
  .rail { height: auto; padding: 22px 18px; }
  .rail__base { position: static; overflow: visible; filter: none; opacity: 1; -webkit-mask-image: none; mask-image: none; }
  .rail__lens, .lens-ring { display: none; }
  /* 25 logos = rejilla de 5 × 5, sin huérfanos ni duplicados */
  .track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    width: auto;
    height: auto;
    padding-inline-end: 0;
    gap: 2px 8px;
    will-change: auto;
  }
  .track img { height: 84px; max-width: 100%; object-fit: contain; }
  .track img[aria-hidden="true"] { display: none; }
  @media (max-width: 760px) {
    .track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .track img { height: 64px; }
  }
}
