/* ==========================================================
   Asegurardata® — Hoja de estilos principal
   Paleta clara de confianza basada en la marca:
   Índigo #12053F (texto, pie) · Turquesa del logo #40AAB3 (acción) · Violeta #7B5CFF (acento)
   Superficies blancas y tintes turquesa/lavanda · Tipografía Plus Jakarta Sans
   ========================================================== */

:root {
  --indigo-950: #0a0226;
  --indigo-900: #0e0432;
  --indigo-800: #12053f;   /* color principal del sitio actual */
  --indigo-700: #1d0f57;
  --indigo-600: #372c5d;
  --indigo-500: #413765;
  --indigo-300: #8a82b3;
  --indigo-100: #e9e7f3;
  --teal-500: #40aab3;     /* turquesa exacto del logo oficial */
  --teal-400: #5cc6cd;
  --teal-300: #94dfe4;
  --cyan-500: #00bcd4;
  --violet-500: #7b5cff;
  --ink: #1d1a3a;
  --ink-soft: #4b4868;
  --paper: #ffffff;
  --paper-2: #f2f7f9;
  --line: rgba(18, 5, 63, .1);

  --grad-brand: linear-gradient(135deg, var(--teal-500) 0%, var(--cyan-500) 45%, var(--violet-500) 100%);
  --grad-brand-oklab: linear-gradient(in oklab 135deg, var(--teal-500) 0%, var(--cyan-500) 45%, var(--violet-500) 100%);
  --grad-dark: radial-gradient(1200px 600px at 80% -10%, rgba(64,170,179,.18), transparent 60%),
               radial-gradient(900px 500px at -10% 110%, rgba(123,92,255,.22), transparent 60%),
               linear-gradient(180deg, var(--indigo-800), var(--indigo-950));
  /* Superficies claras: transmiten confianza; el índigo queda para el texto y el pie */
  --grad-light: radial-gradient(1000px 560px at 85% -10%, rgba(64,170,179,.16), transparent 60%),
                radial-gradient(800px 520px at -10% 110%, rgba(123,92,255,.10), transparent 60%),
                linear-gradient(180deg, #f6fbfc, #eef4f8);
  --grad-tint: linear-gradient(160deg, #eaf6f7 0%, #f1eefc 100%);

  /* ---- Color: roles semánticos (los componentes usan estos, no los primitivos) ---- */
  --color-text: var(--ink);
  --color-text-strong: var(--indigo-800);
  --color-text-muted: var(--ink-soft);
  --color-text-subtle: #665e91;          /* 5.9:1 sobre blanco · 5.4:1 sobre --paper-2 */
  --color-accent-text: #086a73;          /* turquesa de marca oscurecido · 6.2:1 sobre blanco, ≥5:1 sobre los tintes */
  --color-on-dark-muted: rgba(255,255,255,.78);
  --color-on-dark-subtle: #8c85ad;       /* 5.8:1 sobre --indigo-950 */
  --color-on-dark-accent: var(--teal-400);
  --grad-brand-ink: linear-gradient(135deg, var(--color-accent-text), #5a3fe0); /* texto degradado sobre claro, ≥4.9:1 */

  /* ---- Tipografía: escala por rol (tamaño · interlineado · peso) ---- */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-caption: .8125rem;  /* 13px · 1.45 · 700 mayúsculas */
  --text-label: .9375rem;    /* 15px · 1.3  · 700 (botones, menú) */
  --text-body: 1.0625rem;    /* 17px · 1.6  · 400 */
  --text-lead: 1.25rem;      /* 20px · 1.55 · 400 */
  --text-heading: 1.25rem;   /* 20px · 1.3  · 700 (títulos de tarjeta) */
  --text-subtitle: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);   /* 22–28px · 1.25 · 900 */
  --text-title: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);        /* 30–48px · 1.12 · 900 */
  --text-display: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);     /* 40–76px · 1.04 · 900 */
  --lh-display: 1.04; --lh-title: 1.12; --lh-subtitle: 1.25; --lh-heading: 1.4; --lh-body: 1.6;
  --track-display: -.03em; --track-title: -.02em; --track-subtitle: -.01em; --track-label: .08em;

  --radius: 18px;
  --radius-sm: 10px;
  /* ---- Elevación: sombras en capas en lugar de bordes de profundidad ---- */
  --shadow: 0 0 0 1px rgba(18,5,63,.06), 0 1px 2px rgba(18,5,63,.06), 0 8px 24px -12px rgba(18,5,63,.18);
  --shadow-lg: 0 0 0 1px rgba(64,170,179,.35), 0 2px 4px rgba(18,5,63,.06), 0 24px 48px -20px rgba(18,5,63,.4);
  --img-outline: rgba(0,0,0,.1);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, 0, 0, 1);  /* ease-out (better-motion) */
  --dur-fast: 150ms; --dur: 200ms; --dur-enter: 300ms;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: var(--lh-body);
  font-size: var(--text-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 800; text-wrap: balance; overflow-wrap: break-word; }
