/* ===== ESTILOS RESPONSIVOS ===== */

/* Móvil pequeño (hasta 480px) */
@media screen and (max-width: 400px) {
    :root {
        --texto-xxl: 2rem;    /* 32px */
        --texto-xl: 1.75rem;  /* 28px */
        --texto-lg: 1.25rem;  /* 20px */
        --texto-md: 1.125rem; /* 18px */
    }
    
    .hero-section {
        height: 80vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--espacio-xs);
    }
    
    .section {
        padding: var(--espacio-xl) 0;
    }
    
    .feature-card,
    .service-card {
        padding: var(--espacio-sm);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        min-height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto var(--espacio-sm);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Móvil (hasta 767px) */
@media screen and (max-width: 767px) {
    .header-content {
        padding: var(--espacio-xs) 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-blanco);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--espacio-lg);
        transition: var(--transicion);
        box-shadow: var(--sombra-media);
        z-index: 1000;
        padding: var(--espacio-lg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-link {
        font-size: var(--texto-md);
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--espacio-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--espacio-md);
    }
}

/* Tablet (768px a 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-content {
        gap: var(--espacio-md);
    }
    
    .integrations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1024px en adelante) */
@media screen and (min-width: 1024px) {
    .container {
        padding: 0 var(--espacio-md);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .areas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .integrations-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Desktop grande (1440px en adelante) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1000px;
    }
}

/* Orientación horizontal en dispositivos móviles */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        padding: 120px 0 var(--espacio-xl);
    }
    
    .nav-menu {
        padding: var(--espacio-md);
        gap: var(--espacio-md);
    }
}

