/**
 * UI Components & Modular Design Tokens
 * H. Ayuntamiento de Escárcega
 */

/* ==================================================
   1. IDENTIDAD INSTITUCIONAL / BRAND LOCKUP
   ================================================== */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--brand-navy);
    text-decoration: none;
}

.brand-symbol {
    width: 52px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-symbol.brand-logo-dif {
    width: auto;
    height: 56px;
    max-height: 58px;
    max-width: 130px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-prefix {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--brand-wine);
    text-transform: uppercase;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--brand-navy);
    text-transform: uppercase;
}

.brand-location {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ==================================================
   2. NAVEGACIÓN PRINCIPAL DESKTOP
   Limpio, editorial, sin fondos de color
   ================================================== */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: inline-block;
    padding: 0.6rem 0.85rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--brand-navy);
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link:hover {
    color: var(--brand-wine);
    background: transparent;
}

/* Estado activo: color vino y línea inferior sólida de 2px */
.nav-link.is-active {
    color: var(--brand-wine);
    font-weight: 700;
    border-bottom: 2px solid var(--brand-wine);
    background: transparent;
}

/* ==================================================
   3. BOTÓN MENÚ MÓVIL Y DRAWER
   ================================================== */
.menu-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--brand-navy);
    transition: all var(--transition-fast);
}

.menu-toggle-btn:hover, .menu-toggle-btn:focus {
    background-color: var(--surface-wine-soft);
    color: var(--brand-wine);
    border-color: var(--brand-wine);
}

.icon-menu, .icon-close {
    width: 24px;
    height: 24px;
}

.menu-icon-close {
    display: none;
}

.menu-toggle-btn.is-active .menu-icon-open {
    display: none;
}

.menu-toggle-btn.is-active .menu-icon-close {
    display: block;
}

/* Drawer móvil */
.mobile-drawer {
    display: none;
    background-color: var(--surface);
    border-bottom: 2px solid var(--brand-wine);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem 0;
}

.mobile-drawer.is-open {
    display: block;
    animation: slideDown 250ms ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--brand-navy);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link:focus {
    background-color: var(--surface-wine-soft);
    color: var(--brand-wine);
}

.mobile-nav-link.is-active {
    background-color: var(--surface-wine-soft);
    color: var(--brand-wine);
    border-left: 4px solid var(--brand-wine);
}

.mobile-auxiliary-wrapper {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-aux-title {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.mobile-aux-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 1rem;
}

.mobile-aux-link {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: var(--font-size-sm);
    background-color: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-aux-link:hover, .mobile-aux-link:focus {
    color: var(--brand-wine);
    border-color: var(--brand-wine);
}

/* ==================================================
   4. DRAWER DE BÚSQUEDA
   ================================================== */
.search-drawer {
    display: none;
    background-color: var(--surface-soft);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.search-drawer.is-open {
    display: block;
    animation: slideDown 200ms ease-out forwards;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: center;
    background-color: var(--surface);
    border: 2px solid var(--brand-wine);
    border-radius: var(--radius-md);
    padding: 0.25rem 0.5rem 0.25rem 1rem;
    box-shadow: var(--shadow-sm);
}

.search-input-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--font-size-base);
    color: var(--brand-navy);
    padding: 0.5rem 0;
}

.search-submit-btn {
    padding: 0.5rem 1.25rem;
    font-size: var(--font-size-sm);
    background-color: var(--brand-wine);
    color: var(--surface);
    border: 1px solid var(--brand-wine);
}

.search-submit-btn:hover {
    background-color: var(--brand-wine-hover);
    border-color: var(--brand-wine-hover);
}

.search-close-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-left: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.search-close-btn:hover {
    background-color: var(--border-light);
    color: var(--brand-navy);
}

.search-close-btn svg {
    width: 20px;
    height: 20px;
}

/* ==================================================
   5. IDENTIDAD DEL FOOTER (ESCUDO HISTÓRICO)
   ================================================== */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer-escudo {
    width: 85px;
    height: auto;
    max-height: 105px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.footer-entity {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
}

.footer-municipality {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    text-transform: uppercase;
}

.footer-state {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
}

.footer-period {
    font-size: 0.75rem;
    color: var(--brand-gold);
    font-weight: 600;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* ==================================================
   8. BREADCRUMBS & NOTICIAS DETALLE / ARCHIVO
   ================================================== */
.breadcrumbs {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.breadcrumb-link {
    color: var(--brand-wine);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover, .breadcrumb-link:focus {
    color: var(--brand-wine-dark);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--border);
    user-select: none;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 500;
}

.news-category-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--surface-wine-soft);
    color: var(--brand-wine);
    border-radius: var(--radius-full);
}

.news-detail-section {
    padding: 2.5rem 0 4rem 0;
    background-color: var(--surface);
}

.news-detail-header {
    max-width: 900px;
}

.news-detail-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--brand-navy);
    margin: 0.75rem 0 1rem 0;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.news-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--brand-wine);
}

.meta-separator {
    color: var(--border);
}

.news-detail-media {
    margin: 1.5rem 0 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--surface-soft);
    box-shadow: var(--shadow-md);
}

.news-detail-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.news-detail-caption {
    padding: 0.75rem 1.25rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    background-color: var(--surface-soft);
    border-top: 1px solid var(--border-light);
    font-style: italic;
}

.news-detail-body {
    max-width: 860px;
}

.news-detail-lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.65;
    font-weight: 500;
    color: var(--brand-navy);
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.news-detail-prose {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2D3748;
}

.news-detail-prose p {
    margin-bottom: 1.5rem;
}

.news-detail-prose h2, .news-detail-prose h3 {
    color: var(--brand-navy);
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.news-detail-footer {
    max-width: 860px;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ==================================================
   HERO BANNER INSTITUCIONAL DE NOTICIAS
   ================================================== */
.news-archive-hero {
    background: linear-gradient(135deg, var(--brand-wine-dark) 0%, var(--brand-wine) 55%, var(--brand-navy) 100%);
    color: #FFFFFF;
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem) 0;
    position: relative;
    overflow: hidden;
}

.news-archive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(210, 161, 58, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.news-archive-hero .breadcrumbs {
    margin-bottom: 1.25rem;
}

.news-archive-hero .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-xs);
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-archive-hero .breadcrumb-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.news-archive-hero .breadcrumb-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.news-archive-hero .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.news-archive-hero .breadcrumb-item.active {
    color: #FFFFFF;
    font-weight: 600;
}

.news-archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    color: var(--brand-gold);
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--brand-gold);
    box-shadow: 0 0 6px var(--brand-gold);
}

.news-archive-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.01em;
}

.news-archive-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 0 1.75rem 0;
}

.news-archive-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.news-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.news-stat-pill svg {
    width: 15px;
    height: 15px;
    stroke: var(--brand-gold);
}

/* ==================================================
   SECCIÓN PRINCIPAL DEL ARCHIVO EDITORIAL
   ================================================== */
.news-archive-section {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem) 0;
    background-color: var(--surface-soft);
}

/* Nota Líder / Hero Card Destacada */
.news-featured-card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(17, 29, 51, 0.06);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    overflow: hidden;
    margin-bottom: 3.5rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.news-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(17, 29, 51, 0.1);
}

