/* * SYNERGYPOWER MOBILE OPTIMIZATION V14.0
 * Handles devices < 768px (Tablets & Phones)
 */

@media (max-width: 992px) {
    /* TABLET */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* MOBILE */
    
    /* 1. AJUSTES GENERALES */
    .section-title {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .container {
        width: 90%;
        padding: 0;
    }

    /* 2. TOP BAR & HEADER FIX */
    .top-bar {
        font-size: 0.8rem;
        padding: 10px 0;
        height: auto;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .top-bar-right {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .contact-pill {
        margin: 2px 0;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    /* FIX: Header Sticky en m車vil */
    .main-header { 
        margin-top: 0; /* En m車vil a veces conviene pegarlo */
        position: relative; /* O fixed, depende preferencia */
        padding: 10px 0;
    }
    
    /* Si queremos fixed en m車vil: */
    .main-header {
        position: fixed;
        top: 0; /* Se sobrepondr芍, cuidado con padding-top del body */
        margin-top: 0;
    }
    body { padding-top: 0; }
    /* Ajuste hero para compensar header fixed en m車vil */
    .hero-section { padding-top: 100px; }


    /* MENU MOVIL */
    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 50px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 999;
    }

    .nav-menu.active { right: 0; }
    .nav-menu li { margin: 15px 0; }
    
    .nav-link {
        color: var(--text-white);
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block !important;
        color: var(--text-header);
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1001;
    }

    /* 3. HERO SECTION */
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-services-carousel { 
        font-size: 1.6rem;
        height: 3rem; 
    }

    /* 4. GRIDS Y FLEXBOX */
    .services-grid {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }
    
    /* Team Stack en M車vil */
    .team-container {
        flex-direction: column;
        align-items: center;
    }
    
    .glass-card, .team-card { margin-bottom: 20px; width: 100%; }

    /* 5. ELEMENTOS FLOTANTES */
    .social-sidebar { display: none; }
    .whatsapp-float {
        width: 50px; height: 50px;
        bottom: 20px; right: 20px;
        font-size: 28px;
    }

    /* 6. FOOTER MOVIL */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-contact-list li {
        justify-content: center;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
}