/* Estilos generales - mobile first */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: "Montserrat", sans-serif;
    background-image: url(Fondo.jpeg); /* Ajusta si está en /img */
    background-size: 100% auto; /* Ocupa todo el ancho, sin distorsión */
    background-repeat: no-repeat;
    background-position: top center;
    background-color: black; /* por si no cubre todo */
    color: white;
    text-align: center;
    overflow-x: hidden;

}

/* Logo */
.logo {
    width: 150px;         /* Antes: 100px */
    max-width: 80vw;      /* Escala en móviles */
    height: auto;         /* Mantiene proporción */
    margin: 50px auto 20px;
    display: block;
    border-radius: 10px;
}

/* Encabezado */
h2 {
    font-size: 1.3rem;
    font-weight: lighter;
    color: #ddd;
    margin-bottom: 20px;
}

/* Galería */
.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.gallery img {
    width: 85%;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    padding: 10px;
    color: white;
    cursor: pointer;
}

/* Estilo para pantallas más grandes */
@media (min-width: 768px) {
    body {
        background-size: cover;
    
        background-position: center;
    }

    .gallery {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery img {
        width: 100%;
        max-width: 250px;
    }
}
