/* ============================================================
   FILO · Secretaría de Investigación
   Hoja de estilos unificada y normalizada
   ============================================================ */

/* ============================================================
   1. VARIABLES / PALETA DE COLORES
   ============================================================ */
:root {
    /* Colores principales */
    --primary: #1e2655;
    --primary-light: #2c3a7a;
    --secondary: #53bfab;
    --secondary-dark: #45a897;
    --fucsia: #D9006C;
    --fucsia-light: #fce4f0;

    /* Colores secundarios / fondos */
    --amarillo-claro: #FCCD83;
    --azul-claro: #e8ecf5;
    --verde-claro: #e6f7f3;

    /* Neutros */
    --blanco: #fff;
    --fondo: #f8f7f4;
    --texto: #444;
    --texto-suave: #6c757d;
    --borde: #e9ecef;
    --borde-azulado: #3a4a7a;
    --footer-texto: #d4dce8;
    --footer-link: #c8d6e6;

    /* Sombras y radios */
    --sombra-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --sombra-md: 0 8px 25px rgba(0, 0, 0, 0.08);
    --radio: 12px;
}

/* ============================================================
   2. BASE / TIPOGRAFÍA
   ============================================================ */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--fondo);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Noto Serif', serif;
}

/* ============================================================
   3. UTILITARIOS DE COLOR Y BORDE
   ============================================================ */

/* Fondos */
.bg-primary-custom   { background-color: var(--primary) !important; }
.bg-secondary-custom { background-color: var(--secondary) !important; }
.bg-fucsia-light     { background-color: var(--fucsia-light) !important; }
.bg-azul-claro       { background-color: var(--azul-claro) !important; }
.bg-verde-claro      { background-color: var(--verde-claro) !important; }
.bg-yellow-light     { background-color: var(--amarillo-claro) !important; }

/* Textos */
.text-primary-custom   { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.text-fucsia           { color: var(--fucsia) !important; }
.text-gris             { color: var(--texto); }
.text-gris:hover       { color: var(--fucsia); }

/* Bordes */
.border-fucsia           { border-color: var(--fucsia) !important; }
.border-secondary-custom { border-color: var(--secondary) !important; }

/* ============================================================
   4. BOTONES
   ============================================================ */
.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--blanco);
}
.btn-primary-custom:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--blanco);
}

.btn-secondary-custom {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--blanco);
}
.btn-secondary-custom:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--blanco);
}

.btn-outline-fucsia {
    color: var(--fucsia);
    border-color: var(--fucsia);
}
.btn-outline-fucsia:hover {
    background-color: var(--fucsia);
    border-color: var(--fucsia);
    color: var(--blanco);
}

/* ============================================================
   5. HEADER / NAVEGACIÓN / DROPDOWN
   ============================================================ */
.navbar {
    background-color: var(--blanco);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.navbar-brand img {
    max-height: 55px;
}

.nav-link {
    font-weight: 600;
    color: var(--texto) !important;
    text-transform: uppercase;
}
.nav-link:hover,
.nav-link.active {
    color: var(--fucsia) !important;
}

.dropdown-item:hover {
    background-color: var(--fucsia-light);
    color: var(--fucsia);
}

/* Dropdown hover en desktop */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .dropdown-toggle::after {
        transition: transform 0.2s;
    }
    .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* ============================================================
   6. CARDS Y PROYECTOS
   ============================================================ */
.project-card {
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 1.5rem;
    box-shadow: var(--sombra-sm);
    height: 100%;
    border-bottom: 3px solid transparent;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    box-shadow: var(--sombra-md);
    border-bottom-color: var(--fucsia);
}

.browse-card {
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 1.2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--borde);
    height: 100%;
    transition: all 0.2s;
}
.browse-card:hover {
    border-color: var(--fucsia);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.browse-card .icon {
    color: var(--secondary);
    font-size: 1.8rem;
}
.browse-card:hover .icon {
    color: var(--fucsia);
}

/* Etiquetas (Tags) */
.project-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
}


.tag-primary         { background-color: var(--primary);   color: var(--blanco); }
.tag-secondary       { background-color: var(--secondary); color: var(--blanco); }
.tag-primary-light   { background-color: var(--azul-claro);    color: var(--primary); }
.tag-secondary-light { background-color: var(--verde-claro);   color: var(--primary); }
.tag-yellow-light    { background-color: var(--amarillo-claro); color: var(--primary); }

