.banner {
    width: 100%;
    text-align: center;
    margin: 20px 0;
    position: relative;
    height: 300px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}


.grid-recuadros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    justify-content: center;
    width: 80%;
    margin: 20px auto;
}

.recuadro {
    width: 300px;
    height: 220px;
    display: block;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recuadro-img {
    width: 100%;
    height: 70%;
    margin-bottom: 10px;
    object-fit: cover;
}

.recuadro-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 1px;
}

.recuadro-link {
    font-size: 0.9rem;
    color: #ff4500;
    text-decoration: none;
    font-weight: bold;
}

.recuadro-link:hover {
    text-decoration: underline;
}

.recuadro:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#recuadro-10 {
    grid-column: span 3;
}

@media (max-width: 768px) {
    .grid-recuadros {
        grid-template-columns: 1fr;
    }

    .recuadro {
        width: 100%;
        height: auto;
    }

    #recuadro-10 {
        grid-column: span 1;
    }
    .banner {
        height: 350px;
    }

    .banner img {
        filter: brightness(100%);
    }

    .banner-text {
        font-size: 1.2rem;
    }
}


.well {
    padding-top: 30px;
    padding-bottom: 30px;
}

.titulomas{
    text-align: center;
    color:#494b52 ;
}

hr{
    max-width: 106px;
    height: 4px;
    margin: 0;
    padding: 0;
    border: none;
    background: #4280c9;
}

.btn-quieresabermas {
    text-decoration: none;
    display: inline-block;
    padding: 18.5px 20px;
    line-height: 24px;
    color: #FFF;
    background: #4280c9;
    font-weight: 500;
    font-size: 24px;
    text-transform: uppercase;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-quieresabermas:hover {
    background-color: #0059b3; 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}