/* Portada del estudio: logo holográfico y juegos en paneles HUD. Se carga después de styles.css y holo.css. */

/* ---------- Logo holográfico ---------- */
.logo-holo { position: relative; display: grid; place-items: center; margin-bottom: 10px; }
.page-home .hero-logo { position: relative; z-index: 2; width: min(520px, 78vw); margin: 0; animation: holo-flicker 7s infinite steps(1); }
@keyframes holo-flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .7; } 94% { opacity: 1; } 96% { opacity: .82; } }
.logo-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; perspective: 900px; }
.logo-rings i { position: absolute; aspect-ratio: 1; border-radius: 50%; }
.logo-rings i:nth-child(1) { width: min(600px, 92vw); border: 1px dashed rgba(0, 216, 240, .4); animation: ring-spin 48s linear infinite; }
.logo-rings i:nth-child(2) { width: min(500px, 76vw); border: 2px solid rgba(240, 0, 192, .45); border-top-color: transparent; border-bottom-color: transparent; animation: ring-spin 22s linear infinite reverse; filter: drop-shadow(0 0 8px rgba(240, 0, 192, .6)); }
.logo-rings i:nth-child(3) { width: min(700px, 100vw); border: 1px solid rgba(139, 92, 246, .35); animation: orbit 16s linear infinite; box-shadow: 0 0 30px rgba(139, 92, 246, .15) inset; }
@keyframes orbit { from { transform: rotateX(74deg) rotateZ(0); } to { transform: rotateX(74deg) rotateZ(360deg); } }
.logo-holo .scanline { inset: 8% 18%; z-index: 3; }
.logo-holo .hud-label.hl-left { left: -4%; top: 34%; }
.logo-holo .hud-label.hl-right { right: -4%; bottom: 30%; }