/* Contenido interno de las cards */

body#body_id_1 main.container {
    margin-top: 100px;
    margin-bottom: 150px;
}

.project-card .director-name a,
.project-card .codirector-name a {
    font-size: 0.8rem;
    color: var(--texto-suave);
    font-weight: 600;
    text-decoration: none;
    

}
.project-card .director-name {
    margin: 0
}


.project-card .description {
    font-size: 0.9rem;
    color: var(--texto);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    margin-top: 0.5rem;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: flex-start;
}

/* El span que agrupa las palabras clave */
.div-keywords {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    max-width: 100%;
    padding-left: 0 !important;
}

/* Cada etiqueta individual: que no se estire más allá de la tarjeta */
.project-tag,
.div-keywords a {
    max-width: 100%;
    white-space: normal;      /* permite que el texto de la etiqueta se parta en 2 líneas si es muy largo */
    word-break: break-word;   /* corta palabras muy largas */
    overflow-wrap: anywhere;
    display: inline-block;
}

/* La tarjeta recorta cualquier cosa que se salga por las dudas */
.project-card {
    overflow: hidden;
}

/* ============================================================
   SIDEBAR DE FILTROS
   ============================================================ */

/* --- Contenedor principal --- */
.filters-sidebar .card {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(30, 38, 85, 0.06);
    overflow: hidden;
}

/* --- El #facets-container: que NO se vea como card-header --- */
.filters-sidebar .card > #facets-container {
    background: #fff;
    border: none;
    padding: 0;
}

/* --- El card-header anidado: convertilo en título limpio --- */
.filters-sidebar #facets-container > .card-header {
    background: linear-gradient(135deg, #1e2655 0%, #2a3572 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border: none;
    margin: 0;
    border-radius: 0;
}

.filters-sidebar #facets-container > .card-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ícono decorativo antes del título */
.filters-sidebar #facets-container > .card-header h5::before {
    content: "\F3E2";                 /* bi-funnel en Bootstrap Icons */
    font-family: "bootstrap-icons";
    font-size: 1rem;
    opacity: 0.9;
}

/* --- Cuerpo de los filtros --- */
.filters-sidebar #facets-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* --- Cada filtro --- */
.filters-sidebar .facets-container-vertical {
    margin-bottom: 1.25rem;
}

.filters-sidebar .facets-container-vertical:last-child {
    margin-bottom: 0;
}

/* --- Labels --- */
.filters-sidebar label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* --- Selects --- */
.filters-sidebar select.facet {
    width: 100%;
    padding: 0.6rem 2.2rem 0.6rem 0.9rem;
    font-size: 0.95rem;
    color: #1e2655;
    background-color: #e6f7f3;
    border: 1.5px solid #e5e8ef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Flecha custom con SVG inline */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e2655'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

.filters-sidebar select.facet:hover {
    border-color: #53bfab;
    background-color: #fff;
}

.filters-sidebar select.facet:focus {
    outline: none;
    border-color: #1e2655;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(83, 191, 171, 0.2);
}

/* --- Ocultar el wrapper .select-arrow si tenía flecha vieja --- */
.filters-sidebar .select-arrow {
    position: relative;
}

/* --- Botón de limpiar filtros (si lo agregás) --- */
.filters-sidebar .clear-filters {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e2655;
    background: #f0f7f4;
    border: 1.5px solid #c9e8de;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filters-sidebar .clear-filters:hover {
    background: #53bfab;
    color: #fff;
    border-color: #53bfab;
}

#facets-container form select {
    width: 100%;
    border: 0;
    background-color: #e6f7f3;
    text-align: left;
    font-size: 100%;
}

.text-primary-custom a {
    color:#1e2655;
    text-decoration: none;
}






/* --- Sticky en desktop (que siga al scroll) --- */
@media (min-width: 992px) {
    .filters-sidebar .card {
        position: sticky;
        top: 1.5rem;
    }
}

/* --- En mobile: que no ocupe tanto --- */
@media (max-width: 991.98px) {
    .filters-sidebar {
        margin-bottom: 1.5rem;
    }
    .filters-sidebar #facets-body {
        padding: 1rem 1.25rem;
    }
    .filters-sidebar #facets-container > .card-header {
        padding: 1rem 1.25rem;
    }
}