h1 { line-height: var(--lh-display); letter-spacing: var(--track-display); }
h2 { line-height: var(--lh-title); letter-spacing: var(--track-title); }
h3, h4 { line-height: var(--lh-subtitle); letter-spacing: var(--track-subtitle); }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }
a { text-underline-offset: .2em; text-decoration-thickness: from-font; }
::selection { background: var(--teal-500); color: var(--indigo-900); }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(50px, 7vw, 90px) 0; }
.section--alt { background: var(--paper-2); }
.section--tint { background: var(--grad-tint); overflow: hidden; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--teal-500); color: var(--indigo-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Utilidades tipográficas ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--text-caption); line-height: 1.45; letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--color-accent-text); font-weight: 700; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

.title-xl { font-size: var(--text-display); line-height: var(--lh-display); letter-spacing: var(--track-display); }
.title-lg { font-size: var(--text-title); line-height: var(--lh-title); letter-spacing: var(--track-title); }
.title-md { font-size: var(--text-subtitle); line-height: var(--lh-subtitle); }
.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--color-text-muted); max-width: 58ch; }
/* Texto degradado en tinta (≥4.9:1 sobre claro) */
.text-grad { background: var(--grad-brand-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--teal-500); --fg: var(--indigo-900);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.3;
  background: var(--bg); color: var(--fg); border: 1px solid transparent; cursor: pointer;
  transition-property: transform, scale, box-shadow, background-color, color; transition-duration: var(--dur); transition-timing-function: var(--ease);
  -webkit-tap-highlight-color: transparent; text-align: center; text-wrap: balance;
}
@media (min-width: 480px) { .btn { white-space: nowrap; } }

.btn:not(:disabled):active { scale: .96; transition-duration: var(--dur-fast); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-fast) var(--ease); }

.btn--ghost { --bg: transparent; --fg: var(--indigo-800); box-shadow: inset 0 0 0 1.5px rgba(18,5,63,.25); }

/* Un solo botón relleno por vista: el CTA de la cabecera va en contorno */
.btn--line { --bg: transparent; --fg: var(--color-accent-text); box-shadow: inset 0 0 0 1.5px var(--teal-500); }

.btn--dark { --bg: var(--indigo-800); --fg: #fff; }

.btn--outline { --bg: transparent; --fg: var(--indigo-800); box-shadow: inset 0 0 0 1.5px var(--indigo-800); }
/* Recorte de caja de texto (mejora progresiva) para centrar ópticamente las etiquetas */
@supports (text-box: trim-both cap alphabetic) {
  .btn { text-box: trim-both cap alphabetic; padding-block: 19px; }
  .chip { text-box: trim-both cap alphabetic; padding-block: 9px; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--color-text-strong); }
.link-arrow svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur-fast) var(--ease); }


