/* ===== VARIABLES CSS ===== */
:root {
    /* Colores Modo Claro */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #95a5a6;
    --border-color: #e9ecef;
    --shadow: rgba(44, 62, 80, 0.08);
    --shadow-hover: rgba(44, 62, 80, 0.12);
    
    /* Colores basados en el logo */
    --accent-primary: #1b9aaa;
    --accent-secondary: #00d4dd;
    --accent-hover: #157d8a;
    --accent-light: rgba(27, 154, 170, 0.08);
    --accent-gradient: linear-gradient(135deg, #1b9aaa 0%, #00d4dd 100%);
    
    --modal-overlay: rgba(44, 62, 80, 0.75);
    --success: #52b788;
    --warning: #f4a261;
    --nav-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    /* Colores Modo Oscuro - Tonos suaves */
    --bg-primary: #1a1d23;
    --bg-secondary: #21252b;
    --bg-card: #2a2f38;
    --text-primary: #e8eaed;
    --text-secondary: #b4b8c0;
    --text-muted: #868b94;
    --border-color: #3a3f4a;
    --shadow: rgba(0, 0, 0, 0.25);
    --shadow-hover: rgba(0, 0, 0, 0.35);
    
    /* Colores basados en el logo - versión oscura más suave */
    --accent-primary: #00bcd4;
    --accent-secondary: #26d0de;
    --accent-hover: #4dd8e6;
    --accent-light: rgba(0, 188, 212, 0.12);
    --accent-gradient: linear-gradient(135deg, #00bcd4 0%, #26d0de 100%);
    
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --success: #66bb6a;
    --warning: #ffb74d;
    --nav-bg: rgba(33, 37, 43, 0.95);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== NAVEGACIÓN MEJORADA ===== */
.navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px var(--shadow);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.03);
}

.nav-logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px var(--shadow);
}

.nav-logo span {
    font-size: 22px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
    background-color: var(--accent-light);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active {
    color: var(--accent-primary);
    background-color: var(--accent-light);
}

.nav-link.active::after {
    width: 60%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background-color: var(--accent-light);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 5px 25px var(--shadow);
    border: 1px solid var(--border-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-section h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BOTONES ===== */
.btn-primary, .btn-secondary, .email-button, .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary, .email-button, .btn-download {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.25);
}

.btn-primary:hover, .email-button:hover, .btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.35);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* ===== SECCIONES DE INFORMACIÓN ===== */
.info-section, .contact-section, .catalog-section {
    background-color: var(--bg-secondary);
    padding: 50px 40px;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 5px 20px var(--shadow);
    border: 1px solid var(--border-color);
}

.info-section h2, .contact-section h2, .catalog-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-section p, .contact-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.icon {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight {
    background-color: var(--accent-light);
    border-left: 4px solid var(--accent-primary);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.highlight p {
    margin-bottom: 10px;
}

.highlight strong {
    color: var(--accent-primary);
}

/* ===== WARNING BOX ===== */
.warning {
    background-color: var(--accent-light);
    border: 2px solid var(--accent-primary);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.warning strong {
    color: var(--accent-primary);
    font-size: 18px;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: var(--accent-primary);
}

.feature-icon {
    font-size: 48px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    text-align: center;
    max-width: 700px;
    margin: 60px auto;
}

.email-button {
    margin-top: 30px;
    font-size: 18px;
}

/* ===== MOVIES SECTION ===== */
.page-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.page-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.loading.active {
    display: block;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.movie-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease-out;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-hover);
    border-color: var(--accent-primary);
}

.movie-poster {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-primary);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-info {
    padding: 20px;
}

.movie-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.movie-year {
    display: inline-block;
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.movie-synopsis {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-download {
    width: 100%;
    justify-content: center;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    margin-top: 80px;
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-section h1 {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-title {
        font-size: 32px;
    }

    .info-section, .contact-section, .catalog-section {
        padding: 30px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        font-size: 18px;
    }

    .nav-logo-img {
        width: 40px;
        height: 40px;
    }

    .hero-section {
        padding: 50px 20px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .movies-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 14px;
    }
}
/* Estilo del buscador */
.search-container {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

#search-input {
    width: 100%;
    max-width: 350px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1e1e1e;
    color: #fff;
    font-size: 1rem;
    transition: 0.2s;
}

#search-input::placeholder {
    color: #aaa;
}

#search-input:focus {
    outline: none;
    border-color: #8ab4f8;
    box-shadow: 0 0 6px rgba(138, 180, 248, 0.4);
}
.search-bar {
    width: 100%;
    max-width: 320px;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1d1d1d;
    color: #fff;
    font-size: 1rem;
    display: block;
    transition: .2s ease;
}

.search-bar::placeholder {
    color: #aaa;
}

.search-bar:focus {
    outline: none;
    border-color: #8ab4f8;
    box-shadow: 0 0 6px rgba(138, 180, 248, 0.4);
}

