/* Reseteo básico y estilos del cuerpo */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Evita barras de scroll */
}

/* Contenedor principal que ocupa toda la pantalla */
.contenedor-principal {
    position: relative; /* Clave para superponer elementos */
    width: 100%;
    height: 100vh; /* 100% de la altura de la ventana */
}
.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    
    /* 1. ESTO HACE QUE OCUPE LA PANTALLA */
    width: 100%;
    height: 100vh; /* 100% de la altura de la ventana (viewport) */
    
    /* 2. ESTA ES LA PROPIEDAD CLAVE */
    object-fit: cover; 
    
    z-index: -1; 
    filter: brightness(0.7);
}

/* Estilos del collage de fondo */
.collage-fondo {
    display: grid;
    /* Un grid de 2x2 para 4 fotos */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: 100%;
    width: 100%;
}

.collage-fondo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rellena el espacio sin deformarse */
    
    /* Efecto opcional: hace que las fotos se vean
       un poco borrosas y en blanco y negro para 
       que el texto resalte más. ¡Bórralo si no te gusta! */
    filter: blur(2px) grayscale(60%);
}

/* Estilos del texto superpuesto */
.texto-superpuesto {
    position: absolute; /* Se superpone al collage */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Centra el texto perfectamente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Fondo oscuro semitransparente para legibilidad */
    background-color: rgba(0, 0, 0, 0.5);
    
    color: white;
    text-align: center;
}

.texto-superpuesto h1 {
    font-size: 6vw; /* Tamaño de letra que se adapta a la pantalla */
    margin: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.texto-superpuesto p {
    font-size: 1.5vw;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}