/* Clients Section */
.clients-section {
    background-color: var(--background);
    padding: 80px 0;
}

.clients-section .section-title {
    font-family: var(--family);
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 45px;
    color: var(--white);
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.clients-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    min-height: 80px;
}

.client-logo {
    flex: 0 0 16.66%;
    padding: 0 1rem;
    text-align: center;
    transition: all 0.5s ease;
}

.client-logo img {
    height: 40px;
    max-width: 140px;
    filter: brightness(1);
    opacity: 1;
    transition: all 0.3s ease;
    object-fit: contain;
}

/* Bullets */
.slider-bullets {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    gap: 0.5rem;
}

.bullet {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--info);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.bullet.active {
    opacity: 1; 
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .clients-logos {
        justify-content: center;
    }
    .client-logo {
        flex: 0 0 33.33%; /* Tres logos por fila en tablets */
        margin-bottom: 1rem;
    }
}
@media (max-width: 576px) {
    .client-logo {
        flex: 0 0 50%; /* Dos logos por fila en móviles pequeños */
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    .clients-section .section-title{
        font-size: 20px;
    }
}


/* Solutions Section */
.solutions-section {
    background-color: var(--background);
    padding: 4rem 0;
}

.section-header.text-center{
    max-width: 1200px;
    margin: 0 auto;
}

.solutions-section .section-title {
    font-family: var(--family);
    font-weight: 700;
    font-size: 48px;
    line-height: 60px;
    color: var(--white);
}

.solutions-section .section-description {
    font-family: var(--family);
    font-weight: 400;
    font-size: 22px;
    line-height: 30px;
    max-width: 1168px;
    margin: 0 auto 3rem;
    color: var(--text);
}

.solutions-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.solution-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 388px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: solid 1px var(--main);
}

.card-header {
    padding: 70px 30px 10px;
    text-align: center;
    background-color: var(--white);
}

.card-header img {
    height: 45px;
    max-width: 100%;
    object-fit: contain;
}

.card-body {
    padding-top: 50px;
    padding-bottom: 70px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body p {
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    max-width: 324px;
    height: 252px;
    margin: 0 auto;
    text-align: center;
    color: #9795B5;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .section-header.text-center{
        max-width: 990px;
        margin: 0 auto;
    }
}
@media (max-width: 992px) {
    .section-header.text-center{
        max-width: 760px;
        margin: 0 auto;
    }
    .solutions-section .section-title{
        font-size: 36px;
        line-height: 40px;
    }
    .solutions-section .section-description{
        font-size: 16px;
        line-height: 26px;
    }
    .solutions-cards {
        padding: 15px;
    }
    .solution-card {
        max-width: 300px;
    }
    .solution-card {
        max-width: 304px;
    }
    .card-header img{
        width: 188px;
    }
    .card-header.K2BGov img{
        width: 108px;
    }
    .card-header{
        padding: 40px 0 0;
    }
    .card-body{
        padding: 10px 35px 35px;
    }
    .card-body p{
        font-size: 16px;
        line-height: 22px;
        height: auto;
    }
}
@media (max-width: 768px) {
    .section-header.text-center{
        max-width: 570px;
        margin: 0 auto;
    }
}
@media (max-width: 576px) {
    .section-header.text-center{
        max-width: 370px;
        margin: 0 auto;
    }
}
@media (max-width: 370px) {
    .section-header.text-center{
        max-width: 320px;
        margin: 0 auto;
    }
}


/* Advantages Section */
.advantages-section {
    background-color: var(--background);
    padding: 4rem 0;
}

.advantages-section .section-title {
    margin-top: 140px;
    margin-bottom: 100px;
    font-family: var(--family);
    font-weight: 700;
    font-size: 48px;
    letter-spacing: -2.5%;
    line-height: 60px;
    color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.advantage-item {
    text-align: center;
    padding: 1.5rem;
}

.advantage-item img{
    width: 50px;
    margin-bottom: 20px;
}

.advantage-item h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 30px;
    line-height: 40px;
}

