/* ==========================================================================
   ColdCheck — Landing principal
   Estructura, ritmo y físicas de labs.google (A1) · Identidad de guia-web
   Escala rem: html { font-size: 62.5% } => 1rem = 10px (como labs.google)
   ========================================================================== */

:root {
  /* Marca ColdCheck */
  --cc-hielo: #EBF8FF;
  --cc-blanco: #F7FCFF;
  --cc-surface-soft: #D7EFFD;
  --cc-surface-mid: #E2F4FE;
  --cc-outline-variant: #C3DDEA;
  --cc-outline: #6A7F9B;
  --cc-tinta: #14284F;
  --cc-gris: #56677F;
  --cc-escarcha: #BBECFE;
  --cc-celeste: #6BB1FF;
  --cc-azul-medio: #2F6FDC;
  --cc-etiqueta: #126FB3;
  --cc-profundo: #0A3A8C;
  --cc-profundo-oscuro: #071F4D;
  --cc-rojo: #C62E22; /* SOLO ruptura de cadena y error de formulario */
  --cc-oled-bg: #000000; /* SOLO pantalla OLED física */

  /* Tipografía */
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout labs.google */
  --nav-height: 8.8rem;
  --inset: 2.4rem;
  --max-width: 187.2rem;
  --radius-card: 2.6rem;
  --radius-pill: 999rem;

  /* Estado flotación formas */
  --float-state: running;

  /* Tema activo de categoría (transición 0.7s como labs.google) */
  --cat-bg: var(--cc-hielo);
  --cat-pill-bg: var(--cc-surface-soft);
  --cat-pill-active: var(--cc-escarcha);
  --cat-pill-ink: var(--cc-tinta);
}

@media (min-width: 1025px) {
  :root {
    --nav-height: 9rem;
  }
}

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

html {
  font-size: 62.5%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cc-hielo);
  color: var(--cc-tinta);
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

.serif {
  font-family: var(--font-serif);
  font-weight: 700;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 24;
}

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

:focus-visible {
  outline: 0.3rem solid var(--cc-profundo);
  outline-offset: 0.3rem;
}

.featured-hero :focus-visible,
.surface--dark :focus-visible,
.graduation-card :focus-visible {
  outline: 0.3rem solid var(--cc-escarcha);
  outline-offset: 0.3rem;
}

.skip-link {
  position: fixed;
  left: 1.6rem;
  top: 1.2rem;
  transform: translateY(-220%);
  z-index: 120;
  background: var(--cc-profundo);
  color: var(--cc-blanco);
  padding: 1rem 1.8rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   LIQUID BUTTON SVG (A1 §2.7)
   ========================================================================== */
[data-liquid] {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

[data-liquid].has-liquid {
  background: transparent !important;
  border-color: transparent !important;
}

.liquid-button__svg {
  position: absolute;
  inset: -1.4rem;
  width: calc(100% + 2.8rem);
  height: calc(100% + 2.8rem);
  max-width: none;
  max-height: none;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}

.liquid-button__path {
  fill: var(--liquid-fill, transparent);
  stroke: var(--liquid-stroke, none);
  stroke-width: var(--liquid-stroke-w, 0);
  transition: fill 0.2s ease, stroke 0.2s ease;
}

/* ==========================================================================
   1. HEADER (A1 §1.1 & §2.9)
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--nav-height);
  z-index: 30;
  pointer-events: none;
}

.site-header__bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out, color 0.3s ease;
}

.site-header[data-can-hide="true"] .site-header__bar {
  transform: translateY(-200%);
}

.site-header[data-open="true"] .site-header__bar {
  transform: translateY(0);
}

.site-header__blur {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--nav-height) + 1.6rem);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header[data-scrolled="true"]:not([data-open="true"]) .site-header__blur {
  opacity: 1;
}

.site-header__blur span {
  position: absolute;
  inset: 0;
  background: transparent;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
}
.site-header__blur span:nth-child(1) {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, #000 60%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, #000 60%, #000 80%, transparent 100%);
}
.site-header__blur span:nth-child(2) {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 20%, #000 40%, #000 60%, transparent 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 20%, #000 40%, #000 60%, transparent 80%, transparent 100%);
}
.site-header__blur span:nth-child(3) {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 40%, transparent 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 40%, transparent 60%, transparent 100%);
}
.site-header__blur span:nth-child(4) {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 40%, transparent 100%);
}
.site-header__blur span:nth-child(5) {
  backdrop-filter: blur(34px);
  -webkit-backdrop-filter: blur(34px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 20%, transparent 100%);
}

.site-header__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2.2rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

@media (min-width: 1025px) {
  .site-header__inner {
    padding: 2.5rem 3.2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.2rem;
  }
}

@media (min-width: 1200px) {
  .site-header__inner {
    padding: 2.5rem 4rem;
  }
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  width: fit-content;
  transition: color 0.3s ease;
}

.site-header.surface--dark .site-header__brand,
.site-header[data-open="true"] .site-header__brand {
  color: var(--cc-blanco);
}

.site-header.surface--light:not([data-open="true"]) .site-header__brand {
  color: var(--cc-profundo);
}

.brand-logo {
  height: 2.8rem;
  width: auto;
}

.site-header.surface--dark .brand-logo--light,
.site-header[data-open="true"] .brand-logo--light {
  display: none;
}

.site-header.surface--light:not([data-open="true"]) .brand-logo--dark {
  display: none;
}

.site-header__nav {
  display: none;
}

.site-header__actions {
  display: none;
}

@media (min-width: 1025px) {
  .site-header__nav {
    display: block;
  }
  .site-header__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 3rem;
  }
  .site-header__nav a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.3s ease, opacity 0.2s ease;
  }
  .site-header.surface--dark .site-header__nav a {
    color: var(--cc-blanco);
  }
  .site-header.surface--dark .site-header__nav a:hover {
    color: var(--cc-escarcha);
  }
  .site-header.surface--light .site-header__nav a {
    color: var(--cc-tinta);
  }
  .site-header.surface--light .site-header__nav a:hover {
    color: var(--cc-profundo);
  }

  .site-header__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-pill);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border: 0.15rem solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.site-header.surface--dark .site-header__cta {
  background: var(--cc-escarcha);
  --liquid-fill: var(--cc-escarcha);
  color: var(--cc-tinta);
}
.site-header.surface--dark .site-header__cta:hover {
  background: var(--cc-blanco);
  --liquid-fill: var(--cc-blanco);
  color: var(--cc-profundo);
}

.site-header.surface--light .site-header__cta {
  background: var(--cc-profundo);
  --liquid-fill: var(--cc-profundo);
  color: var(--cc-blanco);
}
.site-header.surface--light .site-header__cta:hover {
  background: var(--cc-tinta);
  --liquid-fill: var(--cc-tinta);
}

.site-header__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

@media (min-width: 1025px) {
  .site-header__burger {
    display: none;
  }
}

.burger-line {
  display: block;
  width: 2.8rem;
  height: 0.2rem;
  border-radius: 99px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.site-header.surface--dark .burger-line,
.site-header[data-open="true"] .burger-line {
  background: var(--cc-blanco);
}
.site-header.surface--light:not([data-open="true"]) .burger-line {
  background: var(--cc-tinta);
}

.site-header[data-open="true"] .burger-line--top {
  transform: translateY(0.45rem) rotate(45deg);
}
.site-header[data-open="true"] .burger-line--bottom {
  transform: translateY(-0.45rem) rotate(-45deg);
}

/* Menú móvil overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: var(--cc-profundo-oscuro);
  color: var(--cc-blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 3.2rem 4rem;
  overflow: hidden;
  pointer-events: auto;
}
.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mm-shape {
  position: absolute;
  width: 18rem;
  height: 18rem;
  color: rgba(187, 236, 254, 0.14);
  filter: blur(1.5rem);
  opacity: 0;
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1) 0.1s,
              filter 0.5s cubic-bezier(0.2, 0, 0, 1) 0.1s,
              opacity 0.3s ease 0.1s;
}
.mm-shape--copo { top: 8%; right: -4%; }
.mm-shape--cubo { bottom: 12%; left: -6%; }
.mm-shape--circulo { top: 52%; right: 6%; width: 14rem; height: 14rem; }

.site-header[data-open="true"] .mm-shape {
  opacity: 1;
  filter: blur(0);
  transform: scale(2.1) rotate(15deg);
}

.mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.4rem;
  position: relative;
  z-index: 2;
}

.mobile-menu__nav a {
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cc-blanco);
  display: inline-block;
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 0.4s cubic-bezier(0.2, 0, 0, 1) 0.25s,
              transform 0.4s cubic-bezier(0.2, 0, 0, 1) 0.25s,
              color 0.2s ease;
}

@media (min-width: 768px) {
  .mobile-menu__nav a {
    font-size: 6.4rem;
  }
}

.site-header[data-open="true"] .mobile-menu__nav a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu__nav a:hover {
  color: var(--cc-escarcha);
}

/* ==========================================================================
   2. HERO OSCURO A PANTALLA COMPLETA (A1 §1.2 & §2.1)
   ========================================================================== */
.hero-stage-wrap {
  position: relative;
  background: var(--cc-hielo);
  overflow: clip;
}

/* Fondo de color limpio visible detrás de la lengüeta curva al encogerse el hero */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--cc-etiqueta) 0%, var(--cc-celeste) 46%, var(--cc-escarcha) 82%, var(--cc-hielo) 100%);
  overflow: hidden;
}