/* ---------- Barra de progreso de lectura ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-brand); z-index: 200; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(18,5,63,.08), 0 10px 30px -18px rgba(18,5,63,.25);
  --header-h: 66px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { position: relative; z-index: 96; display: flex; align-items: center; gap: 12px; color: var(--indigo-800); font-weight: 800; font-size: 1.3125rem; line-height: 1.2; letter-spacing: var(--track-subtitle); }
.brand__logo { display: block; height: 40px; width: auto; }
.site-footer .brand__logo { height: 52px; }
@media (max-width: 400px) { .site-header .brand__logo { height: 34px; } }
.brand small { display: block; font-weight: 700; font-size: .75rem; line-height: 1.3; letter-spacing: var(--track-label); color: var(--color-accent-text); text-transform: uppercase; margin-top: 2px; }
.brand .reg { font-size: .75rem; vertical-align: super; line-height: 0; color: var(--color-accent-text); }

.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a {
  position: relative; display: block; padding: 10px 8px; color: var(--color-text-muted); white-space: nowrap;
  font-size: .875rem; line-height: 1.3; font-weight: 700; border-radius: 8px; transition: color var(--dur) var(--ease);
}
.menu a::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 2px;
  background: var(--teal-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.menu a[aria-current="page"] { color: var(--color-text-strong); }
.menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu .btn { padding: 11px 20px; font-size: var(--text-label); margin-left: 10px; color: var(--fg); }
.menu .btn::after { display: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 96; }
@media (min-width: 1241px) { .nav { gap: 16px; } .menu { margin-left: auto; } }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--indigo-100); }
.lang-switch a {
  min-width: 40px; padding: 7px 10px; border-radius: 999px; text-align: center;
  font-weight: 700; font-size: .75rem; line-height: 1.2; letter-spacing: var(--track-label);
  color: var(--color-text-muted); transition-property: background-color, color; transition-duration: var(--dur-fast); transition-timing-function: var(--ease);
}
.lang-switch a[aria-current="true"] { background: var(--teal-500); color: var(--indigo-900); }
.nav-toggle {
  position: relative; z-index: 96;
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--indigo-100); color: var(--indigo-800); place-items: center;
  -webkit-tap-highlight-color: transparent; transition: scale var(--dur-fast) var(--ease);
}
.nav-toggle:active { scale: .96; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s, background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-toggle { display: grid; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); flex-direction: column; align-items: stretch;
    padding: 96px 24px 24px; gap: 4px; background: #fff;
    box-shadow: -30px 0 60px -20px rgba(18,5,63,.3);
    transform: translateX(105%); transition: transform 250ms var(--ease); z-index: 95;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .menu a { font-size: 1.125rem; padding: 13px 14px; }
  .menu a::after { display: none; }
  .menu a[aria-current="page"] { background: rgba(64,170,179,.12); color: var(--color-accent-text); }
  .menu .btn { margin: 16px 0 0; justify-content: center; }
  .nav-open .menu { transform: none; transition-duration: 400ms; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(18,5,63,.35); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
}

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--grad-light); color: var(--color-text-strong); overflow: hidden; padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero canvas.net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; z-index: 2; }
.hero h1 { font-size: var(--text-display); margin-bottom: 22px; }
.hero h1 .reg { font-size: .4em; vertical-align: super; line-height: 0; color: var(--color-accent-text); }
.hero .typed { display: inline-block; min-width: 1ch; color: var(--color-accent-text); font-weight: 800; }
.hero .typed::after { content: "|"; font-weight: 400; animation: blink 1s steps(1) infinite; color: var(--teal-500); margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero__tagline { font-size: clamp(1.25rem, 1rem + .9vw, 1.625rem); line-height: 1.35; font-weight: 500; color: var(--color-text-strong); margin-bottom: 14px; max-width: 30ch; }
.hero__kicker { font-weight: 500; font-size: 1.125rem; color: var(--color-text-muted); margin-bottom: 34px; min-height: 1.6em; }
.hero__visual { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: end; width: 100%; }
.hero__art { position: absolute; inset: 2%; animation: float 9s ease-in-out infinite; }
.hero__art img { width: 100%; height: 100%; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(92,198,205,.35); animation: spin 40s linear infinite; }
.orbit--2 { inset: -6%; border-style: solid; border-color: rgba(123,92,255,.22); animation-duration: 70s; animation-direction: reverse; }
.orbit i { position: absolute; top: 50%; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 20px 4px rgba(64,170,179,.8); }
.orbit--2 i { left: auto; right: 12%; top: 6%; background: var(--violet-500); box-shadow: 0 0 20px 4px rgba(123,92,255,.8); }
.shield-badge {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(255,255,255,.88); color: var(--color-text-strong); border: 1px solid rgba(18,5,63,.06); border-radius: 22px; /* 10 (icono) + 12 (relleno) */
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .875rem; box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
.shield-badge b { display: block; font-size: .9375rem; line-height: 1.3; }
.shield-badge span { color: var(--color-text-subtle); font-weight: 500; font-size: .8125rem; }
.shield-badge .dot { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(64,170,179,.15); color: var(--color-accent-text); flex: none; }
.shield-badge .dot svg { width: 22px; height: 22px; }
.shield-badge--a { top: 10%; left: -6%; }
.shield-badge--b { bottom: 18%; right: -4%; animation-delay: -2s; }
.shield-badge--c { bottom: -2%; left: 8%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: var(--color-text-subtle); font-weight: 700; font-size: .75rem; letter-spacing: var(--track-label); text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue i { width: 22px; height: 36px; border: 1.5px solid rgba(18,5,63,.25); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--teal-400); border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { justify-self: center; max-width: 420px; order: -1; margin-top: 10px; }
  .shield-badge--a { left: -2%; } .shield-badge--b { right: -2%; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) { .shield-badge { padding: 9px 12px; border-radius: 18px; } .shield-badge .dot { width: 30px; height: 30px; } .shield-badge--c { display: none; } }

/* ---------- Hero de páginas internas ---------- */
.page-hero {
  position: relative; color: var(--color-text-strong); background: var(--grad-light); overflow: hidden;
  padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 clamp(60px, 8vw, 110px);
}
.page-hero canvas.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .6; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: var(--text-display); max-width: 18ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 600; font-size: var(--text-caption); color: var(--color-text-subtle); margin-bottom: 22px; }


