body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    height: 100%;
}

.background-overlay {
    background: url('../img/fondo.jpg') no-repeat center center/cover;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Oscurece la imagen de fondo */
    z-index: 1;
}

header, main, footer {
    position: relative;
    z-index: 2;
}

header {
    margin-bottom: 40px;
}

.logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;          /* Redondo */
    border: 4px solid white;     /* Borde blanco */
    box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Sombra suave */
    object-fit: cover;           /* Que no se deforme */
    aspect-ratio: 1 / 1;         /* Asegura proporción cuadrada */
    background-color: white;     /* Fondo blanco para imagenes PNG */
}

h1 {
    font-size: 2.5rem;
    margin: 10px 0;
}

p {
    font-size: 1.2rem;
    margin: 0;
}

.btn {
    display: inline-block;
    background: #3498db;
    padding: 15px 30px;
    margin: 20px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

footer {
    position: absolute;
    bottom: 20px;
}

.cerrar-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: background 0.3s;
}

.cerrar-btn:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    p {
        font-size: 1rem;
    }
    .btn, .cerrar-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
    .logo img {
        width: 90px;
        height: 90px;
        border: 3px solid white;
        box-shadow: 0 0 8px rgba(0,0,0,0.4);
    }
}
