/* ═══════════════════════════════════════════════
   DesafIA – styles.css
   Modern, corporate-tech design for DesafIA
═══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────── */
:root {
  --primary-dark: #4b0082;
  --primary-blue: #4169e1;
  --accent-cyan: #00bfff;
  --light-lavender: #ccccff;
  --bg-white: #ffffff;

  /* Derived */
  --gradient-main: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-blue) 50%,
    var(--accent-cyan) 100%
  );
  --gradient-text: linear-gradient(
    90deg,
    var(--primary-dark),
    var(--primary-blue),
    var(--accent-cyan)
  );

  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #8888aa;
  --border-light: rgba(75, 0, 130, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 24px rgba(75, 0, 130, 0.1);
  --shadow-card-hover: 0 16px 40px rgba(75, 0, 130, 0.22);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --container-width: 1200px;
  --container-padding: 1.5rem;
  --navbar-h: 72px;
}

/* ── RESET & BASE ───────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ── CONTAINER ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ── UTILITY: GRADIENT TEXT ─────────────────────── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-light {
  background: linear-gradient(90deg, #e0c0ff, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── REVEAL ANIMATION (JS-driven) ───────────────── */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.96);
  filter: blur(10px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
html.js-ready .reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0) !important;
}

/* ── SECTION HEADER ─────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary-blue);
  background: rgba(65, 105, 225, 0.1);
  border: 1px solid rgba(65, 105, 225, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-tag--light {
  color: var(--light-lavender);
  background: rgba(204, 204, 255, 0.15);
  border-color: rgba(204, 204, 255, 0.3);
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-inline: auto;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.7rem 1.6rem;
}
.btn:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 3px;
}
.btn svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.btn:hover svg {
  transform: translateX(4px);
}

/* Gradient button */
.btn--gradient {
  background: var(--gradient-main);
  color: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0, 191, 255, 0.35);
}
.btn--gradient:hover {
  box-shadow: 0 8px 30px rgba(0, 191, 255, 0.5);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* Cyan button */
.btn--cyan {
  background: var(--accent-cyan);
  color: var(--text-dark);
  box-shadow: 0 2px 12px rgba(0, 191, 255, 0.3);
}
.btn--cyan:hover {
  background: #00d4ff;
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.5);
  transform: translateY(-2px);
}

/* Outline button */
.btn--outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}
.btn--outline:hover {
  background: var(--primary-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* Sizes */
.btn--lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}
.btn--xl {
  padding: 1rem 2.6rem;
  font-size: 1.05rem;
}

/* ════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(75, 0, 130, 0.1);
  background: rgba(255, 255, 255, 0.97);
}
.navbar .container {
  max-width: 1600px;
  width: 100%;
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__logo {
  display: inline-block;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.navbar__logo-img {
  height: clamp(55px, 8vw, 85px);
  width: auto;
  display: block;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}
.navbar__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.navbar__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
  transition:
    left 0.25s ease,
    right 0.25s ease;
}
.navbar__link:hover {
  color: var(--primary-dark);
}
.navbar__link:hover::after {
  left: 0.8rem;
  right: 0.8rem;
}
.navbar__cta {
  margin-inline-start: 1rem;
}

/* Primary CTA button – "Agendar reunión" */
.btn--cta-primary {
  background: linear-gradient(135deg, #4B0082, #4169E1);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(75, 0, 130, 0.35);
}
.btn--cta-primary:hover {
  background: linear-gradient(135deg, #5a0099, #4a78f0);
  box-shadow: 0 6px 20px rgba(75, 0, 130, 0.5);
  transform: translateY(-2px);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-inline-start: auto;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset-block-start: var(--navbar-h);
  inset-inline: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  z-index: 999;
  border-bottom: 1px solid var(--border-light);
  transform: translateY(-110%);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu__link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.6rem 1.2rem;
  width: 100%;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-menu__link:hover {
  background: var(--light-lavender);
  color: var(--primary-dark);
}
.mobile-menu__cta {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}

/* ════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  /* El padding inferior reserva espacio para la franja de logos (marquee) */
  padding-block: calc(var(--navbar-h) + 2rem) calc(3.5rem + 76px);
  overflow: hidden;
  background: #050510;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 5, 16, 0.97) 0%,
    rgba(5, 5, 16, 0.92) 28%,
    rgba(5, 5, 16, 0.68) 52%,
    rgba(5, 5, 16, 0.26) 76%,
    rgba(5, 5, 16, 0.08) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Canvas Animation */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1600px;
}

.hero__content {
  max-width: 48rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__title {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  color: #ffffff;
  filter:
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95))
    drop-shadow(0 4px 16px rgba(0, 0, 0, 0.8));
  overflow: visible;
}

.hero__y {
  font-size: 0.85em;
  display: inline-block;
  margin-top: -0.1em;
  line-height: 1;
}

.gradient-emp {
  font-size: 1.22em;
  display: block;
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
  padding-bottom: 0.08em;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ccccff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none; /* Asegurar que no haya sombras por dentro */
  overflow: visible;
}

/* Hero divider */
.hero__divider {
  width: 4rem;
  height: 2px;
  margin: 1.2rem 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary-blue), transparent);
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.4);
}