/* ---------- Grids & tarjetas ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid transparent; box-shadow: var(--shadow);
  transition-property: transform, box-shadow; transition-duration: var(--dur); transition-timing-function: var(--ease);
  overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(64,170,179,.14), transparent 45%);
}


.card h3 { font-size: var(--text-heading); line-height: var(--lh-heading); font-weight: 700; letter-spacing: 0; color: var(--color-text-strong); }
.card p { color: var(--color-text-muted); }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, #e3f5f6, #ece8fd); color: var(--color-accent-text);
  box-shadow: inset 0 0 0 1px rgba(64,170,179,.18);
}
.card__icon svg { width: 30px; height: 30px; }
.card__num { position: absolute; top: 22px; right: 26px; font-size: var(--text-caption); color: var(--color-text-subtle); font-weight: 700; font-variant-numeric: tabular-nums; }


/* ---------- Split (imagen + texto) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 0; } }

.media {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3.2; box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.media, .post__media, .gt-strip { outline: 1px solid var(--img-outline); outline-offset: -1px; }

.media__tag {
  position: absolute; z-index: 2; left: 12px; bottom: 12px; right: 12px;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; /* 24 = 12 + 12 */
  background: rgba(255,255,255,.9); color: var(--color-text-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(18,5,63,.06); box-shadow: var(--shadow); font-size: .9375rem; line-height: 1.4;
}
.media__tag b { color: var(--color-accent-text); font-weight: 800; white-space: nowrap; }
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(64,170,179,.18), transparent);
  animation: scan 4.5s linear infinite;
}
@keyframes scan { to { top: 100%; } }

