/* Estilos para Biblioteca Municipal */

/* Hero Section */
.hero-biblioteca {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-biblioteca::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,122.7C1248,128,1344,160,1392,176L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    opacity: 0.3;
}

.hero-biblioteca .container {
    position: relative;
    z-index: 1;
}

.hero-biblioteca h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
}

.hero-biblioteca .hero-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

/* Main Content */
.biblioteca-main {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.biblioteca-intro {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    animation: fadeIn 1s ease-out;
}

.biblioteca-intro h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.biblioteca-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Servicios Section */
.servicios-biblioteca {
    margin-bottom: 50px;
}

.servicios-biblioteca h2 {
    color: #1e3a8a;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.servicio-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.servicio-card .servicio-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.servicio-card h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.servicio-card p {
    color: #666;
    line-height: 1.6;
}

/* Galería de Imágenes */
.galeria-biblioteca {
    margin-bottom: 50px;
}

.galeria-biblioteca h2 {
    color: #1e3a8a;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 250px;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    transform: translateY(0);
}

.galeria-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Horarios */
.horarios-biblioteca {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.horarios-biblioteca h2 {
    color: #1e3a8a;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.horarios-table {
    width: 100%;
    border-collapse: collapse;
}

.horarios-table th,
.horarios-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.horarios-table th {
    background-color: #1e3a8a;
    color: white;
    font-weight: 600;
}

.horarios-table tr:hover {
    background-color: #f8f9fa;
}

/* Contacto */
.contacto-biblioteca {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.contacto-biblioteca h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contacto-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contacto-item i {
    font-size: 1.5rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-biblioteca h1 {
        font-size: 2rem;
    }

    .hero-biblioteca .hero-icon {
        font-size: 3rem;
    }

    .biblioteca-intro,
    .horarios-biblioteca,
    .contacto-biblioteca {
        padding: 30px 20px;
    }

    .servicios-grid,
    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .contacto-info {
        flex-direction: column;
        gap: 20px;
    }
}
