/* =====================================================
   VARIABLES Y BASE
===================================================== */
:root {
    --api-yellow: #f5c400;
    --api-dark: #212529;
    --api-light: #f8f9fa;
    --api-gray: #495057;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =====================================================
   HERO UNIVERSIDADES
===================================================== */
.universidades-hero {
    background: linear-gradient(135deg, #111, var(--api-dark));
    color: #fff;
    padding: 130px 0 70px;
    text-align: center;
}

.universidades-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.universidades-hero p {
    font-size: 1.25rem;
    max-width: 720px;
    margin: 10px auto 0;
    color: #e0e0e0;
}

/* =====================================================
   SUBMENÚ UNIVERSIDADES
===================================================== */
.submenu-universidades {
    background: var(--api-light);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 65px;
    z-index: 900;
}

.submenu-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 14px 5px;
    align-items: center;
}

/* Scroll horizontal elegante */
.submenu-scroll::-webkit-scrollbar {
    height: 5px;
}
.submenu-scroll::-webkit-scrollbar-thumb {
    background: var(--api-yellow);
    border-radius: 10px;
}

/* Items del submenú */
.submenu-item {
    padding: 9px 22px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--api-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background: var(--api-yellow);
    border-color: var(--api-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245,196,0,0.4);
}

.submenu-item.active {
    background: var(--api-dark);
    color: #fff;
    border-color: var(--api-dark);
}

/* =====================================================
   FILTROS
===================================================== */
.filtros {
    text-align: center;
    margin-bottom: 30px;
}

.filtros .btn {
    border-radius: 30px;
    padding: 8px 22px;
    margin: 6px;
    border: 1.5px solid var(--api-yellow);
    background: transparent;
    color: var(--api-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.filtros .btn:hover,
.filtros .btn.active {
    background: var(--api-yellow);
    color: var(--api-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245,196,0,0.45);
}

/* =====================================================
   TARJETAS DE RECURSOS
===================================================== */
.recurso-card {
    background: #fff;
    border-radius: 18px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

/* HOVER TARJETA (SOMBRA AMARILLA API) */
.recurso-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 16px 32px rgba(245,196,0,0.45),
        0 6px 14px rgba(0,0,0,0.18);
}

/* CONTENEDOR DE IMAGEN */
.recurso-card .recurso-img {
    width: 100%;
    background: #f4f4f4;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGEN COMPLETA */
.recurso-card .recurso-img img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

/* CUERPO */
.recurso-card .card-body {
    padding: 18px 20px;
    flex-grow: 1;
    text-align: center;
}

.recurso-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--api-dark);
}

.recurso-card p {
    font-size: 0.95rem;
    color: var(--api-gray);
    margin-bottom: 12px;
}

/* LISTA */
.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
    text-align: left;
}

.info-list li {
    font-size: 0.9rem;
    color: var(--api-gray);
    margin-bottom: 6px;
}

/* BOTÓN */
.recurso-card .btn {
    margin: 0 20px 20px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--api-yellow);
    background: transparent;
    color: var(--api-dark);
    transition: all 0.3s ease;
}

/* HOVER BOTÓN AMARILLO */
.recurso-card .btn:hover {
    background: var(--api-yellow);
    color: var(--api-dark);
    box-shadow: 0 6px 18px rgba(245,196,0,0.55);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    .universidades-hero h1 {
        font-size: 2.3rem;
    }

    .universidades-hero p {
        font-size: 1.1rem;
    }

    .submenu-item {
        font-size: 0.85rem;
        padding: 8px 18px;
    }

    .recurso-card .recurso-img img {
        max-height: 160px;
    }
}

/* Botones de las tarjetas: íconos de tamaño normal (gratuito.css agranda los íconos de .recurso-card) */
.recurso-card .btn i { font-size: 1.05em; margin: 0 .35rem 0 0; color: inherit; }
.recurso-card .badge { display: inline-block; width: auto; }