.featured-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100lvh;
  height: 100dvh;
  min-height: 62rem;
  background: var(--cc-profundo-oscuro);
  overflow: clip;
  transform-origin: center top;
  will-change: transform, border-radius;
}

.featured-hero__mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 62rem;
  z-index: 0;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  visibility: hidden;
  pointer-events: none;
}

.featured-hero__mask.is-active,
.featured-hero__mask.is-prev {
  visibility: visible;
}

.featured-hero__mask.is-active {
  z-index: 2;
  pointer-events: auto;
}

.featured-hero__mask.is-prev {
  z-index: 1;
}

.featured-hero__container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 62rem;
  overflow: hidden;
}

/* 4 fondos propios dentro de la marca ColdCheck para que cada portal de máscara se distinga al instante */
.hero-slide--viaje {
  background: var(--cc-profundo-oscuro);
}

.hero-slide--cocina {
  background: var(--cc-etiqueta);
}

.hero-slide__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.72;
  pointer-events: none;
}

.hero-slide--prueba {
  background-color: var(--cc-tinta);
  background-image:
    radial-gradient(circle at 50% 45%, rgba(47, 111, 220, 0.22) 0%, transparent 62%),
    radial-gradient(rgba(187, 236, 254, 0.28) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 2.6rem 2.6rem;
}

.hero-slide--equipo {
  background:
    radial-gradient(circle at 78% 22%, rgba(107, 177, 255, 0.36) 0%, transparent 48%),
    linear-gradient(135deg, var(--cc-etiqueta) 0%, var(--cc-profundo) 56%, var(--cc-profundo-oscuro) 100%);
}

/* Tarjetas inclinadas flotando alrededor del titular (collage asimétrico como labs.google, despejando el header) */
.hero-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-card {
  position: absolute;
  width: 24rem;
}

.hero-card--tl { top: 10.8%; left: -10%; width: 17.2rem; transform: rotate(-9deg); }
.hero-card--tr { top: 12.5%; right: -5%; width: 25rem; transform: rotate(8deg); display: none; }
.hero-card--bl { bottom: 13%; left: -4%; width: 24rem; transform: rotate(-11deg); display: none; }
.hero-card--br { bottom: 5.5%; right: -9%; width: 15.2rem; transform: rotate(7deg); }

.hero-card--tl .hero-card__frame video,
.hero-card--tl .hero-card__frame img { aspect-ratio: 4 / 3; }

.hero-card--tr .hero-card__frame video,
.hero-card--tr .hero-card__frame img { aspect-ratio: 16 / 10; }

.hero-card--bl .hero-card__frame video,
.hero-card--bl .hero-card__frame img { aspect-ratio: 16 / 10; }

.hero-card--br .hero-card__frame video,
.hero-card--br .hero-card__frame img { aspect-ratio: 1 / 1; }

@media (min-width: 768px) {
  .hero-card--tl { width: 28rem; top: 13%; left: 1.5%; transform: rotate(-9deg); }
  .hero-card--tr { width: 31rem; top: 12%; right: -1.5%; transform: rotate(8deg); display: block; }
  .hero-card--bl { width: 29rem; bottom: 9%; left: -0.5%; transform: rotate(-11deg); display: block; }
  .hero-card--br { width: 24rem; bottom: 7%; right: 3%; transform: rotate(6deg); }
}

@media (min-width: 1200px) {
  .hero-card--tl { width: 33rem; top: 13%; left: 2%; transform: rotate(-9deg); }
  .hero-card--tr { width: 37rem; top: 12%; right: -1%; transform: rotate(8deg); }
  .hero-card--bl { width: 35rem; bottom: 7%; left: -0.5%; transform: rotate(-11deg); }
  .hero-card--br { width: 28rem; bottom: 6%; right: 4%; transform: rotate(6deg); }

  /* Variaciones por diapositiva para romper cualquier simetría de plantilla */
  .hero-slide--prueba .hero-card--tl { top: 12.5%; left: 3.5%; transform: rotate(-11deg); }
  .hero-slide--prueba .hero-card--tr { top: 14%; right: 0%; transform: rotate(6deg); }
  .hero-slide--prueba .hero-card--bl { bottom: 9%; left: -1%; transform: rotate(-8deg); }
  .hero-slide--prueba .hero-card--br { bottom: 5%; right: 5%; transform: rotate(11deg); }

  .hero-slide--equipo .hero-card--tl { top: 13.5%; left: 1.5%; transform: rotate(-8deg); }
  .hero-slide--equipo .hero-card--tr { top: 12%; right: 3%; transform: rotate(7deg); }
  .hero-slide--equipo .hero-card--bl { bottom: 6%; left: 2%; transform: rotate(-10deg); }
  .hero-slide--equipo .hero-card--br { bottom: 10%; right: 0.5%; transform: rotate(5deg); }
}

@media (min-width: 1600px) {
  .hero-card--tl { width: 38rem; }
  .hero-card--tr { width: 43rem; }
  .hero-card--bl { width: 40rem; }
  .hero-card--br { width: 32rem; }
}

.hero-card__frame {
  border-radius: 2.2rem;
  overflow: hidden;
  border: 0.15rem solid rgba(187, 236, 254, 0.24);
  background: var(--cc-profundo-oscuro);
  box-shadow: 0 2rem 5rem rgba(4, 15, 38, 0.42);
  opacity: 0.88;
}

.hero-card__frame video,
.hero-card__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Deriva en 3 ejes a periodos inconmensurables (guia-web + A1) */
.drift-x, .drift-y, .drift-r {
  will-change: transform;
}
.drift-xa { animation: drift-x-a 8s ease-in-out infinite alternate; }
.drift-ya { animation: drift-y-a 11.5s ease-in-out infinite alternate; }
.drift-ra { animation: drift-r-a 16.5s ease-in-out infinite alternate; }

.drift-xb { animation: drift-x-b 9.5s ease-in-out infinite alternate; }
.drift-yb { animation: drift-y-b 13s ease-in-out infinite alternate; }
.drift-rb { animation: drift-r-b 19s ease-in-out infinite alternate; }

.drift-xc { animation: drift-x-c 8.5s ease-in-out infinite alternate; }
.drift-yc { animation: drift-y-c 12s ease-in-out infinite alternate; }
.drift-rc { animation: drift-r-c 15s ease-in-out infinite alternate; }

.drift-xd { animation: drift-x-d 10.5s ease-in-out infinite alternate; }
.drift-yd { animation: drift-y-d 14s ease-in-out infinite alternate; }
.drift-rd { animation: drift-r-d 17.5s ease-in-out infinite alternate; }

@keyframes drift-x-a { from { transform: translateX(-1rem); } to { transform: translateX(1.2rem); } }
@keyframes drift-y-a { from { transform: translateY(-1.2rem); } to { transform: translateY(1.4rem); } }
@keyframes drift-r-a { from { transform: rotate(-2.2deg); } to { transform: rotate(2deg); } }

@keyframes drift-x-b { from { transform: translateX(1.3rem); } to { transform: translateX(-0.9rem); } }
@keyframes drift-y-b { from { transform: translateY(1.4rem); } to { transform: translateY(-1.1rem); } }
@keyframes drift-r-b { from { transform: rotate(1.8deg); } to { transform: rotate(-2.4deg); } }

@keyframes drift-x-c { from { transform: translateX(-1.4rem); } to { transform: translateX(1rem); } }
@keyframes drift-y-c { from { transform: translateY(-1.5rem); } to { transform: translateY(1rem); } }
@keyframes drift-r-c { from { transform: rotate(-1.9deg); } to { transform: rotate(2.3deg); } }

@keyframes drift-x-d { from { transform: translateX(1.1rem); } to { transform: translateX(-1.3rem); } }
@keyframes drift-y-d { from { transform: translateY(1.1rem); } to { transform: translateY(-1.4rem); } }
@keyframes drift-r-d { from { transform: rotate(2.1deg); } to { transform: rotate(-1.7deg); } }

/* Gradiente de legibilidad por diapositiva (preserva identidad de fondo + contraste AA+) */
.featured-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 31, 77, 0.44), rgba(7, 31, 77, 0.22) 24% 68%, rgba(7, 31, 77, 0.72));
}

