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

:root {
  --base-size: 1512;
  --base-vw: 100vw;
  --creme-peche: #F2D7B8;
  --rose-flash: #FF7B91;
  --rouge-coquelicot: #F64518;
}

body {
  background-color: #FFA7E3;
  color: var(--rouge-coquelicot);
  overflow-x: hidden;
  font-family: 'Bebas Neue', sans-serif;
}

/* Intro splash */
.intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.intro-left,
.intro-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-color: #FFA7E3;
}

.intro-left {
  left: 0;
}

.intro-right {
  right: 0;
}

.intro-logo {
  position: relative;
  z-index: 1;
  max-width: clamp(150px, 25vw, 350px);
  height: auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.marquee-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 100;
  padding: 0.8rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-left 20s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFC107;
  padding: 0 0.4em;
}

.marquee-track .marquee-sep {
  color: #FFA7E3;
  font-size: 0.8em;
  padding: 0 0.2em;
}

@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%);
  }
}

.title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(4rem, calc(298 / var(--base-size) * var(--base-vw)), 20rem);
  letter-spacing: 0.01em;
  line-height: 0.85;
  white-space: nowrap;
  cursor: default;
}

/* Estilos para cada caracter generado por el split */
.title .char {
  display: inline-block;
  position: relative;
  overflow: clip;
  cursor: default;
}

.title .char .char-inner {
  display: block;
}

.title .char .char-clone {
  display: block;
  position: absolute;
  top: 0;
  right: -100%;
}

/* Pantalla 2 */
.screen-2 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #F8CA2E;
  overflow: visible;
}

.chica-yellow {
  position: absolute;
  bottom: 0;
  left: 2%;
  height: 88vh;
  aspect-ratio: 3 / 4;
  z-index: 2;
}

.chica-yellow-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chica-yellow-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 97%;
  margin: 0;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 7vw, 8rem);
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  -webkit-text-stroke: 2.5px #fff;
  z-index: 3;
  pointer-events: none;
}

.chica-yellow-title .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* CTA TikTok: flecha blanca -> logo (gif) + "tik tok", enlaza al perfil */
.tiktok-cta {
  position: absolute;
  top: 22vh;
  left: 31%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}

.tiktok-cta:hover {
  transform: scale(1.06) rotate(-1deg);
}

.tiktok-arrow {
  width: clamp(64px, 7vw, 120px);
  height: auto;
  flex: 0 0 auto;
  margin-bottom: 1.5vh;
}

.tiktok-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tiktok-logo {
  width: clamp(90px, 11vw, 165px);
  height: auto;
  display: block;
}

.tiktok-label {
  margin-top: 0.1rem;
  font-family: 'Bebas Neue', sans-serif;
  color: #ffffff;
  font-size: clamp(1.2rem, 1.9vw, 2.1rem);
  letter-spacing: 0.1em;
  line-height: 1;
}

/* Screen 2 – línea divisora vertical */
.screen-2::before {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 2px;
  background-color: var(--rouge-coquelicot);
  opacity: 0.3;
  z-index: 2;
}

/* Screen 2 – contenido derecho */
.screen-2-content {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  z-index: 3;
}

.screen-2-text {
  text-align: left;
  width: 100%;
}

/* Jerarquía: título display */
.screen-2-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 4.6vw, 5.5rem);
  color: var(--rouge-coquelicot);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.screen-2-title .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Jerarquía: cuerpo legible */
.screen-2-body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(0.9rem, 1.05vw, 1.2rem);
  line-height: 1.5;
  color: #2b2320;
  max-width: 48ch;
}

.screen-2-body + .screen-2-body {
  margin-top: 1em;
}

.screen-2-title + .screen-2-body {
  margin-top: 1.3rem;
}

/* Jerarquía: subtítulo de sección */
.screen-2-label {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 2.1vw, 2.4rem);
  color: #ffffff;
  letter-spacing: 0.09em;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.screen-2-trailer {
  position: relative;
  width: 100%;
}

