/* ========================================================
   ESTILOS COMUNES PARA CUSTOM POST TYPES (CPTs)
   Unifica Convocatorias, Noticias, Eventos y Documentos
   ======================================================== */

/* TEMAS (Variables de color) */
.theme-convocatorias {
    --cpt-theme: var(--colef-teal, #006b7a);
    --cpt-theme-light: #c0dbde;
    --cpt-theme-hover: var(--colef-teal-dark, #004d58);
    --cpt-theme-overlay: rgba(0, 107, 122, 0.75);
    --cpt-bg-light: #f2f7f8;
}

.theme-noticias {
    --cpt-theme: var(--colef-orange, #e88600);
    --cpt-theme-light: #f0cc9f;
    --cpt-theme-hover: var(--colef-orange-dark, #cc7600);
    --cpt-title-hover: var(--colef-teal, #03697B); /* Contraste para el titulo */
    --cpt-theme-overlay: rgba(232, 134, 0, 0.7);
    --cpt-bg-light: #fcf9f2;
}

.theme-eventos {
    --cpt-theme: var(--colef-teal, #03697b);
    --cpt-theme-light: #81b4bd;
    --cpt-theme-hover: var(--colef-teal-dark, #024a56);
    --cpt-theme-overlay: rgba(3, 105, 123, 0.6);
    --cpt-bg-light: #f2f7f8; /* default */
    --cpt-title-hover: var(--colef-orange, #e48600);
}

.theme-documentos {
    --cpt-theme: var(--colef-orange-dark, #d37a00);
    --cpt-theme-light: #fcd59c;
    --cpt-theme-hover: #b56d00;
    --cpt-theme-overlay: rgba(211, 122, 0, 0.7);
    --cpt-bg-light: #fffdf8;
}

/* ================= ARCHIVE ================= */
.cpt-archive-wrapper {
    background-color: #f8f9fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cpt-header {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 450px; 
    display: flex;
    align-items: flex-start;
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.cpt-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cpt-theme-overlay);
    z-index: 1;
}
.cpt-header-content { 
    position: relative; 
    z-index: 2; 
    width: 100%; 
}

/* Utilidades de texto/fondo usando variables */
.text-cpt-theme { color: var(--cpt-theme-hover) !important; }
.bg-cpt-theme { background-color: var(--cpt-theme-hover) !important; color: #fff !important; }

/* ================= BUSCADOR / FILTROS ================= */
.cpt-search-toggle-container {
    margin-top: -24px; 
    position: relative;
    z-index: 10;
}
.cpt-search-module-container {
    margin-top: -90px;
    position: relative;
    z-index: 10;
}

.btn-cpt-search-toggle:focus,
.btn-cpt-search-toggle:active {
    background-color: var(--cpt-theme-hover) !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}
.btn-cpt-search-toggle {
    background-color: #fff;
    color: var(--cpt-theme);
    border: 2px solid var(--cpt-theme);
    border-radius: 30px;
    padding: 8px 30px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.btn-cpt-search-toggle:hover {
    background-color: var(--cpt-theme);
    color: #fff;
}

.cpt-search-module {
    background-color: var(--cpt-bg-light, #f2f7f8);
    border: 1px solid var(--cpt-theme-light);
    border-radius: 12px;
    padding: 20px 30px 30px 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.cpt-search-module-title {
    color: var(--cpt-theme);
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Calendario Flatpickr GenÃÂ©rico */
.flatpickr-calendar.inline {
    margin: 0 auto;
    box-shadow: none;
    border: 1px solid var(--cpt-theme-light); 
    border-radius: 8px;
    width: 100% !important; 
    max-width: 100%;
    background-color: #fff;
    padding: 5px;
}
.flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-days, .dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}
.flatpickr-day {
    max-width: none !important;
    width: 14.28% !important;
    height: 45px;
    line-height: 45px;
    border-radius: 8px;
}
.flatpickr-day.selected {
    background: var(--cpt-theme) !important;
    border-color: var(--cpt-theme-hover) !important;
    border-radius: 8px !important;
}
.flatpickr-day:hover {
    background: var(--cpt-theme-light);
}

.cpt-search-separator {
    border-right: 2px solid var(--cpt-theme);
}
@media (max-width: 991px) {
    .cpt-search-separator {
        border-right: none;
        border-bottom: 2px solid var(--cpt-theme);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

/* ================= TARJETAS (CARDS) ================= */
.cpt-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d1d5db; 
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    /* height: 100%; removido */
    text-decoration: none !important;
    outline: none !important;
}
@media (min-width: 768px) {
    .cpt-card.cpt-card-list {
        flex-direction: row;
    }
}
.cpt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.cpt-card:focus { outline: none !important; box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important; }
.cpt-card * { text-decoration: none !important; }

.cpt-card-date-block {
    background-color: var(--cpt-theme);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
    width: 100%;
}
@media (min-width: 768px) {
    .cpt-card-list .cpt-card-date-block {
        width: 180px; 
    }
}
.cpt-card-date-block .dia {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.5rem 0;
}
.cpt-card-date-block .mes-anio {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cpt-card-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    flex-grow: 1;
}
.cpt-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--colef-teal, #03697b);
    line-height: 1.4;
    margin-bottom: 0.5rem; margin-top: 0;
}

.cpt-link-wrap {
    text-align: right;
    margin-top: auto; 
    border-top: 1px solid #e5e7eb; 
    padding-top: 0.5rem;
}
.cpt-link {
    color: var(--cpt-theme);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.cpt-link:hover {
    color: var(--cpt-theme-hover);
}
.cpt-btn-circle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--cpt-theme-light);
    margin-left: 10px;
    transition: background-color 0.2s, transform 0.3s ease;
    color: var(--cpt-theme);
    font-size: 1.2rem;
}
.cpt-card:hover .cpt-btn-circle-arrow {
    background-color: var(--cpt-theme);
    color: #fff;
    transform: translateX(4px);
}
.cpt-link:hover .cpt-btn-circle-arrow {
    background-color: var(--cpt-theme-hover);
}

/* ================= PAGINACIÃâN ================= */
.colef-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
    align-items: center;
}
.colef-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    color: var(--colef-teal, #03697b); /* Tono Jade por defecto */
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}
.colef-pagination .page-numbers:hover {
    border-color: var(--cpt-theme);
    color: var(--cpt-theme);
}
.colef-pagination .page-numbers.current {
    background: var(--cpt-theme);
    border-color: var(--cpt-theme);
    color: #fff;
}
.colef-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}
.pagination-info {
    background: #fff;
    border: 1px solid #d1d5db;
    padding: 0 15px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 10px;
}

/* ================= AJAX LOADER ================= */
.cpt-loader-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; /* height: 100%; removido */
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.cpt-loader-overlay .spinner-border {
    width: 3rem; height: 3rem; border-width: 0.3em;
    color: var(--cpt-theme);
}

/* ================= SINGLE ================= */
.cpt-single-wrapper {
    background-color: #f8f9fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Redes Sociales (Single) */
.cpt-social-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 4px;
    color: white; text-decoration: none; transition: transform 0.2s, opacity 0.2s;
}
.cpt-social-btn:hover { color: white; transform: translateY(-2px); opacity: 0.9; }
.btn-facebook { background-color: #3b5998; }
.btn-x { background-color: #000000; }
.btn-linkedin { background-color: #0077b5; }
.btn-whatsapp { background-color: #25d366; }
.btn-mail { background-color: var(--cpt-theme); }

/* MÃÂ³dulo Resumen / EstadÃÂ­sticas (Single) */
.cpt-modulo-resumen {
    background-color: var(--cpt-bg-light, #f2f7f8);
    border: 1px solid var(--cpt-theme-light) !important;
    border-radius: 8px;
}

/* PDF Action Button (Single) */
.cpt-pdf-action-btn {
    background-color: var(--cpt-theme); 
    border-radius: 8px; 
    flex: 1;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
    color: white;
}
.cpt-pdf-action-btn:hover {
    background-color: var(--cpt-theme-hover);
    transform: translateY(-2px);
    color: white !important;
}

#fs-pdf-viewer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 99999;
    display: none;
}


/* ================= SPECIFIC CARD STYLES ================= */
.noticia-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.noticia-img {
    width: 100%;
    /* height: 100%; removido */
    object-fit: cover;
}
.noticia-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Eventos preview styles */
.slider-preview-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--colef-border, #e2e8f0);
    display: flex;
    flex-direction: row;
    background: #fff;
    box-shadow: 0 10px 25px rgba(3, 105, 123, 0.08);
}
.slider-preview-img {
    width: 45%;
    object-fit: cover;
    display: block;
}
.slider-preview-content {
    width: 55%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}
@media (max-width: 991px) {
    .slider-preview-card {
        flex-direction: column;
    }
    .slider-preview-img {
        width: 100%;
        height: 250px;
    }
    .slider-preview-content {
        width: 100%;
        padding: 1.5rem;
    }
}

/* Documentos specific */
.doc-icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--cpt-theme-light); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.doc-icon-circle i {
    font-size: 3rem;
    color: var(--cpt-theme);
}
.doc-term-badge {
    background-color: var(--cpt-bg-light);
    color: var(--cpt-theme);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 0.5rem; margin-top: 0;
}



/* ================= HOVER EFFECTS & LINK FIXES ================= */
.cpt-card-title a {
    transition: color 0.3s ease;
}
.cpt-card-title a:hover,
.cpt-card:hover .cpt-card-title a {
    color: var(--cpt-title-hover, var(--cpt-theme-hover)) !important;
}

.cpt-link > i.bi {
    margin-left: 8px;
    font-size: 1.35rem;
    transition: transform 0.3s ease;
}
.cpt-link:hover > i.bi {
    transform: translateX(5px);
}


/* ================= SINGLE CONTENT & LIGHTBOX ================= */
.content-text {
    text-align: justify;
}

/* Hacer las imagenes un poco mas pequenas en el contenido */
.content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Si es pantalla grande, limitamos a un tamano normal y permitimos varias por linea */
@media (min-width: 768px) {
    .content-text {
        text-align: justify;
    }
    .content-text p {
        margin-bottom: 1.5rem;
    }
    .content-text img {
        max-width: 48%; /* Permite hasta 2 imagenes por linea */
        margin: 0.5rem 1%;
        display: inline-block;
        vertical-align: middle;
    }
    /* Si hay 3 imagenes o mas seguidas, WP a veces las agrupa o usa galerias, pero esto ayuda */
    /* Respetar alineaciones de WordPress si las hay */
    .content-text img.alignleft {
        display: inline;
        float: left;
        margin: 0 1.5rem 1rem 0;
        max-width: 50%;
    }
    .content-text img.alignright {
        display: inline;
        float: right;
        margin: 0 0 1rem 1.5rem;
        max-width: 50%;
    }
}

.content-text img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Lightbox */
.cpt-lightbox {
    display: none;
    position: fixed;
    z-index: 2147483647 !important;
    left: 0;
    top: 0;
    width: 100%;
    /* height: 100%; removido */
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.cpt-lightbox.show {
    display: flex !important;
}
.cpt-lightbox-content {
    width: 90vw;
    height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: cpt-zoom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes cpt-zoom {
    from { transform: scale(0.7); opacity: 0; } 
    to { transform: scale(1); opacity: 1; }
}
.cpt-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}
.cpt-lightbox-close:hover {
    color: var(--cpt-theme, #f2a10f);
    transform: scale(1.1);
}

.cpt-lightbox-prev, .cpt-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2147483647 !important;
}
.cpt-lightbox-prev {
    left: 20px;
}
.cpt-lightbox-next {
    right: 20px;
}
.cpt-lightbox-prev:hover, .cpt-lightbox-next:hover {
    color: var(--cpt-theme, #f2a10f);
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
}



/* ================= EVENTOS SPECIFIC ================= */

/* Slider Semanal */
.slider-list-box {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fff;
    display: block;
}
.slider-list-box:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.slider-list-box.active { background-color: #90C6CD; border-color: #90C6CD; }
.slider-cat {
    color: #d37a00; 
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.slider-title {
    color: #333;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}
.slider-list-box.active .slider-title, 
.slider-list-box.active .slider-cat { color: #fff; }

.slider-preview-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    /* height: 100%; removido */
}
@media (min-width: 992px) {
    .slider-preview-card { flex-direction: row; min-height: 500px !important; }
}
.slider-preview-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
@media (min-width: 992px) {
    .slider-preview-img { width: 30%; min-width: 280px; height: auto; border-top-right-radius: 0; border-bottom-left-radius: 8px; }
}
.slider-preview-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Tarjeta Evento Grid */
.card-evento-grid {
    overflow: visible !important;
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    /* height: 100%; removido */
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
}
.card-evento-grid:hover {
    z-index: 100;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}
.card-evento-date-block {
    width: 180px;
    flex-shrink: 0;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}
.card-evento-content-block {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-evento-cat {
    color: #d37a00;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem; margin-top: 0;
}
.card-evento-title {
    color: #333;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem; margin-top: 0;
    transition: color 0.2s;
}
.card-evento-grid:hover .card-evento-title {
    color: var(--cpt-title-hover, #03697B);
}

/* Tooltip "Otras fechas" */
.otras-fechas-hover { position: relative; cursor: pointer; margin-top: 10px; width: 100%; z-index: 50; }
.otras-fechas-badge {
    font-size: 0.75rem; font-weight: 700; padding: 6px 10px; border-radius: 6px;
    background-color: #03697B; color: #fff; border: 1px solid #025766;
    transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center;
    width: 100%; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.otras-fechas-hover:hover .otras-fechas-badge { background-color: #025766; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.otras-fechas-menu {
    opacity: 0; visibility: hidden; transform: translateY(10px);
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px); z-index: 1050;
    background-color: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 0; box-shadow: 0 10px 25px rgba(0,0,0,0.15); min-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.otras-fechas-hover:hover .otras-fechas-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.otras-fechas-menu::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px; background-color: #f8fafc; border-top: 1px solid #e2e8f0; border-left: 1px solid #e2e8f0;
}
.of-menu-header {
    background-color: #f8fafc; padding: 8px 12px; border-bottom: 1px solid #f1f5f9;
    font-size: 1rem; font-weight: 700; color: #03697B; text-align: center; border-radius: 12px 12px 0 0;
}
.of-menu-list { list-style: none; padding: 0; margin: 0; max-height: 200px; overflow-y: auto; border-radius: 0 0 12px 12px; }
.of-menu-item { padding: 8px 12px; border-bottom: 1px solid #f8fafc; display: flex; align-items: center; gap: 8px; font-size: 1rem; color: #475569; }
.of-menu-item:last-child { border-bottom: none; }
.of-menu-item:hover { background-color: #f8fafc; }

/* BÃÂºsqueda MÃÂ³dulo Tabs */
.search-module-tabs {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    margin-bottom: 3rem;
}
.search-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.5rem;
    font-weight: 700;
    color: #03697B;
    border-right: 1px solid #dee2e6;
    transition: background 0.2s;
    font-size: 1.1rem;
}
.search-tab-btn:last-child { border-right: none; }
.search-tab-btn:hover { background: #f8f9fa; }
.search-tab-btn.active { background: #f8f9fa; border-bottom: 3px solid #03697B; }

.search-panels {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    margin-top: -2rem; 
}
.btn-close-search {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.btn-close-search:hover { color: #dc3545; }

/* Typography */
.theme-eventos .section-title {
    font-family: "ITC Eras Demi", sans-serif !important;
}

/* ================= EVENTOS HEADER & TITLES ================= */
.header-eventos {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    position: relative;
    min-height:450px;
}
.header-eventos::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(3, 105, 123, 0.6); 
    z-index: 1;
}
.header-eventos .container { position: relative; z-index: 2; }

/* TÃÂ­tulos de SecciÃÂ³n */
.section-title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.section-icon-circle {
    background-color: #81B4BD;
    color: white;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}
.section-title {
    color: #03697B;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    font-size: 1.4rem;
}
.section-line {
    flex-grow: 1;
    height: 2px;
    background-color: #03697B;
    margin-left: 15px;
    max-width: 250px;
}

/* ================= SINGLE EVENT ================= */
.single-evento-wrapper {
    background-color: #f8f9fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.header-evento {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding-top: 5rem;
    padding-bottom: 7rem;
}
.header-evento::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(129, 180, 189, 0.5);
    z-index: 1;
}
.header-content { position: relative; z-index: 2; }
.badge-evento { background-color: var(--colef-orange, #f39c12); color: white; padding: 6px 12px; border-radius: 4px; font-weight: 600; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.5px;}
.card-info-evento { border-radius: 12px; z-index: 10; margin-top: 20px; border: 1px solid #dee2e6 !important; }
@media (min-width: 992px) {
    .card-info-evento { position: absolute; top: 20px; right: 0; width: 100%; margin-top: 0; }
}
.card-invitado { border-radius: 12px; border-left: 6px solid #03697B !important; border: 1px solid #dee2e6; }
.text-tema-principal { color: #03697B !important; }
.text-colef-orange { color: var(--colef-orange, #f39c12) !important; }
.bg-tema-principal { background-color: #03697B !important; color: white !important; }

/* Colores de Botones de AcciÃÂ³n */
.btn-evento-action { background-color: #90C6CD; color: #03697B; border: 1px solid #03697B; font-weight: 600; transition: all 0.2s; border-radius: 4px; }
.btn-evento-action:hover { background-color: #81B4BD; color: #03697B; }
.btn-evento-action i { color: #03697B; }

/* Redes Sociales con sus colores oficiales */
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: white !important; border-radius: 4px; transition: opacity 0.2s; text-decoration: none; }
.social-btn:hover { opacity: 0.8; color: white; }
.btn-facebook { background-color: #4267B2; }
.btn-x { background-color: #000000; }
.btn-linkedin { background-color: #0077b5; }
.btn-whatsapp { background-color: #25D366; }
.btn-mail { background-color: #004F71; }

/* ============================================================== */
/* AJUSTES PARA LISTADO DE EVENTOS EN PORTADA (WIDGET CALENDARIO) */
/* ============================================================== */
.lista-eventos-calendario .card-evento-grid {
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--colef-line, #e2e8f0) !important;
    transition: background-color 0.2s ease !important;
}
.lista-eventos-calendario .card-evento-grid:last-child {
    border-bottom: none !important;
}
.lista-eventos-calendario .card-evento-grid:hover {
    transform: none !important; 
    box-shadow: none !important;
    background-color: var(--colef-soft, #f8fafc) !important; 
    z-index: 1;
}
.lista-eventos-calendario .card-evento-date-block,
.lista-eventos-calendario .card-evento-content-block {
    border-radius: 0 !important;
    background-color: transparent !important;
}
.btn-ver-todos-cal {
    color: var(--colef-orange, #e48600) !important;
    transition: color 0.2s ease;
}
.btn-ver-todos-cal:hover {
    color: var(--colef-orange-dark, #b36900) !important;
}
.hover-titulo-directo {
    transition: color 0.2s ease;
}
.hover-titulo-directo:hover {
    color: var(--colef-teal-deep, #006876) !important;
}

/* ---- Fecha en 3 renglones (igual que archive-evento) ---- */
.lista-eventos-calendario .card-evento-date-block {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 110px !important;
    min-width: 110px;
    padding: 1rem !important;
    text-align: center;
    background-color: #f8f9fa !important;
}
.lista-eventos-calendario .card-evento-date-block .ev-dia-semana {
    display: block;
    color: var(--cpt-theme, #03697B);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    margin: 0 !important;
}
.lista-eventos-calendario .card-evento-date-block .ev-dia-numero {
    display: block;
    color: var(--cpt-theme, #03697B);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    margin: 4px 0 !important;
}
.lista-eventos-calendario .card-evento-date-block .ev-mes {
    display: block;
    color: var(--cpt-theme, #03697B);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    line-height: 1;
    margin: 0 !important;
}

/* ---- Hora y ubicaciÃ³n en la misma lÃ­nea ---- */
.lista-eventos-calendario .card-evento-details {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 1rem;
}

/* ---- Bloque de contenido: info + flecha inline a la derecha ---- */
.lista-eventos-calendario .card-evento-content-block {
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem;
}
.lista-eventos-calendario .card-evento-content-block .ev-info {
    flex: 1;
    min-width: 0;
}
.lista-eventos-calendario .card-evento-content-block .cpt-btn-circle-arrow {
    flex-shrink: 0;
    align-self: center;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

/* ---- Hover: flecha tambiÃ©n cambia de color ---- */
.lista-eventos-calendario .card-evento-grid:hover .cpt-btn-circle-arrow {
    background-color: var(--cpt-theme, #03697B);
    color: #fff;
    transform: translateX(3px);
}

/* ---- Hover tÃ­tulo (igual que noticias) ---- */
.lista-eventos-calendario .card-evento-grid:hover .card-evento-title {
    color: var(--cpt-theme-hover, #024a56) !important;
}

/* ---- Ãltimo elemento: el card padre tiene overflow:hidden + rounded-4,
        lo que corta el fondo del hover en el Ãºltimo item.
        Solucion: el Ãºltimo item hereda el border-radius del card padre ---- */
.lista-eventos-calendario {
    overflow: visible !important;
}
.lista-eventos-calendario .card-evento-grid:last-child {
    border-bottom: none !important;
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
    overflow: hidden;
}

/* ---- SecciÃ³n: margen y sin padding extra (regla unificada) ---- */
#seccion-calendario {
    margin-top: 2.5rem;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
#seccion-calendario > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.cpt-card-date-block .bi { font-size: 2.5rem !important; margin-bottom: 0.2rem; }


/* Documentos Archive Overrides */
.theme-documentos .cpt-card {
    height: 100%;
}
.theme-documentos .cpt-card-title {
    color: #1e293b !important;
    font-size: 1.35rem;
    font-weight: 700;
}
.theme-documentos .cpt-card:hover .cpt-card-title {
    color: var(--colef-teal, #03697b) !important; /* Official Colef Teal on hover */
}
.theme-documentos .doc-term-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.theme-documentos .cpt-card-content {
    padding: 2.5rem 2rem 1.5rem;
}
.theme-documentos .cpt-link-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    color: var(--cpt-theme);
    font-weight: 700;
    background-color: #fafafa;
    margin-top: auto;
}
.theme-documentos .doc-footer-text {
    font-size: 0.95rem;
}
.theme-documentos .doc-btn-arrow {
    background-color: var(--cpt-theme-light);
    color: var(--cpt-theme);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}
.theme-documentos .cpt-card:hover .doc-btn-arrow {
    background-color: var(--cpt-theme);
    color: #fff;
    transform: translateX(4px);
}
.theme-documentos .doc-icon-circle {
    margin-bottom: 1.5rem;
}

/* ====================================================
   DISENO EXACTO ARCHIVE DOCUMENTOS
   ==================================================== */

.linea-decorativa {
    width: 60px;
    height: 4px;
    background-color: #f5b668;
    margin: 0 0 1.5rem 0;
    border-radius: 2px;
}
.section-title-docs {
    color: #006b7a !important;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.section-subtitle-docs {
    color: #888;
    font-size: 1rem;
    margin-bottom: 3rem;
}
.theme-documentos .cpt-card {
    border: 1px solid #f5b668 !important;
    text-align: left;
    height: 100%;
}
.theme-documentos .cpt-card-content {
    padding: 2.5rem 2rem 2rem;
    align-items: flex-start;
}
.doc-icon-circle {
    width: 60px;
    height: 60px;
    background-color: #fce7c9 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-left: 0 !important;
}
.doc-icon-circle i {
    font-size: 2rem !important;
    color: #e08018 !important;
}
.theme-documentos .cpt-card-title {
    color: #006b7a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.theme-documentos .doc-term-badge {
    background-color: #e0f2f1 !important;
    color: #006b7a !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.theme-documentos .doc-term-desc {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
}
.theme-documentos .cpt-link-wrap {
    background-color: #fff6e8 !important;
    border-top: 1px solid #f5b668 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    margin-top: auto;
}
.theme-documentos .doc-footer-text {
    color: #e08018 !important;
    font-weight: 700;
    font-size: 1rem;
}
.theme-documentos .doc-btn-arrow {
    background-color: #e08018 !important;
    color: #fff !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}
.theme-documentos .cpt-card:hover .doc-btn-arrow {
    transform: translateX(4px);
    background-color: #006b7a !important;
}
.theme-documentos .cpt-card:hover .doc-footer-text {
    color: #006b7a !important;
}


/* ====================================================
   DISENO EXACTO TAXONOMY DOCUMENTOS (card-doc-list)
   ==================================================== */

.card-doc-list {
    border: 1px solid #e3d1bb;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-doc-list:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.card-doc-list h4 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--colef-teal, #03697b); /* Tono Jade por defecto */
    line-height: 1.5;
    margin-bottom: 1rem;
}
.doc-divider {
    border-top: 1px solid #e3d1bb;
    opacity: 1;
    margin: auto 0 1.5rem 0;
}
.doc-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.doc-stat-item {
    display: flex;
    align-items: center;
}
.doc-stat-item i {
    font-size: 1.1rem;
}
.btn-ver-doc {
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    align-self: flex-start;
    transition: opacity 0.2s;
}
.btn-ver-doc:hover {
    opacity: 0.9;
}

.title-line { border-bottom: 1px solid var(--cpt-theme); color: var(--cpt-theme); }


/* ====================================================
   EFECTOS HOVER DINAMICOS PARA TAXONOMY DOCUMENTOS
   ==================================================== */

/* Preparar elementos para transiciones suaves */
.card-doc-list {
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}
.card-doc-list h4 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--colef-teal, #03697b); /* Tono Jade por defecto */
    line-height: 1.5;
    margin-bottom: 1rem;
}
.btn-ver-doc {
    transition: filter 0.3s ease, transform 0.2s ease, opacity 0.3s ease !important;
}

/* 1. Fondo de la card cambia suavemente */
.card-doc-list:hover {
    background-color: var(--cpt-bg-light, #fef9f3) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    transform: translateY(-3px); /* Ligero levantamiento */
}

/* 2. Color de la fuente cambia al color dinamico de la categoria */
.card-doc-list:hover h4 {
    color: var(--cpt-theme) !important;
}

/* 3. El color del boton reacciona (se oscurece ligeramente por el color inline) */
.card-doc-list:hover .btn-ver-doc {
    background-color: var(--colef-teal, #03697b) !important;
    filter: none;
}

/* Si se hace hover directo sobre el boton, un extra de feedback */
.card-doc-list .btn-ver-doc:hover {
    background-color: var(--colef-teal, #03697b) !important;
    filter: brightness(0.9) !important;
    transform: scale(1.03);
}

/* Hacer toda la tarjeta clickeable sin alterar HTML */
.card-doc-list { position: relative; }
.btn-ver-doc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.btn-ver-doc { position: relative; z-index: 2; }

/* PDF Buttons Custom (Single) */
.cpt-pdf-action-btn-custom {
    background-color: var(--cpt-theme);
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.document-viewer .cpt-pdf-action-btn-custom { aspect-ratio: 1/1; }
.cpt-pdf-action-btn-custom:hover {
    background-color: var(--cpt-theme-hover) !important;
    color: #fff !important;
    transform: scale(1.02);
}

/* ============================================================== */
/* AJUSTES PARA SECCIÓN DOCUMENTOS EN PORTADA                     */
/* ============================================================== */

/* Título del documento: negro por defecto, jade en hover
   Alta especificidad para ganar sobre .theme-documentos .cpt-card-title */
#seccion-documentos .cpt-card .cpt-card-title,
#seccion-documentos .cpt-card .cpt-card-title a {
    color: #1a1a1a !important;
    transition: color 0.25s ease;
}
#seccion-documentos .cpt-card:hover .cpt-card-title,
#seccion-documentos .cpt-card:hover .cpt-card-title a {
    color: var(--colef-jade, #00695c) !important;
}

/* Tipo de documento: naranja, sin hover */
#seccion-documentos .doc-tipo-link {
    color: var(--colef-orange, #e48600);
    text-decoration: none;
    transition: none;
    pointer-events: auto;
}
#seccion-documentos .doc-tipo-link i {
    color: var(--colef-orange, #e48600);
}

/* Botón Ver documento: naranja */
#seccion-documentos .cpt-pdf-action-btn {
    background-color: var(--colef-orange, #e48600) !important;
    border-color: var(--colef-orange, #e48600) !important;
}
#seccion-documentos .cpt-pdf-action-btn:hover {
    background-color: var(--colef-orange-dark, #b36900) !important;
    border-color: var(--colef-orange-dark, #b36900) !important;
}

/* Botón "Ver todos": jade + círculo flecha que cambia en hover */
#seccion-documentos .btn-ver-todos-docs {
    color: var(--colef-jade, #00695c) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    transition: color 0.2s ease;
}
#seccion-documentos .btn-ver-todos-docs .cpt-btn-circle-arrow {
    background-color: #b2dfdb;
    color: var(--colef-jade, #00695c);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
#seccion-documentos .btn-ver-todos-docs:hover {
    color: var(--colef-jade-dark, #004f46) !important;
}
#seccion-documentos .btn-ver-todos-docs:hover .cpt-btn-circle-arrow {
    background-color: var(--colef-jade, #00695c);
    color: #fff;
    transform: translateX(4px);
}

/* Icono del encabezado: círculo naranja suave con ícono naranja oscuro */
#seccion-documentos .doc-icono-seccion {
    background-color: #fce7c9;
    color: var(--colef-orange, #e48600);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

/* Línea decorativa del encabezado en naranja */
#seccion-documentos .linea-encabezado {
    height: 2px;
    width: 80px;
    background-color: var(--colef-orange, #e48600);
    opacity: 0.6;
}

/* Título de sección en naranja */
#seccion-documentos .titulo-seccion {
    color: var(--colef-orange, #e48600);
}

/* ============================================================== */
/* BTN VER TODOS - NARANJA (reutilizable: Convocatorias y otros)  */
/* Mismo efecto que .btn-ver-todos-docs pero en naranja           */
/* ============================================================== */
.btn-ver-todos-orange {
    color: var(--colef-orange, #e48600) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    gap: 0.5rem;
    transition: color 0.2s ease;
}
.btn-ver-todos-orange .cpt-btn-circle-arrow {
    background-color: #fce7c9;
    color: var(--colef-orange, #e48600);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ver-todos-orange:hover {
    color: var(--colef-orange-dark, #b36900) !important;
}
.btn-ver-todos-orange:hover .cpt-btn-circle-arrow {
    background-color: var(--colef-orange, #e48600);
    color: #fff;
    transform: translateX(4px);
}

/* ====================================================
   ESTILOS DE BUSQUEDA (search.php)
   ==================================================== */
.search-hover-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.search-hover-card:hover { transform: translateY(-8px); box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important; }
.search-card-img { object-fit: cover; transition: transform 0.6s ease; }
.search-hover-card:hover .search-card-img { transform: scale(1.08); }
.search-text-hover:hover { color: var(--colef-teal, #03697b) !important; }

@keyframes searchShakeNo { 0%, 75%, 100% { transform: translateX(0) rotate(0deg); } 80% { transform: translateX(-6px) rotate(-4deg); } 85% { transform: translateX(6px) rotate(4deg); } 90% { transform: translateX(-4px) rotate(-2deg); } 95% { transform: translateX(4px) rotate(2deg); } }
.animated-sad-search { animation: searchShakeNo 4s ease-in-out infinite; transform-origin: center; }

.theme-investigaciones {
    --cpt-theme: #006b7a;
    --cpt-theme-overlay: linear-gradient(to right, rgba(0, 10, 30, 0.95) 0%, rgba(0, 10, 30, 0.6) 50%, transparent 100%);
    --cpt-stat-bg-1: #b4d3d6; /* Pale Teal */
    --cpt-stat-icon-1: #006b7a; /* Dark Teal */
    --cpt-stat-bg-2: #f2c788; /* Pale Orange */
    --cpt-stat-icon-2: #df8000; /* Orange */
    --cpt-stat-bar-bg: #f4f8f9;
    --cpt-stat-border: #a2c6cb;
}

/* ================= INVESTIGACIONES ================= */
.floating-stats-bar {
    background-color: var(--cpt-stat-bar-bg, #fff);
    border-radius: 8px;
    border: 1px solid var(--cpt-stat-border, #e2e8f0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.stat-icon-circle {
    border-radius: 50%;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.custom-stat-border {
    position: relative;
}
@media (min-width: 992px) {
    .custom-stat-border::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        border-right: 1px solid var(--cpt-stat-border, #e2e8f0);
    }
}
.stat-icon-teal {
    background-color: var(--cpt-stat-bg-1);
    color: var(--cpt-stat-icon-1);
}
.stat-icon-orange {
    background-color: var(--cpt-stat-bg-2);
    color: var(--cpt-stat-icon-2);
}

@media (max-width: 991px) {
    .theme-investigaciones {
        --cpt-theme-overlay: linear-gradient(to right, rgba(0, 10, 30, 0.95) 0%, rgba(0, 10, 30, 0.8) 100%);
    }
    .floating-stats-bar {
        margin-top: 1rem !important;
    }
}

/* ================= INVESTIGACIONES CARDS & GRID ================= */
.investigacion-card {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 8px;
    border: 1px solid #e2e8f0 !important;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible !important;
}
.investigacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    z-index: 40 !important;
}
/* Contenedor de imagen: ancho completo, altura fija */
.investigacion-card .card-img-top {
    width: 100% !important;
    height: 220px !important;
    flex-shrink: 0;
    overflow: hidden !important;
    border-radius: 8px 8px 0 0;
    display: block;
}
.investigacion-card .card-img-top a {
    display: block;
    width: 100%;
    height: 100%;
}
.investigacion-card .card-img-top img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.investigacion-card:hover .card-img-top img {
    transform: scale(1.05);
}

/* Título de la investigación (completo sin recortar) */
.investigacion-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cpt-theme, #006b7a);
    line-height: 1.35;
    margin-bottom: 0.35rem;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
}
.investigacion-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: normal;
    overflow-wrap: break-word;
}
.investigacion-title a:hover {
    color: var(--cpt-stat-icon-2, #df8000) !important;
}

/* Fecha alineada a la derecha debajo del título */
.investigacion-fecha {
    font-size: 0.85rem;
    color: #64748b;
}
.investigacion-fecha .investigacion-meta-icon {
    width: auto;
    height: auto;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0;
}

/* Metadatos perfectamente alineados */
.investigacion-meta {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: #64748b;
}
.investigacion-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.35;
}
.investigacion-meta-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
    text-align: center;
}
.investigacion-meta-text {
    flex-grow: 1;
    color: #475569;
    word-break: break-word;
}

/* Badge flotante +X */
.cpt-extras-hover {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 6px;
    z-index: 50;
}
.cpt-extras-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    background-color: #03697B;
    color: #fff;
    border: 1px solid #025766;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cpt-extras-hover:hover .cpt-extras-badge {
    background-color: #025766;
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.cpt-extras-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    z-index: 2000;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    min-width: 250px;
    max-width: 320px;
}
.cpt-extras-hover:hover .cpt-extras-menu {
    display: block;
}
.cpt-extras-menu::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 14px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-bottom: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    transform: rotate(45deg);
}

/* ========================================================
   SINGLE INVESTIGACIONES
   ======================================================== */
.single-investigacion-wrapper {
    background-color: #ffffff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header Banner */
.investigacion-header-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
}
.investigacion-header-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0, 10, 30, 0.9) 0%, rgba(0, 10, 30, 0.6) 60%, rgba(0, 10, 30, 0.4) 100%);
    z-index: 1;
}
.investigacion-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.kicker-investigaciones {
    color: #e88600;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.kicker-line-investigaciones {
    width: 60px;
    height: 3px;
    background-color: #e88600;
    display: inline-block;
}

.btn-volver-investigaciones {
    background-color: #c88426;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 10px 22px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}
.btn-volver-investigaciones:hover {
    background-color: #b3731c;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Título de la Investigación */
.investigacion-single-title {
    color: #00507a;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
}

/* Metadatos (Ejes y Año) */
.text-colef-gold {
    color: #c88426 !important;
}
.meta-label-gold {
    color: #c88426;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.meta-val-gold {
    color: #c88426;
    font-weight: 700;
    font-size: 0.95rem;
}
.badge-eje-pill {
    background-color: #fffdfa;
    border: 1.5px solid #f0cc9f;
    color: #b45309 !important;
    border-radius: 50px;
    padding: 4px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}
.badge-eje-pill:hover {
    background-color: #fef3e2;
    border-color: #c88426;
    color: #78350f !important;
    transform: translateY(-1px);
}

/* Tarjeta de Investigador */
.investigacion-inv-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    border-left: 6px solid #e88600 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.investigacion-inv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}
.inv-avatar {
    width: 65px;
    height: 65px;
    min-width: 65px;
    object-fit: cover;
    border-radius: 50%;
    background-color: #e2e8f0;
}
.inv-name {
    color: #c88426;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}
.inv-bio {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.6;
    text-align: justify;
}

/* Sidebar Boxes (Teal outline) */
.sidebar-teal-card {
    background-color: #ffffff;
    border: 1.5px solid #8ec5ce !important;
    border-radius: 12px;
    overflow: hidden;
}
.sidebar-teal-header {
    color: #006b7a;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* En Resumen */
.resumen-num {
    background-color: #d8edf1;
    color: #006b7a;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.resumen-text {
    font-size: 0.85rem;
    color: #1e293b;
    line-height: 1.5;
    text-align: justify;
}

/* Publicaciones Relacionadas */
.rel-pub-item {
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.rel-pub-item:hover {
    background-color: #f0f7f8;
    border-color: #8ec5ce;
    transform: translateX(3px);
}
.rel-pub-img {
    width: 65px;
    height: 50px;
    min-width: 65px;
    object-fit: cover;
    background-color: #cbd5e1;
}
.rel-pub-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rel-pub-item:hover .rel-pub-title {
    color: #006b7a;
}

/* Estadísticas */
.stats-number {
    color: #006b7a;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    font-family: system-ui, -apple-system, sans-serif;
}
.stats-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    margin-top: 4px;
}
.stats-divider {
    width: 1px;
    height: 45px;
    background-color: #b4d3d6;
}
