/* =============================================================
   D16 LANDING — portada estilo travisscott.com
   Negro + azul marengo (portada NAR) · botones en píldora con
   letra condensada en mayúsculas · «This Extinct» → ojo 360°.
   ============================================================= */
:root {
  --tsx-bg:    #02050a;
  --tsx-navy:  #0a1b39;      /* azul marengo oscuro (fondo de la portada NAR) */
  --tsx-blue:  #1e4972;      /* marengo medio */
  --tsx-ice:   #a4d5f1;      /* hielo: brillos */
  --tsx-cond:  "News Gothic Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
}

.tsx { background: var(--tsx-bg); color: #fff; }
.tsx .skip-link { z-index: 50; }

/* Píldoras (como TOUR / SHOP de travisscott.com) */
.tsx-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--tsx-cond); font-weight: 500; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: rgba(2,5,10,.35); border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: .45rem 1rem; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.tsx-pill:hover { background: var(--tsx-navy); border-color: var(--tsx-ice); }
.tsx-pill em { font-style: normal; font-size: 11px; letter-spacing: .8px; color: var(--tsx-ice); opacity: .8; }
.tsx-pill.is-off { color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.12); cursor: default; background: transparent; }
.tsx-pill.is-hot { border-color: var(--tsx-ice); box-shadow: 0 0 22px rgba(43,131,195,.35); }

.tsx-top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: clamp(14px, 3vw, 28px); pointer-events: none; }
.tsx-top > * { pointer-events: auto; }

/* Escenario fijo + pista de scroll */
.tsx-stage { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, var(--tsx-navy) 0%, var(--tsx-bg) 62%); }

.tsx-intro { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: clamp(1rem, 3vh, 2rem); padding: 0 1rem; will-change: transform, opacity; }
.tsx-hero-logo { width: min(980px, 88vw); height: auto; filter: drop-shadow(0 8px 40px rgba(0,0,0,.6)); }

.tsx-down { font-family: var(--tsx-cond); color: rgba(255,255,255,.6); font-size: 18px; animation: tsx-bob 2.4s ease-in-out infinite; }
@keyframes tsx-bob { 50% { translate: 0 6px; } }

