:root {
    --panin-burgundy: #800020;
    --panin-burgundy-dark: #580016;
    --panin-pink-light: #fdf2f8;
    --panin-text-dark: #1e293b;
    --panin-white: #ffffff;
}

/* Espaciado para Navbar fija superior */
.has-transparent-nav {
    padding-top: 72px;
}

/* Utilitarios de color */
.bg-burgundy {
    background-color: var(--panin-burgundy) !important;
    color: #ffffff !important;
}

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

.text-burgundy {
    color: var(--panin-burgundy) !important;
}

/* Botones */
.btn-burgundy {
    background-color: var(--panin-burgundy) !important;
    color: #ffffff !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-burgundy:hover {
    background-color: var(--panin-burgundy-dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

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

.btn-outline-burgundy:hover {
    background-color: var(--panin-burgundy) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   HERO HEADER SPLIT CORREGIDO (ALTURA EXACTA Y FONDO VISIBLE)
   ========================================================================== */
.panin-hero-split {
    position: relative;
    width: 100%;
    height: auto;
    background-color: #000000;
    overflow: hidden;
}

/* Forzar que las dos columnas tengan la misma altura */
.panin-hero-split .row {
    display: flex;
    flex-wrap: wrap;
}

.hero-left-side {
    position: relative;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    /* Altura base uniforme */
}

/* Corrección de la ruta de imagen de fondo */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('../img/ondohead.png');
    /* Carga desde la carpeta css hacia img */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    /* Incrementado para que resalte más el patrón */
    z-index: 1;
}

.hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* Tipografías y contenido */
.hero-content-box {
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 2.8rem;
    color: #ffffff;
    line-height: 1;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 4rem;
    letter-spacing: -1px;
    color: #ffffff;
    line-height: 1.1;
}

.hero-brush-line {
    width: 220px;
    height: 8px;
    background-color: #800020;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(128, 0, 32, 0.6);
}

.btn-hero-contact {
    transition: transform 0.3s ease;
}

.btn-hero-contact:hover {
    transform: translateX(5px);
}

.icon-phone-circle {
    width: 48px;
    height: 48px;
    background-color: #800020;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.5);
}

/* Columna Derecha: El video define o se ajusta a la altura exacta */
.hero-right-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    overflow: hidden;
}

.hero-video-element {
    width: 100%;
    height: 100%;
    max-height: 520px;
    /* Limita el alto del video para recortar el espacio negro */
    object-fit: cover;
    display: block;
}

/* Ajustes Responsive */
@media (max-width: 991.98px) {
    .hero-subtitle {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-left-side {
        min-height: 350px;
    }

    .hero-video-element {
        max-height: 380px;
    }
}

/* Escudo Imagen */
.panin-escudo-img {
    max-height: 360px;
    width: auto;
    object-fit: contain;
}

/* Cards Interactivas */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(128, 0, 32, 0.15) !important;
}

/* ==========================================================================
   SECCIÓN PRESIDENTE (DISEÑO PERSONALIZADO CON FONDO DIAGONAL)
   ========================================================================== */
.panin-presidente-custom {
    background-color: #ffffff;
    min-height: 600px;
}

/* Imagen de fondo difuminada con corte en diagonal */
.presidente-bg-blur {
    position: absolute;
    inset: 0;
    background-image: url('../img/Centro.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    filter: blur(2px) brightness(.1) opacity(0.3);
    /* Aplica el corte en diagonal en la parte inferior e izquierda */
    clip-path: polygon(0 70%, 100% 35%, 100% 100%, 0 100%);
    z-index: 1;
}

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

/* Foto del Presidente centrada con EFECTO LIFT UP */
.presidente-full-img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
    cursor: pointer;
    /* Transición suave para animación fluida */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
    will-change: transform, filter;
}

/* Interacción Hover: Efecto Lift Up (Elevación e incremento de sombra) */
.presidente-full-img:hover {
    transform: translateY(-12px) scale(1.02);
    filter: drop-shadow(0 22px 25px rgba(0, 0, 0, 0.25));
}

/* Tipografía de Nombre y Descripción */
.presidente-name {
    font-family: 'Georgia', serif;
    color: #1a1a1a;
    font-size: 2.1rem;
    letter-spacing: -0.5px;
}

.presidente-desc {
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333333;
}

/* Botón Rosa/Magenta */
.btn-detail-magenta {
    background-color: #c23b87 !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 36px;
    border-radius: 4px;
    font-size: 1.05rem;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-detail-magenta:hover {
    background-color: #a0296e !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(194, 59, 135, 0.4) !important;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .presidente-full-img {
        max-height: 280px;
    }

    .presidente-name {
        font-size: 1.6rem;
    }

    .presidente-desc {
        font-size: 1rem;
    }

    .presidente-bg-blur {
        clip-path: polygon(0 50%, 100% 25%, 100% 100%, 0 100%);
    }
}

/* ==========================================================================
   SECCIÓN FACEBOOK CON FONDO PERSONALIZADO
   ========================================================================== */
.panin-facebook-section {
    position: relative;
    min-height: 600px;
    background-color: #f8fafc;
}

/* Imagen de fondo */
.facebook-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Capa clara para legibilidad del contenido */
.facebook-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(.5px);
    z-index: 1;
}