.hero-slide--cocina .featured-hero__gradient {
  background:
    radial-gradient(ellipse 72% 58% at 50% 50%, rgba(7, 31, 77, 0.74) 0%, rgba(10, 58, 140, 0.44) 72%, rgba(7, 31, 77, 0.62) 100%),
    linear-gradient(180deg, rgba(7, 31, 77, 0.60) 0%, rgba(10, 58, 140, 0.28) 34% 66%, rgba(7, 31, 77, 0.82) 100%);
}

.hero-slide--prueba .featured-hero__gradient {
  background: radial-gradient(ellipse 68% 54% at 50% 50%, rgba(20, 40, 79, 0.68) 0%, rgba(20, 40, 79, 0.10) 70%, rgba(7, 31, 77, 0.46) 100%);
}

.hero-slide--equipo .featured-hero__gradient {
  background: linear-gradient(180deg, rgba(7, 31, 77, 0.28) 0%, rgba(10, 58, 140, 0.16) 46%, rgba(7, 31, 77, 0.62) 100%);
}

@media (min-width: 768px) {
  .hero-slide--viaje .featured-hero__gradient {
    background: radial-gradient(ellipse 66% 56% at 50% 50%, rgba(7, 31, 77, 0.72) 0%, rgba(7, 31, 77, 0.24) 68%, rgba(7, 31, 77, 0.48) 100%);
  }
}

/* Bloque central del hero (A1 §1.2) */
.featured-hero__text-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(31rem, 50%, calc(100% - 31rem));
  transform: translateY(50%);
  z-index: 4;
  padding-inline: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.featured-hero__motto {
  margin: 0 0 1.4rem;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--cc-escarcha);
  letter-spacing: 0.01em;
  text-shadow: 0 0.1rem 1rem rgba(7, 31, 77, 0.55);
}

.hero-slide--cocina .featured-hero__motto {
  color: var(--cc-blanco);
}

@media (min-width: 768px) {
  .featured-hero__motto {
    font-size: 1.9rem;
    margin-bottom: 1.8rem;
  }
}

.featured-hero__heading {
  margin: 0 0 1.8rem;
  color: var(--cc-blanco);
  font-size: clamp(3.8rem, 8.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: balance;
  text-shadow: 0 0.2rem 2rem rgba(7, 31, 77, 0.45);
}

@media (min-width: 768px) {
  .featured-hero__heading {
    font-size: clamp(6.4rem, 7.2vw, 10.6rem);
    line-height: 1.04;
    max-width: 16ch;
    margin-bottom: 2rem;
  }
}

.featured-hero__subheading {
  margin: 0;
  color: var(--cc-hielo);
  font-size: 1.5rem;
  line-height: 1.45;
  font-weight: 400;
  max-width: 48ch;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .featured-hero__subheading {
    font-size: 2.2rem;
    line-height: 1.35;
    max-width: 56ch;
  }
}

.featured-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3.4rem;
  border-radius: 10rem;
  background: var(--cc-escarcha);
  --liquid-fill: var(--cc-escarcha);
  color: var(--cc-tinta);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  padding: 1.7rem 3.8rem;
  line-height: 1.2;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.featured-hero__cta:hover {
  background: var(--cc-blanco);
  --liquid-fill: var(--cc-blanco);
  color: var(--cc-profundo);
}

@media (min-width: 400px) {
  .featured-hero__cta {
    height: 6.2rem;
    font-size: 1.8rem;
    padding: 0 4rem;
  }
}

@media (min-width: 768px) {
  .featured-hero__cta {
    margin-top: 4rem;
    height: 6.5rem;
    font-size: 2rem;
    padding: 0 4.4rem;
  }
}

/* Controles inferiores del hero (A1 §1.2) */
.featured-hero__controls {
  position: absolute;
  bottom: 2.4rem;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-inline: 2.4rem;
}

.featured-hero__progress-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  order: -1;
  margin-right: auto;
}

@media (min-width: 400px) {
  .featured-hero__controls {
    bottom: 4rem;
    justify-content: center;
    gap: 1.2rem;
  }
  .featured-hero__progress-group {
    order: unset;
    margin-right: 0;
    gap: 1rem;
    padding-inline: 1.6rem;
  }
}

@media (min-width: 768px) {
  .featured-hero__controls {
    bottom: 4.5rem;
  }
}

.featured-hero__button {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: var(--radius-pill);
  border: 0.2rem solid rgba(187, 236, 254, 0.25);
  background: rgba(7, 31, 77, 0.24);
  color: var(--cc-blanco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 768px) {
  .featured-hero__button {
    width: 6rem;
    height: 6rem;
  }
}

.featured-hero__button:hover {
  background: var(--cc-escarcha);
  color: var(--cc-tinta);
  border-color: var(--cc-escarcha);
}

.featured-hero__pause {
  display: none;
}

.featured-hero__pause .icon-play { display: none; }
.featured-hero__pause[aria-pressed="true"] .icon-pause { display: none; }
.featured-hero__pause[aria-pressed="true"] .icon-play { display: block; }

@media (min-width: 768px) and (hover: hover) {
  .featured-hero__pause {
    display: inline-flex;
    position: absolute;
    right: 3.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4.8rem;
    height: 4.8rem;
    opacity: 0.82;
  }
  .featured-hero__pause:hover {
    opacity: 1;
  }
}

.featured-hero__progress {
  position: relative;
  width: 0.8rem;
  height: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(235, 248, 255, 0.3);
  overflow: hidden;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.featured-hero__progress.is-active {
  width: 4.4rem;
}

@media (min-width: 400px) {
  .featured-hero__progress.is-active {
    width: 5.6rem;
  }
}

@media (min-width: 768px) {
  .featured-hero__progress.is-active {
    width: 13.5rem;
  }
}

.featured-hero__progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--cc-hielo);
}

/* ==========================================================================
   3. LIENZO HIELO + FORMAS GIGANTES DE FONDO (A1 §1.3 & §2.2)
   ========================================================================== */
