/* =================================
   HEADER - TABLET Y MOBILE
================================= */

@media (max-width: 991.98px) {

    .site-header .navbar-collapse {
        padding: 20px 0;
    }

    .site-header .navbar-nav {
        align-items: flex-start !important;
        gap: 8px;
    }

    .site-header .nav-link {
        padding: 8px 0;
    }

    .site-header .nav-item.ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 10px;
    }

}

/* =================================
   HERO - TABLET
================================= */

@media (max-width: 991.98px) {

    .hero-slide {
        min-height: auto;
    }

    .hero-slide > .container,
    .hero-slide > .container > .row {
        min-height: auto;
    }

    .hero-content {
        padding: 60px 20px 20px;
    }

    .hero-image {
        height: auto;
        padding: 20px 15px 0;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }

    .hero-text h1{
        font-size: 20px;
    }

    .hero-text h1 span{
        font-size: 70px;
    }
}


/* =================================
   HERO - MOBILE
================================= */

@media (max-width: 767.98px) {

    .hero-content {
        text-align: center;
        padding: 50px 20px 15px;
    }

    .hero-text h1 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-image {
        padding: 20px 15px 0;
    }
}

/* ========================================
   ABOUT / RESPONSIVE
======================================== */

/* TABLET */
@media (max-width: 991.98px) {

    .about-section {
        min-height: auto;
    }

    .about-section > .container,
    .about-section > .container > .row {
        min-height: auto;
    }

    .about-content {
        padding: 65px 20px 25px;
    }

    .about-text {
        max-width: 100%;
    }

    .about-image {
        padding: 25px 20px 50px;
    }

    .about-image img {
        max-height: 400px;
    }

    .about-section > .container {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}
}

/* MÓVIL */
@media (max-width: 767.98px) {
    .about-content {
        text-align: center;
        padding: 0px 20px 40px 20px;
    }

    .about-text h2 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .about-text p {
        font-size: 16px;
    }

    .about-image {
        padding: 50px 15px 40px;
    }
}

/* ========================================
   SERVICES / RESPONSIVE
======================================== */


/* TABLET */
@media (max-width: 991.98px) {

    .services-section {
        --services-visible: 2;
        --services-gap: 20px;
    }

    .services-section > .container {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }

    .service-card {
        height: 375px;
    }

}

