/* Configuración General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 20px;
}

.titulo {
    text-align: center;
    color: #ff4757;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* Galería Responsiva */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.item-galeria {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 5px solid #fff;
    transition: transform 0.3s ease;
}

.item-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-galeria:hover {
    transform: scale(1.05);
}

/* Efecto Hover Colorido */
.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 71, 87, 0.7); /* Color vibrante */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay span {
    color: white;
    font-weight: bold;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 20px;
}

.item-galeria:hover .overlay {
    opacity: 1;
}

/* Efecto Lightbox (Sin JS) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox:target {
    display: flex; /* Se activa al hacer clic en el enlace */
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 5px solid #fff;
    border-radius: 10px;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}