.page-canvas {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-color: var(--cat-bg);
  transition: background-color 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.page-canvas.cat-todo      { --cat-bg: #EBF8FF; }
.page-canvas.cat-salmon    { --cat-bg: #E2F4FE; }
.page-canvas.cat-recepcion { --cat-bg: #E5F5FF; }
.page-canvas.cat-locales   { --cat-bg: #ECF7FF; }
.page-canvas.cat-empresas  { --cat-bg: #E0F1FE; }

.clip-defs-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-shapes {
  position: absolute;
  inset: 0;
  margin-inline: auto;
  max-width: var(--max-width);
  pointer-events: none;
  z-index: 0;
  perspective: 1200px;
}

.bg-shapes.is-paused {
  --float-state: paused;
}

.bg-shapes__slot {
  position: absolute;
  width: max(48%, 38rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  opacity: 0;
  transform: rotateY(var(--morph-ry, 0deg));
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.bg-shapes__slot.is-visible {
  opacity: 1;
}

.bg-shapes__slot.is-entering {
  animation: bg-shape-enter 1.6s cubic-bezier(0.16, 1, 0.3, 1) var(--enter-delay, 0ms) both;
}

@keyframes bg-shape-enter {
  0%   { scale: 0.35; filter: blur(14px); opacity: 0; }
  30%  { filter: blur(7px); opacity: 1; }
  55%  { scale: 1.025; filter: blur(3px); }
  78%  { scale: 1.008; filter: blur(1px); }
  92%  { filter: blur(0.3px); }
  100% { scale: 1; filter: blur(0); opacity: 1; }
}

.bg-shapes__slot--0 {
  top: 7%;
  left: 84%;
  color: var(--cc-etiqueta);
  --enter-delay: 0ms;
  --d: 8s;
  --amp-x: 8.5rem;
  --amp-y: 11rem;
  --amp-r: 32deg;
  --tilt: -18deg;
  --px: -1.3s;
  --py: -4.7s;
  --pr: -2.9s;
}

.bg-shapes__slot--1 {
  top: 23%;
  left: 6%;
  color: var(--cc-escarcha);
  --enter-delay: 170ms;
  --d: 9.5s;
  --amp-x: -10rem;
  --amp-y: 9rem;
  --amp-r: -28deg;
  --tilt: 22deg;
  --px: -3.8s;
  --py: -8.1s;
  --pr: -6.3s;
}

.bg-shapes__slot--2 {
  top: 42%;
  left: 92%;
  color: var(--cc-profundo);
  --enter-delay: 360ms;
  --d: 10.5s;
  --amp-x: 11rem;
  --amp-y: 12rem;
  --amp-r: 35deg;
  --tilt: -25deg;
  --px: -5.2s;
  --py: -2.4s;
  --pr: -9.6s;
}

.bg-shapes__slot--3 {
  top: 71%;
  left: 8%;
  color: var(--cc-profundo);
  --enter-delay: 540ms;
  --d: 8.5s;
  --amp-x: -8.5rem;
  --amp-y: 13.5rem;
  --amp-r: -30deg;
  --tilt: 12deg;
  --px: -7.4s;
  --py: -1.1s;
  --pr: -5.8s;
}

@media (min-width: 1025px) {
  .bg-shapes__slot { width: max(46%, 58rem); }
  .bg-shapes__slot--0 { top: 7.5%; left: 78%; }
  .bg-shapes__slot--1 { top: 24%; left: 8%; }
  .bg-shapes__slot--2 { top: 44%; left: 89%; }
  .bg-shapes__slot--3 { top: 72%; left: 9%; }
}

.bg-shapes__float-x,
.bg-shapes__float-y,
.bg-shapes__float-r,
.bg-shapes__morph {
  width: 100%;
  height: 100%;
}

.bg-shapes__float-x {
  animation: gl-float-x var(--d) ease-in-out var(--px) infinite alternate;
  animation-play-state: var(--float-state);
}
.bg-shapes__float-y {
  animation: gl-float-y calc(var(--d) * 1.83) ease-in-out var(--py) infinite alternate;
  animation-play-state: var(--float-state);
}
.bg-shapes__float-r {
  animation: gl-float-r calc(var(--d) * 1.45) ease-in-out var(--pr) infinite alternate;
  animation-play-state: var(--float-state);
}

@keyframes gl-float-x {
  from { transform: translateX(calc(var(--amp-x) * -0.5)); }
  to   { transform: translateX(calc(var(--amp-x) * 0.5)); }
}
@keyframes gl-float-y {
  from { transform: translateY(calc(var(--amp-y) * -0.5)); }
  to   { transform: translateY(calc(var(--amp-y) * 0.5)); }
}
@keyframes gl-float-r {
  from { transform: rotate(calc(var(--tilt) - var(--amp-r) * 0.5)); }
  to   { transform: rotate(calc(var(--tilt) + var(--amp-r) * 0.5)); }
}

.bg-shapes__morph.is-morphing {
  animation: shape-morph 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes shape-morph {
  0%   { transform: scale(1) rotate(0deg); opacity: 1; filter: blur(0); }
  45%  { transform: scale(0.85) rotate(3deg); opacity: 0.35; filter: blur(5px); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; filter: blur(0); }
}

.bg-shape-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.shape-path {
  opacity: 0;
  transition: opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1) 0.28s;
}
.shape-path.is-current {
  opacity: 1;
}

/* ==========================================================================
   COLOR SHIFT SOBRE FORMAS (copia recortada con clip-path SVG, SIN mix-blend-mode)
   ========================================================================== */
.color-shift-wrap {
  position: relative;
  z-index: 2;
}

.color-shift-clone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
  will-change: clip-path;
}

/* Sobre escarcha (#BBECFE): texto chico -> azul profundo #0A3A8C (8,65:1), titulares grandes -> #2F6FDC (3,74:1) */
.color-shift-clone--on-light,
.color-shift-clone--on-light * {
  color: var(--cc-profundo) !important;
}

.color-shift-clone--on-light .home-carousel__title,
.color-shift-clone--on-light .about-section__subheading,
.color-shift-clone--on-light .graduation__headline,
.color-shift-clone--on-light .pre-footer__title {
  color: var(--cc-azul-medio) !important;
}

/* Sobre forma oscura (#0A3A8C o #126FB3): texto chico -> blanco #F7FCFF (>=5,04:1), titulares grandes -> escarcha #BBECFE (>=4,11:1) */
.color-shift-clone--on-dark,
.color-shift-clone--on-dark * {
  color: var(--cc-blanco) !important;
}

.color-shift-clone--on-dark .home-carousel__title,
.color-shift-clone--on-dark .about-section__subheading,
.color-shift-clone--on-dark .graduation__headline,
.color-shift-clone--on-dark .pre-footer__title {
  color: var(--cc-escarcha) !important;
}

/* ==========================================================================
   4. SECCIÓN CÓMO FUNCIONA: ARCO DE TARJETAS + PÍLDORAS (A1 §1.4, §2.3, §2.4)
   ========================================================================== */
.home-carousel {
  position: relative;
  z-index: 2;
  padding-top: 10rem;
}

@media (min-width: 768px) {
  .home-carousel { padding-top: 11rem; }
}

@media (min-width: 1025px) {
  .home-carousel { padding-top: 15rem; }
}

@media (min-width: 1921px) {
  .home-carousel { padding-top: 19.4rem; }
}

.home-carousel__title-wrap {
  max-width: min(86%, 124rem);
  margin-inline: auto;
  margin-bottom: 5rem;
}

@media (min-width: 1025px) {
  .home-carousel__title-wrap {
    margin-bottom: 7.7rem;
  }
}

.home-carousel__title {
  margin: 0;
  text-align: center;
  color: var(--cc-tinta);
  font-size: 4.4rem;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .home-carousel__title {
    font-size: 7.2rem;
  }
}

@media (min-width: 1025px) {
  .home-carousel__title {
    font-size: 9.6rem;
    letter-spacing: -0.025em;
  }
}

.home-carousel__stage {
  position: relative;
  z-index: 2;
}

.home-carousel__container {
  position: relative;
  width: 100%;
  height: 43rem;
  overflow-x: clip;
  overflow-y: visible;
  cursor: grab;
  touch-action: pan-y;
}

.home-carousel__container:active {
  cursor: grabbing;
}

@media (min-width: 768px) {
  .home-carousel__container { height: 50rem; }
}

@media (min-width: 1025px) {
  .home-carousel__container { height: 63rem; }
}

.home-carousel__circle {
  position: absolute;
  width: 3300px;
  height: 3300px;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center center;
}

@media (min-width: 1025px) {
  .home-carousel__circle {
    width: 8500px;
    height: 8500px;
    top: 44.7%;
  }
}

@media (min-width: 1921px) {
  .home-carousel__circle {
    width: 8000px;
    height: 8000px;
  }
}

.arc-slot {
  position: absolute;
  top: 0;
  left: 0;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.carousel-card {
  width: 24.5rem;
  height: 37rem;
  background: var(--cc-blanco);
  border-radius: 2.4rem;
  border: 0.1rem solid var(--cc-outline-variant);
  box-shadow: 0 1.4rem 3.4rem rgba(20, 40, 79, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  backface-visibility: hidden;
}

@media (min-width: 1025px) {
  .carousel-card {
    width: 37rem;
    height: 56rem;
    border-radius: var(--radius-card);
  }
}

.carousel-card__media {
  position: relative;
  height: 17.6rem;
  margin: 1.4rem;
  border-radius: 1.6rem;
  overflow: hidden;
  background: var(--cc-hielo);
  flex-shrink: 0;
}

@media (min-width: 1025px) {
  .carousel-card__media {
    height: 31rem;
    margin: 2.2rem;
    border-radius: 1.8rem;
  }
}

.carousel-card__media img,
.carousel-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-card__media--render img {
  object-position: right bottom;
}

.carousel-card__step-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: var(--radius-pill);
  background: var(--cc-profundo);
  color: var(--cc-blanco);
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

@media (min-width: 1025px) {
  .carousel-card__step-badge {
    width: 4.4rem;
    height: 4.4rem;
    font-size: 1.7rem;
  }
}

.carousel-card__media .rupture-pill {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 3;
  font-size: 1.2rem;
  padding: 0.4rem 1.1rem;
}

/* Media OLED dentro de la tarjeta Paso 3 */
.carousel-card__media--oled {
  background: var(--cc-profundo-oscuro);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.4rem;
  gap: 1rem;
}

.oled-unit {
  container-type: inline-size;
  background: #101A2B;
  padding: 0.9rem;
  border-radius: 1.4rem;
  border: 0.1rem solid #24385A;
  width: 100%;
}

.oled-screen {
  aspect-ratio: 2 / 1;
  background: var(--cc-oled-bg);
  color: var(--cc-celeste);
  font-family: var(--font-mono);
  border-radius: 0.6rem;
  padding: 4.5cqi 5.5cqi;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 0.1rem solid rgba(107, 177, 255, 0.3);
}

.oled-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(1rem, 4.4cqi, 1.3rem);
  line-height: 1;
}

.oled-temp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.oled-temp svg {
  width: 0.9em;
  height: 1.15em;
  flex-shrink: 0;
}

.oled-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
}

.oled-msg {
  margin: 0;
  font-size: clamp(1.1rem, 5.6cqi, 1.7rem);
  line-height: 1.22;
  font-weight: 600;
  color: var(--cc-celeste);
}

.oled-sub {
  margin: 0;
  font-size: clamp(0.95rem, 3.8cqi, 1.2rem);
  opacity: 0.85;
  color: var(--cc-celeste);
}

.oled-mini-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.oled-mini-tab {
  border: 0.1rem solid rgba(187, 236, 254, 0.35);
  background: transparent;
  color: var(--cc-escarcha);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.oled-mini-tab.is-active,
.oled-mini-tab:hover {
  background: var(--cc-escarcha);
  color: var(--cc-tinta);
  border-color: var(--cc-escarcha);
}

/* Media Gráfico de Espectro AS7343 dentro de tarjeta */
.carousel-card__media--spectrum {
  background: var(--cc-blanco);
  border: 0.1rem solid var(--cc-outline-variant);
  padding: 1.2rem 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spectrum-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

@media (min-width: 1025px) {
  .spectrum-legend { font-size: 1.15rem; }
}

.spectrum-legend__fast { color: var(--cc-profundo); }
.spectrum-legend__slow { color: var(--cc-etiqueta); }

.spectrum-svg {
  width: 100%;
  height: auto;
  flex: 1;
}

.carousel-card__body {
  margin: 0 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 1025px) {
  .carousel-card__body {
    margin: 0 2.4rem 2.4rem;
  }
}

.carousel-card__title {
  margin: 0 0 0.8rem;
  color: var(--cc-profundo);
  font-size: 1.8rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

@media (min-width: 1025px) {
  .carousel-card__title {
    font-size: 2.6rem;
    margin-bottom: 1rem;
  }
}

.carousel-card__subtitle {
  margin: 0;
  color: var(--cc-gris);
  font-size: 1.25rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .carousel-card__subtitle {
    font-size: 1.55rem;
  }
}

.carousel-card__cta {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cc-etiqueta);
  text-decoration: none;
}

@media (min-width: 1025px) {
  .carousel-card__cta { font-size: 1.45rem; }
}

.carousel-card__cta:hover {
  color: var(--cc-profundo);
}

/* Flechas circulares (arco + graduation) */
.home-carousel__controls {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 3.6rem;
  margin-bottom: 6.8rem;
}

@media (min-width: 1025px) {
  .home-carousel__controls {
    margin-top: 1.8rem;
    margin-bottom: 8.4rem;
  }
}

.circle-arrow {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: var(--radius-pill);
  border: 0.2rem solid var(--cc-outline-variant);
  background: var(--cc-blanco);
  color: var(--cc-tinta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

@media (min-width: 1025px) {
  .circle-arrow {
    width: 6rem;
    height: 6rem;
  }
}

.circle-arrow:hover {
  background: var(--cc-escarcha);
  border-color: var(--cc-celeste);
  color: var(--cc-profundo);
}

/* Barra de píldoras de categoría (A1 §1.4 & §2.4) */
.categories {
  padding-bottom: 10rem;
  overflow: visible;
}

@media (min-width: 1025px) {
  .categories {
    padding-bottom: 16rem;
  }
}

.categories__wrapper {
  display: flex;
  justify-content: safe center;
  align-items: center;
  gap: 0.9rem;
  padding: 2.4rem 2.4rem;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories__wrapper::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1025px) {
  .categories__wrapper {
    gap: 1.4rem;
  }
}

.categories__button {
  flex-shrink: 0;
  border: 0.15rem solid transparent;
  border-radius: var(--radius-pill);
  background: var(--cc-surface-soft);
  --liquid-fill: var(--cc-surface-soft);
  color: var(--cc-tinta);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 1.3rem 2.6rem;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 1025px) {
  .categories__button {
    font-size: 1.9rem;
    padding: 1.8rem 3.4rem;
    line-height: 1.2;
  }
}

.categories__button.is-active,
.categories__button[aria-checked="true"] {
  background: var(--cc-profundo);
  --liquid-fill: var(--cc-profundo);
  color: var(--cc-blanco);
}

.categories__button:hover:not(.is-active) {
  background: var(--cc-escarcha);
  --liquid-fill: var(--cc-escarcha);
  color: var(--cc-profundo);
}

.categories__status {
  margin: 0.4rem auto 0;
  padding-inline: 2.4rem;
  max-width: 68rem;
  text-align: center;
  font-size: 1.5rem;
  color: var(--cc-gris);
}

/* ==========================================================================
   5. PÁRRAFO GRANDE CENTRADO — EL PROBLEMA (A1 §1.5)
   ========================================================================== */
.about-section {
  position: relative;
  z-index: 2;
  padding: 2rem 2.4rem 8rem;
}

@media (min-width: 1025px) {
  .about-section {
    padding: 2rem 2.4rem 10rem;
  }
}

.about-section__inner {
  max-width: 112.2rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.2rem;
}

.about-section__eyebrow {
  display: block;
  margin: 0 0 1.8rem;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--cc-etiqueta);
}

@media (min-width: 768px) {
  .about-section__eyebrow { font-size: 1.4rem; }
}

.about-section__subheading {
  margin: 0;
  color: var(--cc-tinta);
  font-size: 3rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .about-section__subheading { font-size: 4.4rem; }
}

@media (min-width: 1025px) {
  .about-section__subheading {
    font-size: 5.8rem;
    line-height: 1.1;
  }
}

.problem-strip {
  width: 100%;
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.8rem;
  text-align: left;
}

.problem-strip__badge {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
}

.rupture-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--cc-rojo);
  color: var(--cc-blanco);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-pill);
}

.problem-strip__source {
  font-size: 1.35rem;
  color: var(--cc-gris);
}

/* Lista tipográfica liviana 01–03 sin cajas (sin patrón de 3 tarjetas) */
.problem-factors-wrap {
  width: 100%;
  max-width: 76rem;
}

.problem-factors {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.problem-factors li {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-top: 0.1rem solid rgba(20, 40, 79, 0.12);
}

.problem-factors li:last-child {
  border-bottom: 0.1rem solid rgba(20, 40, 79, 0.12);
}

.problem-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--cc-rojo);
}

.problem-factors p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--cc-tinta);
}

/* ==========================================================================
   6. SECCIÓN PARA QUIÉN Y PRUEBA A CIEGAS (Graduation Cards, A1 §1.6 & §2.6)
   ========================================================================== */
@property --overlay-stop-start {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 17.04%;
}

@property --desc-mask-stop {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 40%;
}

.graduation {
  position: relative;
  z-index: 2;
  padding: 5rem 2.4rem 4rem;
  --inner-width: min(calc(100vw - 4.8rem), 150.5rem);
}

@media (min-width: 1025px) {
  .graduation {
    padding: 10rem 2.4rem 4rem;
  }
}

.graduation__inner {
  max-width: var(--inner-width);
  margin-inline: auto;
  text-align: center;
}

.graduation__head {
  max-width: 78.1rem;
  margin-inline: auto;
}

.graduation__headline {
  margin: 0;
  color: var(--cc-tinta);
  font-size: 3.6rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 1025px) {
  .graduation__headline {
    font-size: 6rem;
  }
}

.graduation__description {
  margin: 2rem 0 0;
  color: var(--cc-gris);
  font-size: 1.6rem;
  line-height: 1.48;
  text-wrap: balance;
}

@media (min-width: 1025px) {
  .graduation__description {
    font-size: 2.3rem;
    line-height: 1.35;
  }
}

.graduation-carousel {
  margin-top: 5rem;
}

@media (min-width: 1025px) {
  .graduation-carousel {
    margin-top: 7.2rem;
  }
}

.graduation-carousel__track {
  --bleed: max(0px, calc((100vw - var(--inner-width)) / 2));
  margin-inline: calc(-1 * var(--bleed));
  padding-inline: var(--bleed);
  scroll-padding-inline: var(--bleed);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(35.2rem, 86vw);
  gap: 2.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 1rem;
}

.graduation-carousel__track::-webkit-scrollbar {
  display: none;
}

.graduation-carousel__track:active {
  cursor: grabbing;
}

.graduation-carousel__track.is-static,
.graduation-carousel__track.is-static:active {
  cursor: default;
}

@media (min-width: 1025px) {
  .graduation-carousel__track {
    gap: clamp(2.4rem, 2.2vw, 4rem);
    grid-auto-columns: min(47.5rem, calc((var(--inner-width) - 2 * clamp(2.4rem, 2.2vw, 4rem)) / 3));
  }
}

.graduation-card {
  position: relative;
  min-height: 54rem;
  padding: 2.4rem;
  border-radius: 2.8rem;
  background: var(--cc-profundo-oscuro);
  color: var(--cc-blanco);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0.1rem solid rgba(187, 236, 254, 0.2);
}

@media (min-width: 1025px) {
  .graduation-card {
    min-height: 66rem;
    padding: 3rem;
    border-radius: 4.2rem;
  }
}

.graduation-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.82;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.graduation-card__bg--viaje {
  object-position: 58% 50%;
}

.graduation-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(7, 31, 77, 0.48) 0%,
    rgba(7, 31, 77, 0.10) var(--overlay-stop-start),
    rgba(7, 31, 77, 0.80) 56%,
    rgba(7, 31, 77, 0.96) 100%
  );
  transition: --overlay-stop-start 0.24s cubic-bezier(0.4, 0, 1, 1);
}

@media (max-width: 1024px) {
  .graduation-card::after {
    background: linear-gradient(
      180deg,
      rgba(7, 31, 77, 0.48) 0%,
      rgba(7, 31, 77, 0.12) 22%,
      rgba(7, 31, 77, 0.86) 46%,
      rgba(7, 31, 77, 0.96) 100%
    );
  }
}

.graduation-card__top,
.graduation-card__content {
  position: relative;
  z-index: 2;
}

.graduation-card__top {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.graduation-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.graduation-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.4rem;
  border-radius: 4.5rem;
  background: rgba(7, 31, 77, 0.68);
  backdrop-filter: blur(1.46rem);
  -webkit-backdrop-filter: blur(1.46rem);
  border: 0.1rem solid rgba(187, 236, 254, 0.36);
  color: var(--cc-blanco);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.graduation-card__pill--after {
  background: rgba(10, 58, 140, 0.84);
  backdrop-filter: blur(1.46rem);
  -webkit-backdrop-filter: blur(1.46rem);
  border-color: rgba(187, 236, 254, 0.48);
  color: var(--cc-blanco);
  font-weight: 600;
}

/* Tarjeta sobre video compacta arriba a la derecha (no tapa al chef) */
.video-overlay-mini {
  align-self: flex-end;
  background: rgba(247, 252, 255, 0.96);
  color: var(--cc-tinta);
  border-radius: 1.6rem;
  padding: 1rem 1.2rem;
  width: min(19.5rem, 64%);
  box-shadow: 0 1rem 2.6rem rgba(7, 31, 77, 0.32);
}

@media (min-width: 1025px) {
  .video-overlay-mini {
    padding: 1.2rem 1.4rem;
    width: min(22rem, 100%);
  }
}

.overlay-pill {
  display: inline-block;
  background: var(--cc-profundo);
  color: var(--cc-blanco);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
}

.overlay-price {
  margin: 0.6rem 0 0.3rem;
  font-size: 2.8rem;
  line-height: 1.02;
  color: var(--cc-profundo);
}

.overlay-line {
  margin: 0.15rem 0;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--cc-tinta);
}

.overlay-line--muted {
  color: var(--cc-gris);
  font-size: 1.15rem;
}

.overlay-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.8rem 0 0;
  padding-top: 0.7rem;
  border-top: 0.1rem solid var(--cc-outline-variant);
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--cc-profundo);
}

