
/* FUENTE ESTILO iOS / APPLE */
:root {
    --gold: #CF9F3F;
    --gold-bright: #E5C37A;
    --red: #A3172F;
    --red-glow: #ff2a55;
    --bg-dark: #030303;
    --glass-bg: rgba(15, 15, 15, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* FONDO SÚPER DINÁMICO (Blobs animados y gradientes) */
.dynamic-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    background: linear-gradient(-45deg, #050505, #1a0508, #111, #0a0a0a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.blob-1 { top: -10%; left: -10%; width: 400px; height: 400px; background: rgba(163, 23, 47, 0.4); animation-delay: 0s; }
.blob-2 { bottom: -20%; right: -10%; width: 500px; height: 500px; background: rgba(207, 159, 63, 0.2); animation-delay: -5s; }
.blob-3 { top: 40%; left: 60%; width: 300px; height: 300px; background: rgba(255, 42, 85, 0.15); animation-duration: 25s; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 100px) scale(1.2); }
    100% { transform: translate(-50px, -50px) scale(0.9); }
}

/* ANIMACIÓN INTRO LÍNEAS (SVG) */
#intro-loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.line-text {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: 5px;
    fill: transparent;
    stroke: var(--red);
    stroke-width: 2px;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawLines 3s cubic-bezier(0.4, 0, 0.2, 1) forwards, fillText 1s 3.2s ease forwards, glowText 2s 4s infinite alternate;
}

@keyframes drawLines { 100% { stroke-dashoffset: 0; } }
@keyframes fillText { 100% { fill: var(--gold); stroke: transparent; } }
@keyframes glowText {
    0% { filter: drop-shadow(0 0 5px var(--red)); }
    100% { filter: drop-shadow(0 0 25px var(--gold)); }
}

/* NAVEGACIÓN */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.logo-text:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px var(--red);
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(207, 159, 63, 0.15);
    border-color: rgba(207, 159, 63, 0.4);
    box-shadow: 0 0 15px rgba(207, 159, 63, 0.3);
}

/* MAIN CONTENT ANIMATIONS */
main {
    flex: 1;
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 50px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.title-glow {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(207,159,63,0.3));
}

/* UNIVERSOS (S-CANON / S-SIGHT) */
.universe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.universe-card {
    background: linear-gradient(145deg, rgba(20,20,20,0.8), rgba(5,5,5,0.9));
    border: 1px solid rgba(207, 159, 63, 0.2);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.universe-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(163,23,47,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.universe-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(163, 23, 47, 0.3);
}

.universe-card:hover::before { opacity: 1; }

.universe-card h3 {
    font-size: 2rem;
    color: var(--red-glow);
    margin-bottom: 15px;
    position: relative;
}

.universe-card p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.7;
    position: relative;
}

/* BOTONES */
.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    background: linear-gradient(45deg, var(--gold-bright), var(--gold));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(207, 159, 63, 0.5);
    transition: all 0.3s ease;
    margin-top: 50px;
}

.btn-play:hover {
    transform: scale(1.08);
    box-shadow: 0 0 35px rgba(207, 159, 63, 0.8);
    color: #fff;
}

/* CATÁLOGO / PÓSTERS */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.poster-card {
    aspect-ratio: 2 / 3;
    border-radius: 15px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
}

.poster-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(207, 159, 63, 0.4);
    border-color: var(--gold);
    z-index: 10;
}

.poster-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.poster-card:hover .poster-bg {
    opacity: 0.3;
    transform: scale(1.1);
}

.poster-info {
    position: relative;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.poster-card:hover .poster-info {
    transform: translateY(0);
    opacity: 1;
}

.poster-info h4 { font-size: 1.2rem; color: var(--gold-bright); margin-bottom: 5px; }
.poster-info span { font-size: 0.85rem; color: #aaa; }

/* Icono Play Hover */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 4rem;
    color: var(--gold-bright);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}
.poster-card:hover .play-icon-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* RETRO TV - TVD */
.tv-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    flex-direction: column;
}