/* MÓVIL */
@media (max-width: 767.98px) {

    .services-section {
        --services-visible: 1;
        --services-gap: 16px;

        margin-top: -35px;
        padding-top: 75px;
        padding-bottom: 85px;
    }

    .services-section::before {
        -webkit-mask-size: 300% auto;
        mask-size: 300% auto;
    }

    .services-header {
        align-items: flex-end;
        gap: 15px;
        margin-bottom: 35px;
    }

    .services-heading {
        gap: 9px;
    }

    .services-eyebrow {
        font-size: 12px;
    }

    .services-heading h2 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .services-arrows {
        gap: 7px;
    }

    .services-arrow {
        width: 35px;
        height: 35px;
    }

    .service-card {
        height: 375px;
        padding: 22px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .service-card p {
        font-size: 13px;
    }

    .service-card-image {
        height: 165px;
    }

    .services-indicators {
        justify-content: center;
        margin-top: 22px;
    }

}

/* ========================================
   PROCESS / RESPONSIVE
======================================== */

/* ========================================
   TABLET
======================================== */

@media (max-width: 991.98px) {

    .process-section {
        margin-top: -6vw;
        padding: calc(6vw + 85px) 0 90px;
    }

    .process-section > .container {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }

    .process-header {
        margin-bottom: 50px;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 45px;
        column-gap: 30px;
    }

    .process-item {
        padding: 0 10px;
    }

    .process-image {
        height: 180px;
    }

}


/* ========================================
   MÓVIL
======================================== */

@media (max-width: 767.98px) {

    .process-section {
        margin-top: -35px;
        padding: 85px 0 75px;
    }

    .process-section > .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* ENCABEZADO */

    .process-header {
        margin-bottom: 45px;
    }

    .process-eyebrow {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .process-header h2 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .process-header > p {
        font-size: 15px;
    }

    /* ETAPAS */

    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-item {
        align-items: flex-start;

        min-height: 245px;
        padding: 0 0 0 25px;

        text-align: left;
    }

    /* IMAGEN */

    .process-image {
        justify-content: flex-start;

        width: 100%;
        max-width: 210px;
        height: 145px;
        margin-bottom: 12px;
    }

    /* PUNTO Y TÍTULO EN HORIZONTAL */

    .process-heading {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        width: 100%;
        gap: 0;
    }

    .process-node {
        margin: 0 18px 0 0;
    }

    .process-node::after {
        top: 50%;
        left: 100%;

        width: 19px;
        height: 1.5px;

        transform: translateY(-50%);
    }

    .process-item h3 {
        justify-content: center;

        width: auto;
        min-width: 190px;
        min-height: 45px;
        margin: 0 0 0 0;
        padding: 8px 18px;

        font-size: 20px;
    }

    /* DESCRIPCIÓN */

    .process-description {
        margin-left: 50px;
        margin-top: 10px;
        max-width: 190px;
    }

    .process-description strong {
        font-size: 13px;
    }

    .process-description p {
        font-size: 13px;
    }

}
/* ========================================
   TEAM SECTION
   TABLET
======================================== */

@media (max-width: 991px) {

    .team-container {
        padding-inline: 24px;
        grid-template-columns: 165px minmax(0, 1fr);
        gap: 20px;
    }

    .team-grid {
        gap: 12px;
    }

    .team-card {
        height: 240px;
    }

    .team-intro h2 {
        font-size: 29px;
    }

    .team-intro p {
        font-size: 12px;
    }

    .team-info {
        width: 90%;
    }

    .team-info h3 {
        min-height: 28px;
        font-size: 17px;
    }

    .team-info p {
        font-size: 9px;
    }
}

/* ========================================
   TEAM SECTION
   MOBILE
======================================== */

@media (max-width: 767px) {

    .team-section {
        margin-top: -35px;
        padding: 85px 0 75px;
    }

    .team-container {
        width: min(calc(100% - 32px), 500px);
        padding-inline: 0;

        grid-template-columns: 1fr;
        gap: 35px;
    }

    .team-intro {
        max-width: 300px;
        margin-inline: auto;
        text-align: center;
    }

    .team-intro h2 {
        align-items: center;
        font-size: 32px;
    }

    .team-intro p {
        font-size: 13px;
    }

    /* UNA TARJETA DEBAJO DE OTRA */

    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-card {
        width: 100%;
        max-width: 300px;
        height: 270px;
        margin-inline: auto;
    }

    .team-info {
        width: 82%;
    }

    .team-info h3 {
        min-height: 32px;
        font-size: 19px;
    }

    .team-info p {
        min-height: 24px;
        font-size: 10px;
    }
}

/* ========================================
   TEAM SECTION
   MOBILE PEQUEÑO
======================================== */

@media (max-width: 400px) {

    .team-card {
        max-width: 270px;
        height: 245px;
    }

    .team-info {
        width: 85%;
    }
}


/* ========================================
   PROJECTS / TABLET
======================================== */

@media (max-width: 991.98px) {

    .projects-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .projects-grid {
        gap: 18px;
    }

    .project-info h3 {
        font-size: 11px;
    }

}

/* ========================================
   PROJECTS / MOBILE
======================================== */

@media (max-width: 767.98px) {

    .projects-section {
        padding: 70px 0 80px;
    }

    .projects-container {
        width: calc(100% - 32px);
        padding-left: 8px;
        padding-right: 8px;
    }

    .projects-header {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 22px;
    }

    .projects-title h2 {
        font-size: 38px;
    }

    .projects-intro p {
        font-size: 14px;
    }

    .projects-filters {
        gap: 6px;
        margin-bottom: 24px;
    }

    .project-filter {
        font-size: 8px;
        padding: 5px 10px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .project-card {
        padding: 8px;
        border-radius: 10px;
    }

    .project-image {
        border-radius: 7px;
    }

    .project-info {
        padding-top: 8px;
    }

    .project-info h3 {
        font-size: 10px;
    }

    .project-info p {
        font-size: 7px;
    }

}


/* ========================================
   CLIENTS / TABLET
======================================== */

@media (max-width: 991.98px) {

    .clients-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .clients-logos {
        gap: 18px;
    }

    .client-logo {
        height: 55px;
    }

}

/* ========================================
   CLIENTS / MOBILE
======================================== */

@media (max-width: 767.98px) {

    .clients-section {
        padding: 22px 0;
    }

    .clients-container {
        width: calc(100% - 32px);
        padding: 0 8px;
    }

    .clients-logos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 20px;
        column-gap: 12px;
    }

    .client-logo {
        height: 42px;
    }

}


/* ========================================
   LOCATION / MOBILE
======================================== */

@media (max-width: 767.98px) {

    .location-section {
        min-height: 340px;
        padding: 65px 20px;
    }

    .location-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 18px;
    }

    .location-content h2 {
        font-size: 30px;
    }

}

/* =========================================
   CONTACTO - TABLET
========================================= */

@media (max-width: 991.98px) {

    .contact-section {
        padding: 100px 0 75px;
    }

    .contact-container {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 35px;

        width: calc(100% - 32px);
        padding: 0 24px;
    }

    .contact-form-wrapper {
        padding: 32px 28px;
        border-radius: 32px;
    }

    .contact-info h2 {
        font-size: 38px;
    }

    .contact-image img {
        max-width: 300px;
    }

}

/* =========================================
   CONTACTO - MOBILE
========================================= */

@media (max-width: 767.98px) {

    .contact-section {
    -webkit-clip-path: url(#contact-waves-mobile);
    clip-path: url(#contact-waves-mobile);

    margin-top: -4vh;
    padding: 85px 0 65px;
}

    .contact-container {
        grid-template-columns: 1fr;
        gap: 35px;

        width: calc(100% - 32px);
        padding: 0 8px;
    }

    .contact-info {
        align-items: center;
        text-align: center;
    }

    .contact-info h2 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .contact-info p {
        max-width: 420px;
        font-size: 14px;
    }

    .contact-image {
        margin-top: 18px;
    }

    .contact-image img {
        max-width: 260px;
    }

    .contact-form-wrapper {
        padding: 28px 22px;
        border-width: 4px;
        border-radius: 28px;
    }

    .contact-fields {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-field-full {
        grid-column: auto;
    }

    .contact-field label {
        font-size: 14px;
    }

    .contact-field input {
        height: 44px;
    }

    .contact-field textarea {
        min-height: 120px;
    }

    .contact-submit {
        width: 100%;
        margin-top: 22px;
    }

}

/* =========================================
   FOOTER - TABLET
========================================= */

@media (max-width: 991.98px) {

    .footer-container,
    .footer-title,
    .footer-bottom {
        padding-inline: 0;
    }

    .footer-section {
        padding: 70px 0 30px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 45px 35px;

        width: calc(100% - 64px);
    }

    .footer-title {
        margin: 55px auto 35px;
    }

    .footer-title span {
        font-size: 10vw;
    }

}

/* =========================================
   FOOTER - MOBILE
========================================= */

@media (max-width: 767.98px) {

    .footer-section {
        padding: 55px 0 28px;
        background-position: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 38px 22px;

        width: calc(100% - 40px);
    }

    .footer-logo {
        width: 75px;
        margin-bottom: 17px;
    }

    .footer-brand p {
        font-size: 14px;
    }

    .footer-container h3 {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .footer-navigation nav {
        gap: 13px;
    }

    .footer-navigation nav a {
        font-size: 13px;
    }

    .footer-contact-item {
        align-items: flex-start;
        gap: 7px;
        margin-bottom: 13px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .footer-contact-item svg {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }

    .footer-cta h3 {
        font-size: 15px;
    }

    .footer-cta-button {
        min-width: 135px;
        min-height: 43px;
        padding: 10px 18px;
        font-size: 15px;
    }

    .footer-title {
        width: calc(100% - 24px);
        margin: 50px auto 30px;
        white-space: normal;
    }

    .footer-title span {
        font-size: clamp(43px, 10.5vw, 76px);
        letter-spacing: -0.06em;
        -webkit-text-stroke-width: 0.8px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;

        width: calc(100% - 40px);
    }

    .footer-bottom p {
        font-size: 11px;
        line-height: 1.5;
    }

    .footer-back-top {
        font-size: 12px;
    }

}