/* ===================================================
   VARIABLES GLOBALES & CONFIGURACIÓN
=================================================== */
:root {
    --brand-wine: #7A173B;
    --brand-wine-hover: #5c102b;
    --brand-wine-dark: #4A0E23;
    --brand-pink: #E83E8C;
    --brand-pink-glow: rgba(232, 62, 140, 0.5);
    --brand-pink-light: #f7a8ca;
}

/* ===================================================
   HERO HEADER SECTION
=================================================== */
.hero-section {
    height: 75vh;
    min-height: 480px;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.tracking-wide {
    letter-spacing: 3px;
    font-size: 0.9rem;
}

.hero-title {
    font-family: 'Georgia', serif;
}

.btn-hero {
    background-color: var(--brand-wine);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-hero:hover {
    background-color: var(--brand-wine-hover);
    color: #ffffff;
}

/* Superposición de las Cards sobre el Hero */
.cards-overlap-section {
    margin-top: -90px;
}

.card-custom {
    background: linear-gradient(180deg, #ffffff 60%, #f7ebeb 100%);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
}

.card-title-custom {
    font-family: 'Georgia', serif;
    color: var(--brand-wine);
    font-size: 1.6rem;
}

.hero-card-logo {
    max-height: 80px;
    width: auto;
}

.card-footer-btn {
    background-color: var(--brand-wine);
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: block;
    transition: background-color 0.3s ease;
}

.card-footer-btn:hover {
    background-color: var(--brand-wine-hover);
    color: #ffffff;
}

/* ===================================================
   SECCIÓN NUESTRO PRESIDENTE
=================================================== */
.president-name,
.president-subtitle {
    font-family: 'Georgia', serif;
    color: var(--brand-wine);
}

/* Tarjeta Foto Izquierda */
.card-president-photo {
    background-color: #ffffff;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.card-president-photo:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Marco Geométrico alrededor de la foto */
.photo-frame-wrapper {
    padding: 18px;
}

.frame-corner {
    position: absolute;
    width: 90px;
    height: 90px;
    z-index: 1;
    pointer-events: none;
}

.frame-top-left {
    top: 0;
    left: 0;
    border-top: 6px solid #000000;
    border-left: 6px solid #000000;
}

.frame-bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 6px solid #000000;
    border-right: 6px solid #000000;
}

.president-img-container {
    z-index: 2;
    position: relative;
}

.president-img {
    transition: transform 0.5s ease;
}

.card-president-photo:hover .president-img {
    transform: scale(1.03);
}

/* Tarjeta Biografía Derecha */
.card-president-bio {
    background-color: #ffffff;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.card-president-bio:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15) !important;
}

.bio-bg-img {
    filter: blur(1px);
    opacity: 0.85;
}

.bio-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.82) 50%,
            rgba(255, 255, 255, 0.96) 100%);
}

.bio-text-content {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #2b2b2b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.bio-highlight {
    color: #000000;
    font-size: 1.05rem;
}

.btn-president-more {
    background-color: var(--brand-wine);
    color: #ffffff;
    border: none;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-president-more:hover {
    background-color: var(--brand-wine-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===================================================
   SEPARADOR INSTITUCIONAL (EQUALIZER)
=================================================== */
.divider-equalizer {
    width: 100%;
    background-color: var(--brand-wine);
    line-height: 0;
}

.equalizer-pattern {
    height: 60px;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' preserveAspectRatio='none'%3E%3Cpath fill='%237A173B' d='M0,60 V30 Q2.5,30 2.5,25 V15 Q2.5,10 5,10 Q7.5,10 7.5,15 V35 Q7.5,40 10,40 Q12.5,40 12.5,35 V5 Q12.5,0 15,0 Q17.5,0 17.5,5 V45 Q17.5,50 20,50 Q22.5,50 22.5,45 V20 Q22.5,15 25,15 Q27.5,15 27.5,20 V60 Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: contain;
}

/* ===================================================
   SECCIÓN MÁS SOBRE NUESTRO MUNICIPIO
=================================================== */
.municipio-section {
    background-color: var(--brand-wine-dark);
}

.municipio-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.municipio-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(1.2);
}

.municipio-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(122, 23, 59, 1) 0%,
            rgba(74, 14, 35, 0.45) 25%,
            rgba(74, 14, 35, 0.45) 75%,
            rgba(122, 23, 59, 1) 100%);
}

