/* ===================================
   ESTILOS PÁGINA DE AYUNTAMIENTO
   =================================== */

/* Banner de página interna */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-color);
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-banner h1 i {
    color: var(--secondary-color);
    margin-right: 15px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}


/* Navegación de secciones */
.section-navigation {
    background-color: var(--light-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-medium);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Compensar barra de administración de WordPress */
.admin-bar .section-navigation {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .section-navigation {
        top: 46px;
    }
}

.nav-pills {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill-link {
    padding: 12px 30px;
    background-color: var(--gray-light);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.pill-link i {
    font-size: 1.1rem;
}

.pill-link:hover {
    background-color: var(--primary-light);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pill-link.active {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

/* Títulos de sección */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-dark);
}

/* ===================================
   SOBRE NOSOTROS
   =================================== */

.sobre-nosotros-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.sobre-nosotros-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Caja introductoria */
.gob-int {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-color);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.gob-int::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.gob-int::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.gob-int-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.gob-int h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.gob-int p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.gob-int p:last-child {
    margin-bottom: 0;
}

/* Grid de Misión, Visión y Valores */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.mvv-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--gray-light);
    display: flex;
    flex-direction: column;
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.mvv-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--light-color);
    position: relative;
}

.mision-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.vision-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.valores-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.mvv-content {
    padding: 35px 30px;
    flex: 1;
}

.mvv-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.mvv-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

/* Tarjeta de valores especial */
.valores-card {
    grid-column: span 1;
}

@media (min-width: 1100px) {
    .valores-card {
        grid-column: 1 / -1;
    }
}

.valores-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.valor-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: 10px;
    transition: var(--transition);
}

.valor-item:hover {
    background-color: #e8e8e8;
    transform: translateX(5px);
}

.valor-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.valor-item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.valor-item strong {
    color: var(--primary-color);
    font-size: 1.05rem;
    display: block;
}

.valor-item span {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Objetivos Estratégicos */
.objetivos-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

.objetivos-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.objetivos-section h3 i {
    font-size: 2rem;
}

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

.objetivo-card {
    background-color: var(--light-color);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.objetivo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.objetivo-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(127, 23, 52, 0.3);
}

.objetivo-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    padding-right: 60px;
}

.objetivo-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-dark);
}

/* ===================================
   ORGANIGRAMA
   =================================== */

.organigrama-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

/* Controles del organigrama */
.organigrama-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-color);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(127, 23, 52, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(127, 23, 52, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-download i {
    font-size: 1.2rem;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--light-color);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.btn-zoom {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-zoom:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

#zoom-level {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
    font-size: 1rem;
}

/* Visualizador de PDF */
.organigrama-viewer {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.pdf-container {
    width: 100%;
    min-height: 800px;
    overflow: auto;
    background-color: #525659;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
    position: relative;
}

.pdf-embed {
    display: block;
    border: none;
    border-radius: var(--border-radius);
}

/* Fallback para navegadores sin soporte PDF */
.pdf-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
}

.fallback-content {
    text-align: center;
    padding: 40px;
}

.fallback-content i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.fallback-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.fallback-content p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-download-fallback {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-color);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(127, 23, 52, 0.3);
}

.btn-download-fallback:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(127, 23, 52, 0.4);
}

.btn-download-fallback i {
    font-size: 1.2rem;
}

/* Nota del organigrama */
.org-note {
    background-color: #fff3cd;
    border-left: 4px solid var(--secondary-color);
    padding: 20px 25px;
    margin-top: 40px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.org-note i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 3px;
}

.org-note p {
    color: var(--dark-color);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   ASAMBLEA MUNICIPAL
   =================================== */

.asamblea-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

/* Presidenta Destacada */
.presidenta-destacada {
    margin-bottom: 60px;
}

.presidente-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: 350px 1fr;
    position: relative;
}

.presidente-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.presidente-badge i {
    color: var(--primary-color);
}

.presidente-image {
    position: relative;
    overflow: hidden;
}

