:root {
  --background: #160d25;
  --text: #ffffff;
  --muted: #ffffff;
  --cyan: #42e1dd;
  --yellow: #ffd000;
  --card-bg: rgba(113, 27, 123, 0.36);
  --card-border: rgba(80, 224, 221, 0.20);

  /* POSICIONES DE ESCRITORIO */
  --logo-top: 6%;
  --logo-width: 31%;

  --fecha-top: 30%;
  --fecha-width: 28%;

  --descubre-top: 40%;
  --descubre-width: 14%;

  --contador-top: 47.3%;
  --contador-width: 53%;
  --contador-height: 20%;

  --frase-top: 69%;
  --frase-width: 40%;

  /* Posición dentro del banner independiente */
  --boton-top: 60%;
  --boton-width: 19%;

  /* Reserva aproximada del banner en escritorio */
  --banner-height: 23svh;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--background);
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--background);
  overflow-x: hidden;
}

/* CONTENEDOR GENERAL */

.landing {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* PARTE SUPERIOR */

.hero {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--banner-height));
  min-height: 360px;
  isolation: isolate;
  text-align: center;
}

/*
  El diseño anterior situaba los elementos sobre una composición
  completa. Esta capa conserva esa referencia de posiciones.
*/
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% / 0.77);
  pointer-events: none;
}

/* VIDEO DE FONDO */

.background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--background);
}

.background-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-mobile {
  display: none;
}

/* ELEMENTOS SOBRE EL VIDEO */

.logo-wrapper,
.date-wrapper,
.discover-wrapper,
.headline-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.logo-wrapper {
  top: var(--logo-top);
  width: min(var(--logo-width), 53svh);
}

.date-wrapper {
  top: var(--fecha-top);
  width: min(var(--fecha-width), 48svh);
}

.discover-wrapper {
  top: var(--descubre-top);
  width: min(var(--descubre-width), 24svh);
}

.headline-wrapper {
  top: var(--frase-top);
  width: min(var(--frase-width), 68svh);
}

.logo-wrapper img,
.date-wrapper img,
.discover-wrapper img,
.headline-wrapper img,
.registration-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.date-wrapper picture,
.discover-wrapper picture,
.headline-wrapper picture,
.registration-wrapper picture {
  display: block;
  width: 100%;
}

/* CONTADOR */

.countdown {
  position: absolute;
  top: var(--contador-top);
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--contador-width), 91svh);
  height: var(--contador-height);

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.time-card {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 12px 4px;
  overflow: hidden;

  border: 1px solid var(--card-border);
  border-top-color: rgba(66, 225, 221, 0.85);
  border-bottom-color: rgba(66, 225, 221, 0.85);
  border-left-color: rgba(66, 225, 221, 0.20);
  border-right-color: rgba(66, 225, 221, 0.20);
  border-radius: 20px;

  background: rgba(22, 13, 37, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.time-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(66, 225, 221, 0.45),
    transparent
  );
}

.number {
  display: block;
  color: var(--cyan);
  font-size: clamp(24px, min(4.5vw, 7.7svh), 76px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.label {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: clamp(7px, min(0.75vw, 1.28svh), 10px);
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

/* BANNER INDEPENDIENTE */

.promo-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #ffdf00;
}

.banner-picture {
  display: block;
  width: 100%;
}

.banner-image {
  display: block;
  width: 100%;
  height: auto;
}

/* BOTÓN SOBRE LOS RAYOS */

.registration-wrapper {
  position: absolute;
  top: var(--boton-top);
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--boton-width);
  margin: 0;
}

#af-abrir {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transform: none;

  font: inherit;
  line-height: 0;
  cursor: pointer;
  transition: filter 180ms ease;
}

#af-abrir:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
  filter: brightness(1.12);
}

#af-abrir:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

/* ESCRITORIO: BANNER CON ALTURA RESERVADA */

@media (min-width: 601px) {
  .promo-banner {
    height: var(--banner-height);
    min-height: 100px;
  }

  .banner-picture,
  .banner-image {
    height: 100%;
  }

  .banner-image {
    object-fit: fill;
  }

  .registration-wrapper {
    width: min(var(--boton-width), 32.5svh);
  }
}

/* ESCRITORIO ESTRECHO */

@media (min-width: 601px) and (max-width: 1000px) {
  .countdown {
    gap: 10px;
  }

  .time-card {
    padding: 6px 2px;
    border-radius: 12px;
  }

  .label {
    margin-top: 5px;
    letter-spacing: 0.08em;
  }
}

/* MÓVIL */

@media (max-width: 600px) {
  :root {
    --logo-top: 10%;
    --logo-width: 78%;

    --fecha-top: 29%;
    --fecha-width: 76%;

    --descubre-top: 35%;
    --descubre-width: 40%;

    --contador-top: 42%;
    --contador-width: 92%;
    --contador-height: 10%;

    --frase-top: 53%;
    --frase-width: 85%;

    /* Posición dentro del banner móvil */
    --boton-top: 32%;
    --boton-width: 55%;
  }

  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 604 / 846;
  }

  /*
    Conserva tus posiciones sobre la referencia móvil anterior,
    cuya altura total era 1233.
  */
  .hero-content {
    height: calc(100% * 1233 / 846);
  }

  .video-desktop {
    display: none;
  }

  .video-mobile {
    display: block;
  }

  .logo-wrapper {
    width: var(--logo-width);
  }

  .date-wrapper {
    width: var(--fecha-width);
  }

  .discover-wrapper {
    width: var(--descubre-width);
  }

  .headline-wrapper {
    width: var(--frase-width);
  }

  .countdown {
    width: var(--contador-width);
    gap: 6px;
  }

  /* Conserva la transparencia total que solicitaste */
  .time-card {
    padding: 6px 2px;
    border-radius: 10px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .number {
    font-size: clamp(25px, 8vw, 44px);
  }

  .label {
    margin-top: 6px;
    font-size: 7px;
    letter-spacing: 0.04em;
  }

  .promo-banner {
    height: auto;
  }
}

/* ACCESIBILIDAD */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.noscript-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 8px;
  background: var(--background);
  color: white;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  #af-abrir {
    transition: none;
  }
}

/* COMPACTAR LA PARTE SUPERIOR EN MÓVIL */
@media (max-width: 600px) {
  .hero {
    aspect-ratio: 604 / 720;
  }

  .hero-content {
    height: calc(100% * 1233 / 846);
  }

  :root {
    --logo-top: 5%;
    --fecha-top: 27%;
    --descubre-top: 34%;
    --contador-top: 40%;
    --frase-top: 52%;
  }
}

/* DISTRIBUCIÓN DE TEXTOS SOLO EN MÓVIL */
@media (max-width: 600px) {
  :root {
    --logo-top: 3%;
    --fecha-top: 24%;
    --descubre-top: 34%;
    --contador-top: 41%;
    --frase-top: 51%;
  }
}

/* BAJAR EL BANNER SIN DEJAR UNA FRANJA */
@media (max-width: 600px) {
  .hero {
    margin-bottom: 0;
    aspect-ratio: auto;
    height: calc(100vw * 720 / 604 + 10px);
  }

  .hero-content {
    height: calc(100vw * 720 / 604 * 1233 / 846);
  }
}