.check-dot {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--cc-etiqueta);
  color: var(--cc-blanco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Franja compacta translúcida de precios por volumen (Card 2, abajo junto al titular) */
.enterprise-volume-strip {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  border-radius: 1.4rem;
  background: rgba(7, 31, 77, 0.56);
  backdrop-filter: blur(1.2rem);
  -webkit-backdrop-filter: blur(1.2rem);
  border: 0.1rem solid rgba(187, 236, 254, 0.24);
}

.enterprise-volume-strip li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-right: 0.1rem solid rgba(187, 236, 254, 0.2);
  padding-right: 0.6rem;
}

.enterprise-volume-strip li:last-child {
  border-right: 0;
  padding-right: 0;
}

.enterprise-volume-strip span {
  font-size: 1.15rem;
  color: var(--cc-escarcha);
}

.enterprise-volume-strip strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cc-blanco);
}

/* Cifra 96% limpia sin caja opaca + OLED compacta alineada a la izquierda (nunca pegada al borde derecho) */
.oled-unit--mini {
  align-self: flex-start;
  width: min(23.5rem, 100%);
  padding: 0.6rem;
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.42);
}

.blind-stat-clean {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.blind-stat-num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 5.4rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--cc-escarcha);
  text-shadow: 0 0.2rem 1.6rem rgba(7, 31, 77, 0.72);
}