.news-featured-media {
    position: relative;
    overflow: hidden;
    background-color: var(--brand-navy);
    min-height: 320px;
}

.news-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
    display: block;
}

.news-featured-card:hover .news-featured-image {
    transform: scale(1.03);
}

.news-featured-tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(135deg, var(--brand-wine), var(--brand-wine-dark));
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.news-featured-body {
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--brand-wine);
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-featured-date svg {
    width: 14px;
    height: 14px;
    stroke: var(--brand-wine);
}

.news-featured-title {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--brand-navy);
    margin: 0 0 1rem 0;
}

.news-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.news-featured-title a:hover {
    color: var(--brand-wine);
}

.news-featured-summary {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 1.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured-action {
    display: flex;
    align-items: center;
}

.news-subgrid-header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.85rem;
    margin-bottom: 2rem;
}

/* Estado Vacío */
.news-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 2rem auto;
}

.news-empty-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-muted);
    margin-bottom: 1rem;
}

.news-empty-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 0.5rem 0;
}

.news-empty-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

/* Contenedor de Scroll Infinito */
.news-scroll-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0 1rem 0;
}

.news-loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--brand-wine);
    font-size: var(--font-size-base);
}

.spinner-icon {
    width: 24px;
    height: 24px;
    border: 3px solid var(--surface-wine-soft);
    border-top-color: var(--brand-wine);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.news-end-message {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    background-color: var(--surface);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.fade-in {
    animation: fadeIn 0.4s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-related-section {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

/* ==================================================
   MÓDULO DE GOBIERNO Y CABILDO MUNICIPAL (/gobierno)
   Diseño Canónico Sincronizado con ~/gobierno.png
   ================================================== */

/* 1. Hero Cívico Canónico (Monumento Puerta del Mundo Maya) */
.gov-hero-canon {
    position: relative;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem) 0;
    color: #FFFFFF;
    overflow: hidden;
}

.gov-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.gov-hero-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    margin-bottom: 1.25rem;
}

.gov-hero-bc-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.gov-hero-bc-link:hover {
    color: #FFFFFF;
}

.gov-hero-bc-sep {
    color: rgba(255, 255, 255, 0.5);
}

.gov-hero-bc-current {
    color: #FFFFFF;
    font-weight: 600;
}

.gov-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.gov-hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    max-width: 540px;
    margin: 0 0 2rem 0;
}

.gov-hero-cta-wrap {
    display: flex;
    align-items: center;
}

.gov-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-wine);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.gov-hero-btn:hover {
    background-color: var(--brand-wine-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.gov-btn-arrow {
    transition: transform var(--transition-fast);
}

.gov-hero-btn:hover .gov-btn-arrow {
    transform: translateX(4px);
}

/* Tarjeta flotante glassmorphism del Hero */
.gov-hero-glass-card {
    background: rgba(30, 41, 59, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    color: #FFFFFF;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.gov-hero-glass-top {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.gov-hero-glass-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.gov-hero-glass-icon svg {
    width: 38px;
    height: 38px;
    stroke: #FFFFFF;
}

.gov-hero-glass-title {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    font-weight: 700;
    line-height: 1.4;
    color: #FFFFFF;
    margin: 0;
}

.gov-hero-glass-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 1.5rem 0;
}

.gov-hero-glass-footer {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* ==================================================
   2. Mensaje del Presidente Municipal (3 Columnas)
   ================================================== */
.gov-president-editorial {
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
    background-color: var(--surface);
}

.gov-president-trio {
    display: grid;
    grid-template-columns: 340px 1.4fr 320px;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;
}

/* Columna 1: Fotografía con fondo suave */
.gov-pres-photo-wrap {
    display: flex;
    flex-direction: column;
}

.gov-pres-photo-frame {
    background-color: #F1F5F9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.gov-pres-photo-img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

.gov-pres-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

.gov-pres-photo-fallback svg {
    width: 80px;
    height: 80px;
    stroke: #94A3B8;
}

/* Columna 2: Mensaje y firma */
.gov-pres-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gov-pres-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-wine);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    display: block;
}

.gov-pres-headline {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.2;
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.01em;
}

.gov-pres-paragraphs {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gov-pres-paragraphs p {
    margin: 0;
}

.gov-pres-signature {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gov-pres-sig-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-wine);
}

.gov-pres-sig-role {
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748B;
}

.gov-pres-sig-period {
    font-size: 0.82rem;
    color: #94A3B8;
}

.gov-pres-mail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: var(--brand-wine);
    text-decoration: none;
    margin-top: 0.75rem;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.gov-pres-mail-link svg {
    width: 16px;
    height: 16px;
    stroke: var(--brand-wine);
    transition: stroke var(--transition-fast);
}

.gov-pres-mail-link:hover {
    background-color: var(--brand-wine);
    border-color: var(--brand-wine);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 11, 39, 0.25);
}

.gov-pres-mail-link:hover svg {
    stroke: #FFFFFF;
}

/* Columna 3: Tarjeta de cita */
.gov-pres-quote-wrap {
    display: flex;
    flex-direction: column;
}

.gov-pres-quote-card {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gov-pres-quote-mark {
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--brand-wine);
    font-weight: 700;
    margin-bottom: -0.5rem;
    user-select: none;
}

.gov-pres-quote-body {
    font-size: 0.98rem;
    font-style: italic;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 2rem 0;
}

.gov-pres-quote-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
}

.gov-pres-qa-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.gov-pres-qa-role {
    font-size: 0.82rem;
    color: #64748B;
}

/* ==================================================
   3. Secciones Globales y Encabezados con Enlace
   ================================================== */
.gov-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    background-color: var(--surface);
}

.gov-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.gov-section-title {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.01em;
}

.gov-section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-wine);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.gov-section-link:hover {
    color: var(--brand-wine-hover);
}

.gov-section-link .link-arrow {
    transition: transform var(--transition-fast);
}

.gov-section-link:hover .link-arrow {
    transform: translateX(4px);
}

/* ==================================================
   4. Regidores (Cuadrícula de 4 columnas)
   ================================================== */
.gov-cabildo-grid,
.gov-regidores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* ==================================================
   4b. Síndicos (Cuadrícula centrada de 2 columnas)
   ================================================== */
.gov-sindicos-section {
    background-color: var(--surface-soft);
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.gov-section-header--centered {
    justify-content: center;
    text-align: center;
}

.gov-sindicos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 320px));
    gap: 1.75rem;
    justify-content: center;
}

.gov-sindico-card {
    background-color: #FFFFFF;
}

.gov-cabildo-card {
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.gov-cabildo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(17, 29, 51, 0.08);
    border-color: rgba(121, 11, 39, 0.3);
}

.gov-cabildo-photo-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #E2E8F0 0%, #CBD5E1 100%);
    overflow: hidden;
    position: relative;
}

.gov-cabildo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 400ms ease;
}

.gov-cabildo-card:hover .gov-cabildo-img {
    transform: scale(1.04);
}

.gov-cabildo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

.gov-cabildo-fallback svg {
    width: 48px;
    height: 48px;
    stroke: #94A3B8;
}

.gov-cabildo-info {
    padding: 1rem 0.65rem 1.25rem 0.65rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    min-height: 85px;
}

