/* ==========================================================================
   VARIABLES CSS (:ROOT) - PALETA PRD MICHOACÁN + DARK UI
   ========================================================================== */
:root {
    /* Colores de Marca PRD Michoacán & Acentos */
    --prd-yellow: #FFCC00;
    --prd-yellow-hover: #e6b800;
    --prd-dark: #111827;
    --prd-blue: #0284C7;
    --prd-blue-night: #1E1B4B;

    /* Modos y Bases Oscuras Modernas */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Tipografía y Textos */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Layout y Efectos */
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-scale: 1;
}

/* Reset y Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: calc(16px * var(--font-scale));
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    scroll-margin-top: 90px;
    /* Compensación para enlaces fijos del Navbar */
}

/* ==========================================================================
   ACCESIBILIDAD Y CLASES DINÁMICAS
   ========================================================================== */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast .tramite-card,
body.high-contrast .president-section,
body.high-contrast .contact-box,
body.high-contrast .timeline-card {
    background-color: #000000 !important;
    border: 2px solid var(--prd-yellow) !important;
}

body.grayscale {
    filter: grayscale(100%);
}

.accessibility-widget {
    position: fixed;
    bottom: 85px;
    right: 25px;
    z-index: 9999;
}

.access-trigger {
    background: var(--prd-yellow);
    color: var(--prd-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
    transition: var(--transition);
}

.access-trigger:hover {
    transform: scale(1.1);
}

.access-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: var(--radius);
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.access-menu.active {
    display: flex;
}

.access-menu h4 {
    font-size: 0.9rem;
    color: var(--prd-yellow);
    margin-bottom: 5px;
}

.access-menu button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 0.85rem;
    transition: var(--transition);
}

.access-menu button:hover {
    background: var(--prd-yellow);
    color: var(--prd-dark);
}

/* Botón Volver Arriba (Back To Top) */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9998;
    background: var(--bg-card);
    color: var(--prd-yellow);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--prd-yellow);
    color: var(--prd-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
}

/* ==========================================================================
   NAVBAR & NAVEGACIÓN (ESCRITORIO)
   ========================================================================== */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--prd-yellow);
}

/* Dropdown Submenú Escritorio */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
}

.dropdown-menu a:hover {
    background: rgba(255, 204, 0, 0.1);
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.btn-nav {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-sisge {
    background: var(--prd-blue);
    color: white;
}

.btn-declara {
    background: var(--prd-yellow);
    color: var(--prd-dark);
}

.btn-nav:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO HEADER PARALLAX
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('https://images.unsplash.com/photo-1518105779142-d975f22f1b0a?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 204, 0, 0.15);
    color: var(--prd-yellow);
    border: 1px solid var(--prd-yellow);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0 25px;
}

.hero-center-logo {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

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

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--prd-yellow);
    color: var(--prd-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   SECCIONES GENERALES & PRESIDENTE MUNICIPAL
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
}

.president-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 50%, rgba(255, 204, 0, 0.05) 0%, transparent 50%);
}

.president-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: center;
}

.president-img-wrapper {
    position: relative;
    z-index: 2;
}

.img-glow-bg {
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, var(--prd-yellow) 0%, var(--prd-blue) 100%);
    border-radius: 20px;
    filter: blur(20px);
    opacity: 0.4;
    z-index: 1;
    transition: var(--transition);
}

.president-img-box {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 204, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: var(--bg-card);
}

.president-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.president-img-wrapper:hover .img-glow-bg {
    opacity: 0.7;
    filter: blur(25px);
}

.img-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(17, 24, 39, 0.9);
    color: var(--prd-yellow);
    border: 1px solid var(--prd-yellow);
    backdrop-filter: blur(8px);
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.president-card-slide {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.president-card-slide h2 {
    font-size: 2rem;
    margin: 10px 0 20px;
    line-height: 1.25;
    color: var(--text-main);
}

.president-text {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.president-highlights {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--prd-yellow);
}

.president-signature {
    border-left: 3px solid var(--prd-yellow);
    padding-left: 15px;
    margin-top: 20px;
}

.sig-name {
    font-weight: 800;
    display: block;
}

.sig-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN HISTORIA
   ========================================================================== */
.historia-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(30, 27, 75, 0.4) 100%);
    padding: 90px 0;
}

.historia-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
    background: var(--bg-card);
    border-left: 4px solid var(--prd-yellow);
    padding: 20px 25px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: var(--radius);
    position: relative;
    transition: var(--transition);
    opacity: 1 !important;
    /* Visibilidad asegurada */
    visibility: visible !important;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: var(--prd-yellow);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.1);
}

