/* 
  Mobile Responsive Design for Epic Visuals
  Este archivo se aplica SOLO a pantallas pequeñas (móviles y tablets verticales)
*/

@media (max-width: 900px) {
    /* Visibility Utilities */
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    /* 1. Header & Hamburger Menu */
    .header {
        top: 0 !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 20px !important;
        background: rgba(8, 10, 15, 0.95) !important;
    }
    .massive-logo {
        height: 40px !important;
        margin-left: 0;
    }
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        z-index: 1000;
    }
    .menu-toggle .bar {
        width: 30px;
        height: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 3px;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .nav {
        display: none !important;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(8, 10, 15, 0.98);
        flex-direction: column !important;
        padding: 20px 0;
        gap: 25px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav.active {
        display: flex !important;
    }
    .nav a {
        font-size: 1.1rem !important;
    }

    /* 2. Hero Section */
    .hero-content {
        padding: 0 10px !important;
        margin-top: 60px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .hero-title {
        font-size: 3rem !important;
        line-height: 1.1;
        text-align: center;
        width: 100% !important;
    }
    .hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.5;
        text-align: center;
        margin-top: 20px;
        width: 100% !important;
        padding: 0 10px;
    }
    .hero-right-align {
        justify-content: center;
        align-items: center;
    }
    .hero-btn {
        margin: 30px auto;
        display: block;
        width: fit-content;
    }

    /* 3. Brands */
    .brands-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .brand-logo {
        max-width: 60% !important;
        margin: 0 auto;
    }
    .brand-logo:nth-child(n+5) {
        display: none !important;
    }

    /* 4. Mix Foto & Video */
    .collage-wrapper {
        display: none !important;
    }
    .mix-content {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 0 !important;
    }
    .section-title {
        font-size: 2.2rem !important;
        text-align: center;
    }
    .mix-content .body-text {
        font-size: 1rem;
        text-align: center;
        padding: 0 15px;
    }

    /* 5. Nuestra Vision (Accordion) */
    .interactive-services {
        height: 100vh !important;
        overflow-y: auto !important;
        padding: 0 !important;
        justify-content: flex-start !important; /* Prevents top content cutoff */
        scroll-snap-type: y mandatory !important;
    }
    .interactive-services .srv-header {
        display: none !important;
    }
    .srv-content {
        padding-top: 0 !important;
        height: auto !important;
    }
    .srv-header {
        font-size: 2.2rem !important;
        text-align: center;
        margin-bottom: 30px;
    }
    .services-accordion {
        flex-direction: column !important;
        height: auto !important;
        width: 100%;
    }
    .service-card, .service-card.active {
        width: 100% !important;
        height: 100vh !important;
        flex: none !important;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }
    .srv-title {
        font-size: 1.5rem !important;
    }
    .srv-num {
        font-size: 1rem !important;
    }
    .srv-desc {
        font-size: 0.9rem !important;
        line-height: 1.4;
        opacity: 1 !important; /* Makes text visible without clicking */
    }
    
    /* Force active states for all service cards on mobile */
    .card-overlay { background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%) !important; }
    .srv-title { font-size: 2.5rem !important; margin-bottom: 20px !important; }
    .srv-desc-wrapper { grid-template-rows: 1fr !important; }
    .srv-mockup { max-height: 250px !important; margin-bottom: 20px !important; opacity: 1 !important; transform: translateY(0) !important; }
    .srv-video-container { opacity: 1 !important; transform: translateY(0) !important; pointer-events: auto !important; }
    
    /* 6. Porfolio */
    .portfolio {
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    .p-content {
        position: absolute !important;
        top: 10% !important;
        width: 100%;
        text-align: center;
        z-index: 10;
    }
    .p-content h2 {
        font-size: 3.5rem !important;
    }
    .p-content .p-category {
        font-size: 0.9rem !important;
    }
    .p-controls {
        position: absolute !important;
        bottom: 5% !important;
        right: auto !important;
        left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
        margin-top: 0 !important;
    }
    .p-row:not(:nth-child(2)) {
        display: none !important;
    }
    .p-slider-wrapper {
        gap: 5px;
        justify-content: center;
        margin-bottom: 20px !important;
    }
    .p-thumbnails .thumb {
        height: 50px !important;
        min-width: 75px !important;
        margin-bottom: 10px !important;
    }

    /* 7. Contacto & Footer */
    .contact {
        height: 100vh !important;
        overflow-y: auto !important; 
        position: relative;
        justify-content: flex-start !important; /* Prevents top content cutoff */
        scroll-snap-type: y mandatory !important;
    }
    .contact-container {
        grid-template-columns: 1fr !important;
        padding-top: 60px !important;
        padding-bottom: 20px !important;
        min-height: 100vh !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }
    .contact-text {
        text-align: center;
    }
    .contact-text .body-text {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
    }
    .contact-info {
        justify-content: center;
    }
    .footer {
        position: relative !important;
        bottom: auto !important;
        margin-top: 0 !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }
    .footer .f-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    .footer-links, .socials {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 8. Ocultar cursor personalizado en móviles */
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    * {
        cursor: auto !important;
    }
}