/* ---------- Portada en dos columnas: el estudio y su juego principal ---------- */
.hero.hero-split { display: grid; place-items: initial; align-content: center; gap: clamp(18px, 3vw, 30px); padding: 92px 0 30px; }
.hero-split-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-areas: "brand spot" "follow spot"; gap: 8px clamp(24px, 4vw, 56px); align-items: center; }
.hero-brand { grid-area: brand; display: grid; justify-items: center; text-align: center; }
.hero-follow { grid-area: follow; display: grid; justify-items: center; gap: 12px; align-self: start; }
.hero-follow .hero-ost { margin-top: 0; }
.hero-spot { grid-area: spot; --cut: 22px; }
.page-home .hero-split .hero-logo { width: min(380px, 60vw); }
.hero-split .logo-rings i:nth-child(1) { width: min(440px, 80vw); }
.hero-split .logo-rings i:nth-child(2) { width: min(370px, 66vw); }
.hero-split .logo-rings i:nth-child(3) { width: min(520px, 92vw); }
.hero-split .logo-holo .hud-label.hl-left { left: -8%; }
.hero-split .logo-holo .hud-label.hl-right { right: -8%; }
.hero-split .hero-tagline { margin-bottom: 18px; font-size: clamp(15px, 1.5vw, 18px); }
.hero-spot-art { position: relative; margin: 0; overflow: hidden; }
.hero-spot-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 35% 45%; }
.hero-spot-art .chip { position: absolute; top: 14px; z-index: 2; }
.hero-spot-art .chip-status { left: 14px; color: #FFB3EC; border-color: rgba(240, 0, 192, .6); }
.hero-spot-art .chip-status::before { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.hero-spot-art .chip-art { right: 14px; }
.hero-spot-body { display: grid; gap: 10px; padding: clamp(16px, 2vw, 24px); }
.hero-spot-body .genre { margin: 0; }
.hero-spot-name { color: #FFB3EC; }
.hero-spot-title { margin: 0; font: 700 clamp(22px, 2.4vw, 30px)/1.15 var(--display); color: #fff; text-wrap: balance; }
.hero-spot-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Franja con los tres juegos */
.hero-games { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hero-game { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px; color: #fff; text-decoration: none; background: rgba(8, 10, 20, .62); border: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid var(--c); border-radius: 12px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s, box-shadow .2s, transform .2s; }
.hero-game:hover { color: #fff; border-color: var(--c); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 40%, transparent); transform: translateY(-2px); }
.hero-game img { flex: none; width: 66px; height: 56px; object-fit: cover; border-radius: 8px; }
.hero-game strong { display: block; font: 700 16px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.hero-game small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ---------- Estudio ---------- */
.page-home .studio-text p { color: #C9D1E3; }

/* ---------- Juegos ---------- */
.game-feature { --cut: 22px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: clamp(26px, 3.5vw, 40px); }
.game-art { position: relative; margin: 0; overflow: hidden; background: var(--bg-2); }
.game-art img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.game-feature .game-art img { object-position: 40% 45%; }
.game-art .chip { position: absolute; top: 16px; z-index: 2; }
.game-art .chip-status { left: 16px; }
.game-art .chip-art { right: 16px; }
.sphere-art img { object-position: 50% 46%; }
.game-body { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; color: #C9D1E3; }
.game-body > p:not(.genre):not(.tagline):not(.legal-links) { color: #C9D1E3; }
.game-title { font: 700 clamp(30px, 3.8vw, 50px)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; margin: 2px 0 6px; }
.bp-title .glitch { color: transparent; -webkit-text-stroke: 1.5px #FFB3EC; text-shadow: 0 0 30px rgba(240, 0, 192, .6); }
.nx-title span, .sor-title span { display: block; font-size: .42em; letter-spacing: .24em; margin-top: 8px; }
.nx-title span { color: var(--violet-soft); }
.sor-title span { color: var(--gold); }
.game-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.page-home .cards { margin-top: clamp(18px, 2.4vw, 28px); }
.card-game { display: flex; flex-direction: column; }
.card-game .game-art img { aspect-ratio: 16 / 10; }
.card-game .game-body { justify-content: flex-start; }
.card-game .legal-links { margin-top: auto; }
.holo-nexo { --edge: #5BE8A8; --edge2: var(--gold); }
.holo-nexo .game-art img { object-position: 50% 45%; }
.holo-nexo .chip-status { color: #F4D98B; border-color: rgba(231, 182, 90, .6); }
.holo-nexo .chip-status::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.holo-nexo .legal-links { margin-top: 18px; }
.btn-nexo { color: #03090F; background: linear-gradient(90deg, var(--gold), #F4D98B); box-shadow: 0 0 22px rgba(231, 182, 90, .35); }
.btn-nexo:hover { color: #03090F; box-shadow: 0 0 34px rgba(231, 182, 90, .55); transform: translateY(-1px); }

/* ---------- Bandas sonoras ---------- */
.ost-lead { max-width: 40em; color: #C9D1E3; font-size: clamp(16px, 1.7vw, 18px); }
.ost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(24px, 3vw, 36px); }
.ost-card { --cut: 20px; display: flex; flex-direction: column; }
.ost-cover { position: relative; display: block; overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 9; }
.ost-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.ost-cover:hover img { transform: scale(1.03); filter: brightness(1.08); }
.ost-cover .chip { position: absolute; left: 14px; bottom: 12px; z-index: 2; }
.ost-play { position: absolute; left: 50%; top: 50%; z-index: 3; display: grid; place-items: center; width: 84px; height: 84px; padding: 0; transform: translate(-50%, -50%); border-radius: 50%; background: linear-gradient(135deg, rgba(240, 0, 192, .85), rgba(139, 92, 246, .85)); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 36px rgba(240, 0, 192, .6); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.ost-play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 179, 236, .7); animation: follow-ping 2.2s ease-out infinite; }
.ost-play:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 50px rgba(240, 0, 192, .8); }
.ost-play:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px; }
.ost-play svg { width: 34px; height: 34px; margin-left: 5px; fill: #fff; }
.ost-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(18px, 2.4vw, 28px); color: #C9D1E3; }
.ost-body p { margin: 0; }
.ost-title { margin: 0; font: 700 clamp(24px, 2.6vw, 32px)/1.05 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.ost-title span { display: block; margin-top: 8px; font-size: .5em; letter-spacing: .24em; }
.ost-title.nx-title span { color: var(--violet-soft); }
.ost-title.bp-title span { color: #FFB3EC; }
.ost-body .btn .ico { width: 18px; height: 18px; }

/* Video de presentación dentro de la tarjeta de Barkarum Project */
.ost-video { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 4px; padding: 10px; border: 1px solid rgba(255, 179, 236, .3); border-radius: 12px; background: rgba(5, 6, 10, .5); color: #fff; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.ost-video:hover { color: #fff; border-color: var(--pink); box-shadow: 0 0 24px rgba(240, 0, 192, .3); }
.ost-video-thumb { position: relative; flex: none; width: min(200px, 42%); overflow: hidden; border-radius: 8px; }
.ost-video-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ost-video-thumb .ost-play { width: 40px; height: 40px; cursor: inherit; }
.ost-video-thumb .ost-play::after { display: none; }
.ost-video-thumb .ost-play svg { width: 18px; height: 18px; margin-left: 3px; }
.ost-video-text { display: grid; gap: 4px; }
.ost-video-text small { font: 600 12px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #FFB3EC; }
.ost-video-text strong { font: 700 18px/1.2 var(--display); }
.ost-video-label { font-size: 13px; color: var(--muted); }

/* Encabezado: título con brillo y onda animada */
.ost-section { position: relative; }
.ost-section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 420px at 30% 20%, rgba(139, 92, 246, .14), transparent 70%), radial-gradient(800px 420px at 80% 60%, rgba(240, 0, 192, .12), transparent 70%); }
.ost-h2 { margin-bottom: .3em; text-shadow: 0 0 36px rgba(0, 216, 240, .25); }
.ost-wave { display: block; width: min(640px, 100%); height: 46px; margin: 4px 0 14px; }
.ost-wave polyline { fill: none; stroke: url(#ostWave); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 22 10; animation: ost-wave 3s linear infinite; filter: drop-shadow(0 0 6px rgba(0, 216, 240, .6)); }
@keyframes ost-wave { to { stroke-dashoffset: -64; } }

/* Ecualizador animado y aviso «Escuchar ahora» sobre las portadas */
.ost-eq { position: absolute; right: 16px; bottom: 14px; z-index: 2; display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.ost-eq i { display: block; width: 5px; height: 100%; border-radius: 2px; background: linear-gradient(0deg, var(--pink), var(--cyan)); transform-origin: bottom; animation: ost-eq 1.1s ease-in-out infinite alternate; box-shadow: 0 0 8px rgba(0, 216, 240, .5); }
.ost-eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.ost-eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
.ost-eq i:nth-child(4) { animation-duration: .9s; animation-delay: -.2s; }
.ost-eq i:nth-child(5) { animation-duration: 1.2s; animation-delay: -.8s; }
.ost-eq i:nth-child(6) { animation-duration: .7s; animation-delay: -.4s; }
.ost-eq i:nth-child(7) { animation-duration: 1s; animation-delay: -.1s; }
@keyframes ost-eq { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
.ost-now { position: absolute; right: 14px; top: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(240, 0, 192, .85); box-shadow: 0 0 18px rgba(240, 0, 192, .5); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.ost-cover:hover .ost-now, .ost-cover:focus-within .ost-now { opacity: 1; transform: none; }
.ost-cover.is-playing iframe { display: block; width: 100%; height: 100%; border: 0; }
.ost-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* Banda de suscripción */
.ost-band { --cut: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 40px); align-items: center; margin-top: clamp(28px, 3.5vw, 44px); background: linear-gradient(110deg, rgba(255, 0, 51, .14), rgba(240, 0, 192, .12) 45%, rgba(0, 216, 240, .08)), linear-gradient(160deg, rgba(22, 28, 52, .78), rgba(8, 10, 20, .9)); }
.ost-band-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: #FFB3B8; }
.ost-band-kicker .ico { width: 18px; height: 18px; fill: #FF3355; animation: ost-bell 2.6s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ost-bell { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
.ost-band h3 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); color: #fff; }
.ost-band p { margin: 0; color: #C9D1E3; }
.ost-band-cta { display: grid; justify-items: center; gap: 12px; }
.ost-band-x { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--display); letter-spacing: .1em; color: var(--muted); text-decoration: none; }
.ost-band-x:hover { color: #fff; }
.ost-band-x .ico { width: 14px; height: 14px; fill: currentColor; }

/* Enlace del hero hacia las bandas sonoras */
.hero-ost { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #E8ECF6; text-decoration: none; background: rgba(5, 6, 10, .5); border: 1px solid rgba(0, 216, 240, .35); }
.hero-ost:hover { color: #fff; border-color: var(--pink); box-shadow: 0 0 22px rgba(240, 0, 192, .35); }
.ost-eq.ost-eq-sm { position: static; height: 16px; gap: 3px; }
.ost-eq.ost-eq-sm i { width: 3px; }

/* Botón «Suscríbete»: el mismo del de X, con el rojo de YouTube en el ícono */
.follow-yt .follow-x-icon { background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 0 22px rgba(255, 0, 51, .55); }
.follow-yt .follow-x-icon svg { fill: #FF0033; width: 28px; height: 28px; }
.follow-yt .follow-x-icon::after { border-color: rgba(255, 0, 51, .6); }

/* ---------- Novedades y contacto ---------- */
.page-home .panels .holo p { color: #C9D1E3; }

@media (max-width: 1000px) {
  .hero-split-inner { grid-template-columns: 1fr; grid-template-areas: "brand" "spot" "follow"; gap: 18px; }
  .hero-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-feature { grid-template-columns: 1fr; }
  .ost-grid { grid-template-columns: 1fr; }
  .ost-band { grid-template-columns: 1fr; }
  .ost-band-cta { justify-items: stretch; }
}
@media (max-width: 760px) {
  .hero.hero-split { padding-top: 76px; }
  .page-home .hero-split .hero-logo { width: min(210px, 56vw); margin-bottom: 0; }
  .hero-split .logo-rings i:nth-child(1) { width: min(250px, 66vw); }
  .hero-split .logo-rings i:nth-child(2) { width: min(210px, 56vw); }
  .hero-split .logo-rings i:nth-child(3) { width: min(300px, 80vw); }
  .hero-split .hero-tagline { margin-bottom: 4px; font-size: 15px; }
  .hero-spot-cta .btn { flex: 1 1 auto; }
  .hero-games { grid-template-columns: 1fr; }
  .hero-game { min-height: 64px; }
  .hero-game img { width: 72px; height: 48px; }
  .holo-nexo .game-art .chip-art, #equilibria .game-art .chip-art { top: auto; right: 12px; bottom: 12px; }
  .holo-nexo .game-art .chip-status, #equilibria .game-art .chip-status { left: 12px; top: 12px; }
  .logo-holo .hud-label { display: none; }
  .game-cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-logo, .logo-rings i { animation: none !important; }
  .ost-eq i, .ost-wave polyline, .ost-play::after, .ost-band-kicker .ico { animation: none !important; }
  .ost-eq i { transform: scaleY(.6); }
}

/* ---------- Página 404 ---------- */
.hero.lost { padding-top: 110px; }
.lost-inner { --cut: 22px; max-width: 640px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.lost-code { margin: 0; font: 700 clamp(72px, 14vw, 128px)/1 var(--display); letter-spacing: .1em; color: transparent; -webkit-text-stroke: 2px #FFB3EC; text-shadow: 0 0 40px rgba(240, 0, 192, .6); }
.lost-inner h1 { margin: 0; font: 700 clamp(26px, 4vw, 40px)/1.1 var(--display); }
.lost-inner p { margin: 0; color: #C9D1E3; }
.lost-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
