/* ==========================================================================
   Fundación ASEDTECH — Edición LegalTech & Educación (Optimizada GPU/CPU)
   Tipografía: Rajdhani (Display/Tech) + Inter (UI/Body)
   - Animaciones 100% compositor-only (transform / opacity)
   - Pausado automático fuera de pantalla (.in-view via IntersectionObserver)
   - content-visibility: auto en secciones fuera de vista inicial
   - Patrones CSS/SVG sutiles con simbolismo LegalTech + Educación + Comunidad
   ========================================================================== */

:root {
  /* Paleta actual preservada — lista para actualizar con colores Maxwell */
  --brand-primary: #1c5bea;
  --brand-primary-dark: #1449c7;
  --brand-primary-tint: rgba(28, 91, 234, 0.055);
  --brand-primary-border: rgba(28, 91, 234, 0.22);

  --brand-accent: #e64577;
  --brand-accent-cta: #e4336a;
  --brand-accent-hover: #cf2459;
  --brand-accent-tint: rgba(230, 69, 119, 0.08);

  --surface-dark: #0f172a;
  --surface-dark-2: #16213a;

  --bg-white: #ffffff;
  --bg-muted: #f7f8fc;
  --text-heading: #111827;
  --text-body: #475569;
  --text-muted: #64748b;
  --border-light: #e2e8f0;

  --font-display: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 30px;

  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 22px 54px rgba(28, 91, 234, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Keyframes 100% GPU Compositor (solo transform) + Pausa fuera de pantalla
   ========================================================================== */
@keyframes moveDot {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(38px, 0, 0); }
}

@keyframes floatBob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -9px, 0); }
}

@keyframes floatSway {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -7px, 0) rotate(0.75deg); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Control inteligente: toda animación continua inicia pausada y corre SOLO cuando .in-view está activo */
[data-anim-scope] .eyebrow-tech::after,
[data-anim-scope] .hero__card-main,
[data-anim-scope] .hero__float-chip,
[data-anim-scope] .play-orbit-btn__ring,
[data-anim-scope] .about-floating-tag {
  animation-play-state: paused;
}

[data-anim-scope].in-view .eyebrow-tech::after,
[data-anim-scope].in-view .hero__card-main,
[data-anim-scope].in-view .hero__float-chip,
[data-anim-scope].in-view .play-orbit-btn__ring,
[data-anim-scope].in-view .about-floating-tag {
  animation-play-state: running;
}

/* Cuando la pestaña del navegador está oculta, todo se congela en 0% CPU */
body.is-tab-hidden * {
  animation-play-state: paused !important;
}

/* ==========================================================================
   Patrones CSS / SVG Sutiles (Simbolismo LegalTech, Educación y Comunidad)
   Ultra-livianos: cero DOM extra, cero blur pesado, opacidad arquitectónica
   ========================================================================== */

/* 1. Patrón Blueprint Educativo + Nodos Digitales (Nosotros) */
.pattern-nodes {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%231c5bea' stroke-opacity='0.065' stroke-width='1'%3E%3Cpath d='M32 28v8M28 32h8'/%3E%3Ccircle cx='32' cy='32' r='1.5' fill='%23e64577' fill-opacity='0.14' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
}

/* 2. Patrón Hexagonal / Malla LegalTech (Formación ETDH) */
.pattern-legaltech {
  background-image:
    radial-gradient(circle at 92% 12%, rgba(28, 91, 234, 0.06), transparent 32%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='72' viewBox='0 0 84 72'%3E%3Cpath d='M21 0h42l21 36-21 36H21L0 36z' fill='none' stroke='%231c5bea' stroke-opacity='0.05' stroke-width='1'/%3E%3Ccircle cx='21' cy='0' r='1.6' fill='%231c5bea' fill-opacity='0.09'/%3E%3Ccircle cx='63' cy='72' r='1.6' fill='%23e64577' fill-opacity='0.11'/%3E%3C/svg%3E");
  background-size: 100% 100%, 84px 72px;
}

/* 3. Patrón de Ondas de Liderazgo y Alcance Comunitario (Liderazgo / Impacto) */
.pattern-ripples {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%231c5bea' stroke-opacity='0.05' stroke-width='1'%3E%3Ccircle cx='420' cy='0' r='110'/%3E%3Ccircle cx='420' cy='0' r='185' stroke-dasharray='4 6'/%3E%3Ccircle cx='420' cy='0' r='260' stroke='%23e64577' stroke-opacity='0.055'/%3E%3Ccircle cx='420' cy='0' r='340'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top right;
}

/* 4. Marca de agua arquitectónica sutil (Balanza LegalTech + Circuito) en el Hero */
.hero__watermark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Secciones con content-visibility para ahorrar renderizado fuera de vista
   ========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
  overflow-x: clip;
}

