.contenedor-search {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.contenedor-search form {
    width: 100%;
    max-width: 600px;
}
button, a{
    padding: 6px 8px!important;
    font-size: 15px!important;
}

a{
    text-decoration: none!important;
    color: inherit!important;
}

.contenedor-search input {
    flex: 1;
    margin-right: 10px;
}

.contenedor-search button {
    flex-shrink: 0;
}


.contenedor-cursos {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contenedor-curso {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}


.apartado-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.apartado-imagen img {
    width: 100%;
    height: auto;
    border-radius: 5px 0 0 5px;
}

.apartado-texto {
    flex: 3;
    padding: 15px;
}

.contenedor-curso h5 {
    margin: 0;
    font-size: 1.25rem;
}

.contenedor-curso p {
    margin: 10px 0;
    color: #555;
}

.contenedor-curso .btn {
    margin-top: 10px;
}

.contenedor-curso .btn-ver-mas {
    background-color: #007bff;
    color: white!important;
}

.contenedor-curso .btn-inscribirme {
    background-color: #28a745;
    color: white!important;
}

.contenedor-curso .btn-ver-mas:hover {
    background-color: #0056b3;
    color: white;
}

.contenedor-curso .btn-inscribirme:hover {
    background-color: #218838;
    color: white;
}

.contenedor-curso .footer-contenedor-curso {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contenedor-curso .text-fecha {
    margin: 0;
    color: #888;
}

.contenedor-curso .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 800px) {

    /* Cambia layout a columna */
    .contenedor-curso {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    /* Imagen más pequeña y centrada */
    .apartado-imagen {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }

    .apartado-imagen img {
        max-width: 200px; /* Limita tamaño de imagen */
        width: 100%;
        height: auto;
        border-radius: 5px;
    }

    /* Texto ocupa todo el ancho */
    .apartado-texto {
        width: 100%;
        padding: 10px;
    }

    /* Footer en columna */
    .footer-contenedor-curso {
        display: flex;
        flex-direction: column;
        align-items: stretch; /* Que ocupe todo el ancho */
        margin-top: 10px;
        gap: 10px; /* Espacio entre bloques */
    }

    /* Ajustar fecha */
    .footer-contenedor-curso .text-fecha {
        margin-bottom: 10px;
    }

    /* Botones en columna y full width */
    .contenedor-botones {
        display: flex;
        flex-direction: column;
        width: 90%;
        gap: 10px; /* Espacio entre botones */
    }

}