.advantage-item p {
    color: var(--text);
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

.btn-conoce-mas {
    display: inline-flex;
    align-items: center;
    background-color: var(--main);
    color: var(--white);
    font-size: 19px;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: 0.5%;
    padding: 16.66px 38.09px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(93, 104, 240, 0.3);
    border: none;
    cursor: pointer;
}

.btn-icon {
    margin-right: 10px;
}

.btn-conoce-mas:hover {
    background-color: #4b56e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 104, 240, 0.4);
}

.btn-conoce-mas:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .advantages-section {
        padding: 0;
    }
    .advantages-grid{
        gap: 0;
    }
    .advantages-section .section-title{
        font-size: 36px;
        line-height: 40px;
        margin-top: 0px;
        margin-bottom: 50px;
    }
}
@media (max-width: 380px) {
    .advantages-section .section-title{
        font-size: 36px;
        line-height: 40px;
        margin-top: 0px;
        margin-bottom: 20px;
    }
}


/* Red Section */
.red {
    background-color: var(--background);
    padding-bottom: 50px;
}

.red .box-smaller {
    float: right;
    padding-left: 2%;
}

.red .box-smaller h2 {
    color: var(--white);
} 

.red .box-smaller p {
    font-size: 19px;
    line-height: 28px;
    color: var(--text);
}

.red .box-smaller .box-grid {
    float: left;
    margin-top: 3rem;
    margin-bottom: 6rem;
}

.red .box-smaller .box-grid .grid {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    float: left;
    padding: 0 1rem;
    width: 50%;
}

.red .box-smaller .box-grid .grid h3 {
    font-size: 37px;
    line-height: 54px;
    padding: 10px 0 0 0;
    text-align: center;
    color: var(--white);
}

.red .box-smaller .box-grid .grid p {
    font-size: 18px;
    line-height: 25px;
    text-align: center;
    color: var(--text);
}

.red .box-smaller .box-grid .grid.one {
    border-bottom: solid 2px rgba(119, 126, 166, 0.15);
    border-right: solid 2px rgba(119, 126, 166, 0.15);
}

.red .box-smaller .box-grid .grid.two {
    border-bottom: solid 2px rgba(119, 126, 166, 0.15);
}

.red .box-smaller .box-grid .grid.three {
    border-right: solid 2px rgba(119, 126, 166, 0.15);
}

.red .box-larger img {
    -webkit-box-shadow: none;
    box-shadow: none;
    float: left;
}

.red .box-smaller p:last-of-type {
    margin-bottom: 2rem;
}

.red .box-larger .btn-conoce-mas.mobile {
    display: none;
}
.red .box-smaller .box-grid .grid p.metric-number {
    font-size: 37px;
    line-height: 54px;
    font-weight: 700;
    padding: 10px 0 0 0;
    text-align: center;
    color: var(--white);
    margin-bottom: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 989px) {
    .red article{
        padding-top: 0;
    }
    .red .box-smaller p,
    .red .box-smaller h2 {
        text-align: center;
    }
    .red .box-smaller .btn-conoce-mas {
        display: none;
    }
    .red .box-larger .btn-conoce-mas.mobile {
        display: block;
        margin-top:50px;
    }
    .red .box-larger {
        text-align: center;
    }
    .red .box-smaller .btn-arrow {
        margin: 0 auto;
    }
    .red .box-smaller .box-grid {
        display: block;
        float: initial;
        margin: 0 auto;
        padding-top: 4rem;
    }
    .red .box-larger {
        width: 100%;
    }
    .red .box-smaller {
        text-align: center;
        padding-bottom: 3rem;
        padding-left: 0 !important;
        padding-top: 2rem;
        width: 100%;
    }
    .red .box-smaller .btn-conoce-mas {
        margin-top: 50px;
    }
}
@media (max-width: 576px) {
    .red .box-smaller h2{
        font-size: 36px;
        line-height: 40px;
    }
    .red .box-smaller p {
        font-size: 16px;
        line-height: 26px;
    }
    .red .box-smaller .box-grid .grid p {
        font-size: 13px;
    }
    .red .box-larger .btn-conoce-mas.mobile {
        padding: 16.66px 15.09px;
    }
}


/* ERP Solution Section */
.erp-solution-section {
    background-color: var(--background); /* Fondo azul oscuro */
    color: var(--white);
    padding-top: 120px;
}

