/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .adspro-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero {
        padding-top: 120px;
    }

    /* 1. Ocultar navegación y botón desktop; mostrar hamburguesa */
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header .btn {
        display: none;
    }

    /* 2. Soporte Safe Area para iPhone y redimensionar Header */
    .header {
        padding-top: env(safe-area-inset-top);
    }

    .header-container {
        min-height: 90px;
    }

    .header.scrolled .header-container {
        min-height: 80px;
    }

    /* 3. Redimensionar logotipo (más grande, nítido y premium) */
    #main-logo {
        max-width: 280px;
    }

    #main-logo img {
        height: 78px;
        max-height: 78px;
    }
    
    .header.scrolled #main-logo img {
        height: 68px;
        max-height: 68px;
    }
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    /* Estilos Responsivos del Modal de Demos */
    .demo-product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .demo-modal-container {
        padding: 2.5rem 1.5rem 3rem;
    }
    
    .demo-modal-title {
        font-size: 1.75rem;
    }

    /* SECCIÓN ADSPRO */
    #adspro-summary .adspro-grid {
        display: flex;
        flex-direction: column;
    }
    #adspro-summary .adspro-content {
        display: flex;
        flex-direction: column;
        order: 1;
    }
    #adspro-summary .adspro-visual {
        order: 2;
    }
    #adspro-summary .adspro-content .section-title {
        order: 1;
    }
    #adspro-summary .adspro-content .section-description {
        order: 2;
        margin-top: 1rem;
    }
    #adspro-summary .adspro-content .interactive-tab-content {
        order: 3;
    }

    /* SECCIÓN REGISTER / TIMEOUT (Homepage and Platform Page) */
    #timeout-summary .adspro-grid {
        display: flex;
        flex-direction: column;
    }
    #timeout-summary .adspro-info {
        order: 1;
    }
    #timeout-summary .adspro-content {
        display: flex;
        flex-direction: column;
        order: 2;
    }
    #timeout-summary .timeout-theme-switch {
        display: flex;
        flex-direction: column;
    }
    #timeout-summary .timeout-image-wrapper {
        order: 1;
    }
    #timeout-summary .theme-toggle-btn {
        order: 2;
    }
    #timeout-summary .timeout-carousel-text {
        order: 3;
    }
    #timeout-summary .section-title {
        order: 1;
    }
    #timeout-summary .section-description {
        order: 2;
        margin-top: 1rem;
    }
    #timeout-summary .interactive-tab-content {
        order: 3;
    }

    #timeout-page .showcase-item {
        display: flex;
        flex-direction: column;
    }
    #timeout-page .showcase-item .showcase-image {
        order: 1;
    }
    #timeout-page .showcase-item .showcase-content {
        display: flex;
        flex-direction: column;
        order: 2;
    }
    #timeout-page .timeout-theme-switch {
        display: flex;
        flex-direction: column;
    }
    #timeout-page .timeout-theme-switch .timeout-image-wrapper {
        order: 1;
    }
    #timeout-page .timeout-theme-switch .theme-toggle-btn {
        order: 2;
    }
    #timeout-page .register-carousel-container {
        display: flex;
        flex-direction: column;
    }
    #timeout-page .register-carousel-container .register-carousel-wrapper {
        order: 1;
    }
    #timeout-page .register-carousel-container .register-theme-selector {
        order: 2;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }
}
