@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --modern-primary: var(--color-primary);
    --modern-accent: var(--color-secondary);
    --modern-text: #333;
    --modern-light-gray: #f8f9fa;
    --hero-bg: #fff;
    --radius-lg: 50px;
}

/* Contenedor principal */
.plantilla-moderna {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
}

/* ========================================
   MODERN HERO SECTION (SPLIT LAYOUT)
   ======================================== */

.modern-hero-section {
    position: relative;
    height: 550px;
    min-height: 550px;
    overflow: visible;
    background-color: #1a2332;
    width: 100%;
    margin: 0;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-full-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.8);
    transform: scale(1.05);
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 2;
}

.hero-overlay-content {
    position: relative;
    z-index: 3;
    height: 100%;
}

.institutional-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.institutional-badge .dot {
    width: 8px;
    height: 8px;
    background: #e5a040;
    border-radius: 50%;
    margin-right: 10px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-title .text-accent {
    color: rgba(255, 255, 255, 0.8);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* SEARCH BOX EN HERO */
.modern-search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    padding-left: 20px;
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    max-width: 550px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modern-search-box form {
    width: 100%;
}

.modern-search-box .input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.modern-search-box .search-icon {
    color: var(--modern-primary);
    font-size: 1.2rem;
    margin-right: 5px;
}

.modern-search-box input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    width: 100%;
    background: transparent;
}

/* Sugerencias del Hero */
.modern-search-box {
    position: relative;
}

.hero-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
}