.blind-stat-label {
  font-size: 1.3rem;
  line-height: 1.32;
  color: var(--cc-hielo);
  max-width: 18ch;
  text-shadow: 0 0.1rem 1rem rgba(7, 31, 77, 0.72);
}

.graduation-card__content {
  margin-top: auto;
  padding-top: 2rem;
}

.graduation-card__headline {
  margin: 0;
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cc-blanco);
}

@media (min-width: 1025px) {
  .graduation-card__headline {
    font-size: 4rem;
  }
}

/* Dato clave siempre visible sin hover */
.graduation-card__key {
  margin: 1rem 0 0;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--cc-escarcha);
}

.graduation-card__key strong {
  color: var(--cc-blanco);
  font-weight: 700;
}

.graduation-card__description {
  margin-top: 1.2rem;
}

.graduation-card__description-text p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.48;
  color: var(--cc-hielo);
  max-width: 39rem;
}

@media (min-width: 1025px) {
  .graduation-card__description-text p {
    font-size: 1.75rem;
    line-height: 1.42;
  }
}

.graduation-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.4rem;
  padding: 1.2rem 2.6rem;
  border-radius: var(--radius-pill);
  border: 0.2rem solid rgba(187, 236, 254, 0.45);
  background: transparent;
  --liquid-fill: transparent;
  --liquid-stroke: rgba(187, 236, 254, 0.45);
  --liquid-stroke-w: 2;
  color: var(--cc-blanco);
  font-size: 1.55rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.graduation-card__cta:hover,
