/* ==========================================================================
   HOJA DE ESTILOS GLOBALES - GOBIERNO MUNICIPAL DE SALVADOR ESCALANTE
   ========================================================================== */

:root {
    /* Paleta Principal Extraída */
    --color-rosa-principal: #B01257;
    /* Magenta Oscuro Institucional */
    --color-rosa-hover: #C2185B;
    /* Magenta Medio Vibrante */
    --color-rosa-claro: #E91E63;
    /* Fucsia Acento */
    --color-rosa-soft: #FCE4EC;
    /* Fondo Rosa Pastel */
    --color-dorado-hover: #C5A059;
    /* Dorado Cobre */
    --color-oscuro-texto: #2D2800;
    /* Texto de alta legibilidad */
    --color-blanco: #FFFFFF;

    /* Tipografías */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-oscuro-texto);
    background-color: #FAFAFA;
    overflow-x: hidden;
}

/* Clases de fuente y utilidades */
.font-sans {
    font-family: var(--font-sans);
}

.font-serif {
    font-family: var(--font-serif);
}

.max-w-700 {
    max-width: 700px;
}

.max-w-800 {
    max-width: 800px;
}

.btn-pill-rosa {
    background-color: var(--color-rosa-principal);
    border-color: var(--color-rosa-principal);
    border-radius: 50rem;
    transition: all 0.3s ease;
}

.btn-pill-rosa:hover {
    background-color: var(--color-rosa-hover);
    border-color: var(--color-rosa-hover);
    transform: translateY(-2px);
}

/* Glassmorphism Tarjetas */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(176, 18, 87, 0.12);
}

/* Transiciones Generales de Elevación */
.hover-top {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(176, 18, 87, 0.15) !important;
}


/* ==========================================================================
   HERO HEADER CON VIDEO Y LOGO SOBREPUESTO
   ========================================================================== */

.hero-video-wrapper {
    position: relative;
    min-height: 70vh;
    max-height: 750px;
    width: 100%;
    background-color: #000000;
    z-index: 1;
}

.hero-video-bg {
    z-index: 2;
    pointer-events: none;
    object-fit: cover;
}

/* CONTENEDOR Y LOGO POR ENCIMA DEL VIDEO CON ANIMACIÓN */
.hero-content {
    position: relative;
    z-index: 10 !important;
    animation: fadeInUpLogo 1.2s ease-out forwards;
}

.hero-centered-logo {
    max-width: 400px;
    width: 80vw;
    height: auto;
    filter: drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.hero-centered-logo:hover {
    transform: scale(1.03);
}

/* ANIMACIÓN DE ENTRADA DESDE ABAJO */
@keyframes fadeInUpLogo {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   SEPARADOR DE ONDA ORGÁNICA (HERO WAVE DIVIDER)
   ========================================================================== */

.hero-wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 6;
    pointer-events: none;
}

.hero-wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 120px;
}


/* ==========================================================================
   TARJETAS DECORATIVAS CON EFECTO LIFT ON HOVER
   ========================================================================== */

.card-brand-lift {
    background-color: #FAFAFA;
    min-height: 160px;
    border: 1px solid rgba(176, 18, 87, 0.08) !important;
    box-shadow: 0 8px 24px rgba(176, 18, 87, 0.06);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, background-color 0.3s ease;
    cursor: pointer;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.card-brand-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(176, 18, 87, 0.14) !important;
    background-color: #FFFFFF;
}

.brand-card-img {
    max-height: 95px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-brand-lift:hover .brand-card-img {
    transform: scale(1.05);
}

.section-brand-cards {
    background-color: #FFFFFF;
    border-bottom: 3px solid var(--color-dorado-hover);
}


/* ==========================================================================
   SECCIÓN BIENVENIDO A SALVADOR ESCALANTE
   ========================================================================== */

.welcome-section {
    position: relative;
    background-color: #FFFFFF;
    min-height: 850px;
    z-index: 10 !important;
}

.welcome-bg-image {
    background: linear-gradient(90deg,
            #FFFFFF 0%,
            rgba(255, 255, 255, 0.98) 45%,
            rgba(255, 255, 255, 0.45) 70%,
            rgba(255, 255, 255, 0.1) 100%), url('../img/kiosko.jpg') right center / cover no-repeat;
    z-index: 1;
}

.glass-welcome-card {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(176, 18, 87, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.text-rosa {
    color: var(--color-rosa-principal) !important;
}

.micro-text {
    font-size: 0.78rem;
}

.grid-center-shield {
    max-height: 185px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 8px 18px rgba(176, 18, 87, 0.15));
    transition: transform 0.3s ease;
}

.grid-center-shield:hover {
    transform: scale(1.04);
}

.circle-grid-item {
    transition: transform 0.3s ease;
}

.icon-fill-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-rosa-principal);
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 16px rgba(176, 18, 87, 0.25);
}