.suggestions-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.suggestions-list li {
    padding: 0;
    margin: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.suggestions-list li:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.suggestions-list a {
    text-decoration: none;
    display: block;
    color: inherit;
    padding: 0.875rem 1rem;
}

.contenedor-sugerencia {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icono-sugerencia {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.icono-sugerencia.tipo-tramite {
    background: rgba(24, 108, 180, 0.1);
    color: var(--color-primary);
}

.icono-sugerencia.tipo-noticia {
    background: rgba(253, 139, 76, 0.1);
    color: var(--color-success);
}

.icono-sugerencia.tipo-contenido {
    background: rgba(58, 173, 132, 0.1);
    color: var(--color-secondary);
}

.info-sugerencia {
    flex: 1;
    min-width: 0;
}

.tipo_contenido {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.titulo_resultado {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestions-list li:hover .titulo_resultado {
    color: var(--color-primary);
}

.btn-modern-search {
    background: var(--modern-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-modern-search:hover {
    background: var(--modern-accent);
    transform: translateX(5px);
}

/* HERO STATS */
.hero-stats {
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon-bg {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* EMERGENCY BADGE (MODERN RELOADED) */
.emergency-badge {
    background: #fff;
    padding: 1.5rem 2.5rem;
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Eliminado posicionamiento absoluto fijo para el badge dentro del overlay flex */

.eb-content {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.eb-content i {
    color: #e5a040;
    margin-bottom: 5px;
}

.eb-content span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a0aec0;
}

.eb-content strong {
    font-size: 2.2rem;
    color: var(--modern-primary);
    line-height: 1;
}

.template-moderna .swiper-button-next:hover,
.template-moderna .swiper-button-prev:hover {
    background: var(--color-primary);
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0px white;
}

/* ========================================
   SECCIONES DE CONTENIDO
   ======================================== */

.section-modern-content {
    width: 100%;
}

.main-content-modern {
    margin-top: 0;
}

/* Módulo calendario-eventos en plantilla moderna */
.modulo-wrapper {
    width: 100%;
}

.modulo-wrapper #calendario {
    width: 100%;
    max-width: 100%;
}

/* ========================================
   MODULO: CALENDARIO EVENTOS (MODERNA - PORTADA)
   ======================================== */

.plantilla-moderna #calendario .calendario-eventos-row {
    display: flex;
    align-items: stretch;
}

.plantilla-moderna #calendario .calendario-widget {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    height: 100%;
    max-height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plantilla-moderna #calendario .calendario-header {
    background: linear-gradient(135deg, var(--modern-primary) 0%, #2d5a7b 100%);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.plantilla-moderna #calendario .calendario-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.plantilla-moderna #calendario .calendario-nav {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.plantilla-moderna #calendario .calendario-nav:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.plantilla-moderna #calendario .calendario-tabla {
    padding: 1rem;
    flex: 1;
    border-spacing: 8px 10px;
}

.plantilla-moderna #calendario .calendario-tabla th {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.plantilla-moderna #calendario .calendario-tabla td span {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.plantilla-moderna #calendario .calendario-tabla td.dia-hoy span {
    background: var(--modern-accent);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(45, 106, 79, 0.3);
}

.plantilla-moderna #calendario .calendario-tabla td.dia-con-evento span {
    background: #e5a040;
    color: white;
    font-weight: 600;
}

.plantilla-moderna #calendario .eventos-panel {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    overflow: hidden;
    height: 100%;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

.plantilla-moderna #calendario .eventos-panel-header {
    background: linear-gradient(135deg, var(--modern-primary) 0%, #2d5a7b 100%);
    color: white;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 20px 20px 0 0;
}

.plantilla-moderna #calendario .eventos-lista-widget {
    padding: 1rem 1.25rem;
    flex: 1;
    overflow-y: auto;
}

.plantilla-moderna #calendario .evento-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.plantilla-moderna #calendario .evento-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--modern-accent);
}

.plantilla-moderna #calendario .evento-item-fecha {
    background: var(--modern-accent);
    border-radius: 10px;
    min-width: 60px;
    padding: 0.75rem;
}

.plantilla-moderna #calendario .evento-item-dia {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.plantilla-moderna #calendario .evento-item-mes {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.plantilla-moderna #calendario .evento-item-nombre {
    font-size: 1rem;
    font-weight: 700;
    color: var(--modern-primary);
    margin-bottom: 0.25rem;
}

.plantilla-moderna #calendario .evento-item-direccion {
    font-size: 0.85rem;
    color: #6c757d;
}

/* ========================================
   COLUMNA PRINCIPAL (70%)
   ======================================== */

.modulos-principales {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modulo-card {
    background: #fff;
    border-radius: 0;
    box-shadow: var(--modern-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.modulo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

/* Títulos de módulos principales */
.modulo-card section>h2:first-child,
.modulo-card section>h3:first-child,
.modulo-card>h2:first-child,
.modulo-card>h3:first-child {
    background: #f8f9fa;
    color: var(--color-modern-dark);
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
}

/* Contenido de módulos principales */
.modulo-card section,
.modulo-card>div {
    padding: 0;
}

.modulo-card section>div,
.modulo-card>div>div {
    padding: 2rem;
}

/* ========================================
   COLUMNA LATERAL (30% - ESTILO INDUSTRIAL)
   ======================================== */

.modulos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: sticky;
    top: 100px;
}

.modulo-sidebar-card {
    background: #fff;
    border-radius: 0;
    box-shadow: var(--modern-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.modulo-sidebar-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

/* Títulos de módulos sidebar */
.modulo-sidebar-card section>h2:first-child,
.modulo-sidebar-card section>h3:first-child,
.modulo-sidebar-card>h2:first-child,
.modulo-sidebar-card>h3:first-child {
    background: #f8f9fa;
    color: var(--color-modern-dark);
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
}

/* Contenido de módulos sidebar */
.modulo-sidebar-card section>div,
.modulo-sidebar-card>div>div {
    padding: 1.5rem;
}

/* Placeholder del sidebar */
.sidebar-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed #dee2e6;
}

/* ========================================
   CARDS DENTRO DE MÓDULOS
   ======================================== */

.modulo-card .card,
.modulo-sidebar-card .card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modulo-card .card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   MODULO: NOTICIAS PRINCIPALES (MODERNA - RADICAL)
   ======================================== */

.template-moderna .modulo-noticias-principales .noticia-card {
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: none;
    overflow: hidden;
}

.template-moderna .modulo-noticias-principales .noticia-imagen {
    border-radius: 0;
}

.template-moderna .modulo-noticias-principales .noticia-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1.5rem;
}

.template-moderna .modulo-noticias-principales .noticia-titulo {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

/* ========================================
   HEADER DE NOTICIAS (MODERNA)
   ======================================== */

.news-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--modern-primary);
    margin: 0;
    letter-spacing: -1.5px;
}

.news-sub-title {
    font-size: 1.1rem;
    color: #718096;
    margin-top: 0.5rem;
}

.btn-news-all {
    background: var(--modern-primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-news-all:hover {
    background: var(--modern-accent);
    transform: translateY(-2px);
    color: white;
}

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

.news-modern-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 3rem;
    max-width: 100%;
}

/* Noticia Principal (Grande) */
.news-card-featured {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.news-card-featured .card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-image-fixed {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-featured-overlay {
    position: relative;
    padding: 2rem 1.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.news-title-large {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    color: white;
}

.news-excerpt {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.news-secondary-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card-secondary {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-secondary .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-side-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}


.news-title-small {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--modern-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-excerpt-small {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.news-meta,
.news-meta-sm {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.read-more,
.read-more-sm {
    font-weight: 700;
    color: var(--modern-accent);
}

/* Hover Effects */
.news-card-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.news-card-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card-featured {
        min-height: 400px;
    }
    
    .news-image-fixed {
        min-height: 400px;
    }
    
    .news-secondary-stack {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
}

@media (max-width: 768px) {
    .news-modern-grid {
        gap: 15px;
    }
    
    .news-card-featured {
        min-height: 350px;
    }
    
    .news-image-fixed {
        min-height: 350px;
    }
    
    .news-featured-overlay {
        padding: 1.5rem;
    }

    .news-title-large {
        font-size: 1.5rem;
    }
    
    .news-excerpt {
        font-size: 0.875rem;
    }

    .news-secondary-stack {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-side-image {
        height: 180px;
    }

    .news-card-body {
        padding: 1.25rem;
    }
    
    .news-title-small {
        font-size: 1rem;
    }
}

/* ========================================
   FOOTER MODERNA
   ======================================== */

.footer-moderna {
    background: var(--color-primary);
    color: #ffffff;
    padding: 4rem 0 0 0;
}

/* Sección Superior */
.footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

/* Logo y Marca */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 180px;
    height: auto;
}

.footer-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

.brand-highlight {
    color: #e5a040;
    font-size: 1.3rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Caja de Contacto */
.footer-contact-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.contact-box-title {
    color: #e5a040;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.contact-box-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-box-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.contact-box-item i {
    color: #e5a040;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Sección de Enlaces */
.footer-links {
    padding-bottom: 3rem;
}

.footer-links-title {
    color: #e5a040;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Redes Sociales */
.footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: #e5a040;
    border-color: #e5a040;
    transform: translateY(-3px);
}

/* Dirección */
.footer-address {
    display: flex;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-address i {
    color: #e5a040;
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-address p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 991px) {
    .footer-moderna {
        padding: 3rem 0 0 0;
        margin-top: 3rem;
    }
    
    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-logo {
        width: 180px;
    }
    
    .footer-brand-title {
        font-size: 1rem;
    }
    
    .brand-highlight {
        font-size: 1.1rem;
    }
    
    .footer-contact-box {
        margin-top: 2rem;
    }
    
    .footer-links {
        padding-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .footer-top {
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-box-items {
        gap: 0.75rem;
    }
    
    .contact-box-item {
        font-size: 0.85rem;
    }
    
    .footer-links-title {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .footer-links-list a {
        font-size: 0.85rem;
    }
    
    .footer-social-icons {
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ========================================
   FOOTER ULTRA COMPACTO PARA MÓVIL - PLANTILLA MODERNA
   ======================================== */

@media (max-width: 576px) {
    /* Hacer que el row sea flex wrap */
    body.template-moderna .footer-enlaces-principales .container .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Columna 1 (Gobierno) - orden 1, 33.33% */
    body.template-moderna .footer-enlaces-principales .row > div.col-lg-3:nth-child(1) {
        order: 1 !important;
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        text-align: center !important;
    }
    
    /* Columna 2 (Estamos Cerca) - OCULTAR */
    body.template-moderna .footer-enlaces-principales .row > div.col-lg-3:nth-child(2) {
        display: none !important;
    }
    
    /* Columna 3 (Servicios) - orden 2, 33.33% */
    body.template-moderna .footer-enlaces-principales .row > div.col-lg-3:nth-child(3) {
        order: 2 !important;
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        text-align: center !important;
    }
    
    /* Columna 4 (Transparencia/Secretarías) - orden 3, 33.33% */
    body.template-moderna .footer-enlaces-principales .row > div.col-lg-3:nth-child(4) {
        order: 3 !important;
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        text-align: center !important;
    }
    
    /* Reducir padding de secciones */
    .template-moderna .footer-enlaces-principales {
        padding: 1rem 0 0.75rem 0 !important;
    }
    
    /* Reducir items de lista - mostrar solo los primeros 3 */
    .template-moderna .footer-lista li:nth-child(n+4) {
        display: none !important;
    }
    
    /* Optimizar títulos y separadores */
    .template-moderna .footer-titulo {
        font-size: 0.65rem !important;
        margin-bottom: 0.3rem !important;
        font-weight: 700 !important;
    }
    
    .template-moderna .footer-separador {
        margin-bottom: 0.4rem !important;
        width: 1.5rem !important;
        height: 1px !important;
    }
    
    /* Optimizar listas */
    .template-moderna .footer-lista {
        margin-bottom: 0.75rem !important;
    }
    
    .template-moderna .footer-lista li {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
    }
    
    .template-moderna .footer-lista li i {
        font-size: 0.6rem !important;
        margin-right: 0.3rem !important;
    }
    
    /* Sección de teléfonos - más compacta */
    .template-moderna .footer-contacto {
        padding: 0.75rem 0 1rem 0 !important;
    }
    
    .template-moderna .footer-contacto-header {
        margin-bottom: 0.5rem !important;
    }
    
    .template-moderna .contacto-titulo {
        font-size: 0.75rem !important;
    }
    
    /* Mostrar solo 4 teléfonos en 2 columnas */
    .template-moderna .contacto-card:nth-child(n+5) {
        display: none !important;
    }
    
    .template-moderna .contacto-card {
        padding: 0.4rem !important;
        min-height: 60px !important;
        gap: 0.3rem !important;
    }
    
    .template-moderna .contacto-card-icono i {
        font-size: 0.9rem !important;
    }
    
    .template-moderna .contacto-numero {
        font-size: 0.9rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    .template-moderna .contacto-label {
        font-size: 0.5rem !important;
        line-height: 1.1 !important;
    }
    
    /* Footer bottom compacto */
    .template-moderna .footer-bottom {
        padding: 1rem 0 !important;
    }
    
    .template-moderna .footer-logo img {
        height: 35px !important;
    }
    
    .template-moderna .footer-bottom .red_social {
        height: 2rem !important;
        width: 2rem !important;
        font-size: 0.85rem !important;
    }
}

/* ========================================
   MODULO: CALENDARIO (MODERNA - SIDEBAR)
   ======================================== */

.plantilla-moderna .modulo-sidebar-calendario-eventos {
    border: none;
    box-shadow: none;
    background: transparent;
}

.plantilla-moderna .modulo-sidebar-calendario-eventos .modulo-title {
    font-size: 1.1rem;
    color: var(--color-primary);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Rediseño de items de calendario en sidebar */
.plantilla-moderna .modulo-sidebar-calendario-eventos .calendario-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ========================================
   MODULO: BUSQUEDA (MODERNA - NEGRO Y CUADRADO)
   ======================================== */

.template-moderna .buscador-module {
    background: var(--color-modern-dark);
    padding: 4rem 2rem;
    border: none;
    text-align: center;
}

.template-moderna .buscador-titulo {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2.5rem;
}

.template-moderna .input-group {
    background: white;
    border-radius: 0;
    padding: 2px;
    border: none;
}

.template-moderna .form-control {
    border-radius: 0;
    border: none;
    padding-left: 1.5rem;
    height: 55px;
}

.template-moderna .search-bar .buscar {
    background: var(--color-primary);
    color: white;
    border-radius: 0;
    width: 60px;
    border: none;
}

.template-moderna .acceso-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.template-moderna .acceso-card:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 991px) {
    .modern-hero-section {
        padding: 4rem 0;
    }

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

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .modern-search-box {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .modern-inner-slider img {
        height: 400px;
    }
}

/* ========================================
   CORRECCIONES DE PRODUCCIÓN
   ======================================== */

/* Si AOS falla o no carga, aseguramos que el contenido sea visible */
.template-moderna [data-aos] {
    opacity: 1;
    visibility: visible;
    transform: none;
}