.hero-section {
    height: 62vh;
    overflow: hidden;
}

.hero-overlay {
    background: rgba(0, 51, 153, 0.5);
    height: 62vh;
    z-index: 1;
}

.hero-img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-text {
    z-index: 2;
}

.titulo-animado {
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 1.5s ease-out forwards;
    font-family: "Roboto-Bold";
    color: white;
    font-size: 2.8rem;
    text-shadow: 2px 2px 3px #2b2b2b;
}

.subtitulo-animado {
    font-family: 'Roboto-Regular';
    font-size: 1.3rem;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*/ Filtro de cursos */

.filtro-formacion {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

.buscador-div-menu {
    margin: 1.8rem 0;
    position: relative;
}

.buscador-input-menu {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid #000000;
    font-size: 1.1rem;
    color: #000000;
    box-shadow: none;
    outline: none;
    padding-top: 1rem;
    transition: border-color 0.2s;
    font-family: "Montserrat-Regular";
    margin-bottom: 0.5rem;
}

.buscador-input-menu:focus {
    border-color: #007bff;
}

.opcion {
    text-decoration: none;
    margin-right: 2rem;
    font-family: "Montserrat-Bold";
    color: var(--azul-bajo);
    cursor: pointer;
}


.filtro-div ul {
    list-style-type: none;
    padding-left: 0;
}

.filtro-div li {
    font-family: 'Montserrat-Regular';
    font-size: 0.8rem;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filtro-div h6 {
    font-family: 'Roboto-Bold';
    color: var(--azul-botones);
    font-size: 1rem;
    margin-left: 0.3rem;
}

.filtro-div input[type="checkbox"] {
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid gray;
    border-radius: 0.25rem;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
    margin-right: 0.5rem;
}

.filtro-div input[type="checkbox"]:checked {
    background-color: var(--azul-botones, #007bff);
    border-color: var(--azul-botones, #007bff);
}

.filtro-div input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    position: absolute;
    left: 0.45rem;
    top: 0.08rem;
    width: 0.3rem;
    height: 0.7em;
    border: solid #fff;
    border-width: 0 0.18rem 0.18rem 0;
    transform: rotate(45deg);
}

.filtro-div label {
    cursor: pointer;
    font-family: 'Montserrat-Regular';
    font-size: 1rem;
    user-select: none;
    color: rgb(0, 0, 0);
}

.btn-ver-cursos-center {
    font-family: 'Montserrat-Bold';
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto 0 auto;
    width: fit-content;
    background-color: var(--azul-botones);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    width: 100%;
    border-radius: 0.5rem;
}

.btn-ver-cursos-center:hover {
    color: var(--azul-botones);
    background: #f1f5fa;
    transition: all 0.3s ease;
}

.img-formacion {
    width: 100%;
}

.filtro-div ul li {
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: nowrap;
}

.filtro-div ul li label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-check {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.form-check-label {
    flex: 1 1 0;
    min-width: 0;
    word-break: break-word;
}

/*/ Cursos */

.cursos-formacion {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    height: 100%;
    min-height: auto;
    justify-content: flex-start;
}

.cursos-resultados {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cursos-resultados h6 {
    font-family: 'Montserrat-Regular';
    margin: 0.5rem 0;
    font-size: 1rem;
}

.select-cursos {
    padding: 1.8rem 2rem 0.5rem 1.2rem;
    font-family: 'Montserrat-Regular';
    border-radius: 0.4rem;
    cursor: pointer;
    border: 1px solid #888;
    background-color: white;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

.select-cursos:hover {
    border-color: #888;
    background-color: #f9f9f9;
}

.select-cursos:focus {
    outline: none;
    transition: border-color 0.2s;
    border-color: var(--azul-botones);
    box-shadow: 0 0 5px var(--azul-bajo);
    background-color: #fff;
}

.curso-vista {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 26rem;

}

.cursos-categoria {
    font-family: "Montserrat-Bold";
    font-size: 0.8rem;
    color: var(--azul-fuerte);
    background: #f1f5fa;
    padding: 0.35rem 1rem 0.35rem 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
    margin-bottom: 0.1rem;
    z-index: 2;
    position: static;
    text-align: center;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.03);
    display: block;
    padding: 0.8rem;
    margin-bottom: -1rem;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    flex: 1 1 auto;
    padding-bottom: 1.5rem;
    width: 100%;
    position: relative;
}

.curso-boton {
    width: 100%;
    margin-top: auto;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    text-decoration: none;
    font-family: "Roboto-Bold";
    font-size: 0.9rem;
    color: #f1f5fa;
    background: var(--azul-fuerte);
    padding: 0.8rem;
}

.curso-boton:hover {
    color: var(--azul-fuerte);
    background: #f1f5fa;
    transition: all 0.3s ease;
}

.card-img-top {
    width: 100%;
    object-fit: cover;
    min-height: 50%;
}

.card-title {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-family: "Montserrat-Bold";
    font-size: 1.1rem;
}

.card-text {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-family: "Montserrat-Bold";
    font-size: 1rem;
    color: var(--azul-fuerte);
    height: 3rem;
}


@media (min-width: 1200px) {
    .filtro-div {
        min-width: 21rem;
    }

    .cursos-formacion {
        min-width: calc(3 * 18.9rem + 2 * 1rem + 2rem);
    }
}

@media (min-width: 992px) {
    .filtro-formacion {
        position: sticky;
        top: 30px;
        z-index: 1019;
        background: #fff;
        margin-bottom: 5rem;
    }
}

.rowitems {
    display: flex;
    flex-direction: row;
}

@media (width: 1280px) and (height: 800px) and (orientation: landscape) {
  .filtro-formacion {
        position: relative;
        width: 65rem !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 2rem !important;
        margin-top: 0rem !important;
    }
}