:root {
    --bg-deep: #ffffff;
    --accent-color: #00b894;
    --text-main: #1a1a1a;
    --glass-surface: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-blur: 16px;
    --navy-dark: #1a1f3a;
    --navy-darker: #141829;
    --coral-cta: #ff6b6b;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Modern Navbar */
.modern-nav {
    background: var(--navy-dark) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.modern-nav .navbar-brand {
    font-size: 1.5rem;
}

.modern-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.modern-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.btn-cta {
    background: var(--coral-cta);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #ff5252;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* ======================
   CINEMATIC HERO SECTION 
   ====================== */
.cinematic-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a0a0a;
}

/* Backdrop Image */
.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/hero-streaming-bg.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Gradient Overlay */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(10, 10, 10, 1) 0%,
            rgba(10, 10, 10, 0.95) 40%,
            rgba(10, 10, 10, 0.7) 70%,
            transparent 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    padding: 120px 0 80px;
}

.hero-content-main {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Meta Information */
.hero-meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.hero-year,
.hero-category {
    color: rgba(255, 255, 255, 0.9);
}

.hero-separator {
    color: rgba(255, 255, 255, 0.4);
}

.hero-badge-premium {
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

/* Main Title */
.hero-main-title {
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1;
    letter-spacing: -2px;
}

.title-accent {
    color: #00b894;
}

/* Tagline */
.hero-tagline {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Synopsis */
.hero-synopsis {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 650px;
}

/* Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.hero-tags .tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.hero-tags .tag:hover {
    background: rgba(0, 184, 148, 0.2);
    border-color: rgba(0, 184, 148, 0.5);
    color: #00b894;
    transform: translateY(-2px);
}

/* Action Buttons */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-hero-primary {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
    background: #e0e0e0;
    color: #0a0a0a;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-main-title {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-synopsis {
        font-size: 1rem;
    }

    .hero-content-wrapper {
        padding: 100px 0 60px;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-gradient-overlay {
        background: linear-gradient(to bottom,
                rgba(10, 10, 10, 0.95) 0%,
                rgba(10, 10, 10, 0.98) 100%);
    }
}

/* Navbar Glass */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* Parallax Wrapper */
.parallax-wrapper {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 2px;
}

.parallax-group {
    position: relative;
    min-height: 100vh;
    transform-style: preserve-3d;
}

.parallax-layer-back {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateZ(-1px) scale(1.5);
    /* Asegúrate de tener esta imagen o cambiar la ruta */
    background: url('../assets/images/bg-digital.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    filter: brightness(1.5) opacity(0.2);
}

.parallax-layer-base {
    transform: translateZ(0);
    z-index: 1;
}

/* Hero Content */
.hero-content {
    margin-top: 10vh;
}

.text-gradient {
    background: linear-gradient(to right, #00b894, #4f46e5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections */
.section-dark {
    background-color: #f8f9fa;
    position: relative;
    z-index: 2;
}

/* Glass Cards */
.glass-panel {
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 195, 0.1);
    border-color: var(--accent-color);
}

/* --- LOGO FIX (CORREGIDO) --- */
.app-logo-container {
    width: 65px;
    height: 65px;
    min-width: 65px;
    /* Evita que se aplaste */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    /* Margen interno para que el logo respire */
    overflow: hidden;
    border: 3px solid rgba(0, 184, 148, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);

    /* Estilos para el texto si falla la imagen */
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
}

.app-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* <--- ESTO EVITA LA DEFORMACIÓN */
    display: block;
}

/* Buttons */
.btn-neon {
    background: var(--accent-color);
    color: #fff;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(0, 184, 148, 0.4);
    transition: all 0.3s;
}

.btn-neon:hover {
    background: #00957a;
    box-shadow: 0 0 25px rgba(0, 184, 148, 0.8);
    transform: scale(1.05);
    color: #fff;
}

.btn-glass {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

/* Filtros */
.filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 50px;
    margin: 0 5px;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    font-weight: bold;
}

/* Utilidades */
.feature-icon {
    color: var(--accent-color);
    margin-right: 8px;
}

.price-table-container {
    max-height: 200px;
    overflow-y: auto;
}

.profit-highlight {
    color: var(--accent-color);
    font-weight: bold;
}

.text-justify {
    text-align: justify;
}

/* Animación de entrada para cards */
.fade-in-card {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Descripción de filtros */
#filter-description {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#filter-title,
#filter-text {
    transition: opacity 0.3s ease;
}

/* Margen de utilidad elegante */
.profit-margin-badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profit-margin-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}