@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');
 
/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    /* Color Principal: Verde Lima */
    --primary-color: #bbe164;
    --primary-dark: #a4c754;
 
    /* Colores base */
    --text-color: #777777;
    --heading-color: #333333;
    --bg-light: #f9f9f9;
    --bg-dark: #262626;
    --white: #ffffff;
 
    /* Fuentes */
    --font-main: 'Aptos', 'Inter', sans-serif;
    --font-heading: 'Aptos', 'Inter', sans-serif;
}
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}
 
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 500;
}
 
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
 
ul {
    list-style: none;
}
 
img {
    max-width: 102%;
    height: auto;
    display: block;
}
 
.image-col-noticias {
    max-width: 60%;
    height: auto;
    display: block;
}
 
.cofc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
 
/* =========================================
   2. ELEMENTOS GLOBALES (BOTONES)
   ========================================= */
body .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}
 
body .btn-primary {
    background-color: var(--primary-color);
    color: #333333;
    border: 2px solid var(--primary-color);
}
 
body .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
 
body .btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid #ddd;
}
 
body .btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
 
body .btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
 
/* =========================================
   3. TOP BAR (BARRA SUPERIOR)
   ========================================= */
.top-bar {
    background-color: #f5f5f5;
    padding: 10px 0;
    font-size: 13px;
}
 
.top-bar .cofc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.social-icons a {
    margin-right: 15px;
    color: #999;
    font-size: 14px;
}
 
.social-icons a:hover {
    color: var(--primary-color);
}
 
.top-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
 
.login-link {
    color: var(--heading-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
 
.login-link:hover {
    color: var(--primary-color);
}
 
/* Botón específico de Acceso Colegiado */
.btn-acceso {
    background-color: #ffd700;
    color: #000000;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    font-size: 12px;
}
 
.btn-acceso:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
 
.btn-acceso:hover i {
    color: var(--primary-color);
}
 
.btn-acceso i {
    color: #000000;
}
 
/* Botón específico de Web ToolPrive (verde más claro que Acceso Documentación) */
.btn-toolprive {
    background-color: #dcf0a8;
    color: #000000;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    font-size: 12px;
}
 
.btn-toolprive:hover {
    background-color: #ffffff;
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
 
.btn-toolprive:hover i {
    color: var(--primary-dark);
}
 
.btn-toolprive i {
    color: #000000;
}
 
/* =========================================
   4. MAIN HEADER (CABECERA PRINCIPAL)
   ========================================= */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
 
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    padding-top: 10px;
    padding-bottom: 10px;
}
 
.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}
 
.nav-list {
    display: flex;
    gap: 25px;
}
 
.nav-list a {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--heading-color);
}
 
.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}
 
/* --- Dropdown / Submenús --- */
.nav-list .dropdown {
    position: relative;
}
 
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background-color: #ffffff !important;
    /* FORZAR Fondo Blanco */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Sombra más suave */
    border-top: 3px solid #dced9a;
    /* Verde más pastel/claro como la imagen */
    display: none;
    z-index: 9999;
    padding: 0;
}
 
.nav-list .dropdown:hover .dropdown-menu {
    display: block;
}
 
.dropdown-menu li {
    display: block;
    border-bottom: 1px solid #f9f9f9 !important;
    /* Separador MUY claro/pastel */
}
 
.dropdown-menu li:last-child {
    border-bottom: none !important;
}
 
.dropdown-menu a {
    display: block;
    padding: 14px 20px;
    font-size: 13px;
    text-transform: none;
    color: #888888 !important;
    /* Gris más suave/claro */
    font-weight: 400;
    transition: all 0.2s ease;
    background-color: #ffffff !important;
    /* Asegurar fondo blanco en enlaces */
}
 
.dropdown-menu a:hover {
    background-color: #ffffff !important;
    /* Sin cambio de fondo */
    color: #a4c754 !important;
    /* Verde un poco más suave */
    padding-left: 20px;
    /* Sin movimiento */
}
 
.nav-list .fa-chevron-down {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}
 
/* Botones de acción (Buscador y Menú móvil) */
.header-actions button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #bbbbbb;
    margin-left: 15px;
}
 
.header-actions button:hover {
    color: var(--primary-color);
}
 
#mobile-menu-btn {
    display: none;
}
 