.gov-cabildo-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.35;
    margin: 0 0 0.35rem 0;
}

.gov-cabildo-role {
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.3;
    margin: 0;
}

.gov-cabildo-mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: var(--brand-wine);
    text-decoration: none;
    margin-top: 0.65rem;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.gov-cabildo-mail-btn svg {
    width: 15px;
    height: 15px;
    stroke: var(--brand-wine);
    transition: stroke var(--transition-fast);
}

.gov-cabildo-mail-btn:hover {
    background-color: var(--brand-wine);
    border-color: var(--brand-wine);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(121, 11, 39, 0.25);
}

.gov-cabildo-mail-btn:hover svg {
    stroke: #FFFFFF;
}

/* ==================================================
   5. Dependencias Municipales (Matriz de 6 columnas)
   ================================================== */
.gov-dept-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.gov-dept-card {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1.75rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 135px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.gov-dept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(17, 29, 51, 0.08);
    border-color: var(--brand-wine);
}

.gov-dept-icon-box {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-wine);
}

.gov-dept-icon-box svg {
    width: 28px;
    height: 28px;
    stroke: var(--brand-wine);
}

.gov-dept-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.35;
    margin: 0;
}

/* ==================================================
   6. Organigrama Municipal
   ================================================== */
.gov-organigrama-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 3.5rem;
    align-items: center;
}

.gov-organigrama-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: #64748B;
    margin: 0.75rem 0 1.75rem 0;
}

.gov-btn-wine {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-wine);
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition-fast);
    width: fit-content;
}

.gov-btn-wine:hover {
    background-color: var(--brand-wine-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(121, 11, 39, 0.25);
}

/* Diagrama de Árbol Visual */
.gov-organigrama-diagram {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 16px rgba(17, 29, 51, 0.04);
}

.gov-org-level-top {
    display: flex;
    justify-content: center;
}

.gov-org-node {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gov-org-node--presidencia {
    background-color: var(--brand-wine);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 2.25rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(121, 11, 39, 0.25);
}

.gov-org-tree-line-v {
    width: 2px;
    height: 24px;
    background-color: #CBD5E1;
    margin: 0 auto;
}

.gov-org-tree-line-h {
    height: 2px;
    background-color: #CBD5E1;
    width: 82%;
    margin: 0 auto 18px auto;
}

.gov-org-level-subs {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.gov-org-node--branch {
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 0.85rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1E293B;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    line-height: 1.3;
}

.gov-org-node--branch:hover {
    background-color: #FFFFFF;
    border-color: var(--brand-wine);
    box-shadow: 0 4px 12px rgba(17, 29, 51, 0.08);
}

/* ==================================================
   7. Normatividad y Documentos de Gobierno
   ================================================== */
.gov-norm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gov-norm-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.gov-norm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(17, 29, 51, 0.08);
    border-color: rgba(121, 11, 39, 0.35);
}

.gov-norm-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(121, 11, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-wine);
    flex-shrink: 0;
}

.gov-norm-icon-box svg {
    width: 24px;
    height: 24px;
    stroke: var(--brand-wine);
}

.gov-norm-card-content {
    flex: 1;
}

.gov-norm-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.3;
    margin: 0 0 0.25rem 0;
}

.gov-norm-card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748B;
    margin: 0;
}

.gov-norm-card-arrow {
    color: var(--brand-wine);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-left: auto;
    transition: transform var(--transition-fast);
}

.gov-norm-card:hover .gov-norm-card-arrow {
    transform: translateX(4px);
}

/* ==================================================
   12. TRÁMITES Y SERVICIOS MUNICIPALES
   ================================================== */

/* Hero de Trámites */
.services-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3.5rem 0 3.5rem 0;
    color: #FFFFFF;
    position: relative;
}

.services-hero-content {
    max-width: 860px;
}

.services-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.services-bc-link {
    color: #CBD5E1;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.services-bc-link:hover {
    color: #FFFFFF;
}

.services-bc-sep {
    color: #94A3B8;
}

.services-bc-current {
    color: var(--brand-gold, #D2A13A);
    font-weight: 600;
}

.services-hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(210, 161, 58, 0.20);
    border: 1px solid rgba(210, 161, 58, 0.45);
    border-radius: 9999px;
    color: var(--brand-gold, #D2A13A);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.services-hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.85rem 0;
    color: #FFFFFF;
}

.services-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #E2E8F0;
    margin: 0 0 2rem 0;
    max-width: 720px;
}

/* Buscador interactivo en vivo */
.services-search-wrapper {
    margin-top: 1rem;
}