.icon-fill-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--color-rosa-hover);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.icon-fill-circle:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 22px rgba(176, 18, 87, 0.4);
}

.icon-fill-circle:hover::before {
    width: 130%;
    height: 130%;
}


/* ==========================================================================
   SECCIÓN NUESTRA PRESIDENTA
   ========================================================================== */

.presidenta-section {
    background-color: #FFFFFF;
    border-top: 1px solid rgba(176, 18, 87, 0.05);
    position: relative;
    z-index: 10;
}

.presidenta-portrait-frame {
    padding: 12px;
    display: inline-block;
}

.presidenta-img {
    max-height: 480px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(176, 18, 87, 0.18) !important;
    border: 4px solid #FFFFFF;
    transition: transform 0.4s ease;
}

.portrait-badge-backdrop {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 1.8rem;
    background: linear-gradient(135deg, var(--color-rosa-soft) 0%, rgba(197, 160, 89, 0.25) 100%);
    z-index: 1;
    transform: rotate(-1.5deg);
    transition: transform 0.4s ease;
}

.presidenta-portrait-frame:hover .presidenta-img {
    transform: scale(1.02);
}

.presidenta-portrait-frame:hover .portrait-badge-backdrop {
    transform: rotate(0deg) scale(1.03);
}

.text-justify {
    text-align: justify;
}

[data-aos].aos-animate {
    opacity: 1 !important;
}


/* ==========================================================================
   SECCIÓN SÍGUENOS EN FACEBOOK
   ========================================================================== */

.facebook-section {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-rosa-soft) 50%, #FFFFFF 100%);
    min-height: 700px;
    position: relative;
    z-index: 10;
}

.glass-facebook-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(176, 18, 87, 0.12);
    box-shadow: 0 20px 48px rgba(176, 18, 87, 0.08);
}

.fb-iframe-wrapper {
    max-width: 500px;
    width: 100%;
    height: 700px;
    margin: 0 auto;
    border: 1px solid rgba(176, 18, 87, 0.12);
}


/* ==========================================================================
   SECCIÓN VISITA SALVADOR ESCALANTE (PARALLAX)
   ========================================================================== */

.visita-section {
    position: relative;
    min-height: 520px;
    z-index: 10;
    background-color: #FFFFFF;
}

.visita-top-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.visita-top-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 120px;
}

.visita-bg-overlay {
    background-image: linear-gradient(180deg,
            rgba(255, 255, 255, 0.82) 0%,
            rgba(252, 228, 236, 0.65) 50%,
            rgba(255, 255, 255, 0.88) 100%), url('../img/artesania1.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.glass-visita-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(176, 18, 87, 0.12) !important;
}

.visita-accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-rosa-principal);
    border-radius: 2px;
}

.visita-flanking-logo {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.visita-flanking-logo:hover {
    transform: scale(1.08);
}

.visita-bottom-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.visita-bottom-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 120px;
}


/* ==========================================================================
   SECCIÓN DESCUBRE LOS ENCANTOS DE SALVADOR ESCALANTE
   ========================================================================== */

.encantos-section {
    position: relative;
    min-height: 750px;
    background-color: #1A1A1A;
    z-index: 10;
}

.encantos-bg-overlay {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.88) 0%,
            rgba(252, 228, 236, 0.70) 50%,
            rgba(255, 255, 255, 0.92) 100%), url('../img/atardecer.jpg') center center / cover no-repeat;
    z-index: 1;
}

.glass-encantos-header {
    background: rgba(255, 255, 255, 0.84) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(176, 18, 87, 0.15);
    box-shadow: 0 16px 40px rgba(176, 18, 87, 0.10) !important;
}

.encanto-card-wrapper {
    min-height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.encanto-card-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(176, 18, 87, 0.45) 60%,
            rgba(20, 2, 10, 0.88) 100%);
    backdrop-filter: blur(2px);
    transition: background 0.4s ease;
}

.glass-card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 48px rgba(176, 18, 87, 0.35) !important;
}

.glass-card-hover:hover .encanto-card-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(176, 18, 87, 0.35) 50%,
            rgba(20, 2, 10, 0.92) 100%);
}

.min-h-350 {
    min-height: 380px;
}


/* ==========================================================================
   SECCIÓN TRÁMITES Y SERVICIOS
   ========================================================================== */

.tramites-section {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-rosa-soft) 50%, #FFFFFF 100%);
    position: relative;
    z-index: 10;
}

.glass-tramite-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(176, 18, 87, 0.12) !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.glass-tramite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(176, 18, 87, 0.15) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.icon-tramite-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-rosa-principal);
    box-shadow: 0 6px 16px rgba(176, 18, 87, 0.25);
    transition: transform 0.3s ease;
}

.glass-tramite-card:hover .icon-tramite-badge {
    transform: scale(1.08);
}