.graduation-card__cta:focus-visible {
  background: var(--cc-escarcha);
  border-color: var(--cc-escarcha);
  --liquid-fill: var(--cc-escarcha);
  --liquid-stroke: var(--cc-escarcha);
  color: var(--cc-tinta);
}

/* Hover interactivo en bloque como A1 §2.6 solo en dispositivos con puntero fino */
@media (hover: hover) and (min-width: 1025px) {
  .graduation-card__body {
    transform: translateY(0);
    transition: transform 1.36055s linear(
      0, 0.043, 0.162, 0.34, 0.556, 0.79, 1.02, 1.229, 1.402, 1.524,
      1.588, 1.591, 1.539, 1.441, 1.312, 1.167, 1.023, 0.896, 0.798,
      0.739, 0.724, 0.751, 0.815, 0.906, 1.01, 1.112, 1.199, 1.26,
      1.288, 1.281, 1.242, 1.179, 1.104, 1.027, 0.96, 0.911, 0.885,
      0.886, 0.912, 0.955, 1.008, 1.06, 1.103, 1.132, 1.146, 1.141,
      1.12, 1.088, 1.05, 1.012, 0.978, 0.955, 0.946, 0.952, 0.969,
      0.993, 1.019, 1.041, 1.056, 1.062, 1.058, 1.046, 1.029, 1.01, 1
    );
  }

  .graduation-card__description {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    transition: grid-template-rows 0.24s cubic-bezier(0.4, 0, 1, 1),
                margin-top 0.24s cubic-bezier(0.4, 0, 1, 1);
  }

  .graduation-card__description-text {
    overflow: hidden;
    opacity: 0;
    mask-image: linear-gradient(to bottom, #000 var(--desc-mask-stop), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 var(--desc-mask-stop), transparent 100%);
    transition: opacity 0.13s cubic-bezier(0.4, 0, 1, 1),
                --desc-mask-stop 0.13s cubic-bezier(0.4, 0, 1, 1);
  }

  .graduation-card:hover::after,
  .graduation-card:focus-within::after {
    --overlay-stop-start: 8%;
    transition: --overlay-stop-start 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .graduation-card:hover .graduation-card__bg,
  .graduation-card:focus-within .graduation-card__bg {
    transform: scale(1.04);
  }

  .graduation-card:hover .graduation-card__body,
  .graduation-card:focus-within .graduation-card__body {
    transform: translateY(-1.2rem);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .graduation-card:hover .graduation-card__description,
  .graduation-card:focus-within .graduation-card__description {
    grid-template-rows: 1fr;
    margin-top: 1.6rem;
    transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                margin-top 0.88s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .graduation-card:hover .graduation-card__description-text,
  .graduation-card:focus-within .graduation-card__description-text {
    opacity: 1;
    --desc-mask-stop: 100%;
    transition: opacity 0.46s cubic-bezier(0.16, 1, 0.3, 1) 80ms,
                --desc-mask-stop 0.46s cubic-bezier(0.16, 1, 0.3, 1) 80ms;
  }
}

.graduation-carousel__controls {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 4.8rem;
}

.graduation-carousel__controls[hidden] {
  display: none;
}

@media (min-width: 1025px) {
  .graduation-carousel__controls {
    margin-top: 6.4rem;
  }
}

/* ==========================================================================
   7. EQUIPO UC
   ========================================================================== */
.team-section {
  position: relative;
  z-index: 2;
  padding: 8rem 2.4rem 4rem;
}

@media (min-width: 1025px) {
  .team-section {
    padding: 13rem 2.4rem 4rem;
  }
}

.team-section__inner {
  max-width: 124rem;
  margin-inline: auto;
}

.team-section__head {
  text-align: center;
  max-width: 78rem;
  margin: 0 auto 4.8rem;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}

@media (min-width: 840px) {
  .team-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    gap: 2.8rem;
  }
}

.team-video-card,
.team-speaker-card {
  margin: 0;
  border-radius: 2.8rem;
  overflow: hidden;
  border: 0.1rem solid var(--cc-outline-variant);
  background: var(--cc-blanco);
}

.team-video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--cc-tinta);
}

.team-speaker-card {
  display: flex;
  flex-direction: column;
}

.team-speaker-media {
  position: relative;
  overflow: hidden;
  background: var(--cc-tinta);
}

.team-speaker-media > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Rótulo de nombre ColdCheck (exacto de guía web) */
.name-tag {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  z-index: 2;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--cc-blanco);
  color: var(--cc-profundo);
  padding: 0.9rem 1.6rem 0.9rem 1.4rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 1.4rem rgba(20, 40, 79, 0.16);
  border: 0.1rem solid rgba(10, 58, 140, 0.14);
  font-size: 1.6rem;
  line-height: 1.2;
}

.name-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.35rem;
  background: var(--cc-etiqueta);
}

.name-tag img {
  width: 2.2rem;
  height: 2rem;
}

.name-tag-sep {
  width: 0.1rem;
  height: 1.8rem;
  background: var(--cc-outline-variant);
}

.team-speaker-quote {
  margin: 0;
  padding: 2.2rem 2.4rem;
  font-size: 1.65rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--cc-profundo);
}

.team-foot {
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 0.1rem solid var(--cc-outline-variant);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.team-names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.8rem;
  color: var(--cc-profundo);
  font-size: 1.8rem;
}

.brand-pills {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.brand-pills span {
  display: block;
  height: 2.4rem;
  border-radius: var(--radius-pill);
}
.brand-pills .p-long  { width: 9.6rem; background: var(--cc-profundo); }
.brand-pills .p-short { width: 3.6rem; background: var(--cc-azul-medio); }

/* ==========================================================================
   8. PRE-FOOTER + MATTER.JS FALLING SHAPES (A1 §1.7, §1.8, §2.7, §2.8)
   ========================================================================== */
.pre-footer {
  position: relative;
  z-index: 2;
  padding-inline: 2.4rem;
  overflow-x: clip;
}

.pre-footer__inner {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-top: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 1025px) {
  .pre-footer__inner {
    padding-top: 15rem;
  }
}

.pre-footer__title-wrap {
  max-width: 89.2rem;
}

.pre-footer__title {
  margin: 0;
  color: var(--cc-tinta);
  font-size: 3.4rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .pre-footer__title { font-size: 4.8rem; }
}

@media (min-width: 1025px) {
  .pre-footer__title { font-size: 6rem; }
}

.pre-footer__actions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 4rem;
  width: 100%;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .pre-footer__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
    width: auto;
    margin-top: 5rem;
  }
}

