/* =====================================================
   RESPONSIVE - GRUPO EDIFEX
===================================================== */

/* TABLET */
@media (max-width: 900px) {

    .container {
        width: min(92%, 100%);
    }

    /* HEADER */

    .header .container {
        gap: 25px;
    }

    .nav {
        flex: 1;
    }

    .menu {
        gap: 18px;
    }

    .menu a {
        font-size: 0.8rem;
    }

    /* GRILLAS */

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .alliances-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .countries {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* CONTACTO */

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .location-card {
        grid-template-columns: 1fr;
    }

    .location-visual {
        min-height: 280px;
    }

}


/* CELULAR */
@media (max-width: 600px) {

    .container {
        width: min(90%, 100%);
    }

    /* HEADER */

    .header .container {
        flex-direction: column;
        gap: 18px;
        padding: 15px 0;
    }

    .nav {
        width: 100%;
    }

    .menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .menu a {
        font-size: 0.75rem;
    }

    .header .btn-primary {
        width: 100%;
        justify-content: center;
    }


    /* HERO */

    .page-hero {
        min-height: 420px;
        padding: 90px 0 70px;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .page-hero p {
        max-width: 100%;
        font-size: 0.82rem;
    }


    /* SECCIONES */

    .projects,
    .alliances,
    .contact-main {
        padding: 80px 0;
    }

    .section-title h2 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }


    /* PROYECTOS */

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image {
        height: 220px;
    }

    .project-content {
        padding: 25px;
    }


    /* ALIANZAS */

    .alliances-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .alliance-card {
        min-height: 200px !important;
        padding: 28px !important;
    }


    /* PAÍSES */

    .alliance-locations {
        display: block;
        margin-top: 45px;
    }

    .alliance-locations > span {
        margin-bottom: 20px;
    }

    .countries {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .country {
        padding: 18px 10px;
    }

    .country-map {
        width: 60px;
        height: 55px;
    }


    /* CONTACTO */

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 28px 22px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }


    /* SEDE */

    .location-card {
        grid-template-columns: 1fr;
    }

    .location-info {
        padding: 40px 28px;
    }

    .location-info h2 {
        font-size: 2rem;
    }

    .location-visual {
        min-height: 280px;
    }

    .location-label {
        right: 30px;
        bottom: 30px;
    }


    /* CTA */

    .projects-cta,
    .contact-cta {
        padding: 80px 0;
    }

    .projects-cta h2,
    .contact-cta h2 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }

}
/* =====================================================
   HERO INICIO - CELULAR
===================================================== */