/* ---------- Lista con checks ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: rgba(64,170,179,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d97a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.stat { padding: 34px 26px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: var(--track-title); background: var(--grad-brand-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--color-text-muted); font-size: .9375rem; line-height: 1.45; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Pilares interactivos (tabs) ---------- */
.tabs { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: stretch; }
.tabs__list { display: grid; gap: 12px; align-content: start; }
.tab {
  position: relative; text-align: left; display: flex; gap: 16px; align-items: center; padding: 20px 22px;
  border-radius: 16px; border: 1px solid transparent; background: #fff; color: var(--color-text-strong); box-shadow: var(--shadow);
  font: inherit; font-weight: 700; font-size: var(--text-body); line-height: 1.3; cursor: pointer; overflow: hidden;
  transition-property: background-color, border-color, scale; transition-duration: var(--dur-fast); transition-timing-function: var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tab small { display: block; font-weight: 700; color: var(--color-text-subtle); font-size: .75rem; letter-spacing: var(--track-label); margin-bottom: 2px; }
.tab:not(:disabled):active { scale: .96; }
.tab .card__icon { width: 46px; height: 46px; margin: 0; flex: none; border-radius: 12px; }
.tab .card__icon svg { width: 24px; height: 24px; }
.tab::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad-brand); scale: 1 0; transition: scale var(--dur) var(--ease); }
.tab[aria-selected="true"] { background: #f0f9fa; border-color: var(--teal-500); }
.tab[aria-selected="true"]::after { scale: 1 1; }

.tabs__panel {
  position: relative; border-radius: 22px; padding: clamp(28px, 4vw, 50px); overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
  min-height: 340px;
}
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { font-size: var(--text-subtitle); color: var(--color-text-strong); }
.tabs__panel p { color: var(--color-text-muted); }
.tabs__panel p { font-size: 1.125rem; max-width: 60ch; }
.tabs__panel .big-num { position: absolute; right: 20px; bottom: -40px; font-size: 13.75rem; font-weight: 800; line-height: 1; color: rgba(64,170,179,.08); pointer-events: none; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { font-weight: 600; font-size: var(--text-caption); line-height: 1.3; white-space: nowrap; padding: 7px 13px; border-radius: 999px; background: rgba(64,170,179,.12); color: var(--color-accent-text); border: 1px solid rgba(64,170,179,.25); }
.chip--light { background: var(--indigo-100); color: var(--indigo-800); border-color: transparent; }
@media (max-width: 900px) { .tabs { grid-template-columns: 1fr; } }

/* ---------- Diagrama de 3 perspectivas ---------- */
.triad { position: relative; aspect-ratio: 1; max-width: 480px; margin-inline: auto; width: 100%; }
.triad svg { width: 100%; height: 100%; overflow: visible; }
.triad .node { cursor: pointer; transition: transform .3s var(--ease); transform-box: fill-box; transform-origin: center; }
.triad .node.is-active { transform: scale(1.06); }
.triad .node circle.bg { fill: #fff; filter: drop-shadow(0 8px 16px rgba(18,5,63,.12)); stroke: rgba(92,198,205,.5); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.triad .node.is-active circle.bg { fill: #effafb; stroke: var(--teal-400); stroke-width: 2.5; }
.triad text { fill: var(--indigo-800); font-family: var(--font); font-weight: 700; font-size: 15px; text-anchor: middle; }
.triad .node { color: var(--color-accent-text); }
.triad .core text { fill: #fff; }
.triad .core text { font-size: 13px; }
.triad .link { stroke: rgba(92,198,205,.5); stroke-width: 1.5; stroke-dasharray: 6 8; animation: dash 1.5s linear infinite; fill: none; }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* ---------- Escala de madurez ---------- */
.maturity { position: relative; }
.maturity__track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.level {
  position: relative; text-align: left; padding: 22px 20px 20px; border-radius: 16px; border: 1px solid transparent;
  background: #fff; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--shadow);
  transition-property: transform, box-shadow, scale; transition-duration: var(--dur); transition-timing-function: var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.level:not(:disabled):active { scale: .96; }
.level__bar { height: 8px; border-radius: 8px; background: var(--indigo-100); margin-bottom: 18px; overflow: hidden; }
.level__bar i { display: block; height: 100%; width: var(--w); background: var(--lvl-color); border-radius: 8px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.is-visible .level__bar i { transform: scaleX(1); }
.level b { display: block; overflow-wrap: anywhere; font-size: var(--text-heading); line-height: var(--lh-heading); color: var(--color-text-strong); }
.level small { font-weight: 700; color: var(--color-text-subtle); font-size: .75rem; letter-spacing: var(--track-label); }

.level[aria-selected="true"] { border-color: var(--lvl-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lvl-color) 25%, transparent), var(--shadow); }
.maturity__detail {
  display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; padding: 34px;
  border-radius: 22px; background: #fff; color: var(--color-text-strong); box-shadow: var(--shadow-lg);
}
.gauge { position: relative; width: 180px; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 12; }
.gauge .g-bg { stroke: var(--indigo-100); }
.gauge .g-fg { stroke: var(--lvl-color, var(--teal-500)); stroke-linecap: round; transition: stroke-dashoffset 400ms var(--ease), stroke var(--dur) var(--ease); }
.gauge span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 600; font-size: var(--text-caption); color: var(--color-text-subtle); }
.gauge span b { display: block; font-size: 2.5rem; font-weight: 800; color: var(--color-text-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.maturity__detail h3 { font-size: var(--text-subtitle); color: var(--color-text-strong); }
.maturity__detail p { color: var(--color-text-muted); font-size: 1.125rem; margin-bottom: 0; max-width: 62ch; }
@media (max-width: 860px) { .maturity__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } .maturity__detail { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---------- Servicios (portafolio) ---------- */
.service {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; align-items: start;
  padding: 36px 34px; border-radius: 22px; background: #fff; border: 1px solid transparent; box-shadow: var(--shadow);
  transition-property: transform, box-shadow; transition-duration: var(--dur); transition-timing-function: var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.service + .service { margin-top: 20px; }
.service::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-brand); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-enter) var(--ease); }


.service__num { font-size: 2.75rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad-brand-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service h3 { font-size: var(--text-subtitle); color: var(--color-text-strong); }
.service p { color: var(--color-text-muted); max-width: 68ch; }
.service .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-enter) var(--ease); }
.service .more > div { overflow: hidden; }
.service.is-open .more { grid-template-rows: 1fr; }
.service__toggle { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 700; color: var(--color-accent-text); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 12px; -webkit-tap-highlight-color: transparent; }
.service__toggle svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.service.is-open .service__toggle svg { transform: rotate(180deg); }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; gap: 12px; padding: 28px 24px; } .service .btn { justify-self: start; } }

/* ---------- Toolkit ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.search {
  position: relative; flex: 1 1 280px; max-width: 420px;
}
.search input {
  width: 100%; padding: 15px 18px 15px 48px; border-radius: 999px; border: 1px solid rgba(18,5,63,.25); background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); caret-color: var(--color-accent-text);
  transition-property: border-color, box-shadow; transition-duration: var(--dur); transition-timing-function: var(--ease);
}
.search input::placeholder { color: var(--color-text-subtle); opacity: 1; }
.search input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(64,170,179,.18); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--color-text-subtle); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(18,5,63,.25); background: #fff; font: inherit; font-weight: 700; font-size: .875rem; line-height: 1.3;
  color: var(--indigo-800); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition-property: background-color, border-color, color, scale; transition-duration: var(--dur-fast); transition-timing-function: var(--ease);
}

.filter:not(:disabled):active { scale: .96; }
.filter[aria-pressed="true"] { background: var(--indigo-800); color: #fff; border-color: var(--indigo-800); }
.tool {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid transparent; box-shadow: var(--shadow);
  transition-property: transform, box-shadow; transition-duration: var(--dur); transition-timing-function: var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.tool::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(300px circle at var(--mx,50%) var(--my,50%), rgba(64,170,179,.14), transparent 50%); }


.tool__top { display: flex; justify-content: space-between; align-items: center; }
.tool__logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--color-accent-text); background: linear-gradient(135deg, #e3f5f6, #ece8fd); font-size: .875rem; }
.tool__ext { width: 20px; height: 20px; color: var(--color-text-subtle); transition-property: transform, color; transition-duration: var(--dur-fast); transition-timing-function: var(--ease); }

.tool h3 { font-size: var(--text-heading); line-height: var(--lh-heading); font-weight: 700; letter-spacing: 0; margin: 6px 0 0; color: var(--color-text-strong); }
.tool p { margin: 0; color: var(--color-text-muted); font-size: 1rem; line-height: 1.5; }
.tool .chip { align-self: flex-start; margin-top: auto; }
.tool.is-hidden { display: none; }
.hint { margin-top: 14px; font-weight: 600; font-size: var(--text-caption); color: var(--color-text-subtle); }
.link-arrow.is-muted { color: var(--color-text-subtle); }
@media (max-width: 640px) { h3 { line-height: 1.4; } }
.empty-state { display: none; text-align: center; padding: 40px; color: var(--color-text-muted); }
.tool-count { font-weight: 600; font-size: var(--text-caption); color: var(--color-text-subtle); margin: -14px 0 20px; font-variant-numeric: tabular-nums; }
.empty-state.is-shown { display: block; }

.doc {
  display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: 18px; background: #fff;
  border: 1px solid transparent; color: var(--color-text-strong); box-shadow: var(--shadow);
  transition-property: background-color, border-color, transform; transition-duration: var(--dur); transition-timing-function: var(--ease);
}

.doc__icon { flex: none; width: 58px; height: 70px; border-radius: 8px 18px 8px 8px; display: grid; place-items: center; background: var(--indigo-800); color: #fff; font-weight: 800; font-size: var(--text-caption); }
.doc b { display: block; font-size: var(--text-body); line-height: 1.4; margin-bottom: 4px; }
.doc div span { display: block; font-weight: 700; font-size: .8125rem; color: var(--color-accent-text); }

/* ---------- Blog ---------- */
.post {
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid transparent; box-shadow: var(--shadow);
  transition-property: transform, box-shadow; transition-duration: var(--dur); transition-timing-function: var(--ease); height: 100%;
}

.post__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }

.post__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post h3 { font-size: var(--text-heading); line-height: var(--lh-heading); font-weight: 700; letter-spacing: 0; color: var(--color-text-strong); margin: 0; }
.post p { color: var(--color-text-muted); margin: 0; }
.post .link-arrow { margin-top: auto; }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; font-size: .75rem; color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: var(--track-label); }

