:root {
    --primary-color: #E50914; /* Rojo CineMax */
    --background-color: #141414; /* Gris carbón oscuro */
    --surface-color: #212121; /* Gris para tarjetas */
    --accent-gold-color: #F5C518; /* Dorado para íconos */
    --text-color: #FFFFFF;
    --text-secondary-color: #E0E0E0;
    --font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- ANIMACIONES --- */
.animate-on-load {
    animation: fadeIn 1s 0.2s ease-out backwards;
}

.animate-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(20, 20, 20, 0.8), rgba(20, 20, 20, 1)), url('https://i.imgur.com/movie-background.jpg');
    background-size: cover;
    background-position: center top;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 20px 4rem 20px; /* Aumentamos el padding superior para dar espacio */
}

.hero-content {
    max-width: 800px;
}

/* --- ESTILO MODIFICADO PARA EL LOGO --- */
.logo {
    width: clamp(160px, 30vw, 240px); /* Un poco más grande para destacar */
    margin-bottom: 2rem;
    margin-top: -5rem; /* La clave: se jala el logo hacia arriba */
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary-color);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* --- GRUPO DE BOTONES --- */
.button-group {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 1rem;
}

.cta-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 280px;
    max-width: 100%;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.secondary-button {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.secondary-button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
    transform: scale(1.05);
}

/* --- FEATURES SECTION --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.feature-item {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-item i {
    color: var(--accent-gold-color);
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* --- FINAL CTA & FOOTER --- */
.final-cta {
    text-align: center;
    padding: 6rem 2rem;
    background-color: var(--surface-color);
}

.final-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.final-cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary-color);
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--surface-color);
    color: var(--text-secondary-color);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (min-width: 500px) {
    .button-group {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .features, .final-cta {
        padding: 4rem 1.5rem;
    }
}