2/*
Theme Name: Theme Gobierno Custom
Theme URI: https://choix.gob.mx
Description: Tema hijo personalizado para el sitio del Gobierno de Choix
Author: Ayuntamiento de Choix
Author URI: https://choix.gob.mx
Template: publisher
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-gobierno-custom
*/

/* Header: redes sociales a la izquierda, logo centrado, buscador a la derecha */
.header-inner .container .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-inner .redes-sociales-logo {
    order: 1;
    margin: 0;
    justify-content: flex-start;
}

.header-inner .logo-col {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-inner .buscador-logo {
    order: 3;
    margin: 0;
    justify-content: flex-end;
}
/* Contenedor principal de la franja del logo: distribuye redes, logo y buscador */
.franja-logo-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box; 
}

.franja-logo-grid .redes-sociales-logo {
    justify-content: flex-start;
    margin: 0;
}

.franja-logo-grid .logo-col {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.franja-logo-grid .buscador-logo {
    justify-content: flex-end;
    margin: 0;
}

/* Sección de Noticias Moderna y Elegante */
.noticias-personalizadas {
    background: #FDFDFE;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(30, 41, 59, 0.10), 0 1.5px 6px rgba(30, 41, 59, 0.08);
    padding: 32px 24px;
    margin-bottom: 32px;
    transition: box-shadow 0.3s;
}

.noticias-personalizadas:hover {
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.16), 0 3px 12px rgba(30, 41, 59, 0.12);
}

.noticias-personalizadas h2, .noticias-personalizadas h3 {
    color: #1e293b;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.noticias-personalizadas p {
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.noticias-personalizadas a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.noticias-personalizadas a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.noticias-personalizadas .wpb_button, .noticias-personalizadas button, .noticias-personalizadas input[type="submit"] {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.noticias-personalizadas .wpb_button:hover, .noticias-personalizadas button:hover, .noticias-personalizadas input[type="submit"]:hover {
    background: #1e40af;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

/* Logo centrado */
.header-inner {
    position: relative !important;
}

.header-inner .logo-col {
    text-align: center !important;
}

#site-branding {
    display: inline-block !important;
    float: none !important;
}

#site-logo {
    max-height: 150px !important;
}

/* Redes sociales al lado del logo */
.redes-sociales-logo {
    position: absolute !important;
    left: 2% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex;
    gap: 15px;
    z-index: 999 !important;
}

.redes-sociales-logo a {
    color: #0066cc;
    font-size: 24px;
    transition: color 0.3s;
    cursor: pointer;
}

.redes-sociales-logo a:hover {
    color: #003d7a;
}

/* Buscador al lado del logo */
.buscador-logo {
    position: absolute !important;
    right: 2% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999 !important;
}

.buscador-logo form {
    display: flex;
    gap: 5px;
}

.buscador-logo input[type="search"] {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 200px;
    cursor: text;
}

.buscador-logo button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.buscador-logo button:hover {
    background: #003d7a;
}

/* Responsive */
@media (max-width: 768px) {
    .redes-sociales-logo,
    .buscador-logo {
        position: static !important;
        transform: none !important;
        justify-content: center !important;
        margin: 10px 0 !important;
    }
}


.listing-blog-1 {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(30, 41, 59, 0.10), 0 1.5px 6px rgba(30, 41, 59, 0.08);
    padding: 32px 24px;
    margin-bottom: 32px;
    transition: box-shadow 0.3s;
}

/* Separador ondulado entre posts SOLO en sección de noticias */
.listing-blog-1 .listing-item:not(:last-child),
.bs-listing.listing-blog-1 article:not(:last-child),
.bs-blog-listing article:not(:last-child),
.content-column article.post:not(:last-child) {
    position: relative;
    padding-bottom: 35px !important;
    margin-bottom: 35px !important;
}

.listing-blog-1 .listing-item:not(:last-child)::after,
.bs-listing.listing-blog-1 article:not(:last-child)::after,
.bs-blog-listing article:not(:last-child)::after,
.content-column article.post:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: rgba(96, 165, 250, 0.5) !important;
    border-radius: 50% !important;
    transform: scaleY(0.3) !important;
    box-shadow: 0 1px 3px rgba(96, 165, 250, 0.2) !important;
}
.listing-blog-1:hover {
  box-shadow: 0 8px 32px rgba(30, 41, 59, 0.16), 0 3px 12px rgba(30, 41, 59, 0.12);
}
.listing-blog-1 h2, .listing-blog-1 h3 {
  color: #1e293b;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.listing-blog-1 p {
  color: #334155;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.listing-blog-1 a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.listing-blog-1 a:hover {
  color: #1e40af;
  text-decoration: underline;
}


.section-heading.sh-t3.sh-s1.main-term-6 {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 32px;
    /* Puedes ajustar el espaciado según tu diseño */
}

.section-heading.sh-t3.sh-s1.main-term-6::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(90deg, #1ecb6b 0%, #1ea7cb 20%, #6b1ecb 50%, #cb1eae 70%, #ff9800 100%);
    z-index: 1;
}


/* =============================================
   GALERIA DE VIDEOS YOUTUBE - SHORTCODE
   ============================================= */

.videos-youtube-section {
    margin: 40px 0 60px 0;
    padding: 0 20px;
}

.videos-youtube-section .videos-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.videos-youtube-section .videos-section-title {
    font-size: 36px;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.videos-youtube-section .videos-section-title svg {
    flex-shrink: 0;
}

.videos-youtube-section .videos-section-subtitle {
    font-size: 18px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

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

.videos-player-wrapper {
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(30, 41, 59, 0.10), 0 1.5px 6px rgba(30, 41, 59, 0.08);
    overflow: hidden;
}

.player-layout {
    display: flex;
    gap: 0;
}

.player-main {
    flex: 1;
    min-width: 0;
}

.player-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
}

.player-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.no-videos {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    text-align: center;
}

.no-videos svg {
    opacity: 0.5;
}

.no-videos p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.no-videos-list {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}

.player-sidebar {
    width: 350px;
    flex-shrink: 0;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    max-height: 800px;
}

.playlist-scroll {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f8fafc;
}

.playlist-scroll::-webkit-scrollbar {
    width: 8px;
}

.playlist-scroll::-webkit-scrollbar-track {
    background: #f8fafc;
}

.playlist-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.playlist-scroll::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.playlist-video {
    display: flex;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    min-height: 90px;
    align-items: center;
}

.playlist-video:hover {
    background: #f1f5f9;
}

.playlist-video.active {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    border-left: 4px solid #2563eb;
}

.playlist-number {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
}

.playlist-thumb {
    position: relative;
    width: 110px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.playlist-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

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

.playlist-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-video:hover .playlist-title {
    color: #2563eb;
}

.playlist-video.active .playlist-title {
    color: #2563eb;
}

/* Responsive Videos - Tablets */
@media (max-width: 1024px) {
    .videos-youtube-section {
        padding: 0 15px;
    }

    .player-sidebar {
        width: 300px;
    }

    .playlist-thumb {
        width: 100px;
        height: 56px;
    }
}

/* Responsive Videos - Movil */
@media (max-width: 768px) {
    .videos-youtube-section {
        padding: 0 10px;
        margin: 30px 0 40px 0;
    }

    .videos-youtube-section .videos-section-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .videos-youtube-section .videos-section-title svg {
        width: 28px;
        height: 28px;
    }

    .videos-youtube-section .videos-section-subtitle {
        font-size: 16px;
    }

    .videos-player-wrapper {
        border-radius: 12px;
    }

    .player-layout {
        flex-direction: column;
    }

    .player-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        max-height: 350px;
    }

    .playlist-video {
        padding: 10px;
    }

    .playlist-thumb {
        width: 90px;
        height: 50px;
    }

    .playlist-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .playlist-number {
        font-size: 12px;
        min-width: 20px;
    }
}


/* =============================================
   GALERIA DE VIDEOS HORIZONTAL + MODAL
   ============================================= */

.videos-horizontal-section {
    margin: 40px 0;
    padding: 0 20px;
}

.videos-h-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(30, 41, 59, 0.10);
    overflow: hidden;
}