/* Hero subtitle */
.hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.4rem;
  max-width: 36rem;
  font-weight: 400;
}

/* Hero chips */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease,
              background-color 0.2s ease,
              color 0.2s ease;
  white-space: nowrap;
}

.hero__chip svg {
  flex-shrink: 0;
  color: #8ab4f8;
  opacity: 0.95;
  transition: color 0.2s ease;
}

.hero__chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.hero__chip:hover svg {
  color: #a8c7fa;
}

@keyframes holo-bg {
  to { background-position: 400% 0; }
}

/* Scroll hint indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollFade 2.5s ease-in-out infinite;
}
.hero__scroll-icon {
  opacity: 0.7;
}
.hero__scroll-dot {
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hero__scroll-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
@keyframes scrollBounce {
  0%, 100% { cy: 10; opacity: 1; }
  50% { cy: 26; opacity: 0.3; }
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Holographic Button */
.btn--holo {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
  text-decoration: none;
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary-blue), var(--primary-dark), var(--accent-cyan));
  background-size: 300% 100%;
  animation: holo-bg 8s linear infinite;
  box-shadow: 0 0 20px rgba(65, 105, 225, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--holo:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(65, 105, 225, 0.6);
  color: white;
}

.holo-outline {
  border-color: rgba(75, 0, 130, 0.3);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.5);
}
.holo-outline:hover {
  background: var(--primary-dark);
  color: var(--bg-white);
  border-color: var(--primary-dark);
}

/* ════════════════════════════════════════════════
   TRUST / SOCIAL PROOF
════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════
   HERO — Marquee de logos (social proof)
════════════════════════════════════════════════ */
.hero__marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  /* Fundido en ambos bordes para entrada/salida suave */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.hero__marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  /* De -50% a 0 => desplazamiento hacia la derecha (entra por izq, sale por der) */
  animation: heroMarquee 38s linear infinite;
  will-change: transform;
}

/* Cada grupo ocupa como mínimo el ancho completo de la pantalla, de modo que
   la franja está LLENA de borde a borde desde el primer frame (no se llena de a poco). */
.hero__marquee-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 3.5rem;
  min-width: 100vw;
  flex: 0 0 auto;
  padding-inline: 2rem;
}