/* ---------- CTA banda ---------- */
.cta-band {
  position: relative; border-radius: 30px; padding: clamp(40px, 6vw, 70px); overflow: hidden; color: var(--color-text-strong);
  background: var(--grad-tint); box-shadow: var(--shadow); isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(92,198,205,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(92,198,205,.15) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%);
}
.cta-band__grid { display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; }
.cta-band h2 { font-size: var(--text-title); }
.cta-band p { color: var(--color-text-muted); font-size: 1.125rem; margin: 0; max-width: 56ch; }
@media (max-width: 860px) { .cta-band__grid { grid-template-columns: 1fr; } }

/* ---------- Radar / visual autodiagnóstico ---------- */
.radar { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin-inline: auto; border-radius: 50%;
  background: radial-gradient(circle, rgba(64,170,179,.12) 0 1px, transparent 1px 100%), repeating-radial-gradient(circle, transparent 0 46px, rgba(64,170,179,.28) 46px 47px), radial-gradient(circle, #ffffff, #e6f4f6);
  box-shadow: 0 0 0 1px rgba(64,170,179,.3), var(--shadow-lg); overflow: hidden; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(64,170,179,.35), transparent 22%); animation: spin 4s linear infinite; }
.radar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(64,170,179,.3), rgba(64,170,179,.3)) center/1px 100% no-repeat, linear-gradient(rgba(64,170,179,.3), rgba(64,170,179,.3)) center/100% 1px no-repeat; }
.blip { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 14px 3px rgba(64,170,179,.6); animation: blip 4s infinite; z-index: 1; }
.blip::after { content: attr(data-label); position: absolute; left: 16px; top: -6px; font-weight: 700; font-size: .8125rem; color: var(--color-accent-text); white-space: nowrap; }
@keyframes blip { 0%, 100% { opacity: .25; transform: scale(.8); } 10% { opacity: 1; transform: scale(1.3); } }