.services-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.25);
    padding: 0.35rem 0.65rem 0.35rem 1rem;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.services-search-box:focus-within {
    border-color: var(--brand-gold, #D2A13A);
    box-shadow: 0 10px 35px rgba(210, 161, 58, 0.35);
}

.services-search-icon {
    display: flex;
    align-items: center;
    color: var(--brand-navy, #1B365D);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.services-search-icon svg {
    width: 22px;
    height: 22px;
}

.services-search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--brand-navy, #1B365D);
    background: transparent;
    padding: 0.5rem 0;
}

.services-search-input::placeholder {
    color: #94A3B8;
}

.services-search-clear {
    background: #F1F5F9;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
}

.services-search-clear:hover {
    background: #E2E8F0;
    color: var(--brand-wine, #6F142F);
}

.services-search-clear svg {
    width: 16px;
    height: 16px;
}

.services-search-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #CBD5E1;
    font-weight: 500;
}

/* Sección Catálogo */
.services-section {
    padding: 3.5rem 0;
    background-color: var(--surface-soft, #F8FAFC);
}

/* Barra de Filtros por Categoría */
.services-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.services-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background-color: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-navy, #1B365D);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.services-filter-btn:hover {
    border-color: var(--brand-wine, #6F142F);
    color: var(--brand-wine, #6F142F);
    background-color: #FFF5F7;
}

.services-filter-btn.is-active {
    background-color: var(--brand-wine, #6F142F);
    color: #FFFFFF;
    border-color: var(--brand-wine, #6F142F);
    box-shadow: 0 4px 12px rgba(111, 20, 47, 0.25);
}

.services-filter-icon {
    display: flex;
    align-items: center;
}

.services-filter-icon svg {
    width: 16px;
    height: 16px;
}

.services-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #F1F5F9;
    color: #475569;
}

.services-filter-btn.is-active .services-filter-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* Cuadrícula de Tarjetas de Trámites */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.service-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border-color: rgba(111, 20, 47, 0.35);
}

.service-card.is-highlighted {
    border-color: var(--brand-gold, #D2A13A);
    box-shadow: 0 0 0 3px rgba(210, 161, 58, 0.40);
    animation: pulseHighlight 2s ease;
}

@keyframes pulseHighlight {
    0%, 100% { box-shadow: 0 0 0 3px rgba(210, 161, 58, 0.40); }
    50% { box-shadow: 0 0 0 6px rgba(210, 161, 58, 0.70); }
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.service-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(111, 20, 47, 0.08);
    color: var(--brand-wine, #6F142F);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-cat-icon svg {
    width: 14px;
    height: 14px;
}

.service-department-label {
    font-size: 0.78rem;
    color: #64748B;
    font-weight: 600;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.75rem 0;
}

.service-title-anchor {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.service-title-anchor:hover {
    color: var(--brand-wine, #6F142F);
}

.service-card-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

/* Ficha Rápida / Metadatos */
.service-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    background-color: var(--surface-soft, #F8FAFC);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.service-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.service-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.meta-icon svg {
    width: 14px;
    height: 14px;
    color: var(--brand-wine, #6F142F);
}

.service-meta-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    line-height: 1.3;
}

.service-meta-value.is-free {
    color: #15803D;
}

/* Acordeón de Requisitos y Detalles */
.service-accordion {
    border-top: 1px solid var(--border, #E2E8F0);
    padding-top: 1rem;
    margin-top: auto;
}

.service-accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    color: var(--brand-wine, #6F142F);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.service-accordion-toggle:hover {
    color: #93193D;
}

.toggle-icon {
    display: inline-flex;
    align-items: center;
    transition: transform var(--transition-normal);
}

.toggle-icon svg {
    width: 18px;
    height: 18px;
}

.service-accordion-toggle.is-open .toggle-icon {
    transform: rotate(180deg);
}

.service-accordion-content {
    padding-top: 1.25rem;
    animation: fadeIn 0.25s ease-in-out;
}

.service-detail-block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border, #E2E8F0);
}

.service-detail-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail-heading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem 0;
}

.detail-icon svg {
    width: 15px;
    height: 15px;
    color: var(--brand-wine, #6F142F);
}

.service-req-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #334155;
}

.service-req-list li {
    margin-bottom: 0.35rem;
}

.service-detail-text {
    margin: 0 0 0.25rem 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #334155;
}

.service-detail-legal {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748B;
    font-style: italic;
}

.service-phone-link {
    color: var(--brand-wine, #6F142F);
    font-weight: 700;
    text-decoration: none;
}

.service-phone-link:hover {
    text-decoration: underline;
}

.service-detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

/* Estado sin resultados */
.services-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #FFFFFF;
    border: 1px dashed var(--border, #E2E8F0);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.services-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #F1F5F9;
    color: #94A3B8;
    margin-bottom: 1.25rem;
}

.services-empty-icon svg {
    width: 32px;
    height: 32px;
}

.services-empty-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.5rem 0;
}

.services-empty-desc {
    font-size: 0.95rem;
    color: #64748B;
    margin: 0 0 1.5rem 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Mesa de Atención Presencial (Auditorio Municipal) */
.services-desk-section {
    padding: 3.5rem 0;
    background-color: #FFFFFF;
    border-top: 1px solid var(--border, #E2E8F0);
}

.services-desk-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: linear-gradient(135deg, #FFFDF8 0%, #FFFFFF 100%);
    border: 1px solid rgba(210, 161, 58, 0.35);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(17, 29, 51, 0.05);
}

.services-desk-media {
    position: relative;
    min-height: 360px;
}

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

.services-desk-badge-float {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    color: var(--brand-gold, #D2A13A);
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.services-desk-badge-float svg {
    width: 16px;
    height: 16px;
}

.services-desk-info {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-desk-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-wine, #6F142F);
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.services-desk-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.services-desk-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 1.75rem 0;
}

.services-desk-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.desk-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.desk-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(111, 20, 47, 0.08);
    color: var(--brand-wine, #6F142F);
    flex-shrink: 0;
}

.desk-item-icon svg {
    width: 18px;
    height: 18px;
}

.desk-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.desk-item-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
}

.desk-item-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand-navy, #1B365D);
}

.desk-item-link {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-wine, #6F142F);
    text-decoration: none;
}

.desk-item-link:hover {
    text-decoration: underline;
}

.services-desk-actions {
    display: flex;
    gap: 1rem;
}

/* ==================================================
   13. NUESTRO MUNICIPIO (IDENTIDAD, HISTORIA Y TURISMO)
   ================================================== */

/* Hero de Nuestro Municipio */
.muni-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3.5rem 0 3.5rem 0;
    color: #FFFFFF;
    position: relative;
}

.muni-hero-content {
    max-width: 900px;
}

.muni-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.muni-bc-link {
    color: #CBD5E1;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.muni-bc-link:hover {
    color: #FFFFFF;
}

.muni-bc-sep {
    color: #94A3B8;
}

.muni-bc-current {
    color: var(--brand-gold, #D2A13A);
    font-weight: 600;
}

.muni-hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(210, 161, 58, 0.20);
    border: 1px solid rgba(210, 161, 58, 0.45);
    border-radius: 9999px;
    color: var(--brand-gold, #D2A13A);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.muni-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.85rem 0;
    color: #FFFFFF;
}

.muni-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #E2E8F0;
    margin: 0 0 2rem 0;
    max-width: 760px;
}

/* Barra de Subnavegación Rápida */
.muni-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.muni-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.muni-quick-link svg {
    width: 15px;
    height: 15px;
    color: var(--brand-gold, #D2A13A);
}

.muni-quick-link:hover {
    background: var(--brand-wine, #6F142F);
    border-color: var(--brand-wine, #6F142F);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Secciones Generales */
.muni-section {
    padding: 4rem 0;
}

.muni-section-header {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.muni-section-eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-wine, #6F142F);
    margin-bottom: 0.35rem;
}

.muni-section-title {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.65rem 0;
}

.muni-section-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

/* 2. Sección Historia */
.muni-history-section {
    background-color: #FFFFFF;
}

.muni-history-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.muni-history-paragraphs {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 2rem;
}

.muni-history-paragraphs p {
    margin-bottom: 1.15rem;
}

.muni-history-meta-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    background-color: var(--surface-soft, #F8FAFC);
    border: 1px solid var(--border, #E2E8F0);
    border-left: 4px solid var(--brand-wine, #6F142F);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.muni-meta-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.muni-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(111, 20, 47, 0.08);
    color: var(--brand-wine, #6F142F);
    flex-shrink: 0;
}

.muni-meta-icon svg {
    width: 20px;
    height: 20px;
}

.muni-meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748B;
    letter-spacing: 0.03em;
}

.muni-meta-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
}

/* Tarjeta Chiclero */
.muni-chiclero-card {
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.muni-chiclero-media {
    position: relative;
    height: 320px;
}

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

.muni-chiclero-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--brand-gold, #D2A13A);
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.muni-chiclero-badge svg {
    width: 14px;
    height: 14px;
}

.muni-chiclero-body {
    padding: 1.75rem;
}

.muni-history-quote {
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--brand-wine, #6F142F);
    border-left: 3px solid var(--brand-gold, #D2A13A);
    padding-left: 1rem;
    margin: 0 0 1.25rem 0;
}

.muni-chiclero-caption strong {
    display: block;
    font-size: 0.95rem;
    color: var(--brand-navy, #1B365D);
    margin-bottom: 0.25rem;
}

.muni-chiclero-caption span {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748B;
}

/* 3. Sección Símbolos / Escudo de Armas */
.muni-symbols-section {
    background-color: var(--surface-soft, #F8FAFC);
    border-top: 1px solid var(--border, #E2E8F0);
    border-bottom: 1px solid var(--border, #E2E8F0);
}

.muni-symbols-wrapper {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3.5rem;
    align-items: center;
}

.muni-shield-frame {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF8 100%);
    border: 2px solid rgba(210, 161, 58, 0.45);
    border-radius: 20px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    box-shadow: 0 12px 35px rgba(210, 161, 58, 0.12);
}

.muni-shield-img {
    width: 200px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.muni-shield-tag .tag-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.muni-shield-tag .tag-sub {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 600;
}

.muni-symbols-desc {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 2rem;
}

.muni-elements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.muni-element-card {
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.muni-element-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    border-color: rgba(111, 20, 47, 0.25);
}

.muni-element-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(111, 20, 47, 0.08);
    color: var(--brand-wine, #6F142F);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.muni-element-icon svg {
    width: 18px;
    height: 18px;
}

.muni-element-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.muni-element-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748B;
    margin: 0;
}

/* 4. Sección Geografía */
.muni-geo-section {
    background-color: #FFFFFF;
}

.muni-geo-intro {
    font-size: 1rem;
    line-height: 1.65;
    color: #334155;
    margin: 0;
}

.muni-indicators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.muni-indicator-card {
    background: var(--surface-soft, #F8FAFC);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.muni-indicator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border-color: rgba(210, 161, 58, 0.45);
}

.muni-ind-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(27, 54, 93, 0.08);
    color: var(--brand-navy, #1B365D);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.muni-ind-icon svg {
    width: 24px;
    height: 24px;
}

.muni-ind-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #64748B;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.muni-ind-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    line-height: 1.25;
}

/* 5. Sección Economía y Tren Maya */
.muni-economy-section {
    background-color: var(--surface-soft, #F8FAFC);
    border-top: 1px solid var(--border, #E2E8F0);
}

.muni-economy-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.muni-economy-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 2rem;
}

.muni-pillars-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.muni-pillar-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.muni-pillar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.muni-pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(111, 20, 47, 0.08);
    color: var(--brand-wine, #6F142F);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.muni-pillar-icon svg {
    width: 20px;
    height: 20px;
}

.muni-pillar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.35rem 0;
}

.muni-pillar-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
    margin: 0;
}

/* Tarjeta Tren Maya */
.muni-tren-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15);
    min-height: 440px;
}

.muni-tren-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.muni-tren-overlay {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(15, 23, 42, 0.98) 100%);
    color: #FFFFFF;
}

.muni-tren-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(210, 161, 58, 0.25);
    border: 1px solid rgba(210, 161, 58, 0.5);
    color: var(--brand-gold, #D2A13A);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-bottom: 0.85rem;
}

.muni-tren-badge svg {
    width: 14px;
    height: 14px;
}

.muni-tren-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.5rem 0;
    color: #FFFFFF;
}

.muni-tren-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #E2E8F0;
    margin: 0;
}

/* 6. Sección Atractivos Turísticos */
.muni-attractions-section {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border, #E2E8F0);
}

.muni-attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.muni-attraction-card {
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.muni-attraction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    border-color: rgba(111, 20, 47, 0.35);
}

.muni-attraction-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.muni-attraction-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.muni-attraction-card:hover .muni-attraction-img {
    transform: scale(1.05);
}

.muni-attraction-cat {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    color: var(--brand-gold, #D2A13A);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.muni-attraction-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.muni-attraction-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    line-height: 1.35;
    margin: 0 0 0.65rem 0;
}

.muni-attraction-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.muni-attraction-location {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #64748B;
    border-top: 1px dashed var(--border, #E2E8F0);
    padding-top: 0.85rem;
    margin-top: auto;
}

.loc-icon svg {
    width: 14px;
    height: 14px;
    color: var(--brand-wine, #6F142F);
    flex-shrink: 0;
}

/* Banner de Bienvenida Cívica */
.muni-welcome-banner {
    background: linear-gradient(135deg, var(--brand-navy, #1B365D) 0%, #0F172A 100%);
    border: 1px solid rgba(210, 161, 58, 0.35);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    color: #FFFFFF;
    text-align: center;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
}

.muni-wb-content {
    max-width: 680px;
    margin: 0 auto;
}

.muni-wb-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.85rem 0;
    color: #FFFFFF;
}

.muni-wb-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #E2E8F0;
    margin: 0 0 2rem 0;
}

.muni-wb-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   14. MÓDULO DE CONTACTO Y UBICACIÓN OFICIAL (.contact-*)
   ========================================================================== */

/* Hero Cívico de Contacto */
.contact-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem) 0;
    color: #FFFFFF;
}

.contact-hero-content {
    max-width: 860px;
}

.contact-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.contact-bc-link {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact-bc-link:hover {
    color: #FFFFFF;
}

.contact-bc-sep {
    color: var(--brand-gold, #D2A13A);
    font-size: 0.9rem;
}

.contact-bc-current {
    color: #FFFFFF;
    font-weight: 600;
}

.contact-hero-badge {
    display: inline-block;
    background: rgba(210, 161, 58, 0.20);
    color: #FCD34D;
    border: 1px solid rgba(210, 161, 58, 0.45);
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.contact-hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.15;
    color: #FFFFFF;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.contact-hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.65;
    color: #E2E8F0;
    max-width: 760px;
    margin: 0 0 2rem 0;
}

/* Subnavegación Rápida Flotante */
.contact-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.contact-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-quick-link:hover {
    background: var(--brand-wine, #6F142F);
    border-color: var(--brand-gold, #D2A13A);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.contact-quick-link svg {
    width: 15px;
    height: 15px;
    stroke: var(--brand-gold, #D2A13A);
    transition: stroke 0.15s ease;
}

.contact-quick-link:hover svg {
    stroke: #FFFFFF;
}

/* Secciones Generales */
.contact-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.contact-section-header {
    margin-bottom: 2.25rem;
}

.contact-eyebrow {
    display: inline-block;
    color: var(--brand-wine, #6F142F);
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.contact-section-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    line-height: 1.25;
    margin: 0 0 0.5rem 0;
}

.contact-section-desc {
    font-size: 1.05rem;
    color: var(--text-muted, #64748B);
    line-height: 1.6;
    max-width: 720px;
    margin: 0;
}

/* Líneas de Emergencia */
.contact-emergencies-section {
    background: #FFFBEB;
    border-bottom: 1px solid #FEF3C7;
}

.contact-emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.contact-emergency-card {
    background: #FFFFFF;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.06);
    transition: all 0.2s ease;
}

.contact-emergency-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.12);
    border-color: var(--brand-gold, #D2A13A);
}

.contact-em-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #FEF2F2;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-em-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.contact-em-info {
    flex: 1;
}

.contact-em-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.contact-em-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #DC2626;
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: color 0.15s ease;
}

.contact-em-phone:hover {
    color: #991B1B;
    text-decoration: underline;
}

.contact-em-phone svg {
    width: 16px;
    height: 16px;
}

.contact-em-desc {
    font-size: 0.8125rem;
    color: var(--text-muted, #64748B);
    line-height: 1.5;
    margin: 0;
}

/* Sede Central - Palacio Municipal */
.contact-hq-section {
    background: #FFFFFF;
}

.contact-hq-card {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2.5rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.contact-hq-image-col {
    position: relative;
    min-height: 380px;
}

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

.contact-hq-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-hq-badge svg {
    width: 16px;
    height: 16px;
    stroke: var(--brand-gold, #D2A13A);
}

.contact-hq-details-col {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.contact-detail-block {
    border-left: 3px solid var(--brand-wine, #6F142F);
    padding-left: 1.25rem;
}

.contact-detail-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-wine, #6F142F);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.contact-detail-label svg {
    width: 14px;
    height: 14px;
}

.contact-detail-value {
    font-size: 1rem;
    color: var(--brand-navy, #1B365D);
    line-height: 1.55;
    margin: 0;
}

.contact-detail-ref {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted, #64748B);
    margin-top: 0.35rem;
    font-style: italic;
}

.contact-hq-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.contact-action-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--brand-navy, #1B365D);
    transition: all 0.2s ease;
}

.contact-action-btn:hover {
    border-color: var(--brand-wine, #6F142F);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(111, 20, 47, 0.08);
}

.contact-action-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--brand-wine, #6F142F);
    flex-shrink: 0;
}

.contact-action-sub {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--text-muted, #64748B);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.contact-action-main {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    word-break: break-word;
}

/* Buzón de Atención y Orientación Ciudadana */
.contact-form-section {
    background: #F1F5F9;
}

.contact-form-wrapper {
    max-width: 840px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(111, 20, 47, 0.08);
    color: var(--brand-wine, #6F142F);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.contact-form-badge svg {
    width: 14px;
    height: 14px;
}

.contact-form-title {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.5rem 0;
}

.contact-form-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted, #64748B);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.contact-commitment-alert {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    margin-top: 0.5rem;
}

.contact-commitment-alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-form-notice {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.contact-notice-error {
    background: #FEF2F2;
    border: 1px solid #F87171;
    color: #991B1B;
}

.contact-notice-success {
    background: #ECFDF5;
    border: 1px solid #34D399;
    color: #065F46;
}

.contact-public-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-field .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-navy, #1B365D);
    margin-bottom: 0.4rem;
}

.contact-field .req {
    color: #DC2626;
}

.contact-field .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #1E293B;
    background: #FFFFFF;
    transition: all 0.15s ease;
}

.contact-field .form-control:focus {
    outline: none;
    border-color: var(--brand-wine, #6F142F);
    box-shadow: 0 0 0 3px rgba(111, 20, 47, 0.15);
}

.contact-form-privacy {
    margin: 0.5rem 0 0.75rem 0;
}

.contact-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8125rem;
    color: var(--text-muted, #64748B);
    line-height: 1.5;
    cursor: pointer;
}

.contact-privacy-label input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.contact-privacy-link {
    color: var(--brand-wine, #6F142F);
    text-decoration: underline;
}

.contact-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid #E2E8F0;
    padding-top: 1.25rem;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.contact-submit-btn svg {
    width: 16px;
    height: 16px;
}

.contact-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: var(--text-muted, #64748B);
    font-weight: 600;
}

.contact-secure-badge svg {
    width: 14px;
    height: 14px;
    stroke: #10B981;
}

/* Directorio de Oficinas Descentralizadas */
.contact-offices-section {
    background: #FFFFFF;
}

.contact-offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.contact-office-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.2s ease;
}

.contact-office-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border-color: var(--brand-navy, #1B365D);
}

.contact-office-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px dashed #CBD5E1;
    padding-bottom: 0.85rem;
}

.contact-office-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(27, 54, 93, 0.08);
    color: var(--brand-navy, #1B365D);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-office-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.contact-office-dept {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-wine, #6F142F);
}

.contact-office-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    margin: 0;
    line-height: 1.3;
}

.contact-office-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-office-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}

.contact-office-line svg {
    width: 15px;
    height: 15px;
    color: var(--text-muted, #64748B);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact-office-link {
    color: var(--brand-navy, #1B365D);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.contact-office-link:hover {
    color: var(--brand-wine, #6F142F);
    text-decoration: underline;
}

/* Geolocalización y Mapa de Accesos */
.contact-map-section {
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.contact-map-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.contact-map-embed-wrapper {
    min-height: 400px;
    background: #E2E8F0;
}

.contact-map-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    display: block;
}

.contact-map-info-col {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-map-info-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.85rem 0;
}

.contact-map-info-text {
    font-size: 0.95rem;
    color: var(--text-muted, #64748B);
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

.contact-highways-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-highways-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-navy, #1B365D);
    background: #F1F5F9;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.contact-highways-list svg {
    width: 18px;
    height: 18px;
    stroke: var(--brand-gold, #D2A13A);
}

.contact-gps-buttons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.contact-gps-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.65rem 1.25rem;
}

.contact-gps-btn svg {
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   15. MÓDULO DE ATENCIÓN CIUDADANA (.citizen-*)
   ========================================================================== */

.citizen-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
}

.citizen-hero-content {
    max-width: 860px;
}

.citizen-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.citizen-bc-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.citizen-bc-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.citizen-bc-sep {
    color: var(--brand-gold, #D2A13A);
}

.citizen-bc-current {
    color: var(--brand-gold, #D2A13A);
    font-weight: 600;
}

.citizen-hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(210, 161, 58, 0.2);
    border: 1px solid var(--brand-gold, #D2A13A);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-gold, #D2A13A);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.citizen-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    color: #FFFFFF;
}

.citizen-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.citizen-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.citizen-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.citizen-quick-link:hover {
    background: var(--brand-wine, #6F142F);
    border-color: var(--brand-wine, #6F142F);
    transform: translateY(-2px);
}

.citizen-quick-link svg {
    width: 16px;
    height: 16px;
    stroke: var(--brand-gold, #D2A13A);
}

.citizen-section {
    padding: 4.5rem 0;
    background: #FFFFFF;
}

.citizen-section-alt {
    background: var(--bg-soft, #F8FAFC);
}

.citizen-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem auto;
}

.citizen-section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-wine, #6F142F);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.citizen-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.85rem 0;
}

.citizen-section-subtitle {
    font-size: 1rem;
    color: var(--text-muted, #64748B);
    line-height: 1.6;
    margin: 0;
}

/* Canales Directos */
.citizen-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.citizen-channel-card {
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.citizen-channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.citizen-channel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.citizen-channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(111, 20, 47, 0.08);
    color: var(--brand-wine, #6F142F);
    display: flex;
    align-items: center;
    justify-content: center;
}

.citizen-channel-icon svg {
    width: 24px;
    height: 24px;
}

.citizen-channel-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    background: #F1F5F9;
    color: var(--brand-navy, #1B365D);
    border-radius: 6px;
    text-transform: uppercase;
}

.citizen-channel-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.25rem 0;
}

.citizen-channel-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-gold, #D2A13A);
    margin: 0 0 0.85rem 0;
}

.citizen-channel-desc {
    font-size: 0.9rem;
    color: var(--text-muted, #64748B);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.citizen-channel-meta {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.citizen-channel-info strong {
    color: var(--brand-navy, #1B365D);
    display: inline-block;
    margin-right: 0.35rem;
}

.citizen-channel-info span {
    color: var(--text-main, #1E293B);
}

.citizen-channel-footer {
    margin-top: auto;
}

.citizen-channel-btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

/* Tipos de Reportes */
.citizen-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.citizen-report-card {
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.citizen-report-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-wine, #6F142F);
}

.citizen-report-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(111, 20, 47, 0.08);
    color: var(--brand-wine, #6F142F);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.citizen-report-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.citizen-report-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.4rem 0;
}

.citizen-report-text {
    font-size: 0.875rem;
    color: var(--text-muted, #64748B);
    line-height: 1.5;
    margin: 0 0 0.85rem 0;
}

.citizen-report-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
}

.citizen-report-dept,
.citizen-report-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    background: #F1F5F9;
    border-radius: 6px;
    color: var(--brand-navy, #1B365D);
    font-weight: 600;
}

.citizen-report-dept svg,
.citizen-report-time svg {
    width: 12px;
    height: 12px;
    stroke: var(--brand-wine, #6F142F);
}

.citizen-report-req {
    padding: 0.25rem 0.55rem;
    background: rgba(210, 161, 58, 0.15);
    color: #92400E;
    border-radius: 6px;
    font-weight: 700;
}

/* Proceso en 4 Pasos */
.citizen-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.citizen-step-card {
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.citizen-step-number {
    font-size: 2.25rem;
    font-weight: 900;
    color: rgba(111, 20, 47, 0.12);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.citizen-step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem auto;
    border-radius: 50%;
    background: var(--brand-wine, #6F142F);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.citizen-step-icon svg {
    width: 22px;
    height: 22px;
}

.citizen-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.65rem 0;
}

.citizen-step-desc {
    font-size: 0.875rem;
    color: var(--text-muted, #64748B);
    line-height: 1.55;
    margin: 0;
}

/* Formulario Buzón Digital */
.citizen-form-wrapper {
    max-width: 820px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.citizen-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.citizen-form-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.65rem 0;
}

.citizen-form-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted, #64748B);
    line-height: 1.55;
    margin: 0 0 1rem 0;
}

.citizen-commitment-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(111, 20, 47, 0.06);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-wine, #6F142F);
}

.citizen-commitment-banner svg {
    width: 18px;
    height: 18px;
}

.citizen-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.citizen-form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border, #E2E8F0);
}

.citizen-privacy-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted, #64748B);
    margin: 0;
    max-width: 460px;
}

.citizen-privacy-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.citizen-submit-btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
}

/* Acordeón FAQs */
.citizen-faqs-accordion {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.citizen-faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.citizen-faq-item[open] {
    border-color: var(--brand-wine, #6F142F);
}

.citizen-faq-summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--brand-navy, #1B365D);
    user-select: none;
}

.citizen-faq-summary::-webkit-details-marker {
    display: none;
}

.citizen-faq-icon svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.citizen-faq-item[open] .citizen-faq-icon svg {
    transform: rotate(180deg);
}

.citizen-faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.925rem;
    color: var(--text-muted, #64748B);
    line-height: 1.6;
}

/* ==========================================================================
   16. MÓDULO DE DIRECTORIO MUNICIPAL (.directory-*)
   ========================================================================== */

.directory-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
}

.directory-hero-content {
    max-width: 860px;
}

.directory-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.directory-bc-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.directory-bc-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.directory-bc-sep {
    color: var(--brand-gold, #D2A13A);
}

.directory-bc-current {
    color: var(--brand-gold, #D2A13A);
    font-weight: 600;
}

.directory-hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(210, 161, 58, 0.2);
    border: 1px solid var(--brand-gold, #D2A13A);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-gold, #D2A13A);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.directory-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    color: #FFFFFF;
}

.directory-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.directory-section {
    padding: 3.5rem 0;
}

/* Conmutador Central */
.directory-switchboard-section {
    padding-bottom: 1.5rem;
}

.directory-switchboard-card {
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.directory-sw-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(111, 20, 47, 0.08);
    color: var(--brand-wine, #6F142F);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.directory-sw-icon svg {
    width: 32px;
    height: 32px;
}

.directory-sw-content {
    flex-grow: 1;
}

.directory-sw-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-wine, #6F142F);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.directory-sw-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.4rem 0;
}

.directory-sw-addr {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted, #64748B);
    margin: 0 0 0.85rem 0;
}

.directory-sw-addr svg {
    width: 14px;
    height: 14px;
}

.directory-sw-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.directory-sw-detail-item strong {
    color: var(--brand-navy, #1B365D);
    margin-right: 0.3rem;
}

.directory-sw-detail-item span {
    color: var(--text-main, #1E293B);
}

.directory-sw-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex-shrink: 0;
}

.directory-sw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.65rem 1.25rem;
    white-space: nowrap;
}

.directory-sw-btn svg {
    width: 16px;
    height: 16px;
}

/* Barra de Herramientas: Buscador y Filtros */
.directory-toolbar-box {
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.directory-search-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.directory-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #64748B);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.directory-search-icon svg {
    width: 18px;
    height: 18px;
}

.directory-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main, #1E293B);
    background: #F8FAFC;
    transition: all 0.2s ease;
}

.directory-search-input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--brand-wine, #6F142F);
    box-shadow: 0 0 0 3px rgba(111, 20, 47, 0.1);
}

.directory-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.directory-cat-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border, #E2E8F0);
    background: #FFFFFF;
    color: var(--text-muted, #64748B);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.directory-cat-btn:hover {
    border-color: var(--brand-navy, #1B365D);
    color: var(--brand-navy, #1B365D);
}

.directory-cat-btn.is-active {
    background: var(--brand-wine, #6F142F);
    border-color: var(--brand-wine, #6F142F);
    color: #FFFFFF;
}

.directory-results-bar {
    padding-top: 0.85rem;
    border-top: 1px solid var(--border, #E2E8F0);
    font-size: 0.85rem;
    color: var(--text-muted, #64748B);
}

.directory-count-text strong {
    color: var(--brand-navy, #1B365D);
}

/* Cuadrícula de Servidores */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.directory-card {
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.directory-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.directory-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(111, 20, 47, 0.08);
    color: var(--brand-wine, #6F142F);
    display: flex;
    align-items: center;
    justify-content: center;
}

.directory-avatar svg {
    width: 22px;
    height: 22px;
}

.directory-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.directory-badge-presidencia-cabildo {
    background: rgba(210, 161, 58, 0.15);
    color: #92400E;
}

.directory-badge-gabinete-central {
    background: rgba(111, 20, 47, 0.1);
    color: var(--brand-wine, #6F142F);
}

.directory-badge-direcciones-operativas {
    background: rgba(27, 54, 93, 0.1);
    color: var(--brand-navy, #1B365D);
}

.directory-badge-organos-descentralizados {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.directory-badge-juntas-municipales {
    background: rgba(99, 102, 241, 0.1);
    color: #4338CA;
}

.directory-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.35rem 0;
    line-height: 1.25;
}

.directory-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-wine, #6F142F);
    margin: 0 0 0.35rem 0;
}

.directory-dept {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted, #64748B);
    margin: 0 0 1.25rem 0;
}

.directory-dept svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.directory-card-details {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.825rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.directory-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.directory-detail-icon {
    color: var(--brand-wine, #6F142F);
    display: flex;
    align-items: center;
    padding-top: 2px;
}

.directory-detail-icon svg {
    width: 14px;
    height: 14px;
}

.directory-detail-info {
    color: var(--text-main, #1E293B);
    word-break: break-word;
}

.directory-contact-link {
    color: var(--brand-navy, #1B365D);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.directory-contact-link:hover {
    color: var(--brand-wine, #6F142F);
    text-decoration: underline;
}

.directory-ext {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted, #64748B);
    margin-left: 0.35rem;
}

.directory-card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.directory-card-action {
    flex: 1;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.directory-card-action svg {
    width: 14px;
    height: 14px;
}

/* Estado Vacío */
.directory-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #FFFFFF;
    border: 1px dashed var(--border, #E2E8F0);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.directory-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    background: #F1F5F9;
    color: var(--text-muted, #64748B);
    display: flex;
    align-items: center;
    justify-content: center;
}

.directory-empty-icon svg {
    width: 28px;
    height: 28px;
}

.directory-empty-state h3 {
    font-size: 1.25rem;
    color: var(--brand-navy, #1B365D);
    margin: 0 0 0.5rem 0;
}

.directory-empty-state p {
    color: var(--text-muted, #64748B);
    margin: 0 0 1.25rem 0;
}

/* ==================================================
   MÓDULO DE FESTIVIDADES Y AMBIENTACIÓN CÍVICA / CULTURAL
   ================================================== */
.festivity-decorations {
    position: relative;
    width: 100%;
    z-index: 999;
    pointer-events: none;
    overflow: hidden;
}

.festivity-decorations.is-sticky {
    position: sticky;
    top: 0;
    z-index: 1050;
}

.festivity-top-border {
    width: 100%;
    height: 4px;
}

.festivity-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* --- DÍA DE LA INDEPENDENCIA --- */
.festivity-independencia .festivity-top-border {
    background: linear-gradient(90deg, #006847 0%, #006847 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #CE1126 66.6%, #CE1126 100%);
    height: 5px;
}

.festivity-independencia .patriot-ribbon {
    background: #FFFFFF;
    color: #000000;
    border-bottom: 2px solid #D2A13A;
}

.patriot-flag-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    margin-right: 0.35rem;
    vertical-align: middle;
}

.patriot-flag-badge .strip-green { width: 14px; height: 13px; background: #006847; display: block; }
.patriot-flag-badge .strip-white { width: 14px; height: 13px; background: #FFFFFF; display: block; }
.patriot-flag-badge .strip-red   { width: 14px; height: 13px; background: #CE1126; display: block; }

/* --- NAVIDAD --- */
.festivity-navidad .festivity-top-border {
    background: linear-gradient(90deg, #0F5132, #C29B38, #DC3545, #0F5132, #C29B38, #DC3545);
}

.festivity-navidad .holiday-ribbon {
    background: #0B3D26;
    color: #F8FAFC;
    border-bottom: 2px solid #C29B38;
}

.holiday-lights {
    display: flex;
    justify-content: space-around;
    padding: 0.2rem 1rem;
    background: rgba(11, 61, 38, 0.25);
}

.light-bulb {
    width: 8px;
    height: 12px;
    border-radius: 50% 50% 35% 35%;
    display: inline-block;
    animation: holidayGlow 1.8s infinite alternate;
}

.bulb-red   { background: #EF4444; box-shadow: 0 0 8px #EF4444; }
.bulb-gold  { background: #FBBF24; box-shadow: 0 0 8px #FBBF24; animation-delay: 0.3s; }
.bulb-green { background: #10B981; box-shadow: 0 0 8px #10B981; animation-delay: 0.6s; }
.bulb-blue  { background: #38BDF8; box-shadow: 0 0 8px #38BDF8; animation-delay: 0.9s; }

@keyframes holidayGlow {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    animation: snowfall 6s linear infinite;
}

.snowflake:nth-child(1) { left: 8%;  animation-duration: 5.5s; animation-delay: 0s; font-size: 0.9rem; }
.snowflake:nth-child(2) { left: 24%; animation-duration: 7s;   animation-delay: 1.2s; font-size: 1.2rem; }
.snowflake:nth-child(3) { left: 42%; animation-duration: 6.2s; animation-delay: 0.5s; font-size: 0.8rem; }
.snowflake:nth-child(4) { left: 63%; animation-duration: 8s;   animation-delay: 2s; font-size: 1.1rem; }
.snowflake:nth-child(5) { left: 81%; animation-duration: 5.8s; animation-delay: 0.8s; font-size: 0.9rem; }
.snowflake:nth-child(6) { left: 93%; animation-duration: 7.4s; animation-delay: 1.6s; font-size: 1.3rem; }

@keyframes snowfall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    15% { opacity: 0.9; }
    90% { opacity: 0.7; }
    100% { transform: translateY(140px) rotate(360deg); opacity: 0; }
}

/* --- AÑO NUEVO --- */
.festivity-ano-nuevo .festivity-top-border {
    background: linear-gradient(90deg, #1E293B, #D4AF37, #FFFFFF, #D4AF37, #1E293B);
}

.festivity-ano-nuevo .newyear-ribbon {
    background: #0F172A;
    color: #F8FAFC;
    border-bottom: 2px solid #D4AF37;
}

.newyear-sparkles {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0.2rem 0;
    color: #D4AF37;
    font-size: 0.9rem;
}

.sparkle-dot {
    animation: sparkleTwinkle 2s infinite ease-in-out;
}
.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.4s; color: #F59E0B; }
.dot-3 { animation-delay: 0.8s; color: #FDE047; }
.dot-4 { animation-delay: 1.2s; color: #F59E0B; }
.dot-5 { animation-delay: 1.6s; }

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* --- CARNAVAL --- */
.festivity-carnaval .festivity-top-border {
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #F59E0B, #10B981, #3B82F6, #8B5CF6);
}

.festivity-carnaval .carnival-ribbon {
    background: linear-gradient(90deg, #4C1D95, #831843);
    color: #FFFFFF;
    border-bottom: 2px solid #F59E0B;
}

.carnival-streamers {
    display: flex;
    height: 4px;
    width: 100%;
}
.streamer { flex: 1; height: 100%; }
.st-1 { background: #8B5CF6; }
.st-2 { background: #EC4899; }
.st-3 { background: #F59E0B; }
.st-4 { background: #10B981; }

/* --- DÍA DE MUERTOS --- */
.festivity-dia-muertos .festivity-top-border {
    background: linear-gradient(90deg, #F97316, #7C3AED, #EAB308, #EC4899, #F97316);
}

.festivity-dia-muertos .muertos-ribbon {
    background: #431407;
    color: #FEF08A;
    border-bottom: 2px solid #F97316;
}

.papel-picado-garland {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.15rem 0;
    overflow: hidden;
}

.papel-flag {
    width: 22px;
    height: 12px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 65%, 0 100%);
    opacity: 0.85;
}

.flag-orange { background: #F97316; }
.flag-purple { background: #7C3AED; }
.flag-yellow { background: #EAB308; }
.flag-pink   { background: #EC4899; }

/* Accesibilidad: Respetar preferencias de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .festivity-decorations *,
    .light-bulb,
    .snowflake,
    .sparkle-dot {
        animation: none !important;
        transition: none !important;
    }
}
