/* ---------------------------------------------------- */
/* --- 1. CONFIGURACIÓN BÁSICA Y FUENTES --- */
/* ---------------------------------------------------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #e9e5df;
    color: #333;
    line-height: 1.6;
    /* Necesario para centrar los elementos con skew */
    overflow-x: hidden; 
}

h1, h2 {
    font-weight: 700;
    margin: 0;
}

/* ---------------------------------------------------- */
/* --- 2. SECCIÓN HERO (Portada Superior) --- */
/* ---------------------------------------------------- */
.hero-section {
    /* Ruta actualizada a la versión -v2.jpg */
    background-image: url('assets/imagen-portada-superior-v2.jpg'); 
    background-size: cover;
    background-position: center;
    height: 80vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    background: rgba(0, 0, 0, 0.1); 
    padding: 20px;
}

.hero-content h1 {
    font-size: 3em;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.button {
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    font-size: 0.9em;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


/* ---------------------------------------------------- */
/* --- 3. SECCIONES DE ESTILO PRINCIPALES --- */
/* ---------------------------------------------------- */

.style-sections-container {
    padding: 0;
    width: 100%;
    margin: 0 auto;
}

.style-section {
    position: relative;
    height: 400px; 
    width: 100%;
    /* ¡NUEVO! Transición suave para el efecto hover */
    transition: transform 0.3s ease-in-out; 
    /* El mouse debe ignorar los elementos debajo (necesario para el skew) */
    pointer-events: auto; 
}

/* ¡NUEVO! Regla para el efecto hover */
.style-section:hover {
    /* Agrandar ligeramente la sección (1.05 = 105%) */
    transform: scale(1.05);
    /* Asegura que la sección quede encima de las demás al agrandarse */
    z-index: 5; 
    /* Eliminar el margen inferior al hacer hover para evitar que la sección se mueva */
    margin-bottom: 0; 
}

.images-wrapper {
    display: flex;
    height: 100%;
}

/* Las 3 "rebanadas" de imágenes con el efecto de corte */
.image-slice {
    flex: 1; 
    height: 100%;
    background-size: cover;
    background-position: center;
    
    /* EFECTO CLAVE: CORTAR LA IMAGEN (SKEW) */
    transform: skewX(-10deg); 
    
    /* Necesario para que la imagen se vea recta dentro de la rebanada inclinada */
    position: relative;
    overflow: hidden;
}

.image-slice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.15);
    transform: skewX(10deg);
}

/* ---------------------------------------------------- */
/* --- 4. BARRA DE TÍTULO --- */
/* ---------------------------------------------------- */
.title-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); 
    
    /* Estilos del título */
    padding: 15px 30px;
    background-color: black;
    color: white;
    font-size: 1.2em;
    letter-spacing: 2px;
    z-index: 10;
}

/* Estilos específicos para la sección de Películas (fondo rosa) */
#section-movies .image-slice:nth-child(2) {
    background-color: #ff69b4; /* Pink */
    background-blend-mode: multiply; /* Mezcla el color de fondo con la imagen */
}