.videos-h-header {
    text-align: center;
    padding: 24px 24px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.videos-h-title {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.videos-h-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Miniaturas horizontales */
.videos-h-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
}

.videos-h-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(37,99,235,0.3);
    color: white;
    transition: all 0.2s;
}

.videos-h-nav:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.videos-h-thumbs {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.videos-h-thumbs::-webkit-scrollbar {
    display: none;
}

.videos-h-item {
    flex-shrink: 0;
    width: 220px;
    cursor: pointer;
    transition: transform 0.2s;
}

.videos-h-item:hover {
    transform: translateY(-6px);
}

.videos-h-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.videos-h-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.videos-h-item:hover .videos-h-thumb img {
    transform: scale(1.1);
}

.videos-h-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.25s;
}

.videos-h-play svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.2s;
}

.videos-h-item:hover .videos-h-play {
    opacity: 1;
}

.videos-h-item:hover .videos-h-play svg {
    transform: scale(1.15);
}

.videos-h-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.videos-h-item-title {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.videos-h-item:hover .videos-h-item-title {
    color: #2563eb;
}

/* ===== MODAL VIDEO ===== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1) translateY(0);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.video-modal-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

.video-modal-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-title {
    margin: 16px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .videos-horizontal-section {
        padding: 0 10px;
        margin: 30px 0;
    }

    .videos-h-header {
        padding: 18px 16px 12px;
    }

    .videos-h-title {
        font-size: 20px;
    }

    .videos-h-title svg {
        width: 24px;
        height: 24px;
    }

    .videos-h-thumbs-wrapper {
        padding: 14px;
        gap: 8px;
    }

    .videos-h-nav {
        width: 36px;
        height: 36px;
    }

    .videos-h-thumbs {
        gap: 12px;
    }

    .videos-h-item {
        width: 160px;
    }

    .videos-h-item-title {
        font-size: 12px;
        margin-top: 8px;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -45px;
        width: 38px;
        height: 38px;
    }

    .video-modal-title {
        font-size: 15px;
    }
}

/* =============================================
   GRID DE CATEGORIAS
   ============================================= */

.categorias-grid-section {
    margin: 50px 0;
    padding: 0 20px;
}

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

.categorias-header {
    text-align: center;
    margin-bottom: 35px;
}

.categorias-titulo {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px 0;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.categorias-subtitulo {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.categorias-grid {
    display: grid;
    gap: 20px;
}

.categorias-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.categorias-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.categorias-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.categoria-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid var(--cat-color);
}

.categoria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.categoria-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 70%, white));
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

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

.categoria-nombre {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categoria-card:hover .categoria-nombre {
    color: var(--cat-color);
}

.categoria-count {
    font-size: 13px;
    color: #94a3b8;
}

.categoria-arrow {
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.categoria-card:hover .categoria-arrow {
    color: var(--cat-color);
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .categorias-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .categorias-grid.cols-4,
    .categorias-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

    .categoria-card {
        padding: 16px;
        gap: 12px;
    }

    .categoria-icon {
        width: 48px;
        height: 48px;
    }

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

    .categoria-nombre {
        font-size: 14px;
    }

    .categoria-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .categorias-grid.cols-4,
    .categorias-grid.cols-3,
    .categorias-grid.cols-2 { grid-template-columns: 1fr; }
}


/* =============================================
   CONTADOR DE VISITAS
   ============================================= */

.choix-visitas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 20px;
    font-size: 13px;
    color: #475569;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.choix-visitas svg {
    color: #2563eb;
}

.choix-visitas strong {
    color: #1e293b;
    font-weight: 700;
}

/* Visitas inline - junto a la fecha (mismo tamaño) */
.choix-visitas-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 5px;
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
    font-family: inherit;
    vertical-align: baseline;
    position: relative;
    top: -1px;
}

.choix-visitas-inline svg {
    width: 13px;
    height: 13px;
    vertical-align: middle;
    opacity: 0.7;
}