.municipio-title {
    font-family: 'Georgia', serif;
}

.card-municipio {
    border-radius: 12px;
    background-color: transparent;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.height-card {
    height: 210px;
    transition: transform 0.5s ease;
}

.card-municipio:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--brand-pink-glow) !important;
}

.card-municipio:hover .height-card {
    transform: scale(1.06);
}

/* Círculo Interactivo Radialmente Animado */
.circle-menu-wrapper {
    width: 300px;
    height: 300px;
}

.circle-ring-orbit {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: spinOrbit 30s linear infinite;
}

@keyframes spinOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, #5A122C 0%, #300716 100%);
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    z-index: 3;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.circle-center span {
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.fs-8 {
    font-size: 0.75rem;
}

.dynamic-icon-box {
    font-size: 1.6rem;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.dynamic-icon-box i {
    transition: all 0.3s ease;
}

.circle-center.active-hover {
    border-color: var(--brand-pink) !important;
    box-shadow: 0 0 30px var(--brand-pink-glow) !important;
}

.circle-center.active-hover .dynamic-icon-box {
    color: var(--brand-pink);
    transform: scale(1.15);
}

/* Iconos de Acción del Círculo */
.circle-icon-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--brand-wine);
    color: #ffffff;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    z-index: 4;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-top {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-right {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
}

.icon-bottom {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.icon-left {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.circle-icon-btn:hover {
    background-color: var(--brand-pink);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 20px var(--brand-pink);
}

.icon-top:hover {
    transform: translate(-50%, -50%) scale(1.25);
}

.icon-right:hover {
    transform: translate(50%, -50%) scale(1.25);
}

.icon-bottom:hover {
    transform: translate(-50%, 50%) scale(1.25);
}

.icon-left:hover {
    transform: translate(-50%, -50%) scale(1.25);
}

/* ===================================================
   SECCIÓN REDES SOCIALES (FACEBOOK)
=================================================== */
.social-section {
    background-color: var(--brand-wine);
}

.social-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.social-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.7);
}

.social-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(122, 23, 59, 0.88) 0%,
            rgba(232, 62, 140, 0.75) 50%,
            rgba(74, 14, 35, 0.92) 100%);
}

.social-title {
    font-family: 'Georgia', serif;
}

.text-pink-light {
    color: var(--brand-pink-light);
    letter-spacing: 2px;
}

.text-pink {
    color: var(--brand-pink);
}

/* Tarjeta marco blanco que envuelve el plugin */
.card-social-clean {
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-social-clean:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(232, 62, 140, 0.35) !important;
}

/* Envoltorio con altura fija para evitar colapsos */
.fb-widget-wrapper {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.fb-widget-wrapper iframe {
    width: 340px !important;
    height: 500px !important;
    border-radius: 8px;
}

/* ===================================================
   SECCIÓN CÓMO LLEGAR
=================================================== */

.location-section {
    background-color: var(--brand-wine-dark, #4A0E23);
}

.location-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.location-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.65);
}

/* Difuminado suave para acoplar con las secciones adyacentes */
.location-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(122, 23, 59, 0.9) 0%,
            rgba(74, 14, 35, 0.75) 50%,
            rgba(122, 23, 59, 0.95) 100%);
}

.location-title {
    font-family: 'Georgia', serif;
}

/* Tarjetas de Información Estilo Glassmorphism */
.card-location-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 14px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.card-location-info:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 25px rgba(232, 62, 140, 0.3) !important;
}

/* Iconos de las Cards */
.icon-box-location {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--brand-pink, #E83E8C);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 15px var(--brand-pink-glow);
}

/* Marco del Mapa */
.card-map-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.map-container iframe {
    border-radius: 12px;
    display: block;
}

/* Botón inferior para trazar ruta */
.btn-map-route {
    background-color: var(--brand-wine, #7A173B);
    color: #ffffff;
    border: none;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-map-route:hover {
    background-color: var(--brand-pink, #E83E8C);
    color: #ffffff;
}