/* 🎯 Ajustes generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* 💻 Estilos para pantallas grandes (desktop) */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 📱 Responsive para tablets */
@media screen and (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    .img-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* 📱 Responsive para móviles */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .img-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    img {
        max-width: 100%;
        height: auto;
    }
    /* Centrar textos en móvil */
    h1, h2, p {
        text-align: center;
    }
    /* Formularios en columna */
    form {
        display: flex;
        flex-direction: column;
    }
    form input, form textarea, form button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 📱 Pantallas muy pequeñas (modo “super compacto”) */
@media screen and (max-width: 480px) {
    .img-gallery {
        grid-template-columns: 1fr; /* Una sola columna */
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
}


.img-gallery {
    width: 90%; /* Un poco más ancho en pantallas grandes */
    max-width: 1200px;
    margin: 80px auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* gap moderno en lugar de grid-gap */
}

.img-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-radius 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); /* Brillo inicial */
}

.img-gallery img:hover {
    transform: scale(1.05) rotate(-2deg);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.5);
    animation: glowPulse 1.5s infinite alternate;
}

/* Animación de brillo pulsante */
@keyframes glowPulse {
    from {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.5);
    }
    to {
        box-shadow: 0 0 40px rgba(255, 255, 255, 1), 0 0 80px rgba(255, 215, 0, 0.9);
    }
}


/* .................................................... FULL IMAGE .................................................... */
.full-img {
    width: 100%;
    height: 100vh;
    background: rgba(16, 16, 48, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.4s ease-in-out;
}

.full-img img {
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: zoomIn 0.4s ease-in-out;
}

.full-img span {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.full-img span:hover {
    transform: scale(1.2);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsivo */
@media (max-width: 500px) {
    .img-gallery img {
        height: 180px;
    }
}

/* --- Responsive para menú e inicio en teléfonos --- */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  nav ul li {
    display: block;
  }

  nav a {
    font-size: 1rem;
    padding: 8px;
  }
}