.section--defer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

.section--muted {
  background-color: var(--bg-muted);
}

.section--white {
  background-color: var(--bg-white);
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 2.95rem);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ==========================================================================
   Tipografía y Eyebrow Animado
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.15;
  margin: 0 0 14px;
}

p {
  margin: 0 0 16px;
}

.eyebrow-tech {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 60px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 12px;
}

.eyebrow-tech::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-primary);
}

.eyebrow-tech::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -4.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 2px var(--bg-white);
  animation: moveDot 2.8s linear infinite alternate;
}

.eyebrow-tech--light {
  color: #ffd1e0;
}

.eyebrow-tech--light::before {
  background: rgba(255, 255, 255, 0.45);
}

.eyebrow-tech--light::after {
  background: var(--bg-white);
  box-shadow: none;
}

/* ==========================================================================
   Botones Píldora con Barrido GPU (transform: scaleX en vez de width)
   ========================================================================== */
.btn-wipe {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow: hidden;
  z-index: 1;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.25s var(--ease);
}

.btn-wipe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface-dark);
  z-index: -1;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.38s var(--ease);
}

.btn-wipe:hover::before {
  transform: scaleX(1);
}

.btn-wipe:hover {
  transform: translateY(-2px);
}

.btn-wipe--pink {
  background: var(--brand-accent-cta);
  color: var(--bg-white);
}

.btn-wipe--blue {
  background: var(--brand-primary);
  color: var(--bg-white);
}

.btn-wipe--outline {
  background: transparent;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-wipe--outline:hover {
  color: var(--bg-white);
  border-color: var(--surface-dark);
}

.btn-wipe--sm {
  height: 42px;
  padding: 0 22px;
  font-size: 13px;
}

/* ==========================================================================
   Header Transparente -> Sticky
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 91, 234, 0.10);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: var(--bg-white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(28, 91, 234, 0.24);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.02em;
}

.brand__name span {
  color: var(--brand-accent);
}

.brand__sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-heading);
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand-accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.26s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--brand-primary);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-heading);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Tecnológico (Patrón de circuito sutil + Balanza LegalTech marca de agua)
   ========================================================================== */
.hero {
  position: relative;
  padding: 150px 0 132px;
  background:
    radial-gradient(circle at 86% 20%, rgba(28, 91, 234, 0.11), transparent 42%),
    radial-gradient(circle at 10% 82%, rgba(230, 69, 119, 0.09), transparent 38%),
    var(--bg-muted);
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(28, 91, 234, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 91, 234, 0.045) 1px, transparent 1px),
    radial-gradient(circle, rgba(28, 91, 234, 0.16) 1.2px, transparent 1.2px);
  background-size: 48px 48px, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, -1px -1px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 100%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 52px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.65rem, 5vw, 3.95rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--brand-primary);
}

.hero__subtitle {
  font-size: 16.5px;
  color: var(--text-body);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  position: relative;
}

.hero__card-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--brand-primary-border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-white);
  animation: floatSway 6s ease-in-out infinite;
}

.hero__card-main img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}

.hero__float-chip {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: var(--bg-white);
  border: 1px solid var(--brand-primary-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 300px;
  animation: floatBob 4.5s ease-in-out infinite;
}

.hero__float-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-accent-tint);
  color: var(--brand-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero__float-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.15;
}