/* ============================================================
   7. TÍTULOS DE SECCIÓN
   ============================================================ */
.section-title {
    position: relative;
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 3px;
    background-color: var(--secondary);
}
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================================
   8. HERO
   ============================================================ */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--verde-claro) 0%, var(--fucsia-light) 100%);
    border-bottom: 4px solid var(--secondary);
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}
.hero-badge {
    background-color: var(--primary);
    color: var(--blanco);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
}
.recuadro {
    padding: 40px !important;
}
.divider-col {
    border-right: 1px solid #dee2e6;
}

/* ============================================================
   9. SECCIONES DE CONTENIDO
   ============================================================ */

/* --- 9.1 Acerca de --- */
.acerca-section {
    background-color: var(--blanco);
    padding-left: 4rem;
    padding-right: 4rem;
    padding-top: 150px;
    padding-bottom: 150px;
}
.acerca-text {
    line-height: 1.9;
    color: var(--texto);
    font-size: 1.05rem;
}
.acerca-link {
    color: var(--fucsia);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.acerca-link:hover {
    text-decoration: underline;
}


/* ===== PALETA DE COLORES ===== */
/* =========================================================
   1) CONTENEDOR DE LA NUBE DE ETIQUETAS
   ========================================================= */
.hTagcloud .popularity.record-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.hTagcloud .popularity.record-tags li {
    display: inline-block;
}

/* =========================================================
   2) ESTILO BASE DE CADA ETIQUETA
   (anula el background-color inline que genera Omeka)
   ========================================================= */
.popularity.record-tags .record-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary) !important;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

/* =========================================================
   3) VARIACIÓN DE COLOR POR POSICIÓN (nth-child)
   Esto hace que las etiquetas roten entre los 3 colores claros
   ========================================================= */
.popularity.record-tags li:nth-child(3n+1) .record-tag {
    background-color: var(--azul-claro) !important;
}
.popularity.record-tags li:nth-child(3n+2) .record-tag {
    background-color: var(--verde-claro) !important;
}
.popularity.record-tags li:nth-child(3n) .record-tag {
    background-color: var(--amarillo-claro) !important;
}

/* =========================================================
   4) VARIACIÓN DE TAMAÑO POR POPULARIDAD
   ========================================================= */
.popularity.record-tags .v-popular     .record-tag { font-size: 0.85rem; }
.popularity.record-tags .vv-popular    .record-tag { font-size: 0.95rem; }
.popularity.record-tags .vvv-popular   .record-tag { font-size: 1.05rem; }
.popularity.record-tags .vvvv-popular  .record-tag { font-size: 1.15rem; }
.popularity.record-tags .vvvvv-popular .record-tag { font-size: 1.25rem; }


   
.popularity.record-tags .record-tag:hover {
  
    transform: translateY(-2px);
}



    /* ===== CONVOCATORIAS CARDS ===== */
        /* ============================================================ */
        /* ========== TIPOS DE PROYECTOS - ESTILOS ==================== */
        /* ============================================================ */

  .conv-card {
    border-bottom: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

/* ---- Títulos ---- */
.conv-card__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.conv-card__title--oscuro {
    color: #1e2655;
}

/* ---- Descripción ---- */
.conv-card__desc {
    font-size: 0.9rem;
    opacity: 0.85;
}

.conv-card__desc--oscuro {
    color: #444;
    opacity: 1;
}

/* ---- Badges ---- */
.conv-card__badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

/* ---- Variantes de fondo ---- */
.conv-card--azul {
    background-color: #1e2655;
    color: #fff;
}

.conv-card--verde {
    background-color: #53bfab;
    color: #fff;
}

.conv-card--azul-claro {
    background-color: #e8ecf5;
    color: #1e2655;
}

.conv-card--verde-claro {
    background-color: #e6f7f3;
    color: #1e2655;
}

/* ---- Variantes de badges ---- */
.conv-card__badge--verde {
    background-color: #53bfab;
    color: #fff;
}

.conv-card__badge--azul {
    background-color: #1e2655;
    color: #fff;
}

.conv-card__badge--azul-oscuro {
    background-color: #1e2655;
    color: #fff;
}

.conv-card__badge--verde-oscuro {
    background-color: #53bfab;
    color: #fff;
}

/* --- 9.2 Institutos --- */
.institutos-section {
    padding-top: 100px;
    padding-bottom: 150px;
}
.instituto-destacado {
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 1.5rem;
    box-shadow: var(--sombra-sm);
    height: 100%;
    transition: all 0.2s;
    border-top: 4px solid transparent;
}
.instituto-destacado:hover {
    box-shadow: var(--sombra-md);
    border-top-color: var(--fucsia);
}
.instituto-destacado .icon {
    color: var(--secondary);
    font-size: 2rem;
}
.instituto-destacado:hover .icon {
    color: var(--fucsia);
}
.institutos-text {
    line-height: 1.9;
    color: var(--texto);
    font-size: 1.05rem;
}

/* --- 9.3 Buscador --- */
.search-section {
    background: linear-gradient(135deg, var(--verde-claro) 0%, var(--fucsia-light) 100%);
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}
.search-simple {
    max-width: 700px;
    margin: 0 auto;
}
.search-simple .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.search-simple .input-group input {
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
}
.search-simple .input-group button {
    border-radius: 0 50px 50px 0;
    padding: 0.8rem 2rem;
}
.search-simple .btn-outline-fucsia {
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
}



/* ============================================================
   10. DETALLE DE PROYECTO: METADATOS Y RELACIONADOS
   ============================================================ */
.metadata-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--borde);
}
.metadata-item:last-child {
    border-bottom: none;
}
.metadata-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Quita bullets a TODOS los li y ul dentro de metadata-value */
.metadata-item .metadata-value ul,
.metadata-item .metadata-value ol,
.metadata-item .metadata-value li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Quita cualquier bullet generado por pseudo-elementos */
.metadata-item .metadata-value li::before,
.metadata-item .metadata-value li::marker {
    content: none !important;
    display: none !important;
}