/* Elevación de z-index para el contenido */
.panin-facebook-section .z-2 {
    z-index: 2;
}

.fb-feed-wrapper iframe {
    min-height: 600px;
    border-radius: 12px;
}

/* ==========================================================================
   SECCIÓN NUESTRO MUNICIPIO CON FONDO VISIBLE (FONDO11.PNG)
   ========================================================================== */
.panin-municipio-section {
    position: relative;
    min-height: 550px;
}

/* Imagen de fondo nítida/visible */
.municipio-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('#');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Capa de contraste clara (sin difuminado) para garantizar legibilidad */
.municipio-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    z-index: 1;
}

.panin-municipio-section .z-2 {
    z-index: 2;
}


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

.min-h-400 {
    min-height: 400px;
}

.route-item h4 {
    font-size: 0.95rem;
}

/* ==========================================================================
   SECCIÓN ¡VISÍTANOS! - FONDO GUINDA INSTITUCIONAL (#800020)
   ========================================================================== */
.panin-visitanos-section {
    background-color: #800020 !important;
    /* Fondo guinda base */
    position: relative;
    min-height: 580px;
}

/* Gradiente guinda oscuro a medio para profundidad */
.visitanos-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4d0013 0%, #800020 50%, #580016 100%);
    z-index: 1;
}

.text-burgundy {
    color: #800020 !important;
}

/* Card Destacada Principal */
.video-card-main {
    height: 380px;
    background-color: #000;
}

.video-thumb-main {
    height: 100%;
    filter: brightness(0.85);
    transition: transform 0.5s ease;
}

.video-card-main:hover .video-thumb-main {
    transform: scale(1.04);
}

.video-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(77, 0, 19, 0.2) 0%, rgba(77, 0, 19, 0.92) 100%);
    z-index: 2;
}

/* Botón de reproducción blanco con hover rosado/tinto */
.btn-play-burgundy {
    background-color: #ffffff !important;
    color: #800020 !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-play-burgundy:hover {
    background-color: #fbcfe8 !important;
    /* Rosa acento */
    color: #580016 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Tarjetas Secundarias de Galería */
.video-card-thumb {
    height: 180px;
    background-color: #000;
    cursor: pointer;
}

.video-card-thumb img {
    height: 100%;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.thumb-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(77, 0, 19, 0.4);
    transition: background 0.3s ease;
}

.play-icon-small {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    color: #800020;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding-left: 3px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.thumb-title-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Hover en Miniaturas */
.video-card-thumb:hover img {
    transform: scale(1.08);
}

.video-card-thumb:hover .thumb-hover-overlay {
    background: rgba(77, 0, 19, 0.15);
}

.video-card-thumb:hover .play-icon-small {
    transform: scale(1.15);
    background-color: #fbcfe8;
    color: #800020;
}

@media (max-width: 991px) {
    .video-card-main {
        height: 320px;
    }

    .video-card-thumb {
        height: 140px;
    }
}

/* ==========================================================================
   SEPARADORES TENUES GUINDA/DORADO ENTRE SECCIONES (GRADIENTE DEVANECIDO)
   ========================================================================== */
.panin-divider-accent {
    width: 100%;
    height: 3px;
    position: relative;
    z-index: 10;
    /* Degradado sutil con centro dorado/guinda tenue y extremos transparentes */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(128, 0, 32, 0.18) 25%,
            rgba(212, 175, 55, 0.35) 50%,
            rgba(128, 0, 32, 0.18) 75%,
            rgba(255, 255, 255, 0) 100%);
    border: none;
    margin: 0;
}

/* ==========================================================================
   POPUP EMERGENTE MODAL INSTITUCIONAL CON CARRUSEL
   ========================================================================== */
.panin-popup-modal .modal-content {
    border: 2px solid rgba(212, 175, 55, 0.4) !important;
    /* Borde dorado tenue */
}

.popup-mini-logo {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.bg-gold {
    background-color: #d4af37 !important;
}

.popup-img-wrapper {
    min-height: 320px;
    background-color: #800020;
}

.popup-img-wrapper .carousel-item {
    min-height: 320px;
}

.popup-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(128, 0, 32, 0.1) 0%, rgba(128, 0, 32, 0.45) 100%);
    z-index: 1;
}

.min-h-250 {
    min-height: 250px;
}

@media (max-width: 767px) {

    .popup-img-wrapper,
    .popup-img-wrapper .carousel-item {
        height: 200px !important;
        min-height: 200px;
    }
}