/* =========================================
   5. MOBILE MENU
   ========================================= */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 1999;
    transition: background 0.35s ease;
}
.mobile-overlay.active {
    display: block;
    background: rgba(0,0,0,0.5);
}
 
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #1c1c1c;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mobile-menu.active {
    transform: translateX(0);
}
 
/* ── Cabecera del drawer ── */
.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.mobile-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}
.mobile-menu-logo .custom-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}
#close-menu-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.07);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
#close-menu-btn:hover {
    background: rgba(187,225,100,0.15);
    color: var(--primary-color);
}
 
/* ── Navegación ── */
.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 16px;
    scrollbar-width: none;
}
.mobile-nav::-webkit-scrollbar { display: none; }
 
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}
 
/* Ocultar flecha generada por WordPress */
.mobile-nav-list > li.menu-item-has-children > a .fa-chevron-down,
.mobile-nav-list > li.menu-item-has-children > a .sub-menu-toggle {
    display: none !important;
}
 
/* Ítems de primer nivel */
.mobile-nav-list > li {
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav-list > li:last-child {
    border-bottom: none;
}
.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    color: #bbb;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-left: 2px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    font-family: var(--font-heading);
}
.mobile-nav-list > li > a:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}
.mobile-nav-list > li.current-menu-item > a,
.mobile-nav-list > li.current-menu-ancestor > a {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background: rgba(187,225,100,0.06);
}
 
/* Flecha CSS para ítems con submenú */
.mobile-nav-list > li.menu-item-has-children > a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #555;
    border-bottom: 1.5px solid #555;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.25s ease, border-color 0.2s;
    flex-shrink: 0;
}
.mobile-nav-list > li.menu-item-has-children.mob-open > a::after {
    transform: rotate(-135deg) translateY(-3px);
    border-color: var(--primary-color);
}
 
/* Submenú */
.mobile-nav-list .sub-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #1c1c1c;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
.mobile-nav-list li.mob-open > .sub-menu {
    max-height: 300px;
}
.mobile-nav-list .sub-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    box-sizing: border-box;
}
.mobile-nav-list .sub-menu li:last-child {
    border-bottom: none;
}
.mobile-nav-list .sub-menu a {
    display: block;
    padding: 11px 20px 11px 36px;
    color: #888;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-left: none;
    transition: color 0.2s, padding-left 0.2s;
    font-family: var(--font-heading);
    width: 100%;
    box-sizing: border-box;
}
.mobile-nav-list .sub-menu a:hover {
    color: var(--primary-color);
    padding-left: 40px;
    background: rgba(255,255,255,0.03);
}
 
/* ── Pie del drawer ── */
.mobile-menu-bottom {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.mobile-btn-colegiado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffd700;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 16px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-heading);
}
.mobile-btn-colegiado:hover {
    background: var(--primary-color);
    color: #333;
}
.mobile-bottom-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #555;
    font-size: 12px;
    font-family: var(--font-heading);
    transition: color 0.2s;
    padding: 2px 0;
}
.mobile-bottom-link:hover { color: var(--primary-color); }
.mobile-bottom-icon {
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}
 