.retro-tv {
    width: 500px;
    height: 350px;
    background: #8b4513; 
    border-radius: 30px;
    position: relative;
    box-shadow: inset 0 0 20px #3a1a03, 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    padding: 20px;
    border: 4px solid #5c2c09;
}

.tv-antennas {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 80px;
}

.tv-antennas::before, .tv-antennas::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 100px;
    background: linear-gradient(to right, #ccc, #777);
    border-radius: 5px;
}

.tv-antennas::before { left: 40%; transform-origin: bottom center; transform: rotate(-30deg); }
.tv-antennas::after { right: 40%; transform-origin: bottom center; transform: rotate(30deg); }

.tv-screen-bezel {
    flex: 1;
    height: 100%;
    background: #111;
    border-radius: 20px;
    padding: 15px;
    box-shadow: inset 0 0 15px #000;
}

.tv-screen {
    width: 100%;
    height: 100%;
    border-radius: 50% / 10%;
    background-color: #000;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 30px rgba(255,255,255,0.2);
}

/* RUIDO / ESTATICA ANIMADA (Jitter y Filtro) */
.tv-static {
    width: 200%;
    height: 200%;
    background: #000;
    filter: url(#static-noise) contrast(1.5) brightness(1.2);
    opacity: 0.8;
    position: absolute;
    top: -50%; left: -50%;
    animation: noiseJitter 0.15s infinite;
}

@keyframes noiseJitter {
    0% { transform: translate(0, 0); }
    25% { transform: translate(2px, -3px); }
    50% { transform: translate(-2px, 1px); }
    75% { transform: translate(1px, 2px); }
    100% { transform: translate(-1px, -1px); }
}

.tv-scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.tv-controls {
    width: 80px;
    height: 100%;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.tv-knob {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #444, #111);
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(0,0,0,0.6), inset 0 2px 5px rgba(255,255,255,0.3);
    position: relative;
    border: 2px solid #222;
}

.tv-knob::after {
    content: '';
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 15px;
    background: #fff;
    border-radius: 2px;
}

/* DETALLE DE PELÍCULA (Reproductor Placeholder) */
.movie-header {
    width: 100%;
    height: 40vh;
    background: #111;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    overflow: hidden;
    margin-bottom: 30px;
}
.movie-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,15,15,1), transparent);
}
.movie-title-holder {
    position: relative;
    z-index: 2;
}
.movie-title-holder h1 {
    font-size: 3.5rem;
    color: var(--gold-bright);
}
.metadata span {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin-right: 10px;
    font-size: 0.9rem;
    margin-top: 10px;
}
.error-msg {
    margin-top: 40px;
    padding: 20px;
    background: rgba(163, 23, 47, 0.2);
    border: 1px solid var(--red);
    border-radius: 10px;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

/* MANTENIMIENTO FEST */
.mantenimiento {
    text-align: center;
    padding: 50px;
}
.mantenimiento svg {
    width: 150px;
    height: 150px;
    fill: var(--gold-bright);
    margin-bottom: 30px;
    animation: bounce 2s infinite ease-in-out;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* CONTACTO */
.contact-box { text-align: center; }
.contact-box h2 { font-size: 2.5rem; color: var(--gold-bright); margin-bottom: 20px; }
.contact-box p { font-size: 1.2rem; color: #ccc; margin-bottom: 30px; }
.email-link {
    font-size: 1.8rem;
    color: var(--red-glow);
    text-decoration: none;
    font-weight: bold;
    padding: 15px 30px;
    border: 2px dashed var(--red-glow);
    border-radius: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}
.email-link:hover {
    background: rgba(163, 23, 47, 0.2);
    box-shadow: 0 0 20px rgba(163, 23, 47, 0.5);
}

/* FOOTER */
footer {
    background: rgba(5,5,5,0.9);
    padding: 30px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}
footer p { color: #777; font-size: 0.9rem; }