/* Estilo alternativo - mas compacto */
.choix-visitas.compacto {
    padding: 4px 8px;
    font-size: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Visitas en titulo */
.visitas-titulo {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    margin-left: 8px;
}

/* =============================================
   SECCION DE TRAMITES (COMPACTO 4 COLUMNAS)
   ============================================= */

.tramites-section {
    margin: 50px 0;
    padding: 0 20px;
}

.tramites-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

.tramites-header {
    text-align: center;
    margin-bottom: 25px;
}

.tramites-titulo {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.tramites-subtitulo {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Grid compacto de 4 columnas */
.tramites-grid-compacto {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Item de trámite compacto */
.tramite-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.tramite-item:hover {
    background: white;
    border-color: var(--tram-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.tramite-item .tramite-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--tram-color);
    border-radius: 8px;
    color: white;
    flex-shrink: 0;
}

.tramite-item .tramite-nombre {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.tramite-item:hover .tramite-nombre {
    color: var(--tram-color);
}

.tramite-item .tramite-arrow {
    color: #cbd5e1;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.tramite-item:hover .tramite-arrow {
    color: var(--tram-color);
    transform: translate(2px, -2px);
}

/* Footer con botón ver todos */
.tramites-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.tramites-ver-todos,
.tramites-ver-todos:link,
.tramites-ver-todos:visited,
.tramites-ver-todos:active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #233E8D !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tramites-ver-todos:hover {
    background: #1a2f6b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35,62,141,0.3);
    color: #fff !important;
}

.tramites-ver-todos svg {
    transition: transform 0.2s ease;
}

.tramites-ver-todos:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .tramites-grid-compacto {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tramites-section {
        padding: 0 15px;
        margin: 40px 0;
    }

    .tramites-container {
        padding: 20px;
    }

    .tramites-titulo {
        font-size: 22px;
    }

    .tramites-grid-compacto {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tramite-item {
        padding: 10px 12px;
    }

    .tramite-item .tramite-icono {
        width: 34px;
        height: 34px;
    }

    .tramite-item .tramite-icono svg {
        width: 18px;
        height: 18px;
    }

    .tramite-item .tramite-nombre {
        font-size: 12px;
    }

    .tramite-item .tramite-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .tramites-grid-compacto {
        grid-template-columns: 1fr;
    }
}

/* Sobrescribir estilos del tema Publisher en páginas con shortcode */
.page-content .tramites-section,
.entry-content .tramites-section,
article .tramites-section {
    margin: 50px 0 !important;
    padding: 0 !important;
}

.page-content .tramites-container,
.entry-content .tramites-container,
article .tramites-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    padding: 30px !important;
}

.page-content .tramites-header,
.entry-content .tramites-header,
article .tramites-header {
    text-align: center !important;
    margin-bottom: 25px !important;
}

.page-content .tramites-grid-compacto,
.entry-content .tramites-grid-compacto,
article .tramites-grid-compacto {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-content .tramite-item,
.entry-content .tramite-item,
article .tramite-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    border: 1px solid transparent !important;
    list-style: none !important;
}

.page-content .tramite-item:hover,
.entry-content .tramite-item:hover,
article .tramite-item:hover {
    background: white !important;
    border-color: var(--tram-color) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
}

.page-content .tramite-item .tramite-icono,
.entry-content .tramite-item .tramite-icono,
article .tramite-item .tramite-icono {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: var(--tram-color) !important;
    border-radius: 8px !important;
    color: white !important;
    flex-shrink: 0 !important;
}

.page-content .tramite-item .tramite-nombre,
.entry-content .tramite-item .tramite-nombre,
article .tramite-item .tramite-nombre {
    flex: 1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.page-content .tramite-item:hover .tramite-nombre,
.entry-content .tramite-item:hover .tramite-nombre,
article .tramite-item:hover .tramite-nombre {
    color: var(--tram-color) !important;
}

/* =============================================
   SECCION DE TRANSPARENCIA (COMPACTO 4 COLUMNAS)
   ============================================= */

.transparencia-section {
    margin: 50px 0;
    padding: 0 20px;
}

.transparencia-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

.transparencia-header {
    text-align: center;
    margin-bottom: 25px;
}

.transparencia-titulo {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.transparencia-subtitulo {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Grid compacto de 4 columnas */
.transparencia-grid-compacto {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Item de transparencia compacto */
.transparencia-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.transparencia-item:hover {
    background: white;
    border-color: var(--trans-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.transparencia-item .transparencia-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--trans-color);
    border-radius: 8px;
    color: white;
    flex-shrink: 0;
}

.transparencia-item .transparencia-nombre {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.transparencia-item:hover .transparencia-nombre {
    color: var(--trans-color);
}

.transparencia-item .transparencia-arrow {
    color: #cbd5e1;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.transparencia-item:hover .transparencia-arrow {
    color: var(--trans-color);
    transform: translate(2px, -2px);
}

/* Footer con botón ver todos */
.transparencia-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.transparencia-ver-todos,
.transparencia-ver-todos:link,
.transparencia-ver-todos:visited,
.transparencia-ver-todos:active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0891b2 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.transparencia-ver-todos:hover {
    background: #0e7490 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8,145,178,0.3);
    color: #fff !important;
}

.transparencia-ver-todos svg {
    transition: transform 0.2s ease;
}

.transparencia-ver-todos:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .transparencia-grid-compacto {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .transparencia-section {
        padding: 0 15px;
        margin: 40px 0;
    }

    .transparencia-container {
        padding: 20px;
    }

    .transparencia-titulo {
        font-size: 22px;
    }

    .transparencia-grid-compacto {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .transparencia-item {
        padding: 10px 12px;
    }

    .transparencia-item .transparencia-icono {
        width: 34px;
        height: 34px;
    }

    .transparencia-item .transparencia-icono svg {
        width: 18px;
        height: 18px;
    }

    .transparencia-item .transparencia-nombre {
        font-size: 12px;
    }

    .transparencia-item .transparencia-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .transparencia-grid-compacto {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   SECCION ULTIMAS NOTICIAS - AJAX
   ============================================= */

.ultimas-noticias-section {
    margin: 50px 0;
    padding: 0 20px;
}

/* Barra decorativa superior estilo choix.gob.mx */
.noticias-barra-top {
    height: 6px;
    background: linear-gradient(90deg,
        #1ecb6b 0%,
        #1ea7cb 20%,
        #233e8d 40%,
        #6b1ecb 60%,
        #cb1eae 80%,
        #ff9800 100%
    );
    border-radius: 30px 30px 0 0;
    max-width: 1200px;
    margin: 0 auto;
}

.noticias-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0 0 30px 30px;
    box-shadow:
        0 10px 40px rgba(30, 41, 59, 0.12),
        0 4px 12px rgba(30, 41, 59, 0.08);
    padding: 0 0 35px 0;
    position: relative;
    overflow: hidden;
}

/* Header de la sección */
.noticias-header {
    text-align: center;
    padding: 35px 30px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.noticias-titulo {
    font-size: 32px;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    letter-spacing: -0.5px;
}

.noticias-titulo svg {
    color: #233e8d;
    flex-shrink: 0;
}

.noticias-subtitulo {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Grid de noticias */
.noticias-grid {
    display: grid;
    gap: 25px;
    padding: 30px;
    transition: opacity 0.3s ease;
}

.noticias-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.noticias-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.noticias-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Tarjeta de noticia */
.noticia-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.noticia-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Imagen de la noticia */
.noticia-imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.noticia-imagen a {
    display: block;
    width: 100%;
    height: 100%;
}

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.noticia-card:hover .noticia-imagen img {
    transform: scale(1.1);
}

.noticia-imagen-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    color: #94a3b8;
}

/* Etiqueta de categoría */
.noticia-categoria {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Contenido de la noticia */
.noticia-contenido {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Metadatos */
.noticia-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.noticia-fecha,
.noticia-visitas {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
}

.noticia-fecha svg,
.noticia-visitas svg {
    opacity: 0.7;
}

/* Título */
.noticia-titulo {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #1e293b;
}

.noticia-titulo a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-card:hover .noticia-titulo a {
    color: var(--card-accent, #233e8d);
}

/* Extracto */
.noticia-extracto {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botón leer más */
.noticia-leer-mas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--card-accent, #233e8d);
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: auto;
}

.noticia-leer-mas svg {
    transition: transform 0.25s ease;
}

.noticia-leer-mas:hover {
    color: #1e40af;
}

.noticia-leer-mas:hover svg {
    transform: translateX(5px);
}

/* Sin resultados */
.noticias-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.noticias-no-results svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.noticias-no-results p {
    font-size: 16px;
    margin: 0;
}

/* Navegación */
.noticias-navegacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 30px;
    margin-top: 10px;
}

.noticias-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #233e8d;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 62, 141, 0.3);
}

.noticias-nav-btn:hover:not(:disabled) {
    background: #1a2f6b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 62, 141, 0.4);
}

.noticias-nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.noticias-nav-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.noticias-nav-btn svg {
    transition: transform 0.25s ease;
}

.noticias-prev:hover:not(:disabled) svg {
    transform: translateX(-3px);
}

.noticias-next:hover:not(:disabled) svg {
    transform: translateX(3px);
}

/* Paginación */
.noticias-paginacion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f1f5f9;
    border-radius: 30px;
    font-size: 14px;
    color: #64748b;
}

.noticias-pagina-actual {
    font-weight: 700;
    color: #233e8d;
    font-size: 18px;
}

.noticias-pagina-total {
    font-weight: 600;
    color: #475569;
}

/* Estado de carga */
.noticias-loading {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    z-index: 10;
}

.noticias-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e2e8f0;
    border-top-color: #233e8d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Animaciones de entrada/salida */
.noticia-card.noticia-entrando {
    animation: noticiaEntrar 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.noticia-card.noticia-saliendo {
    animation: noticiaSalir 0.3s ease forwards;
}

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

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

/* Animación escalonada para las tarjetas */
.noticias-grid .noticia-card:nth-child(1) { animation-delay: 0ms; }
.noticias-grid .noticia-card:nth-child(2) { animation-delay: 50ms; }
.noticias-grid .noticia-card:nth-child(3) { animation-delay: 100ms; }
.noticias-grid .noticia-card:nth-child(4) { animation-delay: 150ms; }
.noticias-grid .noticia-card:nth-child(5) { animation-delay: 200ms; }
.noticias-grid .noticia-card:nth-child(6) { animation-delay: 250ms; }

/* Responsive - Tablets */
@media (max-width: 1024px) {
    .noticias-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
    .noticias-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

    .noticias-titulo {
        font-size: 28px;
    }
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .ultimas-noticias-section {
        padding: 0 15px;
        margin: 40px 0;
    }

    .noticias-barra-top {
        height: 5px;
        border-radius: 20px 20px 0 0;
    }

    .noticias-wrapper {
        border-radius: 0 0 20px 20px;
    }

    .noticias-header {
        padding: 25px 20px;
    }

    .noticias-titulo {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .noticias-titulo svg {
        width: 28px;
        height: 28px;
    }

    .noticias-subtitulo {
        font-size: 14px;
    }

    .noticias-grid {
        padding: 20px;
        gap: 20px;
    }

    .noticias-grid.cols-4,
    .noticias-grid.cols-3,
    .noticias-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .noticia-card:hover {
        transform: translateY(-6px);
    }

    .noticia-contenido {
        padding: 16px;
    }

    .noticia-titulo {
        font-size: 16px;
    }

    .noticias-navegacion {
        flex-wrap: wrap;
        gap: 12px;
        padding: 0 20px;
    }

    .noticias-nav-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .noticias-nav-btn span {
        display: none;
    }

    .noticias-paginacion {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }

    .noticias-loading {
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .noticia-meta {
        gap: 10px;
    }

    .noticia-fecha,
    .noticia-visitas {
        font-size: 11px;
    }

    .noticia-titulo {
        font-size: 15px;
    }

    .noticia-extracto {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

/* =============================================
   SECCION ULTIMAS NOTICIAS VERTICAL - AJAX
   ============================================= */

.noticias-vertical-section {
    margin: 40px 0;
    padding: 0 20px;
}

/* Barra decorativa superior */
.noticias-v-barra-top {
    height: 6px;
    background: linear-gradient(90deg,
        #1ecb6b 0%,
        #1ea7cb 20%,
        #233e8d 40%,
        #6b1ecb 60%,
        #cb1eae 80%,
        #ff9800 100%
    );
    border-radius: 30px 30px 0 0;
    max-width: 1200px;
    margin: 0 auto;
}

.noticias-v-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0 0 30px 30px;
    box-shadow:
        0 10px 40px rgba(30, 41, 59, 0.12),
        0 4px 12px rgba(30, 41, 59, 0.08);
    padding: 0 0 25px 0;
    position: relative;
}

/* Header */
.noticias-v-header {
    padding: 30px 35px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.noticias-v-titulo {
    font-size: 28px;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    letter-spacing: -0.5px;
}

.noticias-v-titulo svg {
    color: #233e8d;
    width: 28px;
    height: 28px;
}

.noticias-v-subtitulo {
    font-size: 15px;
    color: #64748b;
    margin: 8px 0 0 0;
}

/* Lista de noticias */
.noticias-v-lista {
    padding: 10px 0;
    transition: opacity 0.2s ease;
}

/* Item de noticia vertical */
.noticia-v-item {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 20px 35px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    min-height: 140px;
}

.noticia-v-item:last-child {
    border-bottom: none;
}

.noticia-v-item:hover {
    background: linear-gradient(90deg, rgba(35, 62, 141, 0.03) 0%, rgba(255,255,255,0) 100%);
    border-left: 4px solid var(--item-accent, #233e8d);
    padding-left: 31px;
}

/* Thumbnail */
.noticia-v-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    align-self: center;
}

.noticia-v-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.noticia-v-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-v-item:hover .noticia-v-thumb img {
    transform: scale(1.1);
}

/* Contenido */
.noticia-v-contenido {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 0;
}

/* Meta */
.noticia-v-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.noticia-v-categoria {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.noticia-v-fecha {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.noticia-v-fecha::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
}

/* Título */
.noticia-v-titulo-item {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.noticia-v-titulo-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-v-item:hover .noticia-v-titulo-item a {
    color: var(--item-accent, #233e8d);
}

/* Extracto */
.noticia-v-extracto {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Flecha */
.noticia-v-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #94a3b8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-self: center;
}

.noticia-v-arrow svg {
    width: 22px;
    height: 22px;
}

.noticia-v-item:hover .noticia-v-arrow {
    background: var(--item-accent, #233e8d);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(35, 62, 141, 0.3);
}

/* Sin resultados */
.noticias-v-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

.noticias-v-no-results p {
    margin: 0;
    font-size: 14px;
}

/* Navegación */
.noticias-v-navegacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 35px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 10px;
}

.noticias-v-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #233e8d;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 62, 141, 0.3);
}

.noticias-v-btn:hover:not(:disabled) {
    background: #1a2f6b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 62, 141, 0.4);
}

.noticias-v-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.noticias-v-btn svg {
    transition: transform 0.25s ease;
}

.noticias-v-prev:hover:not(:disabled) svg {
    transform: translateX(-3px);
}

.noticias-v-next:hover:not(:disabled) svg {
    transform: translateX(3px);
}

/* Paginación */
.noticias-v-paginacion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f1f5f9;
    border-radius: 30px;
    font-size: 14px;
    color: #64748b;
}

.noticias-v-actual {
    font-weight: 700;
    color: #233e8d;
    font-size: 18px;
}

/* Loading */
.noticias-v-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.noticias-v-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: #233e8d;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Animaciones */
.noticia-v-item.entrando {
    animation: vItemEntrar 0.4s ease forwards;
}

.noticia-v-item.saliendo {
    animation: vItemSalir 0.2s ease forwards;
}

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

@keyframes vItemSalir {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Animación escalonada */
.noticias-v-lista .noticia-v-item:nth-child(1) { animation-delay: 0ms; }
.noticias-v-lista .noticia-v-item:nth-child(2) { animation-delay: 50ms; }
.noticias-v-lista .noticia-v-item:nth-child(3) { animation-delay: 100ms; }
.noticias-v-lista .noticia-v-item:nth-child(4) { animation-delay: 150ms; }
.noticias-v-lista .noticia-v-item:nth-child(5) { animation-delay: 200ms; }

/* Responsive - Tablets */
@media (max-width: 1024px) {
    .noticia-v-item {
        min-height: 120px;
    }

    .noticia-v-thumb {
        width: 160px;
        height: 105px;
    }

    .noticia-v-titulo-item {
        font-size: 17px;
    }
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .noticias-vertical-section {
        padding: 0 15px;
        margin: 40px 0;
    }

    .noticias-v-barra-top {
        height: 5px;
        border-radius: 20px 20px 0 0;
    }

    .noticias-v-wrapper {
        border-radius: 0 0 20px 20px;
    }

    .noticias-v-header {
        padding: 25px 20px;
    }

    .noticias-v-titulo {
        font-size: 22px;
    }

    .noticia-v-item {
        padding: 16px 20px;
        gap: 16px;
        min-height: 100px;
    }

    .noticia-v-item:hover {
        padding-left: 16px;
        border-left: 3px solid var(--item-accent, #233e8d);
    }

    .noticia-v-thumb {
        width: 120px;
        height: 85px;
        border-radius: 10px;
    }

    .noticia-v-titulo-item {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .noticia-v-extracto {
        -webkit-line-clamp: 1;
        font-size: 13px;
    }

    .noticia-v-arrow {
        width: 40px;
        height: 40px;
    }

    .noticias-v-navegacion {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px 0;
    }

    .noticias-v-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .noticias-v-paginacion {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .noticia-v-item {
        padding: 14px 15px;
        gap: 12px;
        min-height: 90px;
    }

    .noticia-v-thumb {
        width: 100px;
        height: 70px;
        border-radius: 8px;
    }

    .noticia-v-categoria {
        font-size: 9px;
        padding: 3px 8px;
    }

    .noticia-v-fecha {
        font-size: 11px;
    }

    .noticia-v-titulo-item {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .noticia-v-extracto {
        display: none;
    }

    .noticia-v-arrow {
        display: none;
    }
}

/* =============================================
   SECCION PARAMUNICIPALES
   ============================================= */

.choix-para-section {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    box-sizing: border-box;
}

.choix-para-section *,
.choix-para-section *::before,
.choix-para-section *::after {
    box-sizing: border-box;
}

.choix-para-header {
    text-align: center;
    margin-bottom: 25px;
}

.choix-para-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    position: relative;
}

.choix-para-subtitle::before,
.choix-para-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db);
}

.choix-para-subtitle::before {
    right: calc(100% + 15px);
    background: linear-gradient(90deg, transparent, #3498db);
}

.choix-para-subtitle::after {
    left: calc(100% + 15px);
    background: linear-gradient(270deg, transparent, #3498db);
}

.choix-para-header h2 {
    font-size: 2.2rem;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    padding: 0;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.choix-para-header p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Contenedor principal */
.choix-para-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 -2px 5px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.choix-para-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #9b59b6, #e74c3c, #f39c12);
    border-radius: 20px 20px 0 0;
}

.choix-para-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

/* Tarjeta */
.choix-para-card {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.06),
        0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.choix-para-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--choix-color-1, #3498db), var(--choix-color-2, #2ecc71));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.choix-para-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(135deg, var(--choix-color-1, #3498db), var(--choix-color-2, #2ecc71));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 16px;
}

.choix-para-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.06);
    text-decoration: none !important;
}

.choix-para-card:hover::before {
    transform: scaleX(1);
}

.choix-para-card:hover::after {
    opacity: 0.03;
}

.choix-para-card.choix-no-link {
    cursor: default;
}

.choix-para-card > * {
    position: relative;
    z-index: 1;
}

/* Logo */
.choix-para-logo {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
    background: transparent;
    border-radius: 0;
    padding: 10px;
}

.choix-para-card:hover .choix-para-logo {
    transform: scale(1.05);
}

.choix-para-logo img {
    max-width: 150px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(10%);
    transition: filter 0.4s ease;
    border: none !important;
    box-shadow: none !important;
}

/* IMDECH - Logo más alto */
.choix-para-card:nth-child(3) .choix-para-logo img {
    max-height: 145px;
}

.choix-para-card:hover .choix-para-logo img {
    filter: grayscale(0%) brightness(1.05);
}

/* Nombre */
.choix-para-name {
    display: none;
}

/* Icono social */
.choix-para-social {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1877f2, #0d65d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
    z-index: 2;
}

.choix-para-card:hover .choix-para-social {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.choix-para-social svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Colores por card */
.choix-para-card.choix-color-1 { --choix-color-1: #e91e63; --choix-color-2: #ff4081; }
.choix-para-card.choix-color-2 { --choix-color-1: #ff9800; --choix-color-2: #ffc107; }
.choix-para-card.choix-color-3 { --choix-color-1: #4caf50; --choix-color-2: #8bc34a; }
.choix-para-card.choix-color-4 { --choix-color-1: #2196f3; --choix-color-2: #03a9f4; }
.choix-para-card.choix-color-5 { --choix-color-1: #00bcd4; --choix-color-2: #26c6da; }

/* Responsive */
@media (max-width: 992px) {
    .choix-para-header h2 {
        font-size: 2rem;
    }
    .choix-para-container {
        padding: 30px 25px;
    }
    .choix-para-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .choix-para-section {
        padding: 30px 15px 20px;
    }
    .choix-para-header {
        margin-bottom: 20px;
    }
    .choix-para-header h2 {
        font-size: 1.75rem;
    }
    .choix-para-header p {
        font-size: 0.9rem;
    }
    .choix-para-subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }
    .choix-para-subtitle::before,
    .choix-para-subtitle::after {
        display: none;
    }
    .choix-para-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .choix-para-card {
        padding: 20px 15px;
        min-height: 140px;
        border-radius: 14px;
    }
    .choix-para-logo {
        padding: 8px;
    }
    .choix-para-logo img {
        max-width: 130px;
        max-height: 100px;
    }
    .choix-para-container {
        padding: 25px 20px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .choix-para-section {
        padding: 25px 12px 18px;
    }
    .choix-para-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .choix-para-header h2 {
        font-size: 1.5rem;
    }
    .choix-para-card {
        padding: 18px 12px;
        min-height: 130px;
    }
    .choix-para-logo img {
        max-width: 120px;
        max-height: 90px;
    }
}

/* =============================================
   NOTICIAS CAROUSEL HORIZONTAL
   ============================================= */

.noticias-carousel-section {
    max-width: 1300px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Header con título y navegación */
.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #233e8d, #3498db, #2ecc71) 1;
}

.carousel-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.carousel-titulo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #233e8d, #3498db);
    border-radius: 12px;
    color: white;
}

/* Botones de navegación */
.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #233e8d, #3498db);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(35, 62, 141, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Contenedor del carousel */
.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    padding: 25px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Tarjeta del carousel */
.carousel-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.carousel-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

.carousel-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Imagen */
.carousel-card-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.carousel-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #adb5bd;
}

.carousel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Categoría badge */
.carousel-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: var(--card-color, #233e8d);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Contenido */
.carousel-card-content {
    padding: 18px;
}

.carousel-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.carousel-card:hover .carousel-card-title {
    color: var(--card-color, #233e8d);
}

/* Meta */
.carousel-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6c757d;
}

.carousel-card-date svg {
    opacity: 0.6;
}

/* Sin posts */
.carousel-no-posts {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .carousel-card {
        flex: 0 0 260px;
    }
}

@media (max-width: 768px) {
    .noticias-carousel-section {
        padding: 0 15px;
        margin: 40px auto;
    }

    .carousel-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .carousel-titulo {
        font-size: 22px;
        justify-content: center;
    }

    .carousel-titulo-icon {
        width: 38px;
        height: 38px;
    }

    .carousel-container {
        padding: 15px;
        border-radius: 16px;
    }

    .carousel-card {
        flex: 0 0 240px;
    }

    .carousel-card-image {
        height: 140px;
    }

    .carousel-card-content {
        padding: 14px;
    }

    .carousel-card-title {
        font-size: 14px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .carousel-card {
        flex: 0 0 220px;
    }

    .carousel-card-image {
        height: 120px;
    }

    .carousel-titulo {
        font-size: 20px;
    }
}

/* =============================================
   FOOTER V2 - MODERNO Y ELEGANTE
   ============================================= */

.footer-v2 {
    background: linear-gradient(135deg, #1e293b 0%, #233E8D 100%);
    color: #ffffff;
    padding: 50px 20px 20px;
    margin-top: 60px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.footer-v2-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-v2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Columna 1: Logo e Información */
.footer-col-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.footer-col-info .footer-logo-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    max-width: 200px;
    width: 100%;
}

.footer-col-info .footer-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.footer-logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.footer-slogan {
    text-align: center;
    width: 100%;
}

.footer-slogan p {
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 0 0 20px 0;
    font-weight: 500;
}

/* Información de Contacto en Columna 1 */
.footer-contacto-col1 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-contacto-item-col1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #e2e8f0;
}

.footer-contacto-item-col1 svg {
    flex-shrink: 0;
    color: #60a5fa;
}

.footer-contacto-item-col1 a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contacto-item-col1 a:hover {
    color: #60a5fa;
}

/* Redes Sociales Horizontales */
.footer-redes-horizontal {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-redes-titulo {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0 0 12px 0;
}

.footer-redes-iconos {
    display: flex;
    gap: 12px;
}

.footer-red-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-red-icono:hover {
    background: var(--red-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--red-color);
}

.footer-red-icono svg {
    width: 20px;
    height: 20px;
}

/* Columna 4: Números de Emergencia */
.footer-col-emergencias .footer-emergencias-lista {
    gap: 12px;
}

.footer-emergencia-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-emergencia-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #60a5fa !important;
    transform: translateX(3px) !important;
}

.emergencia-datos {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.emergencia-nombre {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emergencia-tel {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: monospace;
}

/* Columnas 2, 3 y 4: Enlaces, Atención y Emergencias */
.footer-col-enlaces .footer-titulo,
.footer-col-atencion .footer-titulo,
.footer-col-contacto .footer-titulo,
.footer-col-emergencias .footer-titulo {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #fff;
}

.footer-mapa {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-mapa iframe {
    display: block;
    filter: grayscale(20%) contrast(1.1);
}

.footer-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-lista li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 13px;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.footer-lista li a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-left-color: #60a5fa;
    transform: translateX(3px);
}

.footer-lista li a svg {
    color: #60a5fa;
    flex-shrink: 0;
}

/* ============================================
   FORMULARIO DE CONTACTO SHORTCODE
   ============================================ */

.contacto-choix-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.contacto-info-card {
    background: linear-gradient(135deg, #1a2f6b 0%, #233E8D 50%, #004c91 100%);
    border-radius: 20px;
    padding: 40px 45px;
    margin-bottom: 30px;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(35, 62, 141, 0.4);
    position: relative;
    overflow: hidden;
}

.contacto-info-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.contacto-info-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.contacto-info-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.contacto-info-escudo {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contacto-info-escudo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.contacto-info-titulo {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.contacto-info-slogan {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    font-style: italic;
}

.contacto-info-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.contacto-info-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
}

.contacto-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contacto-info-icono {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-info-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contacto-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.55);
}

.contacto-info-valor {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}

.contacto-info-link {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contacto-info-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.contacto-formulario-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.contacto-formulario-card h3 {
    text-align: center;
    color: #233E8D;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.contacto-intro {
    text-align: center;
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #233E8D;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(35, 62, 141, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.recaptcha-wrapper {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.btn-enviar-contacto {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #233E8D 0%, #004c91 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(35, 62, 141, 0.3);
}

.btn-enviar-contacto:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 62, 141, 0.4);
    background: linear-gradient(135deg, #1a2f6b 0%, #003670 100%);
}

.btn-enviar-contacto:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mensaje-exito,
.mensaje-error {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mensaje-exito {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.mensaje-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.contacto-mapa-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contacto-mapa-section h3 {
    text-align: center;
    color: #233E8D;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
}

.contacto-mapa-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contacto-choix-container {
        padding: 15px;
        margin: 20px auto;
    }

    .contacto-formulario-card,
    .contacto-mapa-section {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .contacto-formulario-card h3 {
        font-size: 22px;
    }

    .contacto-intro {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-enviar-contacto {
        padding: 13px;
        font-size: 15px;
    }

    .contacto-mapa-section iframe {
        height: 300px;
    }

    .recaptcha-wrapper {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS: QUEJAS Y DENUNCIAS
   ============================================ */

.form-section-title {
    color: #233E8D;
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #D2B74C;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title svg {
    color: #D2B74C;
    flex-shrink: 0;
}

.form-row {
    display: block;
    margin-bottom: 0;
}

.form-row-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #233E8D;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(35, 62, 141, 0.1);
}

.form-group input[type="file"] {
    padding: 10px;
    background: #ffffff;
    cursor: pointer;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background: #233E8D;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background: #1a2f6b;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

#datosPersonales {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .form-row-2cols {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-section-title {
        font-size: 18px;
    }
}

.footer-lista-small {
    gap: 8px;
}

.footer-lista-small li a {
    padding: 6px 10px;
    font-size: 12px;
}

/* Columna 4: Contacto */
.footer-contacto-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.footer-contacto-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #60a5fa;
}

.footer-contacto-item strong {
    color: #fff;
    font-size: 12px;
}

.footer-contacto-item a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contacto-item a:hover {
    color: #60a5fa;
}

.footer-btn-contacto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid #60a5fa;
    border-radius: 8px;
    color: #60a5fa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.footer-btn-contacto:hover {
    background: #60a5fa;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

.footer-btn-contacto svg {
    width: 16px;
    height: 16px;
}

/* Copyright */
.footer-v2-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-v2-copyright p {
    margin: 5px 0;
    font-size: 13px;
    color: #cbd5e1;
}

.footer-v2-copyright p a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-v2-copyright p a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.footer-credits {
    font-size: 12px !important;
    color: #94a3b8 !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-v2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-col-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .footer-v2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-col-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-v2 {
        padding: 40px 15px 15px;
    }

    .footer-v2-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col-info .footer-logo-card {
        padding: 15px;
    }

    .footer-logo {
        max-width: 60px;
    }

    .footer-lista li a {
        font-size: 12px;
        padding: 7px 10px;
    }

    .emergencia-tel {
        font-size: 13px;
    }

    .emergencia-nombre {
        font-size: 10px;
    }

    .footer-contacto-item-col1 {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-v2 {
        margin-top: 40px;
        padding: 30px 10px 10px;
    }

    .footer-col-enlaces .footer-titulo,
    .footer-col-atencion .footer-titulo,
    .footer-col-contacto .footer-titulo {
        font-size: 14px;
    }

    .footer-v2-copyright p {
        font-size: 11px;
    }

    .emergencia-tel {
        font-size: 12px;
    }

    .emergencia-nombre {
        font-size: 9px;
    }

    .footer-emergencia-link {
        padding: 10px !important;
    }

    .footer-contacto-item-col1 {
        font-size: 11px;
    }
}


/* ================================================================================
   DIRECTORIO DE FUNCIONARIOS
   ================================================================================ */

.directorio-funcionarios-choix {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.funcionarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.funcionario-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.funcionario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(35, 62, 141, 0.15);
}

.funcionario-foto {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.funcionario-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.funcionario-card:hover .funcionario-foto img {
    transform: scale(1.05);
}

.funcionario-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.funcionario-nombre {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.funcionario-cargo {
    font-size: 14px;
    font-weight: 600;
    color: #233E8D;
    margin: 0 0 6px 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.funcionario-dependencia {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 15px 0;
    line-height: 1.4;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.funcionario-contacto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

.contacto-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #233E8D;
    margin-top: 2px;
}

.contacto-item a {
    color: #233E8D;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.2s ease;
}

.contacto-item a:hover {
    color: #D2B74C;
    text-decoration: underline;
}

.contacto-item span {
    word-break: break-word;
}

.no-funcionarios {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}


/* ================================================================================
   RESPONSIVE: DIRECTORIO DE FUNCIONARIOS
   ================================================================================ */

/* Tablets - 3 columnas */
@media (max-width: 1024px) {
    .funcionarios-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Tablets pequeñas - 2 columnas */
@media (max-width: 768px) {
    .funcionarios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .funcionario-foto {
        height: 240px;
    }

    .funcionario-nombre {
        font-size: 15px;
    }

    .funcionario-cargo {
        font-size: 13px;
    }

    .funcionario-dependencia {
        font-size: 12px;
    }
}

/* Móviles - 1 columna */
@media (max-width: 480px) {
    .directorio-funcionarios-choix {
        padding: 15px;
    }

    .funcionarios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .funcionario-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .funcionario-foto {
        height: 320px;
    }

    .funcionario-info {
        padding: 18px;
    }

    .funcionario-nombre {
        font-size: 16px;
    }

    .funcionario-cargo {
        font-size: 14px;
    }

    .funcionario-dependencia {
        font-size: 13px;
    }

    .contacto-item {
        font-size: 13px;
    }

    .contacto-icon {
        width: 20px;
        height: 20px;
    }
}


/* ================================================================================
   PRESIDENTA - DISEÑO ELEGANTE Y MODERNO
   ================================================================================ */

.presidenta-choix {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.presidenta-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(35, 62, 141, 0.12);
    transition: all 0.4s ease;
}

.presidenta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(35, 62, 141, 0.18);
}

.presidenta-titulo {
    font-size: 14px;
    font-weight: 700;
    color: #233E8D;
    text-align: center;
    margin: 0;
    padding: 40px 0 40px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.presidenta-titulo::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #233E8D, #3b82f6);
    border-radius: 2px;
}

.presidenta-contenido {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    padding: 50px;
    align-items: start;
}

.presidenta-foto {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(35, 62, 141, 0.15);
    transition: all 0.4s ease;
}

.presidenta-foto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(35, 62, 141, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.presidenta-foto::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #233E8D, #3b82f6, #8b5cf6);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.presidenta-foto:hover::after {
    opacity: 1;
}

.presidenta-foto:hover {
    transform: scale(1.02);
}

.presidenta-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.presidenta-foto:hover img {
    transform: scale(1.05);
}

.presidenta-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 10px;
}

.presidenta-nombre {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1e293b 0%, #233E8D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.presidenta-cargo {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #233E8D 0%, #3b82f6 100%);
    padding: 10px 24px;
    border-radius: 50px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(35, 62, 141, 0.3);
    width: fit-content;
    transition: all 0.3s ease;
}

.presidenta-cargo:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(35, 62, 141, 0.4);
}

.presidenta-dependencia {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    margin: -8px 0 0 0;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.presidenta-descripcion {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    padding: 20px;
    background: rgba(248, 250, 252, 0.6);
    border-left: 4px solid #233E8D;
    border-radius: 8px;
}

.presidenta-descripcion p {
    margin: 0 0 12px 0;
}

.presidenta-descripcion p:last-child {
    margin-bottom: 0;
}

.presidenta-contacto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.presidenta-contacto .contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #475569;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.presidenta-contacto .contacto-item:hover {
    background: #eff6ff;
    transform: translateX(5px);
}

.presidenta-contacto .contacto-icon {
    width: 22px;
    height: 22px;
    color: #233E8D;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.presidenta-contacto .contacto-item:hover .contacto-icon {
    transform: scale(1.1);
}

.presidenta-contacto .contacto-item a {
    color: #233E8D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.presidenta-contacto .contacto-item a:hover {
    color: #1e3a8a;
}

.presidenta-contacto .extension {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 5px;
    font-weight: 400;
}

.no-presidenta {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
}

/* Responsive - Tablets */
@media (max-width: 1024px) {
    .presidenta-contenido {
        grid-template-columns: 320px 1fr;
        gap: 40px;
        padding: 40px;
    }

    .presidenta-foto {
        height: 420px;
    }

    .presidenta-nombre {
        font-size: 32px;
    }
}

@media (max-width: 900px) {
    .presidenta-contenido {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 35px;
    }

    .presidenta-foto {
        height: 450px;
        max-width: 380px;
        margin: 0 auto;
    }

    .presidenta-nombre {
        font-size: 30px;
        text-align: center;
    }

    .presidenta-cargo {
        margin: 0 auto;
    }

    .presidenta-dependencia {
        text-align: center;
    }

    .presidenta-contacto {
        grid-template-columns: 1fr;
    }
}

/* Responsive - Móviles */
@media (max-width: 480px) {
    .presidenta-choix {
        padding: 20px 15px;
    }

    .presidenta-card {
        border-radius: 20px;
    }

    .presidenta-titulo {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .presidenta-contenido {
        padding: 25px;
        gap: 30px;
    }

    .presidenta-foto {
        height: 380px;
        border-radius: 16px;
    }

    .presidenta-nombre {
        font-size: 24px;
    }

    .presidenta-cargo {
        font-size: 14px;
        padding: 8px 20px;
    }

    .presidenta-dependencia {
        font-size: 13px;
    }

    .presidenta-descripcion {
        font-size: 14px;
        padding: 16px;
    }

    .presidenta-contacto {
        padding: 20px;
        gap: 12px;
    }

    .presidenta-contacto .contacto-item {
        font-size: 13px;
        padding: 10px 14px;
    }

    .presidenta-contacto .contacto-icon {
        width: 20px;
        height: 20px;
    }
}

/* =============================================
   WIDGET DE CLIMA EN HEADER
   ============================================= */

.weather-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.weather-widget:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.weather-icon {
    color: #c41e3a;
    font-size: 18px;
}

.weather-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.weather-temp {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.weather-city {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

/* Responsive para clima */
@media (max-width: 768px) {
    .weather-widget {
        padding: 3px 8px;
        gap: 6px;
    }

    .weather-icon {
        font-size: 16px;
    }

    .weather-temp {
        font-size: 12px;
    }

    .weather-city {
        font-size: 9px;
    }
}

/* =============================================
   LIMPIAR FECHA EN TOPBAR
   ============================================= */

/* Elemento de fecha - limpio sin bordes ni contenedores */
.topbar-date,
span.topbar-date,
.topbar-gob .topbar-date,
.topbar-left .topbar-date {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
}

.topbar-date::before,
.topbar-date::after {
    display: none !important;
}

/* Clima alineado con demás elementos del topbar */
.clima-topbar-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.clima-topbar-item .weather-widget {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.clima-topbar-item .weather-widget:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.clima-topbar-item .weather-icon {
    color: #c41e3a !important;
    font-size: 16px !important;
}

.clima-topbar-item .weather-temp {
    font-weight: 500 !important;
    font-size: 13px !important;
    color: inherit !important;
}


/* =============================================================================
   ESTILOS EXTRAÍDOS DE FUNCTIONS.PHP - OPTIMIZACIÓN DE RENDIMIENTO
   Movidos aquí para aprovechar caché del navegador y mejorar velocidad de carga
   ============================================================================= */

/* =========================================================================
   1. PÁGINA DE TRÁMITES - Shortcode [todos_tramites]
   ========================================================================= */
.todos-tramites-page {
    padding: 0 !important;
    background: transparent !important;
}

.todos-tramites-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    padding: 30px !important;
}

.todos-tramites-header {
    text-align: center !important;
    margin-bottom: 25px !important;
}

.todos-tramites-header h1 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 0 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
}

.todos-tramites-header h1 svg {
    width: 28px !important;
    height: 28px !important;
    stroke: #2563eb !important;
}

.todos-tramites-header p {
    font-size: 15px !important;
    color: #64748b !important;
    margin: 0 !important;
}

.todos-tramites-grid {
    display: grid !important;
    gap: 12px !important;
}

/* Grid responsive para trámites */
@media (min-width: 1025px) {
    .todos-tramites-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (max-width: 1024px) {
    .todos-tramites-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .todos-tramites-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .todos-tramites-grid { grid-template-columns: 1fr !important; }
}

.todos-tramites-grid .tramite-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    border: 1px solid transparent !important;
}

.todos-tramites-grid .tramite-item:hover {
    background: white !important;
    border-color: var(--tram-color) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
}

.todos-tramites-grid .tramite-icono {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: var(--tram-color) !important;
    border-radius: 8px !important;
    color: white !important;
    flex-shrink: 0 !important;
}

.todos-tramites-grid .tramite-icono svg {
    width: 20px !important;
    height: 20px !important;
}

.todos-tramites-grid .tramite-nombre {
    flex: 1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.todos-tramites-grid .tramite-item:hover .tramite-nombre {
    color: var(--tram-color) !important;
}

.todos-tramites-grid .tramite-arrow {
    color: #cbd5e1 !important;
    flex-shrink: 0 !important;
    transition: all 0.25s ease !important;
}

.todos-tramites-grid .tramite-item:hover .tramite-arrow {
    color: var(--tram-color) !important;
    transform: translate(2px, -2px) !important;
}

.todos-tramites-count {
    text-align: center !important;
    margin-top: 25px !important;
    padding-top: 25px !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 14px !important;
}

/* =========================================================================
   2. PORTAL DE TRANSPARENCIA - Shortcode [toda_transparencia]
   ========================================================================= */
.toda-transparencia-page {
    padding: 0 !important;
    background: transparent !important;
}

.toda-transparencia-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    padding: 30px !important;
}

.toda-transparencia-header {
    text-align: center !important;
    margin-bottom: 25px !important;
}

.toda-transparencia-header h1 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 0 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
}

.toda-transparencia-header h1 svg {
    width: 28px !important;
    height: 28px !important;
    stroke: #0891b2 !important;
}

.toda-transparencia-header p {
    font-size: 15px !important;
    color: #64748b !important;
    margin: 0 !important;
}

.toda-transparencia-grid {
    display: grid !important;
    gap: 12px !important;
}

/* Grid responsive para transparencia */
@media (min-width: 1025px) {
    .toda-transparencia-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (max-width: 1024px) {
    .toda-transparencia-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .toda-transparencia-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .toda-transparencia-grid { grid-template-columns: 1fr !important; }
}

.toda-transparencia-grid .trans-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    border: 1px solid transparent !important;
}

.toda-transparencia-grid .trans-item:hover {
    background: white !important;
    border-color: var(--trans-color) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
}

.toda-transparencia-grid .trans-icono {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: var(--trans-color) !important;
    border-radius: 8px !important;
    color: white !important;
    flex-shrink: 0 !important;
}

.toda-transparencia-grid .trans-icono svg {
    width: 20px !important;
    height: 20px !important;
}

.toda-transparencia-grid .trans-nombre {
    flex: 1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.toda-transparencia-grid .trans-item:hover .trans-nombre {
    color: var(--trans-color) !important;
}

.toda-transparencia-grid .trans-arrow {
    color: #cbd5e1 !important;
    flex-shrink: 0 !important;
    transition: all 0.25s ease !important;
}

.toda-transparencia-grid .trans-item:hover .trans-arrow {
    color: var(--trans-color) !important;
    transform: translate(2px, -2px) !important;
}

.toda-transparencia-count {
    text-align: center !important;
    margin-top: 25px !important;
    padding-top: 25px !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 14px !important;
}

/* =========================================================================
   3. PANEL DE ADMINISTRACIÓN - Meta Boxes
   ========================================================================= */

/* Meta Box de Trámites */
.tramite-field {
    margin-bottom: 20px;
}

.tramite-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.tramite-field input[type="text"],
.tramite-field input[type="url"],
.tramite-field input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.tramite-field input[type="color"] {
    width: 80px;
    height: 40px;
    padding: 0;
    border: none;
    cursor: pointer;
}

.tramite-field .description {
    color: #64748b;
    font-size: 13px;
    margin-top: 5px;
}

.iconos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.icono-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.icono-option:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.icono-option.selected {
    border-color: #3b82f6;
    background: #dbeafe;
}

.icono-option input {
    display: none;
}

.icono-option svg {
    margin-bottom: 6px;
}

.icono-option span {
    font-size: 11px;
    color: #475569;
    text-align: center;
}

.color-preview {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.color-preview .preview-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* Meta Box de Funcionarios */
.choix-meta-field {
    margin-bottom: 15px;
}

.choix-meta-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.choix-meta-field input,
.choix-meta-field textarea {
    width: 100%;
    padding: 8px;
}

/* =========================================================================
   4. SISTEMA DE FOOTER - Ocultar footer original cuando se usa v2
   ========================================================================= */
/* Cuando se selecciona footer v2, ocultar el footer original del tema */
.footer-version-v2 .site-footer,
.footer-version-v2 footer.footer,
.footer-version-v2 #footer,
.footer-version-v2 .footer-wrapper,
.footer-version-v2 footer[role="contentinfo"] {
    display: none !important;
}

/* =========================================================================
   5. WIDGET DE CLIMA - Mejorado y consolidado
   ========================================================================= */
.clima-topbar-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    vertical-align: middle !important;
    line-height: normal !important;
    margin-right: 15px !important;
    padding-right: 15px !important;
    border-right: 1px solid rgba(0,0,0,0.15) !important;
}

.clima-topbar-item .weather-widget {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    line-height: normal !important;
}

.clima-topbar-item .weather-widget:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.clima-topbar-item .weather-widget i,
.clima-topbar-item .weather-icon {
    color: #c41e3a !important;
    font-size: 16px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.clima-topbar-item .weather-icon-emoji {
    font-size: 16px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.clima-topbar-item .weather-temp {
    font-weight: 500 !important;
    font-size: 13px !important;
    color: #fff !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* =========================================================================
   FIN DE ESTILOS EXTRAÍDOS - Total: ~460 líneas de CSS optimizadas
   ========================================================================= */

/* =========================================================================
   DOCUMENTOS LEGALES - Estilo Cuenta Pública (simple, sin DataTables)
   ========================================================================= */

.contenedor-documentos {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    overflow: hidden !important;
    max-width: 1100px !important;
    width: 100% !important;
    margin: 20px auto !important;
}

.header-documentos {
    background: linear-gradient(135deg, #4c6ef5 0%, #7950f2 100%) !important;
    color: white !important;
    padding: 15px 15px !important;
    text-align: center !important;
}

.header-documentos h2 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: white !important;
    line-height: 1.3 !important;
}

.tabla-documentos-simple {
    width: 100% !important;
    border-collapse: collapse !important;
}

.tabla-documentos-simple thead {
    background: #f1f3f5 !important;
}

.tabla-documentos-simple th {
    padding: 8px 12px !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #495057 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    border-bottom: 2px solid #dee2e6 !important;
}

.tabla-documentos-simple td {
    padding: 6px 12px !important;
    color: #495057 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    border-bottom: 1px solid #e9ecef !important;
    vertical-align: middle !important;
}

.tabla-documentos-simple tbody tr:nth-child(even) {
    background: #f8f9fa !important;
}

.boton {
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    border: none !important;
    line-height: 1 !important;
}

.boton:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .header-documentos h2 {
        font-size: 18px;
    }

    .tabla-documentos-simple th,
    .tabla-documentos-simple td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .boton {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* =========================================================================
   FIN DE ESTILOS DE DOCUMENTOS LEGALES
   ========================================================================= */

/* =========================================================================
   QUITAR OUTLINE AL HACER CLIC EN ELEMENTOS
   ========================================================================= */
*:focus,
*:active,
a:focus,
a:active,
button:focus,
button:active,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Mantener outline solo en inputs de formularios al escribir */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(35, 62, 141, 0.1) !important;
}
/* =========================================================================
   FIN DE QUITAR OUTLINE
   ========================================================================= */
