/* BUSCADOR DE CURSOS - ESTILOS ESPECÍFICOS */

/* ===== CAJA DE BÚSQUEDA ===== */
#cajaBusqueda {
    padding: 30px 0 0 0;
    background-color: #26384d;
    height: 200px;
}

#caja1 {
    margin: 30px auto;
    padding: auto 10px 0 10px;
}

.search_subtitle {
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.search-container {
    display: flex;
    justify-content: space-between;
    box-shadow: 2px 1px 6px #999;
    border-radius: 20px;
    cursor: pointer;
    padding-inline-start: 20px;
    padding-inline-end: 20px;
    background-color: white;
}

#search-box {
    border: none;
    box-shadow: none;
    flex-grow: 1;
}

#search-box:focus {
    outline: none;
    box-shadow: none;
}

/* ===== LISTA DE CURSOS ===== */
#cursos {
    padding-bottom: 60px;
    background-color: #F2F2F2;
}

#directory {
    display: none;
    list-style: none;
    padding-left: 0;
}

#directory li {
    list-style: none;
}

/* ===== TARJETAS DE CURSOS ===== */
.cursos {
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.cursos:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    cursor: pointer;
}

.cursos .card-head {
    overflow: hidden;
}

.cursos .card-head img {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    height: 140px;
    object-fit: cover;
    width: 100%;
}

.cursos .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ===== TÍTULOS ===== */
.nombre_del_curso {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding: 0 10px;
}

.nombre_del_curso center {
    display: block;
    width: 100%;
}

.nombre_del_curso center:hover {
    color: #0087c6;
    transition: color 0.3s ease;
}

/* Ocultar spans que contienen palabras clave para búsqueda */
.nombre_del_curso span {
    display: none;
}

/* ===== LOGOS DE INSTITUCIONES ===== */
.card-body .logo-institucion {
    display: block;
    width: 60%;
    height: auto;
    margin: 0 auto;
}

/* ===== BOTÓN "MÁS INFORMACIÓN" ===== */
.masinf {
    text-align: center;
    background: white;
    padding: 5px 0 0 0;
    margin-top: auto;
}

.info {
    color: #0087c6;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.info:hover {
    transform: scale(1.2);
}

.info i {
    margin-left: 5px;
}

/* ===== ENLACES ===== */
#directory a {
    text-decoration: none;
    color: inherit;
}

#directory a:hover {
    text-decoration: none;
}

/* ===== BOTÓN SUBIR ===== */
.boton-subir {
    position: fixed;
    bottom: 200px;
    /* right: 20px; */
    z-index: 999;
    display: none;
    background-color: #0087c6;
    color: white;
    padding: 10px 10px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.boton-subir:hover {
    background-color: #006699;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.boton-subir i {
    font-size: 24px;
}

/* ===== ESTADOS DE VISIBILIDAD ===== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #cajaBusqueda {
        height: auto;
        padding: 20px 0;
    }
    
    #caja1 {
        margin: 15px auto;
    }
    
    .search-container {
        padding-inline-start: 15px;
        padding-inline-end: 15px;
    }
    
    .cursos:hover {
        transform: scale(1.02);
    }
    
    .nombre_del_curso {
        height: auto;
        min-height: 50px;
        font-size: 0.85rem;
    }
    
    .cursos .card-head img {
        height: 120px;
    }
    
    .boton-subir {
        bottom: 80px;
        right: 15px;
        padding: 10px 12px;
    }
    
    .boton-subir i {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .cursos .card-head img {
        height: 100px;
    }
    
    .nombre_del_curso {
        font-size: 0.8rem;
        min-height: 45px;
    }
}