/* Vídeo (0–16 s) en fotogramas + portada final: el negro se funde con el fondo (screen) */
.tsx-media { position: absolute; left: 50%; top: 50%; width: min(76vh, 92vw); aspect-ratio: 1; translate: -50% -53%; mix-blend-mode: screen; opacity: 0; }
.tsx-seq-canvas, .tsx-final { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tsx-final { opacity: 0; }

/* Botón D16 (abajo, centrado) */
.tsx-d16 { position: fixed; z-index: 30; left: 50%; bottom: clamp(16px, 3.5vh, 30px); translate: -50% 0; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(2,5,10,.55); display: grid; place-items: center; overflow: hidden; transition: border-color .25s, scale .25s var(--spring); }
.tsx-d16:hover { border-color: var(--tsx-ice); scale: 1.06; }
.tsx-d16 img { width: 70%; height: auto; }

/* Menú desplegable */
.tsx-menu { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.8rem, 2.4vh, 1.4rem); padding: 1.2rem 1rem 6.5rem; background: rgba(2,5,10,.88); overflow-y: auto; overscroll-behavior: contain; }
@supports (backdrop-filter: blur(10px)) { .tsx-menu { background: rgba(2,5,10,.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } }
.tsx-menu[hidden] { display: none; }
.tsx-menu.is-open { animation: tsx-in .35s var(--ease) both; }
@keyframes tsx-in { from { opacity: 0; } }
.tsx-menu-logo { width: min(240px, 52vw); height: auto; margin-bottom: .4rem; }
.tsx-list { display: flex; flex-direction: column; align-items: center; gap: clamp(.7rem, 2.6vh, 1.6rem); }
.tsx-list .tsx-pill { min-width: 220px; padding: .75rem 1.4rem; }
.tsx-group { font-family: var(--tsx-cond); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--tsx-ice); opacity: .7; margin-bottom: -.4rem; }
.tsx-signup { border: 0; background: none; padding: .4rem 0 0; }
.tsx-signup label, .tsx-signup button { font-family: var(--tsx-cond); letter-spacing: 1px; }
.tsx-close { position: fixed; left: 50%; bottom: clamp(16px, 3.5vh, 30px); translate: -50% 0; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(2,5,10,.6); }
.tsx-close span { position: absolute; left: 50%; top: 50%; width: 26px; height: 1.5px; background: #fff; translate: -50% -50%; rotate: 45deg; }
.tsx-close span + span { rotate: -45deg; }
body.menu-open { overflow: hidden; }
body.menu-open .tsx-d16 { visibility: hidden; }

@media (prefers-reduced-motion: reduce) { .tsx-down, .tsx-start { animation: none; } }

/* Páginas interiores de la landing (Shop, About): sin barra, solo píldoras flotantes */
.tsx-page { background: radial-gradient(ellipse at 50% 0%, var(--tsx-navy) 0%, var(--tsx-bg) 60%) fixed; }
.tsx-shop { padding-top: clamp(4.5rem, 10vh, 6.5rem); padding-bottom: 7rem; }
.tsx-shop .wordmark { color: #fff; text-transform: uppercase; letter-spacing: .01em; }

/* Kit en demo: que quede claro que no es el kit completo */
.demo-badge { display: inline-block; font-family: var(--tsx-cond); font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #02050a; background: var(--tsx-ice); border-radius: 999px; padding: .3rem .9rem; margin-bottom: .9rem; }
.demo-tag { display: inline-block; vertical-align: middle; font-family: var(--tsx-cond); font-weight: 600; font-size: .32em; letter-spacing: 2px; color: var(--tsx-ice); border: 1px solid var(--tsx-ice); border-radius: 999px; padding: .15em .7em; margin-left: .3em; }

/* Estados de la portada: entrada → vídeo → final */
.tsx-start { font-family: var(--tsx-cond); font-weight: 500; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.7); display: inline-flex; gap: .5rem; align-items: center; animation: tsx-bob 2.4s ease-in-out infinite; }
.tsx-start:hover { color: #fff; }
/* Los botones salen al terminar, uno detrás de otro */
.is-intro .tsx-top > *, .is-playing .tsx-top > *, .is-intro .tsx-d16, .is-playing .tsx-d16 { opacity: 0; pointer-events: none; }
.tsx-top > *, .tsx-d16 { transition: opacity .6s ease, transform .6s var(--ease); }
.is-intro .tsx-top > *, .is-playing .tsx-top > * { transform: translateY(-10px); }
.is-done .tsx-top > :first-child { transition-delay: .15s; }
.is-done .tsx-top > :last-child { transition-delay: .3s; }
.is-done .tsx-d16 { transition-delay: .45s; }

.tsx-track { height: 720vh; }      /* recorrido: entrada + 16 s de vídeo + portada final */

/* Menú: redes sociales en lugar de los textos legales */
.tsx-socials { display: flex; gap: 1.4rem; justify-content: center; margin-top: .4rem; }
.tsx-socials a { color: rgba(255,255,255,.7); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: color .2s, background-color .2s; }
.tsx-socials a:hover { color: #fff; background: rgba(255,255,255,.08); }
.tsx-socials svg { width: 22px; height: 22px; }

/* Acceso con email a la demo */
.tsx-gate { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 1rem; background: rgba(2,5,10,.78); overflow-y: auto; }
@supports (backdrop-filter: blur(10px)) { .tsx-gate { background: rgba(2,5,10,.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); } }
.tsx-gate[hidden] { display: none; }
.tsx-gate-box { width: min(420px, 100%); display: grid; justify-items: center; gap: .8rem; text-align: center; padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(10,27,57,.55); }
.tsx-gate-cover { width: min(200px, 50vw); height: auto; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.tsx-gate-title { font-family: var(--brand); font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1; color: #fff; text-transform: uppercase; }
.tsx-gate-text { color: rgba(255,255,255,.75); font-size: .95rem; }
.tsx-gate input { width: 100%; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .75rem 1.1rem; color: #fff; font-size: 1rem; text-align: center; }
.tsx-gate input:focus { outline: none; border-color: var(--tsx-ice); }
.tsx-gate .tsx-pill { padding: .75rem 1.6rem; min-width: 200px; }
.tsx-gate-msg { min-height: 1.2em; color: var(--tsx-ice); font-family: var(--tsx-cond); letter-spacing: 1px; font-size: 13px; }
.tsx-gate-legal { font-size: .75rem; color: rgba(255,255,255,.5); }
.tsx-gate-legal a { text-decoration: underline; }
.is-locked { overflow: hidden; }
.is-locked .tsx-shop, .is-locked .tsx-top, .is-locked .tsx-d16 { filter: blur(14px); pointer-events: none; user-select: none; }

/* Formulario de contacto (icono de email) */
.tsx-contact { z-index: 60; }
.tsx-contact .tsx-gate-box { position: relative; text-align: left; justify-items: stretch; }
.tsx-contact .tsx-gate-title, .tsx-contact .tsx-gate-text { text-align: center; }
.tsx-contact input, .tsx-contact textarea { width: 100%; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: .7rem 1rem; color: #fff; font: inherit; text-align: left; }
.tsx-contact input { border-radius: 999px; }
.tsx-contact textarea { resize: vertical; min-height: 120px; }
.tsx-contact input:focus, .tsx-contact textarea:focus { outline: none; border-color: var(--tsx-ice); }
.tsx-contact .tsx-pill { justify-self: center; }
.tsx-contact .tsx-gate-msg, .tsx-contact .tsx-gate-legal { text-align: center; }
.tsx-ct-close { position: absolute; top: .6rem; right: .9rem; font-size: 1.6rem; line-height: 1; color: rgba(255,255,255,.6); }
.tsx-ct-close:hover { color: #fff; }
.tsx-contact .hp { position: absolute; left: -9999px; }

/* Botón de compra del kit */
.tsx-buy { min-width: 220px; font-size: 1rem !important; letter-spacing: 3px !important; }
.kit-buy { flex-wrap: wrap; }
.tsx-buy-msg { flex-basis: 100%; min-height: 1.2em; font-family: var(--tsx-cond); font-size: 13px; letter-spacing: 1px; color: var(--tsx-ice); }

/* Beat preview, encima de los sonidos del kit */
.beat-preview { margin: 1.4rem 0 1.2rem; }
.beat-label { font-family: var(--tsx-cond); font-weight: 600; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--tsx-ice); margin-bottom: .6rem; }
.sound.is-beat { grid-template-columns: 54px 1fr; gap: 1rem; padding: 1.1rem 1.2rem; border-color: rgba(164,213,241,.45); box-shadow: 0 0 30px rgba(43,131,195,.18); }
.sound.is-beat .sound-btn { width: 54px; height: 54px; }
.sound.is-beat canvas { height: 56px; }
.sound.is-beat .sound-name { font-size: .85rem; }