.hero__float-chip span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Franja Destacada Superpuesta
   ========================================================================== */
.overlap-strip-wrap {
  position: relative;
  z-index: 10;
  margin-top: -54px;
  padding-bottom: 12px;
}

.overlap-strip {
  background: var(--brand-primary);
  color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px 36px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.overlap-strip__lead h2 {
  color: var(--bg-white);
  font-size: 26px;
  margin: 0;
  line-height: 1.2;
}

.overlap-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.overlap-item__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--bg-white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.overlap-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.overlap-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   ABOUT en 3 Columnas + Tarjetas "Identifying Threats" (GPU scaleY)
   ========================================================================== */
.about-3col {
  display: grid;
  grid-template-columns: 0.92fr 1.16fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.about-photo-col {
  position: relative;
}

.framed-photo {
  position: relative;
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease);
}

.framed-photo::after {
  content: '';
  position: absolute;
  inset: 14px -12px -14px 12px;
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-md);
  z-index: 0;
  pointer-events: none;
}

.framed-photo--pink::after {
  border-color: var(--brand-accent);
  inset: 14px 12px -14px -12px;
}

.framed-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.framed-photo:hover {
  transform: rotate(2.5deg);
}

.framed-photo--pink:hover {
  transform: rotate(-2.5deg);
}

.play-orbit-btn {
  position: relative;
  margin: 28px auto 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--bg-white);
  border: none;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(230, 69, 119, 0.32);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.play-orbit-btn:hover {
  transform: scale(1.06);
  background: var(--brand-primary);
}

.play-orbit-btn__ring {
  position: absolute;
  inset: 6px;
  animation: spinSlow 14s linear infinite;
}

.play-orbit-btn__center {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-white);
  color: var(--brand-accent);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.about-floating-tag {
  margin-top: 28px;
  background: var(--bg-white);
  border: 1px solid var(--brand-primary-border);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  animation: floatBob 5s ease-in-out infinite;
}

.about-floating-tag strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-heading);
}

.about-floating-tag span {
  font-size: 13px;
  color: var(--text-muted);
}

/* TARJETAS ESTILO "IDENTIFYING THREATS" (100% GPU scaleY, cero reflow) */
.threat-stack {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.threat-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--brand-primary-tint);
  border: 1px solid var(--brand-primary-border);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.3s var(--ease);
}

.threat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface-dark);
  z-index: -1;
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 0.44s var(--ease);
}

.threat-card:hover {
  border-color: var(--surface-dark);
  transform: translateY(-2px);
}

.threat-card:hover::before {
  transform: scaleY(1);
}

.threat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(28, 91, 234, 0.12);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.42s var(--ease), background-color 0.38s ease, color 0.38s ease;
}

.threat-card:hover .threat-card__icon {
  transform: scaleX(-1);
  background: var(--brand-accent);
  color: var(--bg-white);
}

.threat-card h3 {
  font-size: 21px;
  margin-bottom: 6px;
  transition: color 0.32s ease;
}

.threat-card p {
  font-size: 14px;
  margin: 0;
  color: var(--text-body);
  transition: color 0.32s ease;
}

.threat-card:hover h3 {
  color: var(--bg-white);
}

.threat-card:hover p {
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   Formación ETDH — Tarjetas de Servicios (GPU scaleY)
   ========================================================================== */
.legal-strip {
  background: var(--bg-white);
  border: 1px solid var(--brand-primary-border);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  margin-bottom: 36px;
  font-size: 14px;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  z-index: 1;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--surface-dark-2) 0%, var(--surface-dark) 100%);
  z-index: -1;
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 0.46s var(--ease);
}

.service-card:hover {
  border-color: var(--surface-dark);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: var(--brand-primary-tint);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.44s var(--ease);
}

.service-card:hover .service-card__icon {
  background: var(--brand-accent);
  color: var(--bg-white);
  transform: scaleX(-1);
}

.service-card__meta {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-accent);
  background: var(--brand-accent-tint);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin: 0 auto 14px;
  transition: background-color 0.32s ease, color 0.32s ease;
}

