.hero-dashboard .hero-wrap .text-hero {
    position: absolute;
    top: 75%;
}

.hero-dashboard .hero-wrap .text-hero h2 {
    font-size: 35px;
    line-height: 40px;
    width: auto;
    max-width: 700px;
    font-weight: 600;
    margin-bottom: 0px;
    margin-top: 40px;
    align-self: center;
}


/* Info Grid Section */
.info-grid .info-item-left:nth-child(3) {
    border-end-start-radius: 30px
}

.info-grid .info-item-right:nth-child(4) {
    border-end-end-radius: 30px
}

/* Six Cards Features */
.slider-title {
    margin-bottom: 0px;
    font-size: 30px;
    font-weight: 500;
    line-height: 48.12px;
    text-align: center;
    padding-top: 10px;
}

.features-section p.subtitle {
    color: #636363;
    margin-bottom: 40px;
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 31.68px;
    text-align: center;

}


.features-section .cards-section {
    display: flex;
    gap: 13px;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    pointer-events: none;
}

.features-section .card {
    width: calc((100% / 3) - 10px);
    cursor: none;
    display: flex;
    height: auto;
    max-height: 500px;
    aspect-ratio: 1;
    flex-direction: row;
}

.features-section .card:not(.blue-content) .card-content {
    background: #F8F8F8;
}

.features-section .card:not(.blue-content) .card-content * {
    color: #636363;
}

.features-section .card .card-content {
    opacity: 1;
    background: #233E99;
    padding: 49px 38px;
}

.features-section .card .card-overlay {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.features-section .card .card-overlay .card-title {
    font-weight: 600;
    font-size: 25px;
}

.features-section .card .card-overlay .card-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

/* Principles Section */
.principles-section {
    display: flex;
    flex-direction: column;
}

.principles-container {
    display: flex;
    flex-direction: row;
    gap: 13px;
}

.principles-text.info-card.blue-content {
    background: #233E99;
}

.principles-text.info-card,
.principles-details.info-card {
    gap: 20px;
    display: flex;
    flex-direction: column;
    padding: 50px;
    width: 50%;
    justify-content: flex-start;
}

.principles-details.info-card .details-text {
    gap: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.details-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 65px;
    align-content: center;
}

.details-buttons a {
    width: 350px
}

.card-content .text a{
    color: #636363;
    cursor: pointer;
}

@media screen and (max-width: 1300px) {
    .hero-dashboard .hero-wrap .text-hero {
        width: 60%;
        margin: 0 auto;
        position-area: center;
    }


    /* Info Grid Section */
    .info-grid h3 {
        margin-bottom: 3%;
    }

        .info-grid h3 {
        font-size: 25px
    }

    .slider-title {
    font-size: 25px;
    font-weight: 600;
}
    
     #bienestar-container .principles-section h3 {
    font-size: 22px;
    line-height: 28px;
  }

    /* Six Cards Features */

    .features-section .card {
        width: calc((100% / 3) - 10px);
        min-height: 350px;
    }

    .features-section .card .card-overlay .card-title {
        margin-bottom: 8%;
        width: 90%;
    }


    .features-section .card .card-overlay .card-text {
        gap: 0px;
    }

}


@media screen and (max-width: 1000px) {
    div#bienestar-container {
        margin-bottom: 200px;
    }

    /* Hero dashboard */
    .hero-dashboard .hero-wrap .text-hero h2 {
        font-size: 30px !important;
        line-height: 30px;
    }

    /* Borders Info Grid Section */
    .info-grid .info-item-right:nth-child(2),
    .info-grid figure:nth-of-type(2),
    .info-grid figure:nth-of-type(3) {
        aspect-ratio: 3/2;
    }

    /* Six Cards Features */
    .hero-dashboard .features-section .card {
        aspect-ratio: 3/1;
        min-height: 300px;
    }

    .details-buttons {
        margin-top: 25px;
    }

    .details-buttons * {
        width: 50%;
    }
}

@media screen and (max-width: 768px) {

    div#bienestar-container {
        margin-bottom: 150px;
    }

    /* Hero dashboard */
    .hero-dashboard .hero-wrap .text-hero h2 {
        font-size: 25px !important;
        line-height: 30px;
    }

    .hero-dashboard .hero-wrap .text-hero {
        width: 80%;
        margin: 0 auto;
        position-area: center;
        top: 85%;
    }

    .hero-dashboard .hero-wrap .text-hero h2 {
        font-weight: 600;
    }


    /* Six Cards Features */
    .info-grid .info-item-left:nth-child(3),
    .info-grid figure:nth-of-type(3) {
        border-radius: 30px 30px 0 0;
        border-end-end-radius: unset;
        aspect-ratio: 390/346;
    }

    .info-grid figure:nth-of-type(4) .card-content {
        padding-bottom: 30px;
    }

    /* Borders Info Grid Section */
    .info-grid .info-item-right:nth-child(2),
    .info-grid figure:nth-of-type(2),
    .info-grid figure:nth-of-type(3) {
        aspect-ratio: 390/346;
    }


    /* Features Section */
    .features-section p.subtitle {
        margin-block: 0 30px;
        padding-block: 0;
    }

    .info-grid figure:nth-of-type(4) {
        border-radius: 0 0 30px 30px;
    }

    /* Six Cards Features */
    .hero-dashboard .features-section .card {
        aspect-ratio: 348/292;
    }

    /* Principles Section */

    .principles-section .details-buttons {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .principles-section .details-buttons a {
        width: 57%;
    }

}


@media screen and (max-width: 490px) {
    div#bienestar-container {
        margin-bottom: 100px;
    }

    /* Hero dashboard */
    .hero-dashboard .hero-wrap .text-hero {
        width: 85%;
        margin: 0 auto;
        position-area: center;
        top: 65%;
    }

    .principles-section .details-buttons a {
        width: 56%;
        line-height: 16px
    }

}