/* ---------- Pasos ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding: 22px 24px 22px 78px; border-radius: 16px; background: #fff; border: 1px solid transparent; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 22px; top: 20px; font-weight: 800; font-size: 1.375rem; line-height: 1.2; color: var(--color-accent-text); font-variant-numeric: tabular-nums; }
.step b { display: block; color: var(--color-text-strong); font-size: 1.125rem; line-height: 1.4; margin-bottom: 4px; }
.step p { margin: 0; color: var(--color-text-muted); }

/* ---------- Embed ---------- */
.embed { position: relative; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid transparent; box-shadow: var(--shadow-lg); }
.embed iframe { display: block; width: 100%; height: 1500px; border: 0; }
.embed__bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--paper-2); color: var(--color-text-subtle); font-weight: 600; font-size: .8125rem; }
.embed__bar i { width: 10px; height: 10px; border-radius: 50%; }
.embed__bar i:first-child { background: #ff6b81; } .embed__bar i:nth-child(2) { background: #ffc857; } .embed__bar i:nth-child(3) { background: var(--teal-500); }
.embed__bar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Banner Guatemala ---------- */
.gt-strip { position: relative; min-height: clamp(180px, 22vw, 280px); overflow: hidden; border-radius: 24px; display: grid; align-items: center; }
/* La ilustración se ancla a la derecha a toda altura; la izquierda queda libre para el texto */
.gt-strip img { position: absolute; top: 0; right: 0; width: auto; max-width: none; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.gt-strip { background: var(--paper-2); box-shadow: var(--shadow); }
.gt-strip img { transition: transform 1.2s var(--ease); }

.gt-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.75) 42%, rgba(255,255,255,0) 68%); }
.gt-strip__text { position: relative; z-index: 1; padding: 28px clamp(20px, 4vw, 50px); color: var(--color-text-strong); max-width: 600px; }
.gt-strip__text h3 { font-size: var(--text-subtitle); margin: 0; }
.flag-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; width: 90px; margin-bottom: 16px; box-shadow: 0 0 0 1px rgba(18,5,63,.12); }
.flag-bar i { flex: 1; } .flag-bar i:nth-child(odd) { background: #4997d0; } .flag-bar i:nth-child(2) { background: #fff; }

.quote {
  position: relative; margin: 0; padding: 40px 40px 40px 90px; border-radius: 22px; background: var(--paper-2); font-size: 1.25rem; line-height: 1.55; color: var(--color-text-strong);
}
.quote::before { content: "“"; position: absolute; left: 26px; top: 6px; font-size: 6.875rem; line-height: 1; font-weight: 800; background: var(--grad-brand-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 600px) { .quote { padding: 70px 26px 30px; } }

/* ---------- Gráficos de sensibilización ---------- */
.aware { position: relative; aspect-ratio: 1; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff; isolation: isolate; background: var(--indigo-800); transition: transform var(--dur) var(--ease); }

.aware::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); opacity: .9; }
.aware svg { position: absolute; top: 22px; right: 22px; width: 64px; height: 64px; color: var(--teal-300); }
.aware b { font-size: var(--text-heading); line-height: var(--lh-heading); text-wrap: balance; }
.aware span { font-weight: 600; font-size: .75rem; color: rgba(255,255,255,.8); margin-top: 6px; }

