/* CSS para páginas de municipios */



/* Estructura principal */
.municipality-article {
    display: block;
    width: 100%;
}

/* Hero section */
.municipality-hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    overflow: hidden;
    margin-bottom: 4rem;
}

.municipality-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.municipality-hero:hover .hero-image {
    transform: scale(1.05);
}

.municipality-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
}

.municipality-hero .muni-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 10%;
    color: #fff;
    text-align: center;
}

.municipality-hero .muni-hero-content h1 {
    font-size: 3.5rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    color: #fff;
}

.municipality-hero .hero-subtitle {
    font-size: 1.4rem;
    margin-top: 1rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contenedor de contenido */
.municipality-content {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Bloques de servicio */
.service-block {
    margin-bottom: 5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--muni-border);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
    text-align: center;
}

.service-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.service-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.service-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--muni-shadow);
    position: relative;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--muni-primary-light) 0%, transparent 50%);
    opacity: 0.4;
    z-index: 1;
    transition: var(--transition);
}

.service-image:hover::before {
    opacity: 0.1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.service-image:hover img {
    transform: scale(1.05);
}

/* Estilos actualizados para la sección de FAQ */

.faq-section {
    margin: 5rem 0;
    background-color: #f9f9f9;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
    text-align: center;
    color: #3c5738;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: 2rem;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: #3c5738;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    color: #3c5738;
    padding: 1.2rem 0;
    position: relative;
    cursor: pointer;
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.faq-question::before {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    color: #4285F4;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::before {
    content: '▲';
}

.faq-answer {
    padding: 0 0 1.5rem 2rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Sección CTA */
.cta-section {
    margin: 5rem 0 2rem;
}

.cta-background {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-image: url('http://localhost/jardineroen/assets/uploads/images/2025/04/Imagen_ZonasComunes/Imagen_ZonasComunes_05.webp');
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
}

.cta-content {
    position: relative;
    padding: 4rem 2rem;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Media queries */
@media (max-width: 992px) {
    .municipality-hero .muni-hero-content h1 {
        font-size: 2.8rem;
    }

    .service-block h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .municipality-hero {
        height: 50vh;
        min-height: 350px;
    }

    .municipality-hero .muni-hero-content h1 {
        font-size: 2.2rem;
    }

    .municipality-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .service-content {
        flex-direction: column;
        gap: 2rem;
    }

    .service-content.reverse {
        flex-direction: column;
    }

    .service-block h2 {
        font-size: 1.8rem;
    }

    .faq-section {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .municipality-hero {
        height: 40vh;
        min-height: 300px;
    }

    .municipality-hero .muni-hero-content {
        padding: 2rem 5%;
    }

    .municipality-hero .muni-hero-content h1 {
        font-size: 1.8rem;
    }

    .municipality-content {
        width: 95%;
    }

    .service-block h2 {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.7rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
}
