
.logo-desktop {
    display: block;
}

.logo-mobile {
    display: none;
}

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 6px;

    position: relative;
    z-index: 3000;
}

.menu-toggle span {
    display: block;

    width: 28px;
    height: 3px;

    background: #333;
    border-radius: 5px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 980px) {

    /* SERVICIOS */

    .service-slide {
        flex: 0 0 50%;
    }

    .service-card {
        max-width: 300px;
        height: 300px;
    }

}

@media (max-width: 768px) {


    .header {
        height: 70px;
        padding: 0;

        position: sticky;
        top: 0;

        overflow: visible;
        z-index: 1000;
    }

    .nav {
        width: 92%;
        height: 100%;

        margin: 0 auto;

        display: flex;
        justify-content: flex-end;
        align-items: center;
    }


    .logo {
        position: absolute;

        left: 50%;
        top: 50%;

        transform: translate(-50%, -50%);

        z-index: 1001;
    }

    .logo img.logo-desktop {
        display: none !important;
    }

    .logo img.logo-mobile {
        display: block !important;

        width: 90px !important;
        max-width: 90px !important;
        height: auto !important;
    }


    .menu-toggle {
        display: flex !important;

        margin-left: auto;

        position: relative;
        z-index: 3000;
    }

    .main-nav {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background: #fffbfc;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;

        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);

        z-index: 2000;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .menu {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 0;

        margin: 0;
        padding: 12px 0;
    }

    .menu li {
        width: 100%;
        text-align: center;
    }

    .menu li a {
        display: block;

        width: 100%;

        padding: 14px 20px;
    }

    .hero {
        min-height: 480px;

        padding: 40px 20px;

        background-position: center;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: 1;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-cards {
        margin-top: 15px;
    }


    .nosotros {
        padding: 60px 24px;
    }


    .services-section {
        padding: 80px 0 95px;
    }


    .motivos-section {
        padding: 80px 20px;
    }

    .motivos-section h2 {
        font-size: 2.2rem;
    }

    .motivos-subtitle {
        margin-bottom: 55px;
    }

    .motivos-grid {
        grid-template-columns: 1fr;

        gap: 70px;

        max-width: 520px;
    }


    .prestadores-section {
        padding: 70px 18px 90px;
    }

    .prestadores-filtros {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .filtro-nombre,
    .btn-buscar-prestador,
    .btn-limpiar-prestador {
        grid-column: auto;
    }

    .prestadores-grid {
        grid-template-columns: 1fr;
    }


    /* =====================
       CONTACTO
    ===================== */

    .contact-section {
        padding: 70px 20px;
    }

    .contact-container {
        width: 100%;
    }

    .contact-section h1 {
        font-size: 2.8rem;
    }


    .footer {
        min-height: auto;
    }

    .footer-container {
        min-height: auto;

        padding: 45px 0 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

}


@media (max-width: 640px) {


    .header {
        height: 65px;
    }

    .main-nav {
        top: 65px;
    }

    .logo img.logo-mobile {
        width: 80px !important;
        max-width: 80px !important;
    }


    .hero {
        min-height: 450px;

        padding: 35px 15px;
    }

    .hero-content h1 {
        font-size: 2.7rem;

        line-height: 1;

        white-space: normal;
    }

    .hero-content p {
        font-size: 0.95rem;

        letter-spacing: 0.5px;

        margin-bottom: 20px;
    }

    .hero-cards {
        margin-top: 10px;
    }

    .hero-card {
        width: auto;
        height: auto;

        min-width: 185px;

        padding: 13px 20px;

        border-radius: 14px;

        flex-direction: row;
        justify-content: center;
        align-items: center;

        gap: 12px;
    }

    .hero-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-icon img {
        width: 45px;
        height: 45px;
    }

    .hero-card span {
        font-size: 0.88rem;
        font-weight: 600;

        white-space: nowrap;
    }


.nosotros,
.nosotros .container {
    text-align: left !important;
}

.nosotros h2,
.nosotros .nosotros-subtitle,
.nosotros p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
    .nosotros {
        padding: 60px 24px;
    }

    .nosotros h2 {
        font-size: 2.5rem;
        line-height: 1.05;

        text-align: left;

       margin: 0 0 8px 0;
}

    .nosotros-subtitle {
    font-size: 1rem;
    line-height: 1.3;

    text-align: left;

    margin: 0 0 35px 0;
}

    .nosotros-texto {
    width: 100%;
    max-width: none;

    margin: 0;

    text-align: left;

    font-size: 1rem;
    line-height: 1.7;
}


    .services-section {
        padding: 70px 0 90px;
    }

    .services-section h2 {
        font-size: 2.2rem;
    }

    .services-carousel-wrapper {
        gap: 8px;
    }

    .service-slide {
        flex: 0 0 100%;

        padding: 0 8px;
    }

    .service-card {
        max-width: 280px;
        height: 280px;

        border-radius: 28px;
    }

    .carousel-arrow {
        width: 42px;
        height: 42px;

        font-size: 1.5rem;
    }


    .motivos-section {
        padding: 70px 16px;
    }

    .motivos-section h2 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .motivos-grid {
        gap: 65px;
    }

    .motivo-card {
        height: auto;

        min-height: 180px;
    }


    .prestadores-header h1 {
        font-size: 2.3rem;
    }

    .prestadores-filtros {
        padding: 18px;

        border-radius: 16px;
    }

    .prestador-card {
        padding: 21px;
    }


    .contact-section {
        padding: 60px 16px;
    }

    .contact-section h1 {
        font-size: 2.5rem;
    }

    .contact-subtitle {
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px 15px;
    }


    .footer-container {
        width: 88%;

        padding: 40px 0 25px;
    }

    .footer-info h2 {
        font-size: 1.6rem;
    }

    .footer-item p {
        font-size: 0.88rem;
    }

}