/* ==========================================================================
   Responsive Design - Mobile First
   ========================================================================== */

/* Mobile First - Base styles are in style.css */

/* Tablets y Mobile Landscape (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ceo-container {
        grid-template-columns: 200px 1fr;
        gap: 40px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
    
    /* Header Mobile */
    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 600px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }
    
    .mobile-menu-btn span {
        width: 25px;
        height: 3px;
        background: var(--gray-900);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* Hero Mobile */
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats-inline {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .stat-inline strong {
        font-size: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .trust-logos {
        gap: 16px;
    }
    
    .company-logo svg {
        max-width: 80px;
    }
    
    .visual-card {
        padding: 20px;
    }
    
    .card-value {
        font-size: 1.75rem;
    }
    
    /* Grids Mobile */
    .services-grid,
    .features-grid,
    .pricing-preview-grid,
    .productos-grid,
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card,
    .pricing-preview-card,
    .producto-card {
        padding: 28px;
    }
    
    /* Form Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* CEO Mobile */
    .ceo-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .ceo-image {
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    /* Service Detail Mobile */
    .service-detail-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .preview-price {
        font-size: 2.5rem;
    }
    
    .hero-card {
        padding: 24px;
    }
    
    .hero-card h3 {
        font-size: 2rem;
    }
}

/* Prevenir scroll horizontal */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

*, *::before, *::after {
    max-width: 100%;
}

/* Print Styles */
@media print {
    .main-header,
    .mobile-menu-btn,
    .hero-cta,
    .cta-section,
    .main-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