/* ---------- Privacidad ---------- */
.prose { max-width: 66ch; }
.prose h2 { font-size: var(--text-subtitle); line-height: var(--lh-subtitle); letter-spacing: var(--track-subtitle); color: var(--color-text-strong); margin-top: 1.6em; }
.prose p, .prose li { color: var(--color-text-muted); font-size: 1.125rem; }
.prose a { color: var(--color-accent-text); text-decoration: underline; }
.prose ol { padding-left: 1.2em; display: grid; gap: 10px; }
.toc { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 6px; padding: 22px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line); }
.toc b { font-weight: 700; font-size: .75rem; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-text-subtle); margin-bottom: 6px; }
.toc a { padding: 8px 12px; border-radius: 10px; font-weight: 700; color: var(--indigo-800); font-size: .9375rem; line-height: 1.4; transition-property: background-color, color; transition-duration: var(--dur-fast); transition-timing-function: var(--ease); }
.toc a.is-active { background: #fff; color: var(--color-accent-text); }
.prose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; align-items: start; }
@media (max-width: 900px) { .prose-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; order: -1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-950); color: var(--color-on-dark-muted); padding: 80px 0 30px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--grad-brand); opacity: .6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: var(--text-caption); line-height: 1.45; letter-spacing: var(--track-label); text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { transition: color var(--dur-fast) var(--ease); }

.footer-brand p { margin-top: 18px; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition-property: background-color, color, transform; transition-duration: var(--dur-fast); transition-timing-function: var(--ease); }

.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); font-size: .875rem; }
.footer-bottom .mono { font-weight: 500; font-size: .75rem; color: var(--color-on-dark-subtle); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--indigo-800); color: var(--teal-400); display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); pointer-events: none; -webkit-tap-highlight-color: transparent;
  transition-property: opacity, transform, background-color, color, scale; transition-duration: var(--dur); transition-timing-function: var(--ease);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }

.to-top:active { scale: .96; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(12px); filter: blur(4px);
  transition-property: opacity, transform, filter; transition-duration: var(--dur-enter); transition-timing-function: var(--ease); transition-delay: var(--d, 0s); }
.reveal--left { transform: translateX(-16px); }
.reveal--right { transform: translateX(16px); }
.reveal--zoom { transform: scale(.98); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- Marquesina ---------- */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: #fff; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 50px; width: max-content; animation: marquee 40s linear infinite; }

.marquee span { display: inline-flex; align-items: center; gap: 14px; color: var(--color-text-muted); font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: var(--track-label); white-space: nowrap; }
.marquee span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal-500); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Créditos de imágenes ---------- */
.credits { font-size: .8125rem; color: var(--color-text-subtle); margin-top: 10px; }
.credits a { text-decoration: underline; }

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

/* ---------- Hover solo en punteros con hover (better-ui) ---------- */
@media (hover: hover) {
  .lang-switch a:not([aria-current="true"]):hover { color: var(--color-text-strong); background: #fff; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(64,170,179,.65); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal-500), 0 14px 30px -14px rgba(64,170,179,.6); }
  .btn--line:hover { --bg: var(--teal-500); --fg: var(--indigo-900); box-shadow: 0 10px 24px -10px rgba(64,170,179,.6); }
  .btn--dark:hover { box-shadow: 0 14px 30px -10px rgba(18,5,63,.6); }
  .link-arrow:hover svg { transform: translateX(5px); }
  .menu a:hover { color: var(--color-text-strong); }
  .menu a:hover::after { transform: scaleX(1); }
  .breadcrumb a:hover { color: var(--color-accent-text); }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .card:hover::before { opacity: 1; }
  .media:hover img { transform: scale(1.05); }
  .tab:hover { border-color: rgba(92,198,205,.4); }
  .triad .node:hover { transform: scale(1.06); }
  .level:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .service:hover { box-shadow: var(--shadow-lg); transform: translateX(4px); }
  .service:hover::before { transform: scaleY(1); }
  .filter:hover { border-color: var(--teal-500); }
  .tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .tool:hover::before { opacity: 1; }
  .tool:hover .tool__ext { transform: translate(2px, -2px); color: var(--color-accent-text); }
  .doc:hover { border-color: var(--teal-500); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
  .post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .post:hover .post__media img { transform: scale(1.07); }
  .gt-strip:hover img { transform: scale(1.04); }
  .aware:hover { transform: translateY(-4px); }
  .toc a:hover { background: #fff; color: var(--color-accent-text); }
  .site-footer a:hover { color: var(--teal-400); }
  .social a:hover { background: var(--teal-500); color: var(--indigo-900); transform: translateY(-3px); }
  .to-top:hover { background: var(--teal-500); color: var(--indigo-900); }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
