/* ==========================================================================
   ESTILOS GLOBALES - AYUNTAMIENTO DE CHUCÁNDIRO
   ========================================================================== */

:root {
    --gold-chucandiro: #E1B132;
    --gold-light: #F0C435;
    --brown-chucandiro: #7A521D;
    --brown-dark: #2C1B0B;
    --cream-light: #FFFDF7;
}

body {
    background-color: #d1d5db !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bg-light-cream {
    background-color: var(--cream-light) !important;
}

.bg-brown-dark {
    background-color: var(--brown-dark) !important;
}

.bg-dark-card {
    background-color: #3b2510 !important;
}

.text-gold {
    color: var(--gold-chucandiro) !important;
}

.text-brown-dark {
    color: var(--brown-dark) !important;
}

.text-light-cream {
    color: #f3ebd8 !important;
}

.border-gold {
    border: 1px solid var(--gold-chucandiro) !important;
}

/* ==========================================================================
   SECCIÓN HERO CON VIDEO DE FONDO Y OVERLAY
   ========================================================================== */

.hero-chucandiro {
    position: relative;
    border-bottom: 4px solid var(--gold-chucandiro);
    background-color: var(--brown-dark);
    /* Fondo fallback mientras carga el video */
    min-height: 520px;
    display: flex;
    align-items: center;
}

/* Video ajustado al 100% del contenedor */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Capa oscura con los tonos dorado/café para dar legibilidad al texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 27, 11, 0.88) 0%, rgba(122, 82, 29, 0.78) 100%);
    z-index: 1;
}

/* ==========================================================================
   SECCIÓN HERO CON VIDEO DE FONDO Y OVERLAY
   ========================================================================== */

.hero-chucandiro {
    position: relative;
    border-bottom: 4px solid var(--gold-chucandiro);
    background-color: var(--brown-dark);
    /* Fondo fallback mientras carga el video */
    min-height: 520px;
    display: flex;
    align-items: center;
}

/* Video ajustado al 100% del contenedor */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Capa oscura con los tonos dorado/café para dar legibilidad al texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 27, 11, 0.88) 0%, rgba(122, 82, 29, 0.78) 100%);
    z-index: 1;
}

/* El contenido se posiciona por encima del video y del overlay */
.hero-chucandiro .z-2 {
    z-index: 2;
}

/* Botones con efectos */
.btn-gold-action {
    background-color: var(--gold-chucandiro) !important;
    color: var(--brown-dark) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-gold-action:hover {
    background-color: var(--gold-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(225, 177, 50, 0.4) !important;
}

.btn-outline-gold {
    border: 2px solid var(--gold-chucandiro) !important;
    color: var(--gold-chucandiro) !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.btn-outline-gold:hover {
    background-color: var(--gold-chucandiro) !important;
    color: var(--brown-dark) !important;
}

.btn-brown-chucandiro {
    background-color: var(--brown-chucandiro) !important;
    border: none !important;
}

.btn-brown-chucandiro:hover {
    background-color: #614015 !important;
}

/* Cards turismo */
.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(225, 177, 50, 0.25) !important;
}

/* Imagen del Presidente */
.president-img-frame {
    border: 4px solid var(--gold-chucandiro);
}

.w-85 {
    width: 85% !important;
}

/* ==========================================================================
   ESTILOS DE LA SECCIÓN NUESTRO MUNICIPIO (MÁSCARA Y MÁRGENES)
   ========================================================================== */

.section-municipio-chucandiro {
    background-color: var(--brown-dark);
    min-height: 600px;
}

/* IMAGEN DE FONDO CON MÁSCARA */
.municipio-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    /* Opacidad para legibilidad del texto */
    z-index: 0;
}

/* DIFUMINADO SUAVE EN LA PARTE INFERIOR PARA EMPALMAR CON LA SIGUIENTE SECCIÓN */
.municipio-gradient-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(44, 27, 11, 0.85) 0%,
            rgba(44, 27, 11, 0.70) 50%,
            rgba(44, 27, 11, 1) 100%);
    z-index: 1;
}

/* ACORDEÓN PERSONALIZADO */
.custom-accordion-chucandiro .accordion-button {
    box-shadow: none !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-accordion-chucandiro .accordion-button:not(.collapsed) {
    background-color: #3b2510 !important;
    color: var(--gold-light) !important;
}

.custom-accordion-chucandiro .accordion-button::after {
    filter: invert(72%) sepia(82%) saturate(398%) hue-rotate(358deg) brightness(97%) contrast(88%);
}

.border-gold-opacity {
    border-color: rgba(225, 177, 50, 0.3) !important;
}

.table-brown-header {
    background-color: #211306 !important;
}

/* FRAME Y EFECTOS ATRACTIVOS DE LA IMAGEN DERECHA */
.municipio-frame-wrapper {
    max-width: 450px;
    width: 100%;
}

.frame-glow-bg {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--gold-chucandiro), var(--brown-chucandiro));
    border-radius: 24px;
    filter: blur(15px);
    opacity: 0.4;
    z-index: 0;
}

.municipio-image-card {
    position: relative;
    z-index: 1;
    transform: rotate(1.5deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 520px;
}

.municipio-image-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 15px 35px rgba(225, 177, 50, 0.3) !important;
}

.image-overlay-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

/* ==========================================================================
   DIFUMINADO INFERIOR ENTRE SECCIÓN TURISMO Y SIGUIENTE SECCIÓN
   ========================================================================== */

.section-turismo-chucandiro {
    padding-bottom: 5rem !important;
}

/* Capa de degradado transparente a crema suave (#FFFDF7) */
.turismo-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom,
            rgba(44, 27, 11, 0) 0%,
            rgba(255, 253, 247, 0.5) 60%,
            rgba(255, 253, 247, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   ESTILOS DE LA SECCIÓN DE NOTICIAS (CON FONDO CREMA CLARO)
   ========================================================================== */

.section-noticias-chucandiro {
    background-color: var(--cream-light) !important;
    /* Mismo fondo de ¿Cómo llegar? */
    min-height: 600px;
}

/* Imagen de fondo sutil sobre crema */
.noticias-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    /* Filtro suave para mantener el fondo claro */
    z-index: 0;
}

/* Máscara clara para contraste homogéneo */
.noticias-gradient-mask-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 253, 247, 0.92) 0%,
            rgba(240, 196, 53, 0.15) 50%,
            rgba(255, 253, 247, 0.95) 100%);
    z-index: 1;
}

/* Animaciones al Scroll */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
}

.animate-on-scroll.animated-visible {
    opacity: 1;
}


section-parallax-funcionarios {
    position: relative;
    background-image: url('img/funcinarios.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
}

/* Capa oscura central para legibilidad del texto */
.parallax-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 27, 11, 0.55);
    z-index: 1;
}

/* Difuminado (desvanecido) superior hacia la sección previa */
.parallax-fade-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Difuminado (desvanecido) inferior hacia la sección siguiente */
.parallax-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, #2C1B0B 0%, rgba(44, 27, 11, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Ajustes para dispositivos móviles (donde background-attachment: fixed suele deshabilitarse) */
@media (max-width: 768px) {
    .section-parallax-funcionarios {
        background-attachment: scroll;
        min-height: 380px;
    }
}
