/* ============================================================================
   KSM Servicios - Responsive Styles
   ============================================================================ */

/* Tablet and Below */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Header */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 30, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-lg);
        transition: left var(--transition-normal);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: var(--spacing-sm) 0;
    }

    .cta-button {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero */
    .hero-logo {
        width: 150px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-stats {
        gap: var(--spacing-md);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Technologies */
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto var(--spacing-sm);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .service-card {
        padding: var(--spacing-sm);
    }

    .social-links {
        flex-direction: column;
    }

    .social-link {
        width: 100%;
        text-align: center;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .hero-logo {
        width: 100px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* High Resolution Displays */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Print Styles */
@media print {

    .ksm-header,
    .hero-video,
    #particles-js,
    .scroll-indicator,
    .menu-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}