/* ==========================================================================
   ESTILOS GLOBALES Y UTILIDADES - PURÉPERO, MICHOACÁN
   ========================================================================== */

:root {
    --prd-yellow: #FFCC00;
    --prd-yellow-hover: #e6b800;
    --prd-gray-dark: #2A2A2A;
    --prd-gray-medium: #383838;
    --prd-gray-light: #F4F4F5;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--prd-gray-light);
    color: #333333;
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.micro-text {
    font-size: 0.75rem !important;
}

.line-height-md {
    line-height: 1.65;
}

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

.fw-extrabold {
    font-weight: 800 !important;
}

.text-prd-yellow {
    color: var(--prd-yellow) !important;
}

/* ==========================================================================
   HERO HEADER CON VIDEO DE FONDO
   ========================================================================== */

.hero-video-wrapper {
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-video-element {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

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

.hover-top {
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.hover-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

@media (min-width: 992px) {
    .hero-video-wrapper {
        min-height: 620px;
    }
}

/* ==========================================================================
   ESTILOS Y ACORDEÓN SECCIÓN NUESTRO MUNICIPIO
   ========================================================================== */

/* Animación de zoom suave en la imagen */
.hover-scale {
    transition: transform 0.5s ease;
}

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

/* Personalización del icono del acordeón */
.custom-accordion-purepero .accordion-button::after {
    filter: brightness(0);
    /* Icono en color negro contrastante sobre el amarillo */
}

.custom-accordion-purepero .accordion-button:not(.collapsed) {
    color: #2A2A2A !important;
    background-color: #FFCC00 !important;
}

/* ==========================================================================
   EFECTOS DE DIFUMINADO Y CRISTAL (GLASSMORPHISM) EN NUESTRO MUNICIPIO
   ========================================================================== */

/* Difuminado suave en el fondo de la sección */
.section-municipio-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Difuminado perimetral en los bordes superior e inferior */
.blur-overlay-vignette {
    background: radial-gradient(circle, transparent 40%, rgba(20, 20, 20, 0.7) 100%),
        linear-gradient(to bottom, rgba(42, 42, 42, 0.8) 0%, transparent 15%, transparent 85%, rgba(42, 42, 42, 0.8) 100%);
    z-index: 1;
}

/* Estilo de tarjeta con efecto cristal semi-transparente */
.glass-card {
    background-color: rgba(35, 35, 35, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 204, 0, 0.15) !important;
}

/* ==========================================================================
   ESTILOS SECCIÓN REDES SOCIALES Y FEED DE FACEBOOK
   ========================================================================== */

.fb-feed-container {
    min-height: 500px;
    background-color: #181818 !important;
    border: 1px solid rgba(255, 204, 0, 0.2);
}

/* Fuerza el centrado exacto del iframe inyectado por Facebook */
.fb-page,
.fb-page span,
.fb-page iframe {
    margin: 0 auto !important;
    display: block !important;
    max-width: 100% !important;
}

@media (max-width: 575.98px) {
    .fb-feed-container {
        min-height: 400px;
        padding: 0.25rem !important;
    }
}

/* CENTRADO PERFECTO DEL FEED DE FACEBOOK */
.fb-feed-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 520px;
    /* Alinea el ancho del contenedor con el del iframe */
    min-height: 600px;
    background-color: #181818 !important;
    border: 1px solid rgba(255, 204, 0, 0.2);
}

.fb-iframe-centered {
    margin: 0 auto !important;
    display: block !important;
    max-width: 100% !important;
}

@media (max-width: 575.98px) {
    .fb-feed-container {
        min-height: 500px;
        max-width: 100%;
    }
}

/* ==========================================================================
   ESTILOS BANNER PARALLAX SIN DIFUMINADO (CALZADO)
   ========================================================================== */

.banner-parallax-section {
    min-height: 420px;
    /* Imagen de fondo sin difuminado */
    background-image: url('../img/calzado.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Efecto Parallax */
}

/* Capa de contraste oscuro transparente (sin efecto blur) */
.banner-parallax-overlay {
    background: rgba(20, 20, 20, 0.75);
    /* Mantiene nitidez total en la imagen */
    z-index: 1;
}

/* Resplandor dorado alrededor del Escudo (Logo 2) */
.banner-logo-glow {
    filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.45));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.banner-logo-glow:hover {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 0 30px rgba(255, 204, 0, 0.75));
}

/* Sombras pesadas para el texto */
.text-shadow-lg {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
}

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

/* Ajuste Parallax en dispositivos móviles */
@media (max-width: 991.98px) {
    .banner-parallax-section {
        background-attachment: scroll;
        min-height: 380px;
    }
}


/* ==========================================================================
   ESTILOS SECCIÓN TRÁMITES Y SERVICIOS CON FONDOCARD
   ========================================================================== */

/* Estructura base de la tarjeta */
.card-tramite-custom {
    background-color: #262626 !important;
    border: 1px solid rgba(255, 204, 0, 0.2) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.card-tramite-custom:hover {
    transform: translateY(-8px);
    border-color: #FFCC00 !important;
    box-shadow: 0 15px 30px rgba(255, 204, 0, 0.25) !important;
}

/* Manejo de fondocard.png con oscurecimiento y difuminado profundo */
.card-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Aplica capa oscura intensa e inverte colores para opacar el fondo blanco original */
    filter: brightness(0.25) contrast(1.2) blur(2px);
    opacity: 0.6;
    transition: opacity 0.35s ease, filter 0.35s ease;
    z-index: 1;
}

.card-tramite-custom:hover .card-bg-overlay {
    opacity: 0.85;
    filter: brightness(0.35) contrast(1.1) blur(0px);
}

/* Ícono en tarjeta */
.icon-box-tramite {
    width: 70px;
    height: 70px;
    background: rgba(42, 42, 42, 0.8);
    border: 2px solid #FFCC00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.card-tramite-custom:hover .icon-box-tramite {
    transform: scale(1.1) rotate(5deg);
}

/* Botón hover */
.hover-yellow-btn {
    color: #FFCC00 !important;
    border-color: #FFCC00 !important;
    transition: all 0.25s ease !important;
}

.hover-yellow-btn:hover {
    background-color: #FFCC00 !important;
    color: #1A1A1A !important;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}


/* ==========================================================================
   ESTILOS SECCIÓN NUESTRO PRESIDENTE (PEPE MORA)
   ========================================================================== */

.section-presidente-wrapper {
    background: radial-gradient(circle at 30% 50%, #2e2e2e 0%, #1a1a1a 100%);
}

/* Foco de luz ambiental en el centro */
.glow-spotlight-president {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(40px);
}

/* Marco fotográfico ejecutivo */
.president-frame-container {
    max-width: 380px;
    padding: 12px;
}

.president-frame-border {
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed rgba(255, 204, 0, 0.6);
    border-radius: 1.5rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
    z-index: 1;
}

.president-frame-container:hover .president-frame-border {
    transform: scale(1.03) rotate(-1deg);
    border-color: #FFCC00;
}

.president-image-card {
    border: 3px solid #FFCC00;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 204, 0, 0.25);
}

.president-photo {
    height: 420px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.president-frame-container:hover .president-photo {
    transform: scale(1.06);
}

/* Overlay inferior en foto */
.president-card-overlay {
    background: linear-gradient(to top, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.6) 70%, transparent 100%);
}

.president-badge-shield {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Ajustes responsivos */
@media (max-width: 991.98px) {
    .president-photo {
        height: 360px;
    }
}

/* ==========================================================================
   AJUSTES IMAGEN VISITA Y CARDS AMARILLAS TRASERAS DEL MAPA
   ========================================================================== */

/* Tamaño controlado para la imagen promocional */
.img-visita-ajustada {
    max-height: 240px !important;
    width: auto !important;
    max-width: 100%;
}

/* CARDS DECORATIVAS AMARILLAS DETRÁS DEL MAPA */
.map-backdrop-card {
    position: absolute;
    border-radius: 1.25rem;
    background-color: #FFCC00;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

/* Primera tarjeta trasera (inclinada arriba-derecha) */
.map-card-back-1 {
    top: -12px;
    right: -12px;
    bottom: 12px;
    left: 12px;
    opacity: 0.85;
    transform: rotate(1.5deg);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

/* Segunda tarjeta trasera (inclinada abajo-izquierda) */
.map-card-back-2 {
    top: 12px;
    right: 12px;
    bottom: -12px;
    left: -12px;
    background-color: #e6b800;
    opacity: 0.5;
    transform: rotate(-1.5deg);
}

/* Animación de reacción al pasar el ratón */
.col-12:hover .map-card-back-1 {
    transform: rotate(3deg) scale(1.02);
    opacity: 1;
}

.col-12:hover .map-card-back-2 {
    transform: rotate(-3deg) scale(1.01);
    opacity: 0.7;
}


/* ==========================================================================
   ESTILOS MODULAR POP-UP (MODAL CON CAROUSEL)
   ========================================================================== */

.modal-purepero-border {
    border: 2px solid #FFCC00 !important;
}

/* Altura adaptable para las imágenes dentro del modal */
.modal-slider-img {
    height: 400px;
}

/* Color amarillo para los indicadores activos del carousel */
#carouselAvisosModal .carousel-indicators [data-bs-target] {
    background-color: #FFCC00;
    height: 4px;
    border-radius: 2px;
}

@media (max-width: 767.98px) {
    .modal-slider-img {
        height: 260px;
    }
}


/* ==========================================================================
   ESTILOS SECCIÓN SEVAC Y PESTAÑAS
   ========================================================================== */

/* Estilos de botones de swicheo */
#sevac-tabs .nav-link {
    color: #FFFFFF !important;
    background-color: transparent;
    border: none;
}

#sevac-tabs .nav-link:hover {
    color: #FFCC00 !important;
}

#sevac-tabs .nav-link.active {
    background-color: #FFCC00 !important;
    color: #2A2A2A !important;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* Transición para el botón histórico inferior */
.hover-opacity-100:hover {
    opacity: 1 !important;
}

.opacity-60 {
    opacity: 0.6;
}