/* Fix: sobreescribir estilos del tema padre en el drawer */
.mobile-menu .dropdown-menu {
    position: static !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-top: none !important;
    box-shadow: none !important;
    display: none !important;
    background: #1c1c1c !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.mobile-menu li.mob-open > .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    background: #1c1c1c !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}
.mobile-menu .dropdown-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    background: #1c1c1c !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.mobile-menu .dropdown-menu li:last-child {
    border-bottom: none !important;
}
.mobile-menu .dropdown-menu a {
    display: block !important;
    padding: 11px 20px 11px 36px !important;
    color: #888 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    background: #1c1c1c !important;
    border-left: none !important;
    border-bottom: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: color 0.2s, padding-left 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.mobile-menu .dropdown-menu a:hover {
    color: var(--primary-color) !important;
    padding-left: 40px !important;
    background: rgba(255,255,255,0.03) !important;
}
.mobile-menu .menu-item-has-children.mob-open > a {
    color: #fff !important;
    border-left-color: var(--primary-color) !important;
    background: rgba(255,255,255,0.04) !important;
}

/* =========================================
   6. HERO SLIDER
   ========================================= */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #333;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.slide-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0);
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.slide-content h2 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 30px;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.slide-content .highlight-green {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
    transition: 0.3s;
}

.slider-controls button:hover {
    color: var(--primary-color);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

/* =========================================
   7. SECCIONES GENERALES (LAYOUT)
   ========================================= */
.section {
    padding: 80px 0;
}

.section-noticias {
    padding: 0px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.text-col h2 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.divider {
    height: 1px;
    background: #efefef;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   8. ESTILOS ESPECÍFICOS DE SECCIONES
   ========================================= */

/* --- Sección Ubicación & Listas --- */
.custom-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.custom-list li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -5px;
}

.map-col {
    /*border-radius: 30px;*/
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 400px;
    position: relative;
    transform: translateZ(0);
}

.map-col iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --- Sección Bolsa de Trabajo (Cards) --- */
.jobs-grid {
    display: block;
    margin-top: 30px;
}

.jobs-grid .link-arrow {
    display: block;
    width: 100%;
}

.job-card {
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    border-radius: 4px;
    border-top: 3px solid var(--primary-color);
    transition: 0.3s;
}

.job-card:hover {
    transform: translateY(-5px);
}

.job-icon {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.job-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.link-arrow {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.link-arrow:hover {
    color: var(--primary-dark);
}

/* --- Tarjetas Flotantes (Debajo del Slider) --- */
.cards-overlay-section {
    position: relative;
    z-index: 20;
    /* Para que quede por encima del slider */
    margin-top: -80px;
    /* Sube la sección para pisar la imagen */
    padding-bottom: 40px;
}

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

.info-card-overlay {
    background-color: var(--white);
    border-radius: 20px;
    /* Bordes muy redondeados como la imagen */
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

/* Caja del Icono (Cuadrado redondeado verde) */
.card-icon-box {
    background-color: #dced9a;
    /* Un verde un poco más claro para el fondo del icono */
    color: #333;
    /* Icono oscuro */
    width: 80px;
    height: 80px;
    border-radius: 15px;
    /* Cuadrado redondeado */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

/* Icono de la tarjeta */
.material-symbols-outlined {
    font-size: 50px;
}

/* Título de la tarjeta */
.info-card-overlay h3 {
    font-size: 18px;
    font-weight: 800;
    /* Letra muy gruesa */
    text-transform: uppercase;
    color: #000;
    margin: 0;
    font-family: var(--font-heading);
}

/* --- Efecto HOVER (Al pasar el ratón) --- */
.info-card-overlay:hover {
    background-color: var(--primary-color);
    /* Fondo se vuelve Verde Lima */
    transform: translateY(-5px);
    /* Se levanta un poco */
    box-shadow: 0 15px 40px rgba(187, 225, 100, 0.4);
}

.info-card-overlay:hover .card-icon-box {
    background-color: var(--white);
    /* La caja del icono se vuelve blanca */
    color: var(--primary-color);
    /* El icono toma el color verde */
}

/* Tablet: 2 columnas */
@media (max-width: 992px) {
    .cards-grid-overlay {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil: 1 columna, todas apiladas */
@media (max-width: 768px) {
    .cards-grid-overlay {
        grid-template-columns: 1fr;
    }

    /* Quita el margen negativo para que no pise el slider en móvil */
    .cards-overlay-section {
        margin-top: 20px;
    }
}

/* Ajuste Responsive para Móviles */
@media (max-width: 768px) {
    .cards-overlay-section {
        margin-top: -40px;
        /* Menos solapamiento en móvil */
    }

    .cards-grid-overlay {
        grid-template-columns: 1fr;
        /* Una columna en móvil */
        gap: 20px;
    }

    .info-card-overlay {
        padding: 30px;
        flex-direction: row;
        /* En móvil, icono a la izquierda */
        justify-content: flex-start;
        gap: 20px;
        text-align: left;
    }

    .card-icon-box {
        margin-bottom: 0;
        width: 100px;
        height: 60px;
        font-size: 60px;
        flex-shrink: 0;
    }
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
    background-color: #f8f9fa;
    padding: 60px 20px 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

/* Logo Section */
.logo-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.footer-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    max-width: 250px;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: #a4c639;
}

/* Navigation */
.footer-nav ul {
    list-style: none;
}

.footer-nav>ul>li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #a4c639;
}

/* Enlaces principales en negrita */
.footer-main-link {
    font-weight: 700 !important;
}

.submenu {
    margin-left: 20px;
    margin-top: 8px;
}

.submenu li {
    margin-bottom: 8px;
}

.submenu a {
    font-size: 13px;
    color: #666;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.contact-item i {
    color: #a4c639;
    margin-top: 3px;
    font-size: 16px;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #a4c639;
}

.contact-item span {
    color: #333;
    line-height: 1.5;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #a4c639;
    transform: scale(1.2);
}

.social-links i {
    font-size: 24px;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #a4c639;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Ajustar redes sociales en móvil */
    .social-links {
        justify-content: center;
    }

    /* Ajustar logo del footer en móvil */
    .footer-logo {
        width: 120px;
    }

    .logo-section {
        align-items: center;
        text-align: center;
    }

    .footer-title {
        max-width: 100%;
    }
}

/* =========================================
   10. MEDIA QUERIES (RESPONSIVE)
   ========================================= */

/* Extra Large screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .nav-list {
        display: none;
    }

    #mobile-menu-btn {
        display: block;
    }

    .hero-slider {
        height: 450px;
    }

    .slide-content h2 {
        font-size: 38px;
    }

    .slide-content .highlight-green {
        display: inline;
    }

    .slide-content p {
        font-size: 16px;
    }
}

/* Tablets pequeñas */
@media (max-width: 768px) {

    /* Container */
    .cofc-container {
        padding: 0 20px;
    }

    /* Top Bar */
    .top-bar {
        padding: 10px 0;
    }

    .top-bar .cofc-container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding-bottom: 10px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icons a {
        font-size: 14px;
    }

    .top-links {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .login-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Header */
    .main-header {
        padding: 15px 0;
    }

    .logo-img {
        height: 70px;
    }

    #search-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    #mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* Grids */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    /* Hero Slider */
    .hero-slider {
        height: 350px;
    }

    .slide-content {
        margin: 0 20px;
        padding: 30px 20px;
    }

    .slide-content h2 {
        font-size: 26px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .slide-content .highlight-green {
        display: inline;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Botones */
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    /* Footer */
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo {
        width: 120px;
    }

    .logo-section {
        align-items: center;
        text-align: center;
    }

    .section-title {
        font-size: 14px;
        margin-bottom: 15px;
    }

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

    .social-links i {
        font-size: 20px;
    }

    .footer-logos-slider {
        padding: 30px 0;
    }

    .sponsor-track {
        gap: 30px;
    }

    .sponsor-track img {
        height: 40px;
    }

    /* Mapa */
    .map-col {
        height: 300px;
    }
}

/* Móviles */
@media (max-width: 480px) {

    /* Container */
    .cofc-container {
        padding: 0 15px;
    }

    /* Top Bar */
    .top-bar {
        padding: 8px 0;
    }

    .social-icons {
        gap: 12px;
    }

    .social-icons a {
        font-size: 13px;
    }

    .top-links {
        gap: 10px;
    }

    .login-link {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Header */
    .main-header {
        padding: 12px 0;
    }

    .logo-img {
        height: 60px;
    }

    #search-btn,
    #mobile-menu-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Hero Slider */
    .hero-slider {
        height: 300px;
    }

    .slide-content {
        margin: 0 15px;
        padding: 25px 15px;
    }

    .slide-content h2 {
        font-size: 20px;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .slide-content .highlight-green {
        display: inline;
    }

    .slide-content p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .slider-controls button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Grids */
    .grid-2,
    .grid-3 {
        gap: 20px;
    }

    /* Botones */
    .btn {
        padding: 8px 16px;
        font-size: 11px;
    }

    /* Footer */
    .footer {
        padding: 30px 15px 15px;
    }

    .footer-content {
        gap: 25px;
    }

    .section-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .footer-logo {
        width: 100px;
    }

    .contact-item {
        font-size: 12px;
        gap: 10px;
    }

    .contact-item i {
        font-size: 14px;
    }

    .social-links {
        gap: 15px;
    }

    .social-links i {
        font-size: 18px;
    }

    .footer-bottom {
        padding-top: 15px;
        gap: 12px;
    }

    .footer-bottom p,
    .footer-links a {
        font-size: 11px;
    }

    .material-symbols-outlined {
        font-size: 40%;
    }

    /* Mapa */
    .map-col {
        height: 250px;
    }
}

/* Mostrar la primera slide por defecto (antes de que cargue JS) */
.slide:first-child {
    opacity: 1;
}

.cofc-page-content.section {
    padding-top: 0 !important;
    /* Eliminar el padding gigante superior por defecto */
    padding-bottom: 60px;
}

/* =========================================
   11. NUEVA PLANTILLA PÁGINA LIMPIA (COFC)
   ========================================= */
.cofc-page-header {
    padding-top: 20px;
    /* Reducido drásticamente */
    padding-bottom: 0px;
    /* Eliminado */
    text-align: center;
    background-color: #ffffff;
}

/* Subtítulo de Área (Gris, Debajo del título) */
.cofc-page-area {
    font-family: var(--font-heading);
    font-size: 16px;
    /* Un poco más discreto */
    color: #999;
    /* Gris más claro */
    margin-bottom: 10px;
    font-weight: 500;
}

/* Título Principal (Ahora Verde y GRANDE) */
.cofc-page-title {
    font-size: 38px;
    /* Ajustado ligeramente */
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0px;
    /* Sin margen inferior */
    line-height: 1.1;
    text-transform: uppercase;
}

/* Separador */
.cofc-separator {
    width: 100%;
    height: 1px;
    background-color: #f5f5f5;
    /* Más pastel/claro */
    position: relative;
    margin: 20px auto 30px auto;
    /* Márgenes reducidos */
    max-width: 100%;
}

.cofc-separator::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    height: 3px;
    width: 150px;
    background-color: var(--primary-color);
}

/* Contenedor "Caja" o "Carta" */
.cofc-content-wrapper {
    max-width: 900px;
    /* Ancho limitado */
    margin: 0 auto;
    font-size: 17px;
    /* Un pelín más grande */
    color: #555;
    line-height: 2.0;
    /* MÁS AIRE (antes 1.8) */
    background-color: #ffffff;
    /*padding: 50px;*/
    /* Más padding interno */
    /*border: 1px solid #f0f0f0;*/
    /* Borde sutil */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    /* Sombra suave */
    text-align: justify;
    /* Texto justificado */
    border-radius: 8px;
}

.cofc-content-wrapper p {
    margin-bottom: 35px;
    /* MÁS ESPACIO ENTRE PÁRRAFOS (antes 20px) */
}

.cofc-content-wrapper img {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 4px;
}

/* =========================================
   ESTILOS ORGANIGRAMA COF
   ========================================= */

/* Info Section */
.info-section {
    margin-bottom: 60px;
}

.info-card {
    background: linear-gradient(135deg, #f0f9e8 0%, #e8f5d8 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.info-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* Functions List */
.functions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.functions-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.functions-list li:last-child {
    margin-bottom: 0;
}

.functions-list i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Departments Section */
.departments-section {
    margin-top: 60px;
}

.section-main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-description {
    text-align: center;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 40px;
}

/* Departments Grid */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Department Card */
.department-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* Department Body */
.department-body {
    padding: 25px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 120px;
}

.department-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    line-height: 1.4;
}

.department-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 8px 0 0 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

/* Responsive Organigrama */
@media (max-width: 1024px) {
    .departments-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
}

@media (max-width: 768px) {
    .info-card {
        flex-direction: column;
        padding: 25px;
        gap: 20px;
        border-left-width: 4px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .departments-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   ESTILOS ORGANIGRAMA COF - AJUSTES WP (IMPORTANTS)
   ========================================= */

/* Forcing font-awesome just in case */
.fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.cofc-content-wrapper .info-card {
    background: #f1f6ed !important;
    border-left: 6px solid var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
    align-items: flex-start !important;
    margin-bottom: 35px;
}

.cofc-content-wrapper .info-icon {
    width: 60px !important;
    height: 60px !important;
    background: var(--primary-color) !important;
    color: white !important;
    font-size: 28px !important;
    min-width: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cofc-content-wrapper .info-content {
    flex: 1 !important;
}

.cofc-content-wrapper .info-content h3 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
    font-size: 22px !important;
    color: var(--heading-color) !important;
}

.cofc-content-wrapper .info-content p {
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    color: var(--text-color) !important;
    font-size: 16px !important;
}

/* Functions List override WP bullets */
.cofc-content-wrapper .functions-list {
    margin: 20px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.cofc-content-wrapper .functions-list li {
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    font-size: 16px !important;
}

.cofc-content-wrapper .functions-list li::before {
    content: none !important;
}

.cofc-content-wrapper .functions-list i {
    color: var(--primary-color) !important;
    font-size: 20px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Departments Grid */
.cofc-content-wrapper .departments-section {
    margin-top: 60px !important;
}

.cofc-content-wrapper .section-main-title {
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

.cofc-content-wrapper .section-description {
    margin-bottom: 40px !important;
    margin-top: 0 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    font-size: 16px !important;
}

.cofc-content-wrapper .departments-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

/* Ocultar las etiquetas <p> vacías que inyecta WordPress entre los divs */
.cofc-content-wrapper .departments-grid>p,
.cofc-content-wrapper .info-section>p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cofc-content-wrapper .department-card {
    border: 1px solid #eaeaea !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    background: white !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s ease !important;
}

.cofc-content-wrapper .department-body {
    padding: 30px 20px !important;
    min-height: 140px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 1 !important;
}

.cofc-content-wrapper p.department-name,
.cofc-content-wrapper .department-name {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    line-height: 1.3 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--heading-color) !important;
}

.cofc-content-wrapper p.department-title,
.cofc-content-wrapper .department-title {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
    font-size: 13px !important;
    color: var(--primary-color) !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .cofc-content-wrapper .info-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 25px !important;
    }

    .cofc-content-wrapper .departments-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* =========================================
   COMPONENTE: TARJETAS DE DESCARGA DE DOCUMENTOS (MEMORIAS, ESTATUTOS...)
   Integrado desde PTestatutosmemoria.css para uso global
   ========================================= */

/* Caja Intro */
.cofc-content-wrapper .intro-section {
    background: linear-gradient(135deg, #f0f9e8 0%, #e8f5d8 100%) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    margin-bottom: 50px !important;
    border-left: 5px solid var(--primary-color) !important;
    display: flex !important;
    gap: 25px !important;
    align-items: flex-start !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.cofc-content-wrapper .intro-icon {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    background: var(--primary-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 26px !important;
}

.cofc-content-wrapper .intro-content {
    flex: 1 !important;
}

.cofc-content-wrapper .intro-text {
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: var(--text-color) !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* Rejilla y Título */
.cofc-content-wrapper .section-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    border: none !important;
}

.cofc-content-wrapper .documents-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 30px !important;
}

/* Parches Párrafos Vacíos WP */
.cofc-content-wrapper .intro-section>p,
.cofc-content-wrapper .intro-section br,
.cofc-content-wrapper .documents-grid>p,
.cofc-content-wrapper .documents-grid>br,
.cofc-content-wrapper .document-card>p:empty,
.cofc-content-wrapper .document-card>br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tarjeta de Documento */
.cofc-content-wrapper .document-card {
    background: white !important;
    border: 2px solid #f0f0f0 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Evitar que `<p>` inyectado en torno al enlace colapse todo como fila flex */
.cofc-content-wrapper .document-card>p {
    display: contents !important;
}

.cofc-content-wrapper .document-card:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px) !important;
}

/* Iconos de las tarjetas */
.cofc-content-wrapper .document-icon {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #f0f9e8 0%, #e8f5d8 100%) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--primary-color) !important;
    font-size: 40px !important;
    margin: 0 auto !important;
}

.cofc-content-wrapper .document-info {
    text-align: center !important;
    flex: 1 !important;
}

.cofc-content-wrapper .document-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--heading-color) !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

.cofc-content-wrapper .document-description {
    font-size: 15px !important;
    color: var(--text-color) !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

/* Botón de Descarga */
.cofc-content-wrapper a.download-btn,
.cofc-content-wrapper .document-card p>a.download-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: var(--primary-color) !important;
    color: white !important;
    padding: 16px 30px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    margin-top: auto !important;
}

.cofc-content-wrapper a.download-btn:hover,
.cofc-content-wrapper .document-card p>a.download-btn:hover {
    background: #9AB459 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(190, 225, 100, 0.3) !important;
    color: white !important;
}

.cofc-content-wrapper a.download-btn i {
    font-size: 18px !important;
    color: white !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cofc-content-wrapper .intro-section {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .cofc-content-wrapper .documents-grid {
        grid-template-columns: 1fr !important;
    }
}

.document-card.full-width {
    grid-column: 1 / -1 !important;
}

/* Botón Acceso Documentación (mismo estilo que Acceso Colegiado, en verde lima) */
.btn-documentacion {
    background-color: #BEE164;
    color: #000000;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    font-size: 12px;
}

.btn-documentacion:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-documentacion:hover i {
    color: var(--primary-color);
}

.btn-documentacion i {
    color: #000000;
}