/* Slot-machine hover por carácter (A1 §2.7: 377ms / 233ms / 8ms stagger / --phi: 1.618) */
.pre-footer__cta {
  --phi: 1.618;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--cc-surface-soft);
  --liquid-fill: var(--cc-surface-soft);
  color: var(--cc-tinta);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1.5rem 3rem;
  line-height: 1.25;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (min-width: 1025px) {
  .pre-footer__cta {
    font-size: 1.8rem;
    padding: 1.9rem 3.8rem;
  }
}

.pre-footer__cta:hover,
.pre-footer__cta:focus-visible,
.pre-footer__cta.is-selected {
  background: var(--cc-profundo);
  --liquid-fill: var(--cc-profundo);
  color: var(--cc-blanco);
}

.pre-footer__cta-track {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  vertical-align: middle;
}

.slot-line {
  grid-area: 1 / 1;
  display: inline-flex;
  justify-content: center;
  white-space: pre;
}

.slot-char {
  display: inline-block;
  transition: transform 377ms cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i) * 8ms),
              opacity 233ms cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i) * 8ms);
}

.slot-line--default .slot-char {
  transform: translateY(0);
  opacity: 1;
}

.slot-line--hover .slot-char {
  transform: translateY(calc(var(--phi) * 1em));
  opacity: 0;
}

.pre-footer__cta:hover .slot-line--default .slot-char,
.pre-footer__cta:focus-visible .slot-line--default .slot-char {
  transform: translateY(calc(var(--phi) * -1em));
  opacity: 0;
}

.pre-footer__cta:hover .slot-line--hover .slot-char,
.pre-footer__cta:focus-visible .slot-line--hover .slot-char {
  transform: translateY(0);
  opacity: 1;
}

/* Formulario de correo */
.pre-footer__form {
  width: 100%;
  max-width: 54rem;
  margin-top: 3.4rem;
  text-align: left;
  position: relative;
  z-index: 4;
}

.field-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cc-tinta);
  margin-bottom: 0.8rem;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.field-input {
  flex: 1 1 24rem;
  min-width: 0;
  min-height: 5rem;
  padding: 1.1rem 1.6rem;
  border-radius: 0.8rem;
  border: 0.15rem solid var(--cc-outline);
  background: var(--cc-blanco);
  color: var(--cc-tinta);
  font-family: var(--font-sans);
  font-size: 1.55rem;
  transition: border-color 0.2s ease;
}

.field-input::placeholder {
  color: var(--cc-gris);
}

.field-input:focus {
  border-color: var(--cc-profundo);
  border-width: 0.2rem;
}

.field-input[aria-invalid="true"] {
  border-color: var(--cc-rojo);
  border-width: 0.2rem;
}

.email-submit {
  flex-shrink: 0;
  min-height: 5rem;
  padding: 0 2.8rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--cc-profundo);
  --liquid-fill: var(--cc-profundo);
  color: var(--cc-blanco);
  font-size: 1.55rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.email-submit:hover {
  background: var(--cc-tinta);
  --liquid-fill: var(--cc-tinta);
}

.field-help {
  margin: 0.8rem 0 0;
  font-size: 1.35rem;
  color: var(--cc-gris);
  min-height: 2rem;
}

.field-help.is-error {
  color: var(--cc-rojo);
  font-weight: 600;
}

.field-help.is-ok {
  color: var(--cc-profundo);
  font-weight: 600;
}

/* Física de formas apiladas (A1 §1.8 & §2.8) */
.pre-footer-shapes {
  position: relative;
  z-index: 1;
}

.pre-footer-shapes__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  position: relative;
}

.pre-footer-shapes__inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.1rem;
  background: var(--cc-tinta);
}

.falling-pit {
  position: relative;
  width: 100%;
  margin-top: 4rem;
  aspect-ratio: 352 / 250;
  overflow-x: clip;
  overflow-y: visible;
  touch-action: pan-y;
}

@media (min-width: 401px) {
  .falling-pit { aspect-ratio: 722 / 490; }
}

@media (min-width: 769px) {
  .falling-pit {
    margin-top: 5rem;
    aspect-ratio: 1888 / 860;
  }
}

.falling-pit.wheel-pass {
  pointer-events: none;
}

.falling-shape {
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.falling-shape:active {
  cursor: grabbing;
}

.falling-shape__svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: color 0.35s ease;
}

.falling-shape.is-entering .falling-shape__svg {
  animation: svg-shape-enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 70ms) both;
}

@keyframes svg-shape-enter {
  0%   { transform: scale(0.5); filter: blur(7px); opacity: 0; }
  55%  { filter: blur(2px); opacity: 1; }
  100% { transform: scale(1); filter: blur(0); opacity: 1; }
}

/* ==========================================================================
   9. FOOTER (A1 §1.9 & §2.10)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  color: var(--cc-tinta);
  padding: 3.2rem 2.4rem 0;
}

@media (min-width: 1025px) {
  .site-footer {
    padding-top: 5.4rem;
  }
}

.site-footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.site-footer__main {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

@media (min-width: 768px) {
  .site-footer__main {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 2.4rem;
  }
}

.site-footer__motto {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--cc-tinta);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.4rem;
}

@media (min-width: 1025px) {
  .site-footer__links { gap: 1.2rem 5rem; }
}

.site-footer__links a {
  text-decoration: none;
  font-size: 1.6rem;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.site-footer__links a:hover {
  opacity: 1;
}

.site-footer__wordmark {
  width: 100%;
  margin-top: 3.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 0.1rem solid var(--cc-tinta);
}

@media (min-width: 1025px) {
  .site-footer__wordmark {
    margin-top: 6.4rem;
    padding-bottom: 2.8rem;
  }
}

.site-footer__wordmark svg {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer__socket {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.4rem 3.2rem;
  padding-block: 3rem 3.6rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cc-gris);
}

@media (min-width: 768px) {
  .site-footer__socket {
    justify-content: center;
    gap: 1.6rem 5.6rem;
  }
}

@media (min-width: 1025px) {
  .site-footer__socket {
    gap: 1.6rem 10rem;
    padding-block: 4.2rem 4rem;
  }
}

/* ==========================================================================
   10. PREFERS-REDUCED-MOTION (A1 §4 + brief)
   Sin deriva, sin caída, sin scrub, sin autoplay
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .drift-x, .drift-y, .drift-r,
  .bg-shapes__float-x, .bg-shapes__float-y, .bg-shapes__float-r,
  .bg-shapes__slot, .bg-shapes__morph, .falling-shape__svg {
    animation: none !important;
  }

  .bg-shapes__slot {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }

  .featured-hero__mask {
    mask: none !important;
    -webkit-mask: none !important;
  }

  .featured-hero__progress.is-active .featured-hero__progress-fill {
    width: 100% !important;
  }

  .featured-hero__pause {
    display: none !important;
  }

  .falling-pit {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .graduation-card__body,
  .graduation-card__headline,
  .graduation-card__description,
  .graduation-card__description-text,
  .graduation-card::after {
    transition: none !important;
  }

  .slot-char {
    transform: none !important;
    transition: opacity 0.12s ease !important;
    transition-delay: 0ms !important;
  }

  .pre-footer__cta:hover .slot-line--default .slot-char,
  .pre-footer__cta:focus-visible .slot-line--default .slot-char {
    transform: none !important;
  }

  .pre-footer__cta:hover .slot-line--hover .slot-char,
  .pre-footer__cta:focus-visible .slot-line--hover .slot-char {
    transform: none !important;
  }

  .site-header[data-open="true"] .mm-shape {
    transition: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