@media (max-width: 600px) {

    .hero {
        min-height: auto;
        padding: 70px 0 55px;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero .subtitle {
        width: auto;
        max-width: 100%;
        box-sizing: border-box;

        padding: 7px 12px;

        font-size: 0.62rem;
        letter-spacing: 0.8px;

        white-space: normal;
        overflow-wrap: break-word;

        margin-bottom: 18px;
    }

    .hero h1 {
        max-width: 100%;

        font-size: 1.65rem;
        line-height: 1.04;
        letter-spacing: -1px;

        margin-bottom: 18px;
    }

    .hero p {
        max-width: 100%;

        font-size: 0.78rem;
        line-height: 1.6;

        margin-bottom: 25px;
    }

    .hero-buttons {
        width: 100%;
        display: flex;
        gap: 9px;
    }

    .hero-buttons a {
        flex: 1;
        min-width: 0;

        padding: 12px 9px;

        font-size: 0.75rem;
        line-height: 1.3;

        text-align: center;
    }

}
/* =====================================================
   HEADER - AJUSTE FINAL PARA CELULAR
===================================================== */

@media (max-width: 600px) {

    .header {
        padding: 0;
    }

    .header .container {
        width: 92%;
        min-height: 65px;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 10px;
        padding: 10px 0;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        width: 85px;
        height: auto;
    }

    .nav {
        width: auto;
        flex: 1;
        overflow: hidden;
    }

    .menu {
        display: flex;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 9px;

        overflow-x: auto;
        white-space: nowrap;

        scrollbar-width: none;
    }

    .menu::-webkit-scrollbar {
        display: none;
    }

    .menu a {
        font-size: 0.58rem;
    }

    .header .btn-primary {
        width: auto;
        flex-shrink: 0;

        padding: 9px 11px;
        font-size: 0.58rem;
        white-space: nowrap;
    }

}
/* =====================================================
   INICIO - FEATURES Y ABOUT EN CELULAR
===================================================== */

@media (max-width: 600px) {

    /* FEATURES */

    .features {
        padding: 65px 0;
    }

    .features .section-title {
        margin-bottom: 35px;
    }

    .features .section-title h2 {
        margin: 12px 0;
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-card {
        padding: 22px 20px;
        border-radius: 12px;
    }

    .feature-card h3 {
        margin-bottom: 8px;
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }


    /* ABOUT */

    .about {
        padding: 70px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image img {
        border-radius: 14px;
    }

    .about-content h2 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .about-content p {
        margin-bottom: 15px;
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .section-tag {
        margin-bottom: 12px;
        font-size: 0.75rem;
    }

}
/* =====================================================
   INICIO - RESTO DEL RESPONSIVE MOBILE
===================================================== */

@media (max-width: 600px) {

    /* =================================================
       METODOLOGÍA
    ================================================= */

    .process {
        padding: 70px 0;
    }

    .process .section-title {
        margin-bottom: 35px;
    }

    .process .section-title h2 {
        font-size: 1.85rem;
        line-height: 1.2;
        margin: 12px 0;
    }

    .process .section-title p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .process-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 14px;
        width: 100%;
    }

    .process-card {
        width: 100%;
        padding: 22px 20px;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .process-card .number {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .process-card h3 {
        font-size: 1.05rem;
        margin-bottom: 7px;
    }

    .process-card p {
        font-size: 0.82rem;
        line-height: 1.5;
    }


    /* =================================================
       ÁREAS DE INTERVENCIÓN
    ================================================= */

    .services-home {
        padding: 70px 0;
    }

    .services-home .section-title {
        margin-bottom: 35px;
    }

    .services-home .section-title h2 {
        font-size: 1.85rem;
        line-height: 1.2;
        margin: 12px 0;
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 14px;
        width: 100%;
    }

    .service-card {
        width: 100%;
        padding: 24px 20px;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .service-card h3 {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }

    .service-card li {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .service-card a {
        font-size: 0.82rem;
    }


    /* =================================================
       PROYECTOS DESTACADOS
    ================================================= */

    .projects {
        padding: 70px 0;
    }

    .projects .section-title {
        margin-bottom: 35px;
    }

    .projects .section-title h2 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .projects .section-title p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        width: 100%;
    }

    .projects .project-card {
        width: 100%;
        box-sizing: border-box;
    }


    /* =================================================
       EMPRESAS QUE CONFÍAN
    ================================================= */

    .clients {
        padding: 70px 0;
    }

    .clients .section-title {
        margin-bottom: 35px;
    }

    .clients .section-title h2 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .clients .section-title p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .clients-grid {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        width: 100%;
    }

    .client-logo {
        min-height: 75px;
        padding: 15px 10px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.72rem;
    }


    /* =================================================
       CTA INICIO
    ================================================= */

    .cta {
        padding: 70px 0;
        text-align: center;
    }

    .cta h2 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .cta p {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 28px;
    }

    .cta .btn-primary {
        width: fit-content;
        max-width: 100%;
    }

}
@media (max-width: 600px) {

    .hero .hero-content h1 {
        font-size: 20px !important;
        line-height: 1.08 !important;
        letter-spacing: -0.5px !important;
    }

    .hero .hero-content p {
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

}
@media (max-width: 600px) {

    .hero {
        margin-left: 12px;
        margin-right: 12px;
        border-radius: 0 0 10px 10px;
    }

}@media (max-width: 600px) {

    .hero-content {
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

}
/* =====================================================
   FOOTER - MOBILE
===================================================== */

@media (max-width: 600px) {

    .footer {
        padding: 55px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-logo {
        width: 135px;
        margin-bottom: 15px;
    }

    .footer p {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .footer h4 {
        margin-bottom: 12px;
        font-size: 0.95rem;
    }

    .footer li {
        margin-bottom: 8px;
    }

    .footer a {
        font-size: 0.82rem;
    }

    .footer-copy {
        margin-top: 40px;
        padding: 18px 12px;
        font-size: 0.7rem;
        line-height: 1.5;
    }

}