:root {
  --bg: #ffffff;
  --bg-elevated: #f2f2f0;
  --metal: #0a0a0a;
  --ink: #141312;
  --muted: #6b6864;
  --blood: #8a1620;
  --hair: rgba(10, 10, 10, 0.12);

  --display: 'Archivo', sans-serif;
  --body: 'Manrope', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}


/* =========================
   GENERAL
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}

::selection {
  background: var(--blood);
  color: #ffffff;
}

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


/* =========================
   TEXTURA / FONDO
========================= */

.grain {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;

  opacity: 0.035;
  mix-blend-mode: multiply;

  background-image: url(
    "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
  );
}

.bg-fill {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-watermark {
  position: absolute;

  top: 56%;
  left: 46%;

  width: 1500px;
  height: 1500px;

  transform: translate(-50%, -50%) rotate(-22deg);

  background-image: url('../assets/logo-mark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0.09;
  mix-blend-mode: multiply;
  filter: grayscale(1);
}

.bg-stripes {
  position: absolute;
  inset: 0;

  background-image: repeating-linear-gradient(
    115deg,
    rgba(10, 10, 10, 0.025) 0px,
    rgba(10, 10, 10, 0.025) 1px,
    transparent 1px,
    transparent 68px
  );
}


/* =========================
   PARTÍCULAS
========================= */

.ember {
  position: absolute;

  width: 2px;
  height: 2px;

  border-radius: 50%;

  background: rgba(138, 22, 32, 0.55);

  box-shadow:
    0 0 6px 1px rgba(138, 22, 32, 0.35);

  animation: embermove linear infinite;
}

@keyframes embermove {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-120vh) translateX(30px);
    opacity: 0;
  }
}


/* =========================
   NAVEGACIÓN
========================= */