/* Elimina sangrías */
.metadata-item .metadata-value ul,
.metadata-item .metadata-value ol {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.text-primary-custom a {
    color:#1e2655;
    text-decoration: none;
}

.text-primary-custom a:hover {
    color: #D9006C;
}



.bg-yellow-light a,
.bg-yellow-light a:link,
.bg-yellow-light a:visited,
.bg-yellow-light a:hover,
.bg-yellow-light a:active {
    color: inherit !important;
    text-decoration: none !important;
}

/* Enlaces dentro de la sección Datos clave */
/* Enlaces dentro de "Datos clave" (convocatoria, disciplina, etc.) */
.bg-white .d-flex.flex-column a,
.bg-white .d-flex.flex-column a:link,
.bg-white .d-flex.flex-column a:visited {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* Quitar color azul del enlace dentro del badge de convocatoria */
.bg-secondary-custom a {
    color: #ffffff !important;
    text-decoration: none;
}

/* Efecto hover: cambia de color y subraya */
.bg-white .d-flex.flex-column a:hover {
    color: #D9006C !important;   /* tu color fucsia/primary-custom */
    text-decoration: underline !important;
    opacity: 0.9;
}

/* Al hacer click */
.bg-white .d-flex.flex-column a:active {
    color: #b0005a !important;
    opacity: 1;
}


.related-project {
    padding: 1rem;
    background: var(--blanco);
    border-radius: 8px;
    border-left: 4px solid var(--fucsia);
    transition: box-shadow 0.2s;
}
.related-project:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Citación */
.citation-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--secondary);
}

/* Paginación entre proyectos */
.pagination {
    margin-top: 50px;

}

     .page-link {
            color: #1e2655;
        }

        .page-link:hover {
            color: #D9006C;
        }

        .page-item.active .page-link {
            background-color: #1e2655;
            border-color: #1e2655;
            color: #fff;
        }

/* About */


.about-hero {
    border-bottom: 4px solid #53bfab;
    height: 60vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    justify-content: center;
}

.about-hero .badge {
    background-color: #1e2655;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
}

/* ===== BLOQUES ===== */
.about-block {
    padding: 4rem 0;
}

.about-block:nth-child(even) {
    background-color: #f8f9fa;
}

.about-block .block-icon {
    font-size: 3rem;
    color: #53bfab;
    margin-bottom: 1rem;
}

.about-block .block-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e2655;
    margin-bottom: 1.5rem;
}

.about-block p,
.about-block li {
    color: #444;
    line-height: 1.8;
}

.about-block ul {
    padding-left: 1.2rem;
}

.about-block ul li {
    margin-bottom: 0.35rem;
}

