/* Estilos responsivos para dispositivos móviles */

/* Tablets y dispositivos pequeños */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 15px;
    }

    .brand .logo {
        height: 30px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }


    /* Hero Section */
    .hero {
        margin-top: 70px;
        padding: 3rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        border-radius: 8px;
    }

    /* Secciones generales */
    .section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Nearshore Section */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Scale Your Team Section */
    .team-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-item {
        padding: 1.5rem;
    }

    /* How We Do It Section */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step {
        padding: 1.5rem;
        text-align: left;
    }

    .step-image {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .step h3 {
        font-size: 1.2rem;
    }

    .step p {
        font-size: 1rem;
    }

    /* About Us Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .location {
        padding: 1rem;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-left p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .contact-left p:first-child {
        font-size: 1.1rem;
        font-weight: 500;
        color: #333;
    }

    .contact-right {
        padding: 1.5rem;
    }

    .contact-details p {
        font-size: 1rem;
        margin-bottom: 1rem;
        display: block;
    }

    .contact-details strong {
        min-width: auto;
        display: block;
        margin-bottom: 0.3rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-brand {
        flex: none;
        margin-bottom: 0;
    }

    .footer-brand h3 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        width: 100%;
    }

    .footer-column {
        text-align: left;
        min-width: auto;
    }

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-column ul {
        text-align: left;
    }

    .footer-column ul li {
        margin-bottom: 0.5rem;
    }

    .footer-column ul li a {
        font-size: 0.9rem;
    }
}

/* Móviles medianos */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-container {
        padding: 1rem 10px;
    }

    .brand .logo {
        height: 25px;
    }

    /* Hero Section */
    .hero {
        margin-top: 60px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Secciones generales */
    .section {
        padding: 2rem 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Nearshore Section */
    .service-card {
        padding: 1.2rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    /* Scale Your Team Section */
    .benefit-item {
        padding: 1.2rem;
    }

    .benefit-item h3 {
        font-size: 1.2rem;
    }

    /* How We Do It Section */
    .step {
        padding: 1.2rem;
    }

    .step h3 {
        font-size: 1.2rem;
    }

    /* About Us Section */
    .about-text p {
        font-size: 0.95rem;
    }

    .about-locations h3 {
        font-size: 1.3rem;
    }

    .location {
        padding: 1rem;
    }

    .location h4 {
        font-size: 1.1rem;
    }

    /* Contact Section */
    .contact-info,
    .contact-form {
        padding: 1.2rem;
    }

    .contact-item h3 {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-brand h3 {
        font-size: 1.5rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-column h4 {
        font-size: 1.1rem;
    }
}

/* Móviles pequeños */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .service-card,
    .benefit-item,
    .step {
        padding: 1rem;
    }

    .contact-info,
    .contact-form {
        padding: 1rem;
    }
}

/* Menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header h3 {
    font-size: 1.8rem;
    color: #0066CC;
}

.close-menu {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    color: #0066CC;
}

.mobile-nav {
    padding: 2rem 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0 20px;
}

.mobile-nav-item {
    margin-bottom: 1.5rem;
}

.mobile-nav-item a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav-item a:hover {
    color: #0066CC;
}

.mobile-contact {
    padding: 2rem 20px;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

.mobile-contact .phone-link {
    text-decoration: none;
    color: #0066CC;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Overlay para menú móvil */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animaciones para dispositivos móviles */
@media (max-width: 768px) {
    .hero-content {
        animation: fadeInUp 0.8s ease-out;
    }

    .hero-image {
        animation: fadeInUp 0.8s ease-out 0.2s both;
    }

    .service-card,
    .benefit-item,
    .step,
    .location {
        animation: fadeInUp 0.6s ease-out both;
    }

    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }

    .benefit-item:nth-child(1) { animation-delay: 0.1s; }
    .benefit-item:nth-child(2) { animation-delay: 0.2s; }
    .benefit-item:nth-child(3) { animation-delay: 0.3s; }

    .step:nth-child(1) { animation-delay: 0.1s; }
    .step:nth-child(2) { animation-delay: 0.2s; }
    .step:nth-child(3) { animation-delay: 0.3s; }
    .step:nth-child(4) { animation-delay: 0.4s; }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Soporte para modo oscuro */
@media (prefers-color-scheme: dark) {
    .header {
        background: rgba(30, 30, 30, 0.95);
    }

    .nav-item a {
        color: #fff;
    }

    .nav-item a:hover {
        color: #4da6ff;
    }

    .section.alt-bg {
        background: #1a1a1a;
    }

    .section-header h2 {
        color: #fff;
    }

    .section-header p {
        color: #ccc;
    }

    .service-card,
    .benefit-item,
    .step,
    .location,
    .contact-info,
    .contact-form {
        background: #2a2a2a;
        color: #fff;
    }

    .service-card h3,
    .benefit-item h3,
    .step h3,
    .location h4 {
        color: #4da6ff;
    }

    .service-card p,
    .benefit-item p,
    .step p {
        color: #ccc;
    }

    .form-group input,
    .form-group textarea {
        background: #333;
        border-color: #555;
        color: #fff;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #4da6ff;
    }
}