.service-card:hover .service-card__meta {
  background: rgba(255, 255, 255, 0.14);
  color: #ffd1e0;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  transition: color 0.32s ease;
}

.service-card p {
  font-size: 14.5px;
  color: var(--text-body);
  margin-bottom: 20px;
  transition: color 0.32s ease;
}

.service-card:hover h3 {
  color: var(--bg-white);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.8);
}

.service-card__specs {
  list-style: none;
  padding: 14px 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
  display: grid;
  gap: 6px;
  transition: border-color 0.32s ease, color 0.32s ease;
}

.service-card:hover .service-card__specs {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.service-card__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--brand-primary-tint);
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background-color 0.32s ease, color 0.32s ease;
}

.service-card:hover .service-card__btn {
  background: var(--brand-accent-cta);
  color: var(--bg-white);
}

/* ==========================================================================
   Contadores Animados (Count-Up)
   ========================================================================== */
.counters-band {
  padding: 68px 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Ccircle cx='28' cy='28' r='1' fill='%23ffffff' fill-opacity='0.09'/%3E%3C/svg%3E"),
    var(--surface-dark);
  color: var(--bg-white);
}

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

.counter-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, transform 0.28s var(--ease), background-color 0.3s ease;
}

.counter-card:hover {
  border-color: var(--brand-accent);
  background: rgba(28, 91, 234, 0.14);
  transform: translateY(-4px);
}

.counter-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(28, 91, 234, 0.24);
  color: #8bb0ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 0.32s ease, color 0.32s ease, transform 0.42s var(--ease);
}

.counter-card:hover .counter-card__icon {
  background: var(--brand-accent);
  color: var(--bg-white);
  transform: scaleX(-1);
}

.counter-card__value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--bg-white);
  transition: color 0.3s ease;
}

.counter-card:hover .counter-card__value {
  color: #ff80ab;
}

.counter-card__label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
}

/* ==========================================================================
   OUR PROFESSIONALS / Equipo Fundador + Score Dra. Maythe
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 24px;
  margin-bottom: 64px;
}

.pro-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease;
}

.pro-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pro-card__top {
  position: relative;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--brand-primary-tint);
  padding: 20px 22px 26px;
  transition: background-color 0.4s ease;
}

.pro-card:hover .pro-card__top {
  background: var(--brand-primary);
}

.pro-card__top h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 5px;
  transition: color 0.32s ease;
}

.pro-card__top > span:not(.pro-card__plus) {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-muted);
  transition: color 0.32s ease;
}

.pro-card:hover .pro-card__top h3,
.pro-card:hover .pro-card__top > span:not(.pro-card__plus) {
  color: var(--bg-white);
}

.pro-card__top .pro-card__plus {
  position: absolute;
  right: 18px;
  bottom: -22px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--brand-accent);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 24px;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 8px 18px rgba(230, 69, 119, 0.32);
  transition: transform 0.32s var(--ease), background-color 0.32s ease;
}

.pro-card:hover .pro-card__plus {
  background: var(--surface-dark);
  transform: rotate(45deg);
}

.pro-card__media {
  position: relative;
  flex: 1;
  min-height: 250px;
  background: linear-gradient(145deg, #eef2ff 0%, #fce7f3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px 24px;
  overflow: hidden;
}

.pro-card__initials {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--brand-primary-border);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.pro-card__photo-note {
  font-size: 12px;
  color: var(--text-muted);
}

.pro-card__socials {
  position: absolute;
  top: 28px;
  right: 18px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  width: 44px;
  background: var(--surface-dark);
  border-radius: 0 0 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translate3d(0, -18px, 0);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.pro-card:hover .pro-card__socials {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.pro-card__socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--bg-white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.pro-card__socials a:hover {
  background: var(--brand-accent);
}

/* Score completo de la Dra. Maythe (GPU scaleY) */
.maythe-score-box {
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 56px;
}

.score-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.score-threat-card {
  position: relative;
  z-index: 1;
  background: var(--bg-white);
  border: 1px solid var(--brand-primary-border);
  border-radius: var(--radius-md);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.score-threat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface-dark);
  z-index: -1;
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 0.46s var(--ease);
}