.presidente-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.presidente-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(127, 23, 52, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.presidente-overlay i {
    font-size: 4rem;
    color: var(--light-color);
}

.presidente-card:hover .presidente-image img {
    transform: scale(1.05);
}

.presidente-card:hover .presidente-overlay {
    opacity: 1;
}

.presidente-info {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.presidente-info h3 {
    font-size: 1.8rem;
    color: var(--light-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.presidente-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.presidente-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.presidente-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.presidente-contact a {
    color: var(--light-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.presidente-contact a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Grid de Regidores */
.regidores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.regidor-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--gray-light);
}

.regidor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.regidor-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.regidor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.regidor-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.regidor-overlay i {
    font-size: 3rem;
    color: var(--light-color);
}

.regidor-card:hover .regidor-image img {
    transform: scale(1.1);
}

.regidor-card:hover .regidor-overlay {
    opacity: 1;
}

.regidor-info {
    padding: 25px 20px;
}

.regidor-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.regidor-cargo {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.regidor-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-color);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Información de Asamblea */
.asamblea-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.info-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-box p {
    color: var(--dark-color);
    line-height: 1.7;
    font-size: 0.95rem;
}

.info-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-box a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Clase active para el menú de navegación */
.nav-menu li a.active {
    background-color: var(--primary-dark);
    border-bottom: 3px solid var(--secondary-color);
}

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

@media (max-width: 992px) {
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .intro-box {
        padding: 40px 30px;
    }
    
    .intro-box h3 {
        font-size: 1.7rem;
    }
    
    .mvv-grid {
        grid-template-columns: 1fr;
    }
    
    .valores-card {
        grid-column: span 1;
    }
    
    .valores-list {
        grid-template-columns: 1fr;
    }
    
    .objetivos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .presidente-card {
        grid-template-columns: 1fr;
    }
    
    .presidente-image {
        height: 400px;
    }
    
    .presidente-badge {
        top: 15px;
        right: 15px;
        font-size: 0.85rem;
        padding: 8px 20px;
    }
    
    .organigrama-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-download {
        justify-content: center;
        width: 100%;
    }
    
    .zoom-controls {
        justify-content: center;
        width: 100%;
    }
    
    .pdf-container {
        min-height: 600px;
    }
    
    .regidores-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 40px 0 30px;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .section-navigation {
        top: 0;
        padding: 15px 0;
    }
    
    .nav-pills {
        gap: 10px;
    }
    
    .pill-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title i {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .sobre-nosotros-section,
    .organigrama-section,
    .asamblea-section {
        padding: 60px 0;
    }
    
    .intro-box {
        padding: 35px 25px;
    }
    
    .intro-icon {
        font-size: 3rem;
    }
    
    .intro-box h3 {
        font-size: 1.5rem;
    }
    
    .intro-box p {
        font-size: 1rem;
    }
    
    .mvv-icon {
        height: 100px;
        font-size: 3rem;
    }
    
    .mvv-content {
        padding: 30px 25px;
    }
    
    .mvv-content h3 {
        font-size: 1.5rem;
    }
    
    .objetivos-section {
        padding: 40px 30px;
    }
    
    .objetivos-section h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .objetivo-card {
        padding: 25px 20px;
    }
    
    .zoom-controls {
        gap: 10px;
        padding: 8px 15px;
    }
    
    .btn-zoom {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    #zoom-level {
        font-size: 0.9rem;
        min-width: 45px;
    }
    
    .pdf-container {
        min-height: 500px;
    }
    
    .organigrama-viewer {
        padding: 15px;
    }
    
    .presidente-info {
        padding: 40px 30px;
    }
    
    .presidente-info h3 {
        font-size: 1.6rem;
    }
    
    .regidores-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .regidor-image {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 1.5rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .pill-link {
        padding: 8px 15px;
        font-size: 0.85rem;
        gap: 5px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title i {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .intro-box {
        padding: 30px 20px;
    }
    
    .intro-icon {
        font-size: 2.5rem;
    }
    
    .intro-box h3 {
        font-size: 1.3rem;
    }
    
    .intro-box p {
        font-size: 0.95rem;
    }
    
    .mvv-grid {
        gap: 20px;
    }
    
    .mvv-icon {
        height: 90px;
        font-size: 2.5rem;
    }
    
    .mvv-content {
        padding: 25px 20px;
    }
    
    .mvv-content h3 {
        font-size: 1.3rem;
    }
    
    .mvv-content p {
        font-size: 0.95rem;
    }
    
    .valor-item {
        padding: 12px;
        gap: 12px;
    }
    
    .valor-item i {
        font-size: 1.2rem;
    }
    
    .valor-item strong {
        font-size: 1rem;
    }
    
    .valor-item span {
        font-size: 0.9rem;
    }
    
    .objetivos-section {
        padding: 30px 20px;
    }
    
    .objetivos-section h3 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    
    .objetivos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .objetivo-card {
        padding: 25px 20px;
    }
    
    .objetivo-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        top: -12px;
        right: 15px;
    }
    
    .objetivo-card h4 {
        font-size: 1.2rem;
        padding-right: 55px;
    }
    
    .objetivo-card p {
        font-size: 0.9rem;
    }
    
    .organigrama-controls {
        gap: 15px;
    }
    
    .btn-download {
        font-size: 0.9rem;
        padding: 12px 25px;
    }
    
    .zoom-controls {
        gap: 8px;
        padding: 6px 12px;
        flex-wrap: wrap;
    }
    
    .btn-zoom {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    #zoom-level {
        font-size: 0.85rem;
        min-width: 40px;
    }
    
    .pdf-container {
        min-height: 400px;
    }
    
    .organigrama-viewer {
        padding: 10px;
    }
    
    .fallback-content {
        padding: 30px 20px;
    }
    
    .fallback-content i {
        font-size: 4rem;
    }
    
    .fallback-content h3 {
        font-size: 1.5rem;
    }
    
    .fallback-content p {
        font-size: 1rem;
    }
    
    .btn-download-fallback {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    .presidente-card {
        max-width: 100%;
    }
    
    .presidente-image {
        height: 350px;
    }
    
    .presidente-info {
        padding: 30px 20px;
    }
    
    .presidente-info h3 {
        font-size: 1.4rem;
    }
    
    .presidente-title {
        font-size: 1rem;
    }
    
    .regidores-grid {
        grid-template-columns: 1fr;
    }
    
    .asamblea-info {
        grid-template-columns: 1fr;
    }
    
    .info-box {
        padding: 25px 20px;
    }
    
    .org-note {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
}
/* ===================================
   ESTILOS PÁGINA DE TRÁMITES Y SERVICIOS
   =================================== */

/* Banner de página interna */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-color);
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-banner h1 i {
    color: var(--secondary-color);
    margin-right: 15px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Navegación de secciones */
.section-navigation {
    background-color: var(--light-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-medium);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Compensar barra de administración de WordPress */
.admin-bar .section-navigation {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .section-navigation {
        top: 46px;
    }
}

.nav-pills {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill-link {
    padding: 12px 30px;
    background-color: var(--gray-light);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.pill-link i {
    font-size: 1.1rem;
}

.pill-link:hover {
    background-color: var(--primary-light);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pill-link.active {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

/* ===================================
   SECCIÓN INTRODUCTORIA
   =================================== */

.intro-section {
    background: linear-gradient(135deg, var(--gray-light) 0%, #e9ecef 100%);
    padding: 40px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.intro-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.intro-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.intro-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.intro-card p {
    color: var(--gray-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   SECCIONES PRINCIPALES
   =================================== */

.servicios-section,
.tramites-section {
    display: none;
    padding: 80px 0;
    background-color: var(--light-color);
}

.servicios-section.active,
.tramites-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-dark);
}

/* ===================================
   SERVICIOS MUNICIPALES
   =================================== */

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.servicio-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--gray-light);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.servicio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.servicio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.servicio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(127, 23, 52, 0.9), rgba(127, 23, 52, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.servicio-overlay i {
    font-size: 4rem;
    color: var(--light-color);
    transform: scale(0.5);
    transition: var(--transition);
}

.servicio-card:hover .servicio-image img {
    transform: scale(1.1);
}

.servicio-card:hover .servicio-overlay {
    opacity: 1;
}

.servicio-card:hover .servicio-overlay i {
    transform: scale(1);
}

.servicio-content {
    padding: 30px;
}

.servicio-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.servicio-content > p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.servicio-lista {
    list-style: none;
    margin-bottom: 25px;
}

.servicio-lista li {
    padding: 8px 0;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.servicio-lista li i {
    color: var(--success-color);
    font-size: 1rem;
}

.servicio-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-servicio,
.btn-info {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-servicio {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
    flex: 1;
    justify-content: center;
}

.btn-servicio:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateX(5px);
}

.btn-info {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-info:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* ===================================
   ENLACES DE TRÁMITES
   =================================== */

.tramites-section {
    background-color: var(--gray-light);
}

.alert-info {
    background: linear-gradient(135deg, #cfe2ff 0%, #b6d4fe 100%);
    border-left: 5px solid #0d6efd;
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-bottom: 50px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.alert-info i {
    font-size: 2rem;
    color: #0d6efd;
    flex-shrink: 0;
}

.alert-info p {
    color: #084298;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.categoria-tramites {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.categoria-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.categoria-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.categoria-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.tramites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tramite-link {
    background-color: var(--light-color);
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.tramite-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.tramite-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--light-color);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Colores específicos por tipo de trámite */
.tramite-icon.curp { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.tramite-icon.ine { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.tramite-icon.rfc { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.tramite-icon.pasaporte { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.tramite-icon.imss { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.tramite-icon.issste { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.tramite-icon.nss { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.tramite-icon.citas { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.tramite-icon.infonavit { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.tramite-icon.fovissste { background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%); }
.tramite-icon.buro { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.tramite-icon.circulo { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.tramite-icon.sat { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.tramite-icon.facturacion { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.tramite-icon.devolucion { background: linear-gradient(135deg, #fdcbf1 0%, #e6dee9 100%); }
.tramite-icon.constancia { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.tramite-icon.becas { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.tramite-icon.empleo { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.tramite-icon.certificado { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.tramite-icon.revalidacion { background: linear-gradient(135deg, #fdcbf1 0%, #e6dee9 100%); }

.tramite-info {
    flex: 1;
}

.tramite-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.tramite-info p {
    color: var(--gray-dark);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.tramite-badge {
    display: inline-block;
    background-color: var(--gray-light);
    color: var(--gray-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tramite-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.tramite-link:hover .tramite-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ===================================
   SECCIÓN DE AYUDA
   =================================== */

.ayuda-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
}

.ayuda-banner {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    backdrop-filter: blur(10px);
}

.ayuda-content {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--light-color);
    flex: 1;
}

.ayuda-content i {
    font-size: 3.5rem;
    opacity: 0.9;
}

.ayuda-content h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.ayuda-content p {
    opacity: 0.9;
    font-size: 1rem;
}

.btn-contacto {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(201, 162, 77, 0.3);
    white-space: nowrap;
}

.btn-contacto:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 162, 77, 0.4);
    background-color: #d4a757;
}

/* Clase active para el menú de navegación */
.nav-menu li a.active {
    background-color: var(--primary-dark);
    border-bottom: 3px solid var(--secondary-color);
}

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

@media (max-width: 992px) {
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
    }
    
    .tramites-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .ayuda-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .ayuda-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 40px 0 30px;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .section-navigation {
        top: 0;
        padding: 15px 0;
    }
    
    .nav-pills {
        gap: 10px;
    }
    
    .pill-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .intro-card {
        padding: 25px;
    }
    
    .servicios-section,
    .tramites-section {
        padding: 60px 0;
    }
    
    .section-icon {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .servicio-image {
        height: 220px;
    }
    
    .servicio-content {
        padding: 25px;
    }
    
    .categoria-tramites {
        padding: 30px 20px;
    }
    
    .categoria-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .categoria-header h3 {
        font-size: 1.5rem;
    }
    
    .tramites-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-info {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .alert-info i {
        font-size: 1.8rem;
    }
    
    .ayuda-section {
        padding: 50px 0;
    }
    
    .ayuda-banner {
        padding: 30px 25px;
    }
    
    .ayuda-content i {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 1.5rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .pill-link {
        padding: 8px 15px;
        font-size: 0.85rem;
        gap: 5px;
    }
    
    .intro-card {
        padding: 20px;
    }
    
    .intro-card i {
        font-size: 2rem;
    }
    
    .intro-card h3 {
        font-size: 1.1rem;
    }
    
    .section-icon {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .servicio-image {
        height: 200px;
    }
    
    .servicio-content {
        padding: 20px;
    }
    
    .servicio-content h3 {
        font-size: 1.3rem;
    }
    
    .servicio-actions {
        flex-direction: column;
    }
    
    .btn-servicio,
    .btn-info {
        width: 100%;
        justify-content: center;
    }
    
    .categoria-tramites {
        padding: 25px 15px;
    }
    
    .categoria-header i {
        font-size: 2rem;
    }
    
    .categoria-header h3 {
        font-size: 1.3rem;
    }
    
    .tramite-link {
        padding: 15px;
    }
    
    .tramite-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .tramite-info h4 {
        font-size: 1rem;
    }
    
    .tramite-info p {
        font-size: 0.8rem;
    }
    
    .ayuda-banner {
        padding: 25px 20px;
    }
    
    .ayuda-content i {
        font-size: 2.5rem;
    }
    
    .ayuda-content h3 {
        font-size: 1.3rem;
    }
    
    .ayuda-content p {
        font-size: 0.9rem;
    }
    
    .btn-contacto {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}
/* ===================================
   ESTILOS PÁGINA DE TRANSPARENCIA
   =================================== */

/* Banner de página interna */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-color);
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-banner h1 i {
    color: var(--secondary-color);
    margin-right: 15px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* ===================================
   NAVEGACIÓN DE ARTÍCULOS
   =================================== */

.articulos-navigation {
    background-color: var(--light-color);
    padding: 0;
    border-bottom: 3px solid var(--gray-medium);
    position: sticky;
    top: 56px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
}

.tab-btn {
    flex: 1;
    max-width: 400px;
    background-color: var(--gray-light);
    border: none;
    padding: 25px 30px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    border-bottom: 4px solid transparent;
}

.tab-btn i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.tab-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tab-subtitle {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.tab-btn:hover {
    background-color: #e9ecef;
}

.tab-btn.active {
    background-color: var(--light-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn.active i {
    color: var(--primary-color);
}

.tab-btn.active .tab-title {
    color: var(--primary-color);
}

/* ===================================
   SECCIÓN INTRODUCTORIA
   =================================== */

.intro-section {
    background-color: var(--gray-light);
    padding: 40px 0;
}

/* Variante amarilla: solo dentro de .intro-section (ej. Trámites) */
.intro-section .intro-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.intro-section .intro-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.intro-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.intro-content p {
    color: var(--dark-color);
    line-height: 1.8;
    font-size: 1rem;
}

/* ===================================
   SECCIONES DE ARTÍCULOS
   =================================== */

.articulo-section {
    display: none;
    padding: 60px 0;
    background-color: var(--light-color);
}

.articulo-section.active {
    display: block;
}

.articulo-header {
    text-align: center;
    margin-bottom: 50px;
}

.articulo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-color);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(127, 23, 52, 0.3);
}

.articulo-badge.articulo70 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.articulo-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.articulo-header p {
    font-size: 1.1rem;
    color: var(--gray-dark);
}

/* ===================================
   BUSCADOR DE FRACCIONES
   =================================== */

.search-fracciones {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-fracciones input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: 2px solid var(--gray-medium);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-color);
}

.search-fracciones input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(127, 23, 52, 0.1);
}

.search-fracciones i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-dark);
    font-size: 1.2rem;
}

/* ===================================
   GRID DE FRACCIONES
   =================================== */

.fracciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.fraccion-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--gray-light);
    display: flex;
    gap: 20px;
    padding: 25px;
}

.fraccion-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.fraccion-numero {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(127, 23, 52, 0.3);
}

.fraccion-numero.art70 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.fraccion-content {
    flex: 1;
}

.fraccion-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.fraccion-content p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.fraccion-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn-consultar,
.btn-descargar {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-consultar {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.btn-consultar:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateX(3px);
}

.btn-descargar {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-descargar:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateX(3px);
}

.fraccion-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.fraccion-status.actualizado {
    background-color: #d4edda;
    color: #155724;
}

.fraccion-status.pendiente {
    background-color: #fff3cd;
    color: #856404;
}

.fraccion-status i {
    font-size: 0.9rem;
}

/* ===================================
   BOTÓN CARGAR MÁS
   =================================== */

.load-more {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    background: linear-gradient(135deg, var(--secondary-color), #d4a757);
    color: var(--dark-color);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(201, 162, 77, 0.3);
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 162, 77, 0.4);
}

.btn-load-more i {
    font-size: 1.2rem;
}

/* ===================================
   SECCIÓN DE AYUDA
   =================================== */

.ayuda-section {
    background: linear-gradient(135deg, var(--gray-light) 0%, #e9ecef 100%);
    padding: 80px 0;
}

.ayuda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ayuda-card {
    background-color: var(--light-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.ayuda-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.ayuda-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.ayuda-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.ayuda-card p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.btn-ayuda {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-ayuda:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 23, 52, 0.3);
}

/* Clase active para el menú de navegación */
.nav-menu li a.active {
    background-color: var(--primary-dark);
    border-bottom: 3px solid var(--secondary-color);
}

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

@media (max-width: 992px) {
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .articulo-header h2 {
        font-size: 1.8rem;
    }
    
    .fracciones-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 40px 0 30px;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .articulos-navigation {
        top: 0;
    }
    
    .tab-btn {
        padding: 20px 20px;
    }
    
    .tab-btn i {
        font-size: 1.5rem;
    }
    
    .tab-title {
        font-size: 1.1rem;
    }
    
    .tab-subtitle {
        font-size: 0.85rem;
    }
    
    .intro-section {
        padding: 30px 0;
    }
    
    .intro-box {
        flex-direction: column;
        padding: 25px;
        gap: 15px;
    }
    
    .intro-icon {
        font-size: 2.5rem;
    }
    
    .intro-content h3 {
        font-size: 1.2rem;
    }
    
    .articulo-section {
        padding: 40px 0;
    }
    
    .articulo-header {
        margin-bottom: 40px;
    }
    
    .articulo-header h2 {
        font-size: 1.6rem;
    }
    
    .search-fracciones {
        margin-bottom: 30px;
    }
    
    .fracciones-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fraccion-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .fraccion-numero {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        align-self: center;
    }
    
    .ayuda-section {
        padding: 60px 0;
    }
    
    .ayuda-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 1.5rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .tab-btn {
        padding: 18px 15px;
    }
    
    .tab-title {
        font-size: 1rem;
    }
    
    .intro-box {
        padding: 20px;
    }
    
    .intro-content h3 {
        font-size: 1.1rem;
    }
    
    .intro-content p {
        font-size: 0.95rem;
    }
    
    .articulo-badge {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .articulo-header h2 {
        font-size: 1.4rem;
    }
    
    .articulo-header p {
        font-size: 1rem;
    }
    
    .search-fracciones input {
        padding: 15px 45px 15px 18px;
        font-size: 0.95rem;
    }
    
    .fraccion-content h4 {
        font-size: 1.1rem;
    }
    
    .fraccion-content p {
        font-size: 0.9rem;
    }
    
    .fraccion-actions {
        gap: 8px;
    }
    
    .btn-consultar,
    .btn-descargar {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .btn-load-more {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .ayuda-card {
        padding: 30px 20px;
    }
    
    .ayuda-card i {
        font-size: 3rem;
    }
    
    .ayuda-card h3 {
        font-size: 1.2rem;
    }
}
/* ===================================
   ESTILOS PARA PÁGINA DE DIRECTORIO
   =================================== */

/* Banner de página */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-color);
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-banner h1 i {
    color: var(--secondary-color);
    margin-right: 15px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* ===================================
   SECCIONES DEL DIRECTORIO
   =================================== */

.seccion-directorio {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.seccion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.seccion-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.seccion-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

/* ===================================
   GRID DE CONTACTOS
   =================================== */

.contactos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.contacto-card {
    background-color: var(--light-color);
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    position: relative;
}

.contacto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.contacto-icon {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contacto-info {
    flex: 1;
}

.contacto-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.contacto-info p {
    color: var(--gray-dark);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.telefono-badge {
    display: inline-block;
    background-color: var(--gray-light);
    color: var(--gray-dark);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
}

.telefono-badge:hover {
    background-color: #C9A24D;
    color: white;
}

/* ===================================
   TABLA DE CORREOS
   =================================== */

.tabla-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.tabla-correos {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tabla-correos thead {
    background: linear-gradient(135deg, #7F1734 0%, #691B32 100%);
}

.tabla-correos thead th {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px;
    text-align: left;
    font-size: 0.9rem;
}

.tabla-correos tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tabla-correos tbody tr:hover {
    background: rgba(188, 149, 91, 0.08);
    transform: translateX(3px);
}

.tabla-correos tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.tabla-correos tbody tr:last-child {
    border-bottom: none;
}

.tabla-correos td {
    padding: 18px 20px;
    color: #333;
    font-size: 0.95rem;
}

.tabla-correos td:first-child {
    font-weight: 600;
    color: #7F1734;
}

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

@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .seccion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .seccion-header h2 {
        font-size: 1.5rem;
    }
    
    .seccion-directorio {
        padding: 25px;
    }
    
    .contactos-grid {
        grid-template-columns: 1fr;
    }
    
    .tabla-correos thead th,
    .tabla-correos td {
        padding: 14px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 40px 0 30px;
    }
    
    .page-banner h1 {
        font-size: 1.6rem;
    }
    
    .seccion-header i {
        font-size: 2rem;
    }
    
    .seccion-header h3 {
        font-size: 1.5rem;
    }
    
    .contacto-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contacto-icon {
        width: 70px;
        height: 70px;
    }
}

/* ===================================
   ANIMACIONES
   =================================== */

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

.seccion-directorio {
    animation: fadeInUp 0.6s ease;
}

/* Scroll suave para tablas en móviles */
.tabla-container {
    -webkit-overflow-scrolling: touch;
}/* ===================================
   ESTILOS PÁGINA DE OBRAS PÚBLICAS
   =================================== */

/* Banner de página interna */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-color);
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-banner h1 i {
    color: var(--secondary-color);
    margin-right: 15px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* ===================================
   ESTADÍSTICAS
   =================================== */

.estadisticas-section {
    background: linear-gradient(135deg, var(--gray-light) 0%, #e9ecef 100%);
    padding: 60px 0;
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.stat-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-card.localidades::before {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.stat-card.realizadas::before {
    background: linear-gradient(180deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card.planeadas::before {
    background: linear-gradient(180deg, #fa709a 0%, #fee140 100%);
}

.stat-card.inversion::before {
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--light-color);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.stat-card.localidades .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.realizadas .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card.planeadas .stat-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-card.inversion .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 5px 0;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-detail {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* ===================================
   FILTRO DE LOCALIDADES Y BÚSQUEDA
   =================================== */

.filter-section {
    background-color: var(--light-color);
    padding: 30px 0;
    border-bottom: 2px solid var(--gray-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group,
.search-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label i {
    font-size: 1.2rem;
}

.select-wrapper {
    position: relative;
    min-width: 300px;
}

.filter-select {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--gray-medium);
    border-radius: 50px;
    background-color: var(--gray-light);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    outline: none;
}

.filter-select:hover {
    border-color: var(--primary-color);
    background-color: var(--light-color);
}

.filter-select:focus {
    border-color: var(--primary-color);
    background-color: var(--light-color);
    box-shadow: 0 0 0 3px rgba(127, 23, 52, 0.1);
}

.select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    font-size: 1rem;
}

.filter-select optgroup {
    font-weight: 700;
    color: var(--primary-color);
    font-style: normal;
    padding: 10px 0;
}

.filter-select option {
    padding: 10px;
    font-weight: 500;
}

/* Búsqueda */
.search-box {
    min-width: 350px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--gray-light);
    border-radius: 50px;
    padding: 5px 5px 5px 25px;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-medium);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    background-color: var(--light-color);
    box-shadow: 0 0 0 3px rgba(127, 23, 52, 0.1);
}

.search-box i.fa-search {
    color: var(--gray-dark);
    font-size: 1.2rem;
    margin-right: 15px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 1rem;
    outline: none;
    color: var(--dark-color);
}

.search-box input::placeholder {
    color: var(--gray-dark);
}

.btn-clear {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear:hover {
    background-color: var(--primary-dark);
    transform: rotate(90deg);
}

/* ===================================
   SECCIÓN DE OBRAS
   =================================== */

.obras-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

/* ===================================
   TARJETAS DE OBRAS
   =================================== */

.obra-card {
    background-color: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--gray-light);
}

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

/* ===================================
   SLIDER ANTES/DESPUÉS
   =================================== */

.obra-slider {
    position: relative;
    height: 350px;
    overflow: hidden;
    background-color: var(--gray-light);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit:fill;
    display: block;
}

.slider-image.after {
    clip-path: inset(0 50% 0 0);
}

.slider-label {
    position: absolute;
    bottom: 15px;
    padding: 8px 20px;
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--light-color);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.slider-image.before .slider-label {
    left: 15px;
}

.slider-image.after .slider-label {
    right: 15px;
}

.slider-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.slider-divider::before,
.slider-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-divider::before {
    top: 50%;
    transform: translate(-50%, -50%);
}

.slider-divider::after {
    display: none;
}

.slider-control {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 300px;
    height: 8px;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    z-index: 10;
}

.slider-control::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: 3px solid var(--light-color);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.slider-control::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-control::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.slider-control::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: 3px solid var(--light-color);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.slider-control::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.slider-control::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/* ===================================
   CONTENIDO DE OBRA
   =================================== */

.obra-content {
    padding: 30px;
}

.obra-titulo {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.obra-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.obra-status,
.obra-localidad {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.obra-status.completa {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.obra-status.completa i {
    color: #28a745;
}

.obra-status.en-proceso {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.obra-status.en-proceso i {
    color: #ffc107;
}

.obra-localidad {
    background-color: #e7f1ff;
    color: #004085;
    border: 2px solid #007bff;
}

.obra-localidad i {
    color: #007bff;
}

.obra-presupuesto {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.obra-presupuesto i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.obra-presupuesto span {
    font-size: 1rem;
    color: var(--gray-dark);
}

.obra-presupuesto strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.obra-descripcion {
    color: var(--gray-dark);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   NO RESULTADOS
   =================================== */

.no-resultados {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-dark);
}

.no-resultados i {
    font-size: 5rem;
    color: var(--gray-medium);
    margin-bottom: 20px;
}

.no-resultados h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.no-resultados p {
    font-size: 1.1rem;
}

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

@media (max-width: 992px) {
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .estadisticas-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .stat-card {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

    .obras-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .filter-group,
    .search-group {
        width: 100%;
        align-items: stretch;
    }

    .select-wrapper {
        min-width: 100%;
    }

    .search-box {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 40px 0 30px;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .estadisticas-section {
        padding: 50px 0;
    }
    
    .estadisticas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }

    .filter-section {
        padding: 20px 0;
    }

    .filter-wrapper {
        gap: 15px;
    }

    .filter-label {
        font-size: 0.95rem;
    }

    .search-box {
        padding: 3px 3px 3px 20px;
    }

    .search-box i.fa-search {
        font-size: 1rem;
        margin-right: 10px;
    }

    .search-box input {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    .btn-clear {
        width: 35px;
        height: 35px;
    }

    .obras-section {
        padding: 60px 0;
    }

    .obras-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .obra-slider {
        height: 250px;
    }

    .obra-content {
        padding: 25px;
    }

    .obra-titulo {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 1.5rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .estadisticas-grid {
        gap: 15px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stat-detail {
        font-size: 0.8rem;
    }

    .filter-label {
        font-size: 0.95rem;
    }

    .filter-select {
        padding: 10px 40px 10px 15px;
        font-size: 0.9rem;
    }

    .obra-slider {
        height: 220px;
    }

    .slider-label {
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    .slider-control {
        height: 6px;
        width: 90%;
    }

    .slider-control::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    .slider-control::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }

    .obra-content {
        padding: 20px;
    }

    .obra-titulo {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .obra-meta {
        gap: 10px;
    }

    .obra-status,
    .obra-localidad {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .obra-presupuesto {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .obra-presupuesto i {
        font-size: 1.3rem;
    }

    .obra-presupuesto span {
        font-size: 0.9rem;
    }

    .obra-presupuesto strong {
        font-size: 1.1rem;
    }

    .obra-descripcion {
        font-size: 0.9rem;
    }

    .no-resultados i {
        font-size: 4rem;
    }

    .no-resultados h3 {
        font-size: 1.5rem;
    }

    .no-resultados p {
        font-size: 1rem;
    }
}

/* Estilos mejorados para la página de Gaceta Municipal */
/* Título principal de la página */
.page-title {
    text-align: center;
    padding: 3rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title h1 {
    color: #691B32;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #7F1734, #BC955B);
    border-radius: 2px;
}

.page-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* Barra de búsqueda */
.search-bar {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-bar input:focus {
    border-color: #BC955B;
    box-shadow: 0 4px 16px rgba(188, 149, 91, 0.2);
}

.search-bar input::placeholder {
    color: #999;
}

/* Contenedor de tablas mejorado */
.table-container {
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.table-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease;
}

/* Encabezado de sección */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #BC955B;
}

.section-header i {
    font-size: 2rem;
    color: #7F1734;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header h2 {
    color: #691B32;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.section-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #BC955B;
}

/* Estilos para la tabla */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

thead {
    background: linear-gradient(135deg, #7F1734 0%, #691B32 100%);
    position: relative;
}

thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #BC955B, #7F1734, #BC955B);
}

thead th {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 20px;
    text-align: left;
    position: relative;
    font-size: 0.9rem;
}

thead th:first-child {
    width: 80px;
    text-align: center;
}

thead th:last-child {
    width: 150px;
    text-align: center;
}

thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(188, 149, 91, 0.08) 0%, rgba(127, 23, 52, 0.05) 100%);
    transform: translateX(5px);
    box-shadow: -5px 0 15px rgba(188, 149, 91, 0.15);
}

tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

tbody tr:nth-child(even):hover {
    background: linear-gradient(90deg, rgba(188, 149, 91, 0.12) 0%, rgba(127, 23, 52, 0.08) 100%);
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 18px 20px;
    color: #333;
    font-size: 0.95rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

td:first-child {
    font-weight: 700;
    color: #7F1734;
    text-align: center;
    font-size: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

td:nth-child(2) {
    font-weight: 500;
    color: #2c3e50;
}

td:last-child {
    border-right: none;
    text-align: center;
}

/* Estilos mejorados para los enlaces PDF */
.pdf-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(188, 149, 91, 0.2);
    position: relative;
    overflow: hidden;
}

.pdf-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(188, 149, 91, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.pdf-link:hover::before {
    width: 100px;
    height: 100px;
}

.pdf-link:hover {
    background: linear-gradient(135deg, #BC955B 0%, #7F1734 100%);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(188, 149, 91, 0.4);
    border-color: #BC955B;
}

.pdf-link img {
    width: 28px;
    height: 28px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.pdf-link:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Contador de documentos */
.document-count {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: inline-block;
    float: right;
}

.document-count strong {
    color: #7F1734;
    font-weight: 700;
}

/* Estado de búsqueda */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    color: #BC955B;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Botón de limpiar búsqueda */
.clear-search {
    display: none;
    margin: 1rem auto;
    padding: 0.75rem 2rem;
    background: #7F1734;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(127, 23, 52, 0.3);
}

.clear-search:hover {
    background: #691B32;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(127, 23, 52, 0.4);
}

.clear-search.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-title p {
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .table-container {
        overflow-x: auto;
        margin: 2rem auto;
    }
    
    table {
        min-width: 600px;
        border-radius: 12px;
    }
    
    thead th,
    td {
        padding: 14px 12px;
        font-size: 0.9rem;
    }
    
    .document-count {
        float: none;
        display: block;
        text-align: center;
        margin: 1rem auto;
    }
}

@media (max-width: 576px) {
    .page-title {
        padding: 2rem 1rem 1rem;
    }
    
    .page-title h1 {
        font-size: 1.6rem;
    }
    
    .section-header i {
        font-size: 1.5rem;
        padding: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    table {
        min-width: 500px;
    }
    
    thead th,
    td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .pdf-link {
        padding: 8px;
    }
    
    .pdf-link img {
        width: 24px;
        height: 24px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

tbody tr {
    animation: slideInRight 0.4s ease;
}

tbody tr:nth-child(1) { animation-delay: 0.05s; }
tbody tr:nth-child(2) { animation-delay: 0.1s; }
tbody tr:nth-child(3) { animation-delay: 0.15s; }
tbody tr:nth-child(4) { animation-delay: 0.2s; }
tbody tr:nth-child(5) { animation-delay: 0.25s; }
tbody tr:nth-child(6) { animation-delay: 0.3s; }
tbody tr:nth-child(7) { animation-delay: 0.35s; }
tbody tr:nth-child(8) { animation-delay: 0.4s; }

/* Scroll suave para la tabla en móviles */
.table-container {
    -webkit-overflow-scrolling: touch;
}

/* Mejora de accesibilidad */
.pdf-link:focus {
    outline: 3px solid #BC955B;
    outline-offset: 3px;
}

/* Print styles */
@media print {
    .search-bar,
    .section-header i {
        display: none;
    }
    
    table {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    tbody tr:hover {
        background: none;
        transform: none;
    }
}

/* ===== SECTION CHOOSER ===== */
.obras-chooser {
    padding: 80px 20px;
    min-height: calc(100vh - 280px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chooser-intro {
    text-align: center;
    margin-bottom: 60px;
}

.chooser-intro h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.chooser-intro p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.chooser-cards {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    width: 100%;
}

.chooser-card {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    padding: 48px 36px;
    box-shadow: 0 8px 40px rgba(127, 23, 52, 0.10);
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.chooser-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 18px;
}

.chooser-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(127, 23, 52, 0.18);
}

.chooser-card:hover::before {
    opacity: 1;
}

.chooser-card:hover .card-icon,
.chooser-card:hover .card-title,
.chooser-card:hover .card-desc,
.chooser-card:hover .card-cta {
    color: #fff;
    position: relative;
    z-index: 1;
}

.chooser-card:hover .card-cta {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.card-icon {
    font-size: 3.2rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    transition: color 0.35s ease;
}

.card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 14px;
    transition: color 0.35s ease;
}

.card-desc {
    font-size: 0.97rem;
    color: var(--gray-dark);
    line-height: 1.65;
    margin-bottom: 30px;
    transition: color 0.35s ease;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.chooser-card:hover .card-badge {
    background: rgba(201, 162, 77, 0.85);
    z-index: 2;
}

@media (max-width: 640px) {
    .chooser-cards {
        flex-direction: column;
        align-items: center;
    }

    .chooser-intro h2 {
        font-size: 1.5rem;
    }
}