@keyframes heroMarquee {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.hero__marquee-logo {
  height: 38px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
  /* Monocromo blanco translúcido sobre el fondo oscuro del hero */
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .hero__marquee:hover .hero__marquee-track {
    animation-play-state: paused;
  }
  .hero__marquee-logo:hover {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__marquee-track {
    animation: none;
    transform: translate3d(-25%, 0, 0);
  }
}

@media (max-width: 600px) {
  .hero__marquee { bottom: 1rem; }
  .hero__marquee-group { gap: 2rem; padding-inline: 1.25rem; }
  .hero__marquee-logo { height: 28px; }
}

/* ════════════════════════════════════════════════
   VALUE PROP
════════════════════════════════════════════════ */
.value-prop {
  padding-block: 6rem;
  background: #f8f9fc;
  position: relative;
  overflow: hidden;
}

.value-prop__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(65, 105, 225, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.value-prop .container {
  position: relative;
  z-index: 1;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}
.cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Value cards */
.value-card--glass {
  background-image: linear-gradient(145deg, #0a2540 0%, #06182c 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  box-shadow: 0 8px 32px rgba(10, 37, 64, 0.12);
  padding: 0;
  isolation: isolate;
}

.value-card--glass:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(10, 37, 64, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Accent glow strip at top of each card */
.value-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 4;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
}
.value-card__accent--cyan {
  background: linear-gradient(90deg, var(--accent-cyan), rgba(0, 191, 255, 0.3));
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}
.value-card__accent--blue {
  background: linear-gradient(90deg, var(--primary-blue), rgba(65, 105, 225, 0.3));
  box-shadow: 0 0 20px rgba(65, 105, 225, 0.3);
}
.value-card__accent--purple {
  background: linear-gradient(90deg, #8b5cf6, rgba(139, 92, 246, 0.3));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.value-card--glass:hover .value-card__accent {
  height: 4px;
  opacity: 1;
}

/* Card canvas animation background – sits ABOVE overlay, below text */
.value-card__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}

/* Dark overlay so text remains readable */
.value-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    160deg,
    rgba(6, 24, 44, 0.7) 0%,
    rgba(6, 24, 44, 0.42) 50%,
    rgba(6, 24, 44, 0.66) 100%
  );
  pointer-events: none;
  transition: background 0.4s ease;
}

.value-card--glass:hover .value-card__overlay {
  background: linear-gradient(
    160deg,
    rgba(6, 24, 44, 0.62) 0%,
    rgba(6, 24, 44, 0.28) 50%,
    rgba(6, 24, 44, 0.55) 100%
  );
}

.value-card__content {
  position: relative;
  z-index: 5;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  text-align: left;
}

.value-card__highlight {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #dbe2f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  display: block;
}

.value-card__title {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ════════════════════════════════════════════════
   PROGRAMS
════════════════════════════════════════════════ */
.programs {
  padding-block: 6rem;
  background: #f8f9fc;
  position: relative;
  overflow: hidden;
}
.programs__bg-blob {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(75, 0, 130, 0.08) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Program cards */
.program-card {
  background: #14141a;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 10px 30px rgba(75, 0, 130, 0.1);
  color: #fff;
  font-family: "Manrope", "Inter", sans-serif;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(75, 0, 130, 0.2);
  border-color: rgba(255, 255, 255, 0.15);
}

.program-card__banner {
  border-radius: 20px;
  padding: 1.5rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.program-card__banner--1 {
  background-image: linear-gradient(to top, rgba(8, 12, 35, 0.5), rgba(8, 12, 35, 0.05) 55%, rgba(8, 12, 35, 0) 80%), url("assets/imagenes/programa1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.program-card__banner--2 {
  background-image: linear-gradient(to top, rgba(8, 12, 35, 0.5), rgba(8, 12, 35, 0.05) 55%, rgba(8, 12, 35, 0) 80%), url("assets/imagenes/programa2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.program-card__banner--3 {
  background-image: linear-gradient(to top, rgba(8, 12, 35, 0.5), rgba(8, 12, 35, 0.05) 55%, rgba(8, 12, 35, 0) 80%), url("assets/imagenes/programa3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.program-card__badge {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  width: fit-content;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.program-card__price {
  font-size: clamp(4.5rem, 7vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,0.15);
  line-height: 0.85;
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}
.program-card__duration {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  opacity: 0.95;
  letter-spacing: normal;
  margin-left: 0.4rem;
}

.program-card__body {
  padding: 0 0.5rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-card__title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.3rem;
  font-family: inherit;
}

.program-card__meta {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.program-card__objetivo {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.program-card__objetivo strong,
.program-card__meta strong {
  color: #fff;
  font-weight: 700;
}

.program-card__button {
  margin-top: auto;
  margin-bottom: 0.4rem;
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
  transition: all 0.3s ease;
}
.btn--solid-white {
  background: #fff;
  color: #111;
  border-radius: 99px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255,255,255,0.05);
  border: none;
}
.btn--solid-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

.program-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
}

.program-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  font-weight: 500;
}

.program-card__features svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ════════════════════════════════════════════════
   CTA FINAL
════════════════════════════════════════════════ */
.cta-final {
  padding-block: 6.5rem;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.cta-final::before,
.cta-final::after {
  display: none;
}
.cta-final__glow {
  display: none;
}
.cta-final__inner {
  position: relative;
  z-index: 1;
}
.cta-final__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 18px 3px rgba(60, 64, 67, 0.15);
}
.cta-final__shell::before,
.cta-final__shell::after {
  display: none;
}
.cta-final__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1.1rem;
}
.cta-final__title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1f1f1f;
  max-width: 100%;
  letter-spacing: -0.02em;
}
.cta-final__prompt {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: #3a3a4a;
  max-width: 32rem;
  margin: 0;
}

/* ════════════════════════════════════════════════
   RESULTADOS · scroll-reveal con pin (aparición progresiva)
════════════════════════════════════════════════ */
.results-fx {
  position: relative;
  height: 230vh;                 /* recorrido de scroll mientras la sección queda fija */
  background: #f7f9fc;
  border-top: 1px solid var(--border-light);
}
.results-fx__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: visible;
}
.results-fx .container { width: 100%; }
.results-fx__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3.5rem;
  align-items: center;
}
.results-fx__eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--primary-blue, #4169e1);
  background: rgba(65, 105, 225, 0.08);
  border: 1px solid rgba(65, 105, 225, 0.18);
  padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.results-fx__title {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--text-dark, #14142b); margin: 0 0 1rem;
}
.results-fx__prompt {
  font-size: 1.05rem; line-height: 1.6;
  color: var(--text-mid, #5a5a70);
  margin: 0 0 1.8rem; max-width: 24rem;
}
.results-fx__cta { margin-top: 0.2rem; }
.results-fx__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.results-fx__item {
  --lit: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: clamp(1.45rem, 2.9vw, 2.4rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
  padding-block: 0.9rem; margin: 0;
  color: var(--primary-blue, #4169e1);   /* color sólido único */
  opacity: 1;
}
/* marcador al inicio de cada resultado (mismo color) */
.results-fx__item::before {
  content: "";
  flex-shrink: 0;
  width: 0.32em; height: 0.32em;
  margin-top: 0.46em;
  border-radius: 50%;
  background: currentColor;
}
/* el efecto de aparición sólo se aplica cuando el JS está activo */
.results-fx.is-animated .results-fx__item {
  opacity: var(--lit, 0);
  transform: translateY(calc((1 - var(--lit, 0)) * 1.4rem));
  transition: opacity 0.18s linear, transform 0.18s ease-out;
  will-change: opacity, transform;
}
@media (max-width: 1400px) and (min-width: 821px), (max-height: 850px) and (min-width: 821px) {
  .results-fx__sticky {
    min-height: 520px;
  }
  .results-fx__grid {
    gap: 2rem;
  }
  .results-fx__eyebrow {
    margin-bottom: 0.75rem;
  }
  .results-fx__title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: 0.75rem;
  }
  .results-fx__prompt {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  .results-fx__list {
    gap: 0.2rem;
  }
  .results-fx__item {
    font-size: clamp(1.15rem, 1.9vw, 1.65rem);
    padding-block: 0.55rem;
    gap: 0.7rem;
  }
  .results-fx__cta {
    padding: 0.8rem 2.2rem;
    font-size: 0.98rem;
  }
}
@media (max-width: 820px) {
  .results-fx { height: auto; }
  .results-fx__sticky { position: static; height: auto; min-height: 0; padding-block: 4rem; overflow: visible; }
  .results-fx__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .results-fx__item { padding-block: 0.6rem; font-size: clamp(1.3rem, 6vw, 1.85rem); }
}
.cta-final__results {
  position: relative;
  z-index: 1;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.cta-final__results::before {
  display: none;
}
.cta-final__list {
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.cta-final__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dadce0;
  color: #1f1f1f;
  text-align: left;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}
.cta-final__item::before,
.cta-final__item::after {
  display: none;
}
.cta-final__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cta-final__item-icon--blue {
  background-color: #e8f0fe;
  color: #1a73e8;
}
.cta-final__item-icon--red {
  background-color: #fce8e6;
  color: #d93025;
}
.cta-final__item-icon--yellow {
  background-color: #fef7e0;
  color: #ea8600;
}
.cta-final__item-icon--green {
  background-color: #e6f4ea;
  color: #188038;
}
.cta-final__item-icon--purple {
  background-color: #f3e8fd;
  color: #a142f4;
}
.cta-final__item:hover {
  transform: translateY(-2px);
  border-color: #bdc1c6;
  box-shadow: 0 4px 12px 0 rgba(60, 64, 67, 0.15);
}
.cta-final__item--wide {
  grid-column: 1 / -1;
}
.cta-final__item-text {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: #3c4043;
}
.cta-final__actions {
  margin-top: 0.55rem;
}
.cta-final .section-tag--light {
  color: #1a73e8;
  background: #e8f0fe;
  border: 1px solid #d2e3fc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 99px;
}
.cta-final .btn--solid-white {
  background: #1a73e8;
  color: #ffffff;
  border-radius: 99px;
  font-weight: 600;
  box-shadow: none;
  border: 1px solid transparent;
  padding: 0.9rem 2.2rem;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cta-final .btn--solid-white:hover {
  background: #1557b0;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}
.cta-final .btn--solid-white svg {
  color: #ffffff;
}

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, #0e0e1a 0%, #06060c 100%);
  position: relative;
  overflow: hidden;
  padding-block: 2.8rem 1.8rem;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 160px;
  background: radial-gradient(circle, rgba(75, 0, 130, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  align-items: start;
  gap: 1.5rem 3rem;
  position: relative;
  z-index: 1;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer__logo {
  display: inline-block;
}
.footer__logo-img {
  display: block;
}
.footer__tagline {
  font-size: 0.88rem;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  max-width: 320px;
}
.footer__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan, #00bfff);
  margin: 0 0 1.2rem 0;
}
.footer__links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer__nav-link {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  width: fit-content;
}
.footer__nav-link:hover {
  color: #fff;
  transform: translateY(-1px);
}
.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.footer__link:hover {
  color: var(--accent-cyan, #00bfff);
  transform: translateY(-1.5px);
}
.footer__link svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.footer__link:hover svg {
  transform: scale(1.1);
}
.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.2rem;
  margin-top: 0.6rem;
}

/* ════════════════════════════════════════════════
   CASOS (HOME) – Expandable Cards
════════════════════════════════════════════════ */
.cases {
  padding-block: 6rem;
  background: var(--bg-white);
}

/* Container: horizontal flex strip */
.cases-cards {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(10, 37, 64, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

/* Individual card */
.cases-card {
  --case-hover-bg: linear-gradient(145deg, #eef3ff 0%, #dfe8ff 52%, #eef9ff 100%);
  --case-overlay: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(232, 240, 255, 0.72) 52%,
    rgba(238, 249, 255, 0.96) 100%
  );
  --case-title-hover-bg: rgba(255, 255, 255, 0.9);
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  cursor: pointer;
  transition: flex 0.5s ease, background 0.45s ease, box-shadow 0.45s ease;
  overflow: hidden;
  position: relative;
  will-change: flex;
  background: linear-gradient(145deg, #0a2540 0%, #06182c 100%);
}

.cases-card:nth-child(1) {
  --case-hover-bg: linear-gradient(145deg, #eef3ff 0%, #d9e6ff 48%, #e5f7ff 100%);
  --case-overlay: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(224, 234, 255, 0.75) 48%,
    rgba(229, 247, 255, 0.96) 100%
  );
}

.cases-card:nth-child(2) {
  --case-hover-bg: linear-gradient(145deg, #f2eeff 0%, #e3ddff 50%, #eef5ff 100%);
  --case-overlay: linear-gradient(
    180deg,
    rgba(249, 246, 255, 0.95) 0%,
    rgba(227, 221, 255, 0.72) 48%,
    rgba(238, 245, 255, 0.96) 100%
  );
}

.cases-card:nth-child(3) {
  --case-hover-bg: linear-gradient(145deg, #ebfbff 0%, #d6f5ff 50%, #eef7ff 100%);
  --case-overlay: linear-gradient(
    180deg,
    rgba(245, 253, 255, 0.95) 0%,
    rgba(214, 245, 255, 0.72) 48%,
    rgba(238, 247, 255, 0.96) 100%
  );
}

.cases-card:nth-child(4) {
  --case-hover-bg: linear-gradient(145deg, #f5f0ff 0%, #e4edff 52%, #effbff 100%);
  --case-overlay: linear-gradient(
    180deg,
    rgba(250, 247, 255, 0.95) 0%,
    rgba(228, 237, 255, 0.74) 52%,
    rgba(239, 251, 255, 0.96) 100%
  );
}

/* Expand to 3x on hover */
.cases-card:hover {
  flex: 3;
  background: var(--case-hover-bg);
  box-shadow: inset 0 0 0 1px rgba(65, 105, 225, 0.12);
}

/* Brand logo image */
.cases-card img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* height en % fija la altura real (antes la limitaba el atributo height="50") */
  width: 76%;
  height: 54%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  will-change: transform, filter, opacity;
  z-index: 0;
}

/* On hover: keep the logo fully visible over the light background */
.cases-card:hover img {
  transform: translate(-50%, -52%) scale(1.08);
  filter: grayscale(0%) brightness(1) saturate(1.08) contrast(1.04);
  opacity: 1;
  z-index: 2;
}

/* Light gradient overlay (appears on hover) */
.cases-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--case-overlay);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.cases-card:hover::after {
  opacity: 1;
}

/* Company name badge - centered initially */
.cases-card__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 37, 64, 0.72);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Title style on hover - moves to top left corner */
.cases-card:hover .cases-card__title {
  background: var(--case-title-hover-bg);
  color: var(--text-dark);
  top: 1.5rem;
  left: 1.5rem;
  transform: translate(0, 0) scale(0.95);
  border-color: rgba(65, 105, 225, 0.12);
  box-shadow: 0 12px 24px rgba(65, 105, 225, 0.1);
}

/* Description - slides up from bottom on hover */
.cases-card__desc {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  padding: 1.2rem 1.5rem 2.8rem; /* Increased bottom padding to lift text higher */
  color: rgba(26, 26, 46, 0.88);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  text-align: center;
  text-shadow: none;
}

.cases-card:hover .cases-card__desc {
  transform: translateY(0);
}

.cases__actions {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.cases__button {
  position: relative;
  overflow: hidden;
  padding-inline: 1.45rem 1.2rem;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #4b0082 0%, #4169e1 55%, #53d7ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 26px rgba(65, 105, 225, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.cases__button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-24deg);
  opacity: 0;
  transition: left 0.55s ease, opacity 0.35s ease;
}

.cases__button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 38px rgba(65, 105, 225, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  filter: brightness(1.04);
}

.cases__button:hover::after {
  left: 115%;
  opacity: 1;
}

.cases__button span,
.cases__button svg {
  position: relative;
  z-index: 1;
}

.cases__button svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.3;
}

.cases__button:focus-visible {
  outline-color: rgba(0, 191, 255, 0.95);
  box-shadow: 0 0 0 6px rgba(0, 191, 255, 0.16), 0 18px 36px rgba(65, 105, 225, 0.26);
}

/* Keyboard accessibility */
.cases-card:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

.cases-card:focus-visible img {
  filter: grayscale(0%) brightness(1);
  opacity: 0.7;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .cases-cards {
    flex-direction: column;
    height: auto;
    border-radius: 1rem;
  }

  .cases-card {
    flex: none;
    width: 100%;
    height: 230px;
  }

  .cases-card:hover {
    flex: none;
  }

  .cases-card::after {
    opacity: 1;
  }

  .cases-card__desc {
    transform: translateY(0);
    padding: 1rem 1.25rem 1.3rem;
  }

  .cases-card img {
    filter: grayscale(0%) brightness(1);
    opacity: 0.9;
    width: 56%;
    height: 26%;
    top: 47%;
  }

  .cases-card__title {
    top: 1.2rem;
    left: 1.2rem;
    transform: translate(0, 0);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    border-color: rgba(65, 105, 225, 0.12);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cases-card,
  .cases-card img,
  .cases-card__title,
  .cases-card__desc,
  .cases-card::after {
    transition: none;
  }
}

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(5, 5, 16, 0.95) 0%,
      rgba(5, 5, 16, 0.82) 38%,
      rgba(5, 5, 16, 0.56) 68%,
      rgba(5, 5, 16, 0.2) 100%
    );
  }
  .hero__content {
    max-width: 100%;
  }
  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  /* Navbar mobile */
  .navbar__nav {
    display: none;
  }
  .navbar__cta {
    display: none;
  }
  .navbar__hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 100svh;
    padding-block: calc(var(--navbar-h) + 2rem) 3.5rem;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__title { font-size: 2.2rem; }
  .hero__chips {
    gap: 0.5rem;
  }
  .hero__chip {
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
  }
  .blob--1 {
    width: 320px;
    height: 320px;
    top: -60px;
    left: -80px;
  }
  .blob--2 {
    width: 260px;
    height: 260px;
    top: 40%;
    right: -50px;
  }
  .blob--3 {
    width: 220px;
    height: 220px;
  }

  /* Flat marquee scrolling fallback for mobile */
  .scene {
    overflow: hidden;
    perspective: none;
    mask: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
    padding-block: 1rem;
  }
  .a3d {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    width: max-content;
    animation: trustMarquee 25s linear infinite !important;
    transform: none;
    transform-style: flat;
  }
  .card {
    grid-area: auto;
    position: relative;
    width: 120px;
    height: 70px;
    aspect-ratio: auto;
    padding: 0.8rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transform: none !important;
    backface-visibility: visible;
    flex-shrink: 0;
  }

  /* Grids → single column */
  .cards-grid--4 {
    grid-template-columns: 1fr;
  }
  .cards-grid--3 {
    grid-template-columns: 1fr;
  }

  /* Programs */
  .programs {
    padding-block: 4rem;
  }
  .program-card--featured {
    margin-top: 1rem;
  }

  /* CTA */
  .cta-final {
    padding-block: 4.75rem;
  }
  .cta-final__shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 28px;
  }
  .cta-final__content {
    align-items: center;
    text-align: center;
  }
  .cta-final__title {
    max-width: none;
  }
  .cta-final__results {
    padding: 0.8rem;
    border-radius: 24px;
  }
  .cta-final__list {
    grid-template-columns: 1fr;
  }
  .cta-final__item--wide {
    grid-column: auto;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer__brand {
    grid-column: 1;
    align-items: center;
  }
  .footer__tagline {
    max-width: none;
  }
  .footer__contact {
    grid-column: 1;
    grid-row: auto;
    align-items: center;
  }
  .footer__copy {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.9rem; }
  .gradient-emp { font-size: 1.25em; }
  .hero__chips {
    flex-direction: column;
    gap: 0.45rem;
  }
  .hero__chip {
    width: fit-content;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-final__shell {
    padding: 1.25rem;
  }
  .cta-final__item {
    min-height: auto;
    padding: 0.9rem 1.1rem;
  }
  .cta-final__actions,
  .cta-final__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .btn--xl {
    font-size: 0.9rem;
    padding: 0.85rem 1.6rem;
  }

  .cases__button {
    width: min(100%, 22rem);
    justify-content: center;
    padding-inline: 1.4rem;
  }
}

@media (min-width: 1025px) {
  .break-lg {
    display: inline;
  }
}