.score-threat-card:hover {
  border-color: var(--surface-dark);
}

.score-threat-card:hover::before {
  transform: scaleY(1);
}

.score-threat-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  transition: color 0.32s ease;
}

.score-threat-card:hover h3 {
  color: var(--bg-white);
}

.score-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.score-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-body);
  transition: color 0.32s ease;
}

.score-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.score-list strong {
  color: var(--text-heading);
  transition: color 0.32s ease;
}

.score-threat-card:hover .score-list li {
  color: rgba(255, 255, 255, 0.84);
}

.score-threat-card:hover .score-list strong {
  color: var(--bg-white);
}

/* Galería Filtrable */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-chip {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-heading);
  transition: all 0.22s ease;
}

.filter-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.filter-chip.is-active {
  background: var(--brand-accent-cta);
  border-color: var(--brand-accent-cta);
  color: var(--bg-white);
}

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

.gallery-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-muted);
}

.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s var(--ease);
}

.gallery-item:hover .gallery-item__media img {
  transform: scale(1.04);
}

.gallery-item__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef2ff 0%, #fce7f3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-heading);
}

.gallery-item__placeholder svg {
  color: var(--brand-accent);
}

.gallery-item__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-accent);
  color: var(--bg-white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.gallery-item__body {
  padding: 18px;
}

.gallery-item__body h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.gallery-item__body p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   YouTube RSS Slideshow
   ========================================================================== */
.yt-slideshow {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.yt-main {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.yt-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-dark);
  overflow: hidden;
}

.yt-stage__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s var(--ease);
}

.yt-stage:hover .yt-stage__poster {
  transform: scale(1.03);
}

.yt-stage__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--brand-accent-cta);
  color: var(--bg-white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(228, 51, 106, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.yt-play-btn:hover {
  transform: scale(1.08);
  background: var(--brand-primary);
}

.yt-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-heading);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 3;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.yt-nav-btn:hover {
  background: var(--brand-accent-cta);
  color: var(--bg-white);
}

.yt-nav-btn--prev { left: 14px; }
.yt-nav-btn--next { right: 14px; }

.yt-main__info {
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.yt-main__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 4px;
}

.yt-thumbs {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
  height: 100%;
}

.yt-thumb {
  position: relative;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
}

.yt-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-accent);
  transform: scaleY(0);
  transition: transform 0.24s var(--ease);
}

.yt-thumb:hover {
  transform: translateX(4px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.yt-thumb.is-active {
  border-color: var(--brand-accent);
  background: #fff9fb;
}

.yt-thumb.is-active::after {
  transform: scaleY(1);
}

.yt-thumb__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 96px;
  overflow: hidden;
  background: var(--surface-dark);
}

.yt-thumb__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.yt-thumb:hover .yt-thumb__img-wrap img {
  transform: scale(1.06);
}

.yt-thumb__content {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.yt-thumb__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--bg-white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 3px;
}

.yt-thumb.is-active .yt-thumb__badge {
  background: var(--brand-accent);
}

.yt-thumb__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.24;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-thumb__date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Impacto Social + Contacto + Selector Glassmórfico Personalizado
   ========================================================================== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cta-banner {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 29v6M29 32h6' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--brand-primary) 0%, #103ea8 100%);
  color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.cta-banner h2 {
  color: var(--bg-white);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.86);
}

.cta-meta-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.cta-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cta-form .full {
  grid-column: 1 / -1;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  color: var(--bg-white);
  font-family: var(--font-body);
  font-size: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--bg-white);
}