/* ==========================================================================
   SECCIÓN CÓMO LLEGAR
   ========================================================================== */

.llegar-section {
    position: relative;
    min-height: 650px;
    background-color: #FFFFFF;
    z-index: 10;
}

.llegar-bg-overlay {
    background-image: linear-gradient(180deg,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(252, 228, 236, 0.65) 50%,
            rgba(255, 255, 255, 0.90) 100%), url('../img/zirahuenpano.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.glass-llegar-frame {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 2px solid rgba(176, 18, 87, 0.18);
    box-shadow: 0 24px 48px rgba(176, 18, 87, 0.12) !important;
}

.glass-info-card {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(176, 18, 87, 0.1);
}

.icon-llegar-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-rosa-principal);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(176, 18, 87, 0.25);
}

.map-wrapper {
    min-height: 400px;
    border-color: rgba(176, 18, 87, 0.15) !important;
}


/* ==========================================================================
   SLIDER POPUP DE AVISOS INSTITUCIONALES
   ========================================================================== */

#carouselAvisosOficiales .carousel-indicators [data-bs-target] {
    background-color: var(--color-rosa-principal);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    opacity: 0.4;
    border: none;
}

#carouselAvisosOficiales .carousel-indicators .active {
    opacity: 1;
    width: 24px;
    border-radius: 12px;
}

.custom-popup-control {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(176, 18, 87, 0.7);
    border-radius: 50%;
    margin: 0 10px;
}

.custom-popup-control:hover {
    background-color: var(--color-rosa-principal);
}


/* ==========================================================================
   ESTILOS FIJOS PARA EL WIDGET Y ASISTENTE VISUAL DE ACCESIBILIDAD
   ========================================================================== */

/* CONTENEDOR FLOTANTE RECEPTOR DEL MODULO */
#accessibility-container {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 99999 !important;
    pointer-events: none;
}

.accessibility-widget-wrapper {
    pointer-events: auto;
}

/* Botón Flotante Disparador */
.btn-accessibility-trigger {
    width: 55px !important;
    height: 55px !important;
    background-color: var(--color-rosa-principal) !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 24px rgba(176, 18, 87, 0.4) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-accessibility-trigger:hover {
    transform: scale(1.1) rotate(12deg) !important;
    background-color: var(--color-rosa-hover) !important;
    color: #FFFFFF !important;
}

/* Panel Glassmorphism */
.glass-accessibility-card {
    width: 295px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(176, 18, 87, 0.2) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15) !important;
    z-index: 99999 !important;
}

/* 1. MODO ALTO CONTRASTE GLOBALES */
body.accessibility-contrast {
    background-color: #000000 !important;
    color: #FFFF00 !important;
}

body.accessibility-contrast *:not(.btn-accessibility-trigger):not(#panelAccessibility *) {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border-color: #FFFF00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.accessibility-contrast a {
    color: #00FFFF !important;
    text-decoration: underline !important;
}

/* 2. MODO ESCALA DE GRISES GLOBAL */
body.accessibility-grayscale {
    filter: grayscale(100%) !important;
}

/* 3. DESACTIVAR ANIMACIONES Y TRANSICIONES */
body.accessibility-no-animations * {
    animation: none !important;
    transition: none !important;
}

/* MEDIAS QUERIES GLOBALES MÓVIL */
@media (max-width: 768px) {

    .visita-bg-overlay,
    .llegar-bg-overlay {
        background-attachment: scroll;
    }

    .visita-bottom-wave svg {
        height: 70px;
    }

    #accessibility-container {
        bottom: 15px !important;
        left: 15px !important;
    }
}


/* ==========================================================================
   ESTILOS PARALLAX PURO Y GLASSMORPHISM PARA SANTA CLARA DEL COBRE
   ========================================================================== */

/* Hero Header Parallax */
.santa-hero-parallax {
    background-image: url('../img/kiosko.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
}

.santa-hero-overlay {
    background: linear-gradient(180deg, rgba(15, 2, 8, 0.65) 0%, rgba(176, 18, 87, 0.75) 100%);
}

/* PARALLAX PURO SIN CAPAS DE DIFUMINADO / OVERLAYS (img/taller2.jpg) */
.santa-taller2-parallax-pure {
    background-image: url('../img/taller2.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 600px;
}

/* Backdrop Blur para la etiqueta de la imagen */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Tarjeta Glassmorphic Exclusiva */
.glass-santa-card {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(176, 18, 87, 0.15) !important;
    box-shadow: 0 20px 48px rgba(176, 18, 87, 0.12) !important;
}

.hover-scale {
    transition: transform 0.4s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.text-shadow-md {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* Ajustes Responsivos Móvil */
@media (max-width: 768px) {

    .santa-hero-parallax,
    .santa-taller2-parallax-pure {
        background-attachment: scroll;
    }
}