@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #000000;
    --secondary-dark: #040408;
    --accent-blue: #020408;
    --gold: #FFD700;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --success-green: #28a745;
    --netflix-red: #e50914;
    --disney-blue: #113ccf;
    --max-purple: #6a1b9a;
    --crunchyroll-orange: #ff6600;
    --spotify-green: #1db954;
    --prime-blue: #00a8e1;
    --youtube-red: #ff0000;
    --canva-cyan: #00c4cc;
    --paramount-blue: #0064ff;
}

body {
    font-family: 'Inter', sans-serif;
    /* Adjusted gradient for a darker overall look */
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--accent-blue) 100%);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background - adjusted opacity of colors to blend with darker background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
                         radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.02) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-20px) translateY(-10px); }
}

/* Stars Animation */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--white);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: url('images/lightiius.png') center/contain no-repeat;
    background-color: #fff;
    border-radius: 6px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.search-section {
    padding: 2rem;
    text-align: center;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #333;
    font-weight: 500;
}

.search-input::placeholder {
    color: #666;
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-btn:hover,
.category-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.main-content {
    padding: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center; /* Centra el título y el ícono */
}

.section-icon {
    font-size: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-description {
    max-width: 800px;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0 auto 3rem auto; /* Centra el bloque y mantiene el margen inferior */
    text-align: center; /* Centra el texto dentro del bloque */
}

.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.combo-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.combo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.combo-card.hidden {
    display: none;
}

.combo-header {
    padding: 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.combo-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

.combo-content {
    padding: 2rem;
    text-align: center;
    color: #333;
}

.combo-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.combo-period {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.combo-savings {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

.combo-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(10deg);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Colores específicos para cada combo */
.netflix-disney { background: linear-gradient(135deg, #e50914 0%, #4d74f3 100%); }
.netflix-max { background: linear-gradient(135deg, #e50914 0%, #970383 100%); }
.netflix-prime { background: linear-gradient(135deg, #e50914 0%, #161617 100%); }
.netflix-spotify { background: linear-gradient(135deg, #e50914 0%, #1db954 100%); }
.netflix-crunchyroll { background: linear-gradient(135deg, #e50914 0%, #e77d36 100%); }
.netflix-solo { background: linear-gradient(135deg, #e50914 0%, #11b3cc 100%); }
.max-disney { background: linear-gradient(135deg, #7b2cbf 0%, #113ccf 100%); }

.location-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
}

.flag-icon {
    width: 20px;
    height: 15px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjUiIGZpbGw9IiMwMDUyQjQiLz4KPHJlY3QgeT0iNSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjUiIGZpbGw9IiNGRkZGRkYiLz4KPHJlY3QgeT0iMTAiIHdpZHRoPSIyMCIgaGVpZ2h0PSI1IiBmaWxsPSIjRkYwMDAwIi8+Cjwvc3ZnPgo=') center/contain no-repeat;
}

/* Carousel specific styles */
.list-container {
    width: 100%;
    margin: 0;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background: transparent;
    border: none;
}

.list-container::before, .list-container::after {
    display: none;
}

.list-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 100%);
}

.list-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 100%);
}

.list {
    display: flex;
    align-items: center;
    height: 150px;
    gap: 40px;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
    width: fit-content;
    padding: 0 20px;
}

.list[data-animated="true"] {
    animation: scroll 20s linear infinite;
}

.list:hover {
    animation-play-state: paused;
}

.list .item {
    min-width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.list .item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.list .item img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: none;
}

.list .item:hover img {
    filter: grayscale(0%) brightness(100%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .combos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .categories {
        flex-direction: column;
        align-items: center;
    }
}