.erp-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 100px;
}

.erp-image {
    flex: 1;
    max-width: 50%;
}

.erp-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.erp-content {
    flex: 1;
    max-width: 50%;
}

.erp-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 60px;
    text-align: left;
    color: var(--white);
}

.erp-description {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 30px;
    color: var(--text);
}

.erp-cta {
    display: inline-flex;
    align-items: center;
    color: var(--main);
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.arrow-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.erp-cta:hover .arrow-icon {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .erp-container {
        max-width: 990px;
    }
}
@media (max-width: 992px) {
    .erp-container {
        max-width: 760px;
        flex-direction: column;
        gap: 30px;
    }
    .erp-image, .erp-content {
        max-width: 100%;
    }
    .erp-title {
        font-size: 30px;
    }
}
@media (max-width: 768px) {
    .erp-container {
        max-width: 570px;
    }
}
@media (max-width: 576px) {
    .erp-container {
        max-width: 390px;
    }
    .erp-title {
        font-size: 36px;
        line-height: 40px;
    }
    .erp-description {
        font-size: 15px;
    }
}
@media (max-width: 390px) {
    .erp-container {
        max-width: 320px;
    }
}


/* Sure Section */
.sure-bg {
    background:  var(--background);
    padding: 60px 20px 100px;
    position: relative;
    overflow: hidden;
}

.sure-bg .bg-img__sure {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    object-fit: contain;
}

.content-noticias {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.content-noticias article {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-noticias h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 10px;
}

.content-noticias p.text-center {
    font-size: 22px;
    line-height: 30px;
    color: var(--text);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 50px;
}

.news-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.news-card {
    background-color: var(--white);
    border: solid 1px var(--white);
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    height: 360px; /* Ajusta según necesidad */
    padding: 25px;
}

.news-card h3 {
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    color: #0b1030;
    margin-bottom: 15px;
    line-height: 110%;
}

.news-card p {
    flex-grow: 1;
    font-size: 18px;
    line-height: 160%;
    color: #0F172A;
}

.news-card a {
    display: inline-flex;
    align-items: center;
    color: var(--main);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card a:hover {
    color: #4b56e8;
}

.news-card a svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.news-card a:hover svg {
    transform: translateX(5px);
}

.btn.btn-orange {
    background-color: var(--white);
    color: var(--main);
    font-size: 18px;
    line-height: 150%;
    font-weight: 600;
    padding: 16px 48px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    display: inline-block;
    text-transform: none;
}

.btn.btn-orange:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .news-container {
        gap: 20px;
    }
    .news-card {
        max-width: 320px;
    }
}

@media (max-width: 992px) {
    .sure-bg .content-noticias article{
        padding-top: 50px;
    }
    .content-noticias h2 {
        font-size: 36px;
    }
    .news-card {
        max-width: 300px;
    }
    .sure-bg .bg-img__sure{
        display: none;
    }
    .news-card-content {
        height: 300px;
    }
    .news-card h3{
        font-size: 18px;
        margin-bottom: 0px;
    }
    .news-card p{
        font-size: 14px;
    }
    .news-card a{
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
        align-items: center;
    }
    .news-card {
        max-width: 450px;
    }
    .btn.btn-orange {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .sure-bg {
        padding: 40px 15px 80px;
        padding-bottom: 0;
    }
    .content-noticias h2 {
        font-size: 36px;
        line-height: 40px;
    }
    .content-noticias p.text-center {
        font-size: 16px;
        line-height: 26px;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: url('/wp-content/themes/actotal-child/img/background-news.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 302px;
    padding: 64px 32px;
}

.newsletter-container {
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.newsletter-container h2 {
    font-size: 36px;
    line-height: 56px;
    color: var(--white);
    margin-bottom: 50px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .newsletter-container h2 {
        line-height: 35px;
    }
    .newsletter-section {
        background-position: 90%;
    }
}
@media (max-width: 576px) {
    .newsletter-container h2 {
        font-size: 22px;
    }
}
@media (max-width: 476px) {
    .newsletter-section {
        height: 345px;
    }
}