nav {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 26px 6vw;

  opacity: 0;
  transform: translateY(-10px);

  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.nav-mark {
  font-family: var(--display);
  font-weight: 700;

  font-size: 13.5px;
  letter-spacing: 0.06em;

  color: var(--metal);
}


/* =========================
   ESCENARIO PRINCIPAL
========================= */

.stage-wrap {
  position: relative;
  height: 195vh;
}

.stage {
  position: sticky;
  top: 0;

  height: 100svh;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================
   LOGO INICIAL
========================= */

.logo-stage {
  position: absolute;
  inset: 0;

  z-index: 2;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 6vh 6vw;

  will-change: transform, opacity;
}

.flip-perspective {
  width: min(34vw, 230px);
  aspect-ratio: 1 / 1;

  perspective: 1600px;

  will-change: transform;

  flex: none;
}

.flip-inner {
  position: relative;

  width: 100%;
  height: 100%;

  transform-style: preserve-3d;

  transform: rotateY(0deg);

  will-change: transform;
}

.flip-face {
  position: absolute;
  inset: 0;

  backface-visibility: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-face img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  filter:
    drop-shadow(0 10px 30px rgba(10, 10, 10, 0.18));
}

.flip-face.back {
  transform: rotateY(180deg);
}

.logo-tagline {
  margin-top: 20px;

  max-width: 400px;

  font-size: 14px;
  line-height: 1.65;

  color: var(--muted);

  opacity: 0;
}

.event-date {
  margin-top: 14px;

  font-family: var(--mono);
  font-size: 12px;

  letter-spacing: 0.08em;

  color: var(--muted);
}


/* =========================
   INDICADOR DE SCROLL
========================= */

.scroll-cue {
  position: absolute;
  bottom: 44px;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 10px;

  z-index: 2;
}

.scroll-cue-line {
  width: 1px;
  height: 44px;

  background:
    linear-gradient(
      var(--muted),
      transparent
    );

  animation:
    scrollpulse 2.2s ease-in-out infinite;
}

@keyframes scrollpulse {
  0% {
    transform: scaleY(0.3);
    transform-origin: top;
    opacity: 0.35;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  100% {
    transform: scaleY(0.3);
    transform-origin: top;
    opacity: 0.35;
  }
}

.scroll-cue-label {
  font-family: var(--mono);
  font-size: 10.5px;

  color: var(--muted);
}


/* =========================
   SECCIÓN TRAILER
========================= */

.trailer-stage {
  position: absolute;
  inset: 0;

  z-index: 3;

  opacity: 0;
  pointer-events: none;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 2.5vh 0;

  will-change: opacity;
}

.trailer-bg-glow {
  position: absolute;
  inset: 0;

  z-index: 0;

  background:
    radial-gradient(
      circle at 70% 25%,
      rgba(138, 22, 32, 0.10),
      transparent 55%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(10, 10, 10, 0.05),
      transparent 55%
    );
}

.trailer-kicker {
  position: relative;
  z-index: 2;

  font-family: var(--mono);

  font-size: 11px;

  color: var(--blood);

  margin-bottom: 8px;
}


/* =========================
   REPRODUCTOR
========================= */

.trailer-video-frame {
  position: relative;

  z-index: 2;

  width: 100vw;
  height: 80vh;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  margin-bottom: 10px;

  background: #000;

  overflow: hidden;

  isolation: isolate;

  /*
     El iframe ocupa todo el ancho.
     No agregamos bordes ni controles encima
     para mantener el look limpio del reproductor.
  */

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.12);
}


/*
   GOOGLE DRIVE
*/

.trailer-video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}


/* =========================
   TEXTO BAJO EL TRAILER
========================= */

.trailer-stage h2 {
  position: relative;

  z-index: 2;

  font-family: var(--display);

  font-weight: 700;

  color: var(--metal);

  font-size:
    clamp(1.1rem, 2.2vw, 1.5rem);

  max-width: 600px;
}

.trailer-stage p {
  position: relative;

  z-index: 2;

  max-width: 420px;

  margin-top: 12px;

  color: var(--muted);

  font-size: 13.5px;

  line-height: 1.6;
}


/* =========================
   FOOTER
========================= */

footer {
  position: relative;

  z-index: 1;

  padding:
    8vh 6vw 6vh;

  text-align: center;

  border-top:
    1px solid var(--hair);
}

.footer-mark {
  font-family: var(--display);

  font-weight: 800;

  font-size: 15px;

  color: var(--metal);

  letter-spacing: 0.04em;

  margin-bottom: 5vh;
}

.footer-ig-grid {
  display: flex;
  flex-wrap: wrap;

  justify-content: center;

  gap: 10px 16px;

  max-width: 900px;

  margin: 0 auto;
}

.footer-ig-grid a {
  font-family: var(--mono);

  font-size: 12px;

  color: var(--ink);

  padding: 8px 14px;

  border:
    1px solid var(--hair);

  border-radius: 100px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.footer-ig-grid a:hover {
  border-color: var(--blood);

  background:
    rgba(138, 22, 32, 0.08);

  color: var(--blood);
}


/* =========================
   PANTALLAS BAJAS
========================= */

@media (max-height: 720px) {

  .flip-perspective {
    width: min(26vw, 170px);
  }

  .logo-tagline {
    margin-top: 14px;
    font-size: 13px;
  }

  .trailer-video-frame {
    height: 68vh;
    margin-bottom: 8px;
  }

  .trailer-stage h2 {
    font-size:
      clamp(1rem, 2vw, 1.3rem);
  }
}


/* =========================
   MÓVIL
========================= */

@media (max-width: 768px) {

  nav {
    padding:
      20px 5vw;
  }

  .nav-brand img {
    width: 23px;
    height: 23px;
  }

  .nav-mark {
    font-size: 12px;
  }


  .flip-perspective {
    width: min(52vw, 210px);
  }


  .trailer-stage {
    padding: 2vh 0;
  }


  /*
     Mantiene el trailer cómodo en móvil.
  */

  .trailer-video-frame {
    width: 100vw;

    height: 56.25vw;

    min-height: 230px;

    max-height: 68vh;

    margin-bottom: 14px;
  }


  .trailer-stage h2 {
    padding:
      0 20px;

    font-size: 1.15rem;
  }


  .event-date {
    font-size: 10.5px;
  }


  footer {
    padding:
      7vh 5vw 5vh;
  }
}


/* =========================
   MOVIMIENTO REDUCIDO
========================= */

@media (prefers-reduced-motion: reduce) {

  * {
    animation: none !important;
    transition: none !important;
  }

}