/* Selector Desplegable Glassmórfico Personalizado (coherente y con transición suave) */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select__trigger {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  color: var(--bg-white);
  font-family: var(--font-body);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-select__trigger:hover,
.custom-select.is-open .custom-select__trigger {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
}

.custom-select__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__chevron {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.24s var(--ease);
}

.custom-select.is-open .custom-select__chevron {
  transform: rotate(180deg);
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px rgba(9, 15, 32, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -8px, 0) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.custom-select.is-open .custom-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.custom-select__option {
  position: relative;
  padding: 10px 12px 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 0.16s ease, color 0.16s ease, padding-left 0.18s var(--ease);
}

.custom-select__option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 2px;
  background: var(--brand-accent);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.custom-select__option:hover,
.custom-select__option.is-focused {
  background: rgba(255, 255, 255, 0.12);
  color: var(--bg-white);
  padding-left: 18px;
}

.custom-select__option:hover::before,
.custom-select__option.is-focused::before,
.custom-select__option.is-selected::before {
  opacity: 1;
}

.custom-select__option.is-selected {
  background: rgba(230, 69, 119, 0.24);
  color: var(--bg-white);
  font-weight: 500;
}

.form-feedback {
  display: none;
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.2);
  color: var(--bg-white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.form-feedback.is-visible {
  display: block;
}

/* ==========================================================================
   Footer & Botón Ir Arriba (solo anima cuando es visible)
   ========================================================================== */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.76);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h4 {
  color: var(--bg-white);
  font-size: 19px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ff80ab;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.56);
}

.go-top-btn {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 900;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--brand-accent-cta);
  color: var(--bg-white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(228, 51, 106, 0.34);
  opacity: 0;
  pointer-events: none;
  animation: floatBob 4.2s ease-in-out infinite;
  animation-play-state: paused;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.go-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation-play-state: running;
}

.go-top-btn:hover {
  background: var(--brand-primary);
}

/* ==========================================================================
   Modal de Malla Curricular
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: none;
  background: var(--bg-muted);
  color: var(--text-heading);
  font-size: 20px;
  display: grid;
  place-items: center;
}

.modal-dialog .eyebrow-tech {
  padding-right: 48px;
  max-width: 100%;
}

.modal-close:hover {
  background: var(--brand-accent);
  color: var(--bg-white);
}

.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.curriculum-table th,
.curriculum-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-light);
}

.curriculum-table th {
  background: var(--bg-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.curriculum-table tfoot td {
  font-weight: 700;
  color: var(--text-heading);
  background: var(--brand-accent-tint);
}

/* Accesibilidad: respeta preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-layout,
  .about-3col,
  .cta-banner,
  .yt-slideshow {
    grid-template-columns: 1fr;
  }

  .overlap-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .overlap-item {
    border-left: none;
    padding-left: 0;
  }

  .programs-grid,
  .counters-grid,
  .team-grid,
  .gallery-grid,
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yt-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    height: auto;
  }

  .yt-thumb {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .yt-thumb__img-wrap {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .yt-thumb:hover {
    transform: translateY(-3px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 14px;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding: 120px 0 96px;
  }

  .hero__float-chip {
    position: static;
    margin-top: 16px;
    max-width: none;
  }

  .score-columns,
  .cta-form {
    grid-template-columns: 1fr;
  }

  .maythe-score-box,
  .cta-banner {
    padding: 28px 20px;
  }

  .about-photo-col {
    padding: 0 10px;
  }

  .framed-photo::after {
    inset: 10px -8px -10px 8px;
  }

  .framed-photo--pink::after {
    inset: 10px 8px -10px -8px;
  }

  .overlap-strip {
    padding: 24px 20px;
  }

  .threat-card {
    padding: 18px;
  }

  .modal-dialog {
    padding: 22px 16px;
  }

  .curriculum-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .go-top-btn {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 640px) {
  .overlap-strip,
  .programs-grid,
  .counters-grid,
  .team-grid,
  .gallery-grid,
  .yt-thumbs,
  .impact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .brand__icon {
    width: 36px;
    height: 36px;
  }

  .brand__name {
    font-size: 20px;
  }

  .brand__sub {
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .eyebrow-tech {
    padding-left: 48px;
    font-size: 14px;
  }

  .eyebrow-tech::before {
    width: 38px;
  }

  .hero__actions .btn-wipe {
    width: 100%;
  }

  .yt-main__info {
    padding: 16px;
  }
}