/* ===== TARJETAS DE CARACTERÍSTICAS ===== */
.about-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    /* ← sombra reforzada */
    height: 100%;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.about-feature-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    /* ← hover más fuerte */
    border-bottom-color: #D9006C;
}

.about-feature-card .icon {
    font-size: 2.2rem;
    color: #53bfab;
    margin-bottom: 0.75rem;
    text-align: center;
}

.title-caraceristicas {
    text-align: center;
}

/* ===== LISTA "CÓMO BUSCAR" ===== */
.about-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.about-list-item:last-child {
    border-bottom: none;
}

.about-list-item .list-icon {
    font-size: 1.5rem;
    color: #53bfab;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ===== CRÉDITOS ===== */
.credits-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    /* ← sombra reforzada */
    height: 100%;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.credits-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    /* ← hover más fuerte */
    border-bottom-color: #D9006C;
}

.credits-card .icon {
    font-size: 2rem;
    color: #53bfab;
    /* verde en lugar de fucsia */
    margin-bottom: 0.75rem;
}

.credits-card h6 {
    color: #1e2655;
    font-weight: 700;
}

.credits-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
    background-color: var(--primary);
    color: var(--footer-texto);
    margin-top: 0;
}
.footer a {
    color: var(--footer-link);
    text-decoration: none;
}
.footer a:hover {
    color: var(--fucsia);
    text-decoration: underline;
}
.footer hr {
    border-color: var(--borde-azulado);
}
.footer .nav-link {
    color: var(--footer-link) !important;
    padding: 0.2rem 0;
}
.footer .nav-link:hover {
    color: var(--fucsia) !important;
}

/* ============================================================
   12. BREADCRUMB
   ============================================================ */
.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--fucsia);
}
.breadcrumb-item.active {
    color: var(--texto-suave);
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .search-hero {
        padding: 2rem 0;
    }
    .search-hero .search-box {
        border-radius: 30px;
        padding: 0.3rem 0.3rem 0.3rem 1rem;
    }
    .search-hero .search-box input {
        font-size: 1rem;
    }
    .search-hero .search-box button {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }

    .filtros-lateral {
        padding: 1rem;
        max-height: 400px;
    }
    .filtros-lateral .form-check-label {
        font-size: 0.75rem;
    }

    .metadata-item {
        padding: 0.5rem 0;
    }
    .conv-card__title {
        font-size: 1.8rem;
    }

    .tipos-proyectos {
        padding-top: 60px !important;
        padding-bottom: 90px !important;
    }
    .about-hero {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .about-block {
        padding: 2.5rem 0;
    }

    .about-block .block-title {
        font-size: 1.6rem;
    }

    .about-feature-card {
        padding: 1.5rem;
    }

    .credits-card {
        padding: 1.5rem;
    }

}

/* ============================================
   ENLACES ALTERNADOS DENTRO DE UN DIV CON CLASE
   Solo CSS — sin JavaScript
   ============================================ */

/* Contenedor principal */
.div-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  font-family: system-ui, sans-serif;
}

/* Estilo base para los enlaces */
.div-keywords a {
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.div-keywords a:nth-child(3n + 1) {
  background-color: #e8ecf5; /* Celeste */
  color: #1e2655
}
.div-keywords a:nth-child(3n + 2) {
  background-color: #FCCD83; /* Amarillo */
  color: #1e2655
}
.div-keywords a:nth-child(3n + 3) {
  background-color: #e6f7f3; /* Verde */
  color: #1e2655;
}
/* Efecto hover opcional */
.div-keywords a:hover {
  transform: scale(1.05);
}

.project-tag.tag-secondary a {
color: #fff;
text-decoration: none
}


/* ============================================================
   Fila de etiquetas dentro de las tarjetas del listado
   (PIP / FiloCyT + palabras clave)
   ============================================================ */
.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;          /* separación entre la etiqueta y las keywords */
}

/* Ni la etiqueta de tipo (PIP/FiloCyT) ni el span de keywords
   deben comportarse como bloque */
.project-card-tags .project-tag,
.project-card-tags .div-keywords {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 0 0 auto;      /* que no se estiren ni se aplasten */
}

/* Separación interna entre las palabras clave */
.project-card-tags .div-keywords {
    gap: .35rem;
}

/* Los <a> internos siempre en línea */
.project-card-tags .div-keywords a {
    display: inline;
}