.timeline-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 204, 0, 0.15);
    color: var(--prd-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.timeline-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.timeline-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   TRÁMITES DIGITALES & TURISMO
   ========================================================================== */
.tramites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tramite-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.tramite-card i {
    font-size: 2.2rem;
    color: var(--prd-yellow);
    margin-bottom: 15px;
}

.tramite-card h3 {
    margin-bottom: 10px;
}

.tramite-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.tramite-link {
    color: var(--prd-yellow);
    text-decoration: none;
    font-weight: 700;
}

.tramite-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--prd-yellow);
}

.turismo-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.turismo-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.turismo-img-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
    height: 350px;
}

.expand-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.85);
    border-radius: var(--radius);
}

.turismo-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.turismo-content p {
    color: var(--text-muted);
}

/* ==========================================================================
   MAPA Y CÓMO LLEGAR
   ========================================================================== */
.mapa-section {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
}

.map-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 10px;
}

.map-glow-bg {
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--prd-yellow) 0%, var(--prd-blue) 100%);
    border-radius: 24px;
    filter: blur(20px);
    opacity: 0.25;
    z-index: 1;
    transition: var(--transition);
}

.map-wrapper:hover .map-glow-bg {
    opacity: 0.5;
    filter: blur(28px);
}

.map-frame {
    position: relative;
    z-index: 2;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.map-iframe {
    filter: grayscale(0.85) invert(0.92) contrast(1.2) hue-rotate(180deg);
    transition: filter 0.5s ease;
}

.map-frame:hover .map-iframe {
    filter: grayscale(0.3) invert(0.85) contrast(1.1) hue-rotate(180deg);
}

.map-floating-cards {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.map-info-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.map-info-card i {
    font-size: 1.3rem;
    color: var(--prd-yellow);
}

.map-info-card h4 {
    font-size: 0.88rem;
    color: var(--text-main);
    margin: 0;
}

.map-info-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.map-btn-gps {
    background: var(--prd-yellow);
    color: var(--prd-dark);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
    transition: var(--transition);
}

.map-btn-gps:hover {
    transform: translateY(-3px) scale(1.03);
    background: var(--prd-yellow-hover);
}

/* ==========================================================================
   FOOTER Y MODAL PRIVACIDAD
   ========================================================================== */
.footer {
    background: #090d16;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--prd-yellow);
    color: var(--prd-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--prd-yellow);
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-privacy-content {
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: var(--radius);
}

.modal-privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.modal-privacy-header h2 {
    font-size: 1.8rem;
    color: var(--prd-yellow);
    margin-bottom: 5px;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.close-modal {
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--prd-yellow);
}

.privacy-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding-right: 10px;
}

.privacy-cards-grid::-webkit-scrollbar {
    width: 6px;
}

.privacy-cards-grid::-webkit-scrollbar-thumb {
    background: var(--prd-yellow);
    border-radius: 4px;
}

.privacy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.privacy-card:hover {
    border-color: var(--prd-yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.privacy-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 204, 0, 0.1);
    color: var(--prd-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.privacy-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.privacy-card p,
.privacy-card li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.privacy-card ul {
    margin: 10px 0 0 18px;
}

.privacy-card li {
    margin-bottom: 6px;
}

.privacy-contact-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.privacy-contact-box p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.privacy-contact-box i {
    color: var(--prd-yellow);
}

/* ==========================================================================
   DESPLIEGUE COMPLETO MENÚ MÓVIL (HASTA 992PX)
   ========================================================================== */
@media (max-width: 992px) {
    .mobile-toggle {
        display: block !important;
        z-index: 1002;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(20px);
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 30px 20px 60px !important;
        gap: 20px !important;
        overflow-y: auto !important;
        z-index: 1001;

        /* Visibilidad */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu-wrapper.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        text-align: center !important;
        gap: 18px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .nav-links li {
        display: block !important;
        width: 100% !important;
    }

    .nav-links a {
        font-size: 1.1rem !important;
        color: var(--text-main) !important;
        display: inline-block;
        padding: 6px 0;
    }

    /* Submenú Trimestral en Móvil */
    .dropdown {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .dropdown-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        color: var(--text-main) !important;
    }

    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        max-width: 280px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        margin: 10px auto 0 !important;
        list-style: none !important;
        box-shadow: none !important;

        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }

    .dropdown.open .dropdown-menu {
        max-height: 250px !important;
        opacity: 1 !important;
        padding: 10px 0 !important;
    }

    .dropdown.open .dropdown-toggle i {
        transform: rotate(180deg);
        color: var(--prd-yellow);
    }

    .dropdown-menu li {
        margin: 5px 0 !important;
    }

    .dropdown-menu a {
        font-size: 0.95rem !important;
        color: var(--text-muted) !important;
    }

    .nav-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 300px !important;
        gap: 12px !important;
        margin-top: 15px !important;
    }

    .btn-nav {
        text-align: center !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }

    .president-grid,
    .turismo-item,
    .input-group {
        grid-template-columns: 1fr;
    }

    .hero-center-logo {
        max-width: 140px;
    }

    .map-floating-cards {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 20px;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .privacy-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ESTILOS SECCIÓN REDES SOCIALES (FACEBOOK PAGE PLUGIN EMBED)
   ========================================================================== */
.social-section {
    padding: 60px 0;
    overflow: hidden;
}

.social-card-slide {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.social-card-info h2 {
    font-size: 2rem;
    margin: 10px 0 15px;
    color: var(--text-main);
}

.social-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1877F2;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
    transition: var(--transition);
}

.btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 25px rgba(24, 119, 242, 0.5);
}

/* Contenedor del Feed de Facebook */
.social-card-embed {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    min-height: 480px;
}

.social-card-embed .fb-page,
.social-card-embed .fb-page span,
.social-card-embed .fb-page iframe {
    width: 100% !important;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .social-card-slide {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .social-card-embed {
        min-height: 400px;
    }
}

/* ==========================================================================
   ESTILOS TARJETA NATIVA DE FACEBOOK
   ========================================================================== */
.social-card-embed {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.fb-card-wrapper {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: inherit;
    color: #1c1e21;
}

.fb-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
}

.fb-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--bg-dark);
    padding: 3px;
    border: 2px solid var(--prd-yellow);
}

.fb-card-meta h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #050505;
    margin-bottom: 2px;
    line-height: 1.2;
}

.fb-card-meta span {
    font-size: 0.78rem;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-card-actions {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: #f7f8fa;
    border-top: 1px solid #e4e6eb;
    border-bottom: 1px solid #e4e6eb;
}

.fb-btn-follow {
    background: #1877f2;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.fb-btn-follow:hover {
    background: #166fe5;
}

.fb-btn-share {
    background: #e4e6eb;
    color: #050505 !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.fb-btn-share:hover {
    background: #d8dadf;
}

.fb-card-body {
    padding: 16px 0 0 0;
    background: #ffffff;
}

.fb-post-text {
    padding: 0 16px 12px 16px;
    font-size: 0.88rem;
    color: #1c1e21;
    line-height: 1.5;
}

.fb-img-box {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #000000;
}

.fb-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MODALES BASE Y Z-INDEX */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10005;
    align-items: center;
    justify-content: center;
}

/* CARRUSEL DE ANUNCIO */
.modal-anuncio-carousel-content {
    max-width: 600px;
    width: 90%;
    background: var(--bg-card);
    border: 2px solid var(--prd-yellow);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    border-radius: var(--radius);
    padding: 15px;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.carousel-dots .dot.active {
    background: var(--prd-yellow);
    transform: scale(1.2);
}

/* ==========================================================================
   ESTILOS DE LA PÁGINA SEVAC (GLASSMORPHISM DE ALTO IMPACTO)
   ========================================================================== */
.sevac-main-wrapper {
    padding-top: 100px;
    background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.15) 0%, var(--bg-dark) 70%);
    min-height: 100vh;
}

.sevac-hero {
    padding: 40px 0 30px;
}

.glow-tag {
    background: rgba(255, 204, 0, 0.12) !important;
    color: var(--prd-yellow) !important;
    border: 1px solid var(--prd-yellow) !important;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
}

.sevac-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin: 15px 0;
    color: var(--text-main);
}

.sevac-subtitle {
    max-width: 750px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Tarjeta Contenedora del Iframe SEVAC */
.sevac-content-section {
    padding-bottom: 80px;
    overflow: hidden;
    /* Evita scrollbar horizontal durante la animación de entrada */
}

.sevac-card-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(2, 132, 199, 0.15);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.sevac-card-wrapper:hover {
    border-color: var(--prd-yellow);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 204, 0, 0.2);
}

.sevac-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sevac-badge {
    background: rgba(2, 132, 199, 0.2);
    color: var(--prd-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(2, 132, 199, 0.4);
}

.sevac-card-header h3 {
    font-size: 1.3rem;
    color: var(--text-main);
}

/* Marco del Iframe */
.sevac-iframe-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    /* Fondo claro por si el script requiere contraste */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .sevac-card-wrapper {
        padding: 15px;
    }
}