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

body {
    font-family: 'Montserrat', sans-serif;
    /* Centramos la caja de contenido */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Evita barras de scroll por el iframe */
}

/* Contenedor del Video de Fondo */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Detrás de todo */
    pointer-events: none; /* Evita que el usuario interactúe con el video */
}

.video-background iframe {
    /* Mantiene la proporción 16:9 y se asegura de cubrir toda la pantalla */
    width: 100vw; 
    height: 56.25vw; /* 100 / (16/9) = 56.25 */
    min-height: 100vh;
    min-width: 177.77vh; /* 100 * (16/9) = 177.77 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Capa de superposición oscura (para que el video no distraiga tanto) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Color oscuro semitransparente */
    z-index: -1; /* Entre el video y la caja de contenido */
}

/* Caja de contenido (como en el primer diseño) */
.container {
    background: rgba(255, 255, 255, 0.92);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    text-align: center;
    color: #333; /* Texto oscuro para contrastar con la caja blanca */
    position: relative; /* Asegura que tenga su propio contexto de apilamiento */
    z-index: 1; /* Para que esté por encima del overlay y el video */
    
    /* Animación de entrada */
    animation: fadeIn 1s ease-in-out;
}

/* Icono de herramientas */
.icon {
    font-size: 5rem;
    color: #a1b0c4;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.container:hover .icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Títulos y párrafos */
h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.subtitle {
    font-weight: 300;
    font-size: 1.2rem;
    margin-top: 25px;
    color: #7f8c8d;
}

/* Información de contacto */
.contact-info {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Animación Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para pantallas pequeñas (móviles) */
@media (max-width: 600px) {
    .container {
        padding: 30px 25px;
    }

    h1 {
        font-size: 2rem;
    }

    .icon {
        font-size: 4rem;
    }
}