.trailer-marquee {
  position: absolute;
  bottom: 0.35em;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
}

.trailer-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: trailer-scroll 26s linear infinite;
  width: max-content;
}

.trailer-marquee-track span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 5vw, 6rem);
  color: #fff;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 900;
  -webkit-text-stroke: 3px #fff;
  padding: 0 0.5em;
}

@keyframes trailer-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trailer-frame {
  border: 12px solid #FFA7E3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trailer-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Pantalla 3 – acordeón horizontal de categorías (expande al hover) */
.screen-3 {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: #0E0E0E;
}

.accordion {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.acc-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.acc-panel.is-open {
  flex-grow: 11;
}

/* Colores de marca por panel */
.acc-panel--1 { background-color: #F8CA2E; color: #F64518; }
.acc-panel--2 { background-color: #ffffff; color: #F64518; }
.acc-panel--3 { background-color: #FFA7E3; color: #F64518; }
.acc-panel--4 { background-color: #0E0E0E; color: #ffffff; }
.acc-panel--5 { background-color: #F64518; color: #ffffff; }
.acc-panel--6 { background-color: #F8CA2E; color: #F64518; }
.acc-panel--7 { background-color: #0E0E0E; color: #ffffff; }
.acc-panel--8 { background-color: #FF7B91; color: #ffffff; }

/* Etiqueta en estado contraído (franja fina) */
.acc-collapsed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3.5vh 0;
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
  font-family: 'Bebas Neue', sans-serif;
}

.acc-panel.is-open .acc-collapsed { opacity: 0; }

.acc-num-sm {
  font-size: clamp(0.85rem, 1vw, 1.1rem);
  letter-spacing: 0.12em;
}

.acc-cat-sm {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(1.4rem, 2vw, 2.4rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Contenido en estado expandido */
.acc-open {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
  pointer-events: none;
  font-family: 'Bebas Neue', sans-serif;
}

.acc-panel.is-open .acc-open { opacity: 1; }

.acc-text {
  position: absolute;
  top: 7vh;
  left: 4vw;
  max-width: 30ch;
}

.acc-num {
  display: block;
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 0.85;
}

.acc-sub {
  font-size: clamp(1.1rem, 1.7vw, 2rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

.acc-desc {
  font-size: clamp(0.85rem, 1vw, 1.15rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  margin-top: 1.1rem;
  max-width: 34ch;
  opacity: 0.85;
}

.acc-media {
  position: absolute;
  top: 7vh;
  right: 4vw;
  width: 55%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

/* Marco vertical (para videos en formato retrato, p.ej. neon) */
.acc-media--vertical {
  width: auto;
  height: 66vh;
  top: 8vh;
  aspect-ratio: 9 / 16;
}

/* Marco retrato 3:4 (p.ej. Luna's World) */
.acc-media--portrait {
  width: auto;
  height: 66vh;
  top: 8vh;
  aspect-ratio: 3 / 4;
}

/* MUSIC VIDEO: dos reproductores con play/stop y sonido */
.mv-players {
  position: absolute;
  top: 7vh;
  right: 4vw;
  width: 55%;
  display: flex;
  flex-direction: column;
}

.mv-player {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.mv-player--h { width: 100%; aspect-ratio: 16 / 9; }

.mv-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(46px, 3.6vw, 64px);
  height: clamp(46px, 3.6vw, 64px);
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.acc-panel:not(.is-open) .mv-btn { pointer-events: none; }

.mv-btn:hover {
  background: #F64518;
  transform: translate(-50%, -50%) scale(1.08);
}

.mv-ic {
  width: 42%;
  height: 42%;
  fill: #fff;
}

.mv-ic--pause { display: none; }
.mv-player.is-playing .mv-ic--play { display: none; }
.mv-player.is-playing .mv-ic--pause { display: block; }

/* Pie de vídeo (debajo del reproductor / del vídeo) */
.media-caption {
  margin-top: 1.2vh;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.7rem);
  letter-spacing: 0.06em;
  line-height: 1;
  -webkit-text-stroke: 0.6px currentColor;
}

.media-caption--blue {
  color: #2E6BFF;
  -webkit-text-stroke-color: #2E6BFF;
}

/* SERIES: pie a lo ancho del vídeo — título + línea + estado */
.series-caption {
  display: flex;
  align-items: center;
  gap: 0.8em;
  width: 100%;
  margin-top: 1.2vh;
  color: #ffffff;
}

.series-caption .series-title {
  flex: 0 0 auto;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.7rem);
  letter-spacing: 0.06em;
  line-height: 1;
  -webkit-text-stroke: 0.6px currentColor;
}

.series-caption .series-rule {
  flex: 1 1 auto;
  height: 2px;
  background-color: currentColor;
}

.series-caption .series-status {
  flex: 0 0 auto;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.85rem, 1.15vw, 1.3rem);
  letter-spacing: 0.2em;
  line-height: 1;
  opacity: 0.9;
}

/* Fila bajo el reproductor: LUCID BORDERLINE (izq) + enlace YouTube (der) */
.mv-caption-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  margin-top: 1.2vh;
}

.mv-caption-row .media-caption {
  margin-top: 0;
  font-size: clamp(1.3rem, 1.9vw, 2.1rem);
}

.mv-link {
  flex: 0 0 auto;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.3rem, 1.9vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.2em;
  white-space: nowrap;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.mv-link:hover {
  opacity: 0.65;
}

.acc-panel:not(.is-open) .mv-link {
  pointer-events: none;
}

/* Pie en una sola línea: título (LUCID BORDERLINE, izq) + enlace (VER COMPLETO
   EN YOUTUBE) anclado al borde derecho del clip; el subrayado va solo bajo el
   texto del enlace. Tamaños en vw para escalar con el ancho. */
@media (min-width: 1025px) {
  .mv-caption-row {
    display: grid;
    grid-template-columns: minmax(0, max-content) 1fr;
    align-items: center;
    gap: 1vw;
  }

  .mv-caption-row .media-caption {
    flex: 0 1 auto;
    min-width: 0;
    font-size: clamp(1.6rem, 2.75vw, 5.5rem);
    line-height: 1;
    letter-spacing: 0.06em;
    white-space: nowrap;
    -webkit-text-stroke: 0;
  }

  .mv-link {
    min-width: 0;
    justify-self: end;
    font-size: clamp(1rem, 1.5vw, 3rem);
    line-height: 1;
    letter-spacing: 0.015em;
    border-bottom-width: 3px;
    white-space: nowrap;
  }
}

/* Contenedor vídeo + pie (p.ej. SERIES) */
.acc-mediabox {
  position: absolute;
  top: 8vh;
  right: 4vw;
  width: 55%;
  display: flex;
  flex-direction: column;
}

.acc-media--inbox {
  position: static;
  width: 100%;
}

.acc-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acc-title {
  position: absolute;
  left: 4vw;
  bottom: 4vh;
  font-size: clamp(3.5rem, 9.5vw, 12rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 500;
  background-color: rgba(0, 0, 0, 0.15);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--rouge-coquelicot);
}

@media (max-width: 768px) {
  .intro-logo {
    max-width: 45vw;
  }

  .hero {
    min-height: 100svh;
  }

  .title {
    font-size: clamp(2.5rem, 14vw, 5rem);
    white-space: nowrap;
    line-height: 0.9;
    padding: 0 1rem;
  }

  .marquee-bottom {
    padding: 0.5rem 0;
  }

  .marquee-track span {
    font-size: clamp(0.75rem, 3vw, 1rem);
  }

  .hero-video {
    object-position: center center;
  }

  .scroll-progress {
    height: 3px;
  }
}
