/* ============================================================================
   ZAPFLOW - LANDING PAGE - ESTILOS RESPONSIVE
   ============================================================================
   
   Descripción: Hoja de estilos responsive para adaptación móvil y tablet
   Basado en DisparadorPro V3.0 con adaptaciones para ZapFlow
   Autor: ZapFlow Team
   Versión: 1.0
   Fecha: Febrero 2026
   
   Breakpoints:
   - Mobile Small: hasta 576px
   - Mobile: 577px - 768px
   - Tablet: 769px - 992px
   - Desktop: 993px+
   
   ============================================================================ */

/* ============================================================================
   TABLETS - 769px a 992px
   ============================================================================ */

@media (min-width: 769px) and (max-width: 992px) {
    .container {
        max-width: 750px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .creations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .componentization-container,
    .anatomy-container {
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============================================================================
   MOBILE Y TABLETS PEQUEÑAS - hasta 768px
   ============================================================================ */

@media (max-width: 768px) {

    /* Contenedor principal */
    .container {
        padding: 100px 15px 40px;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-cta {
        width: 100%;
        margin-top: 20px;
    }

    .hero-video {
        margin: 30px auto 20px;
        max-width: 100%;
        padding: 0 10px;
    }

    .video-demo-container {
        border-radius: 15px;
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .video-demo-header {
        padding: 12px 15px;
        height: 45px;
    }

    .video-demo-title {
        font-size: 0.8rem;
    }

    .video-demo-content {
        top: 45px;
    }

    .btn {
        width: 100%;
        padding: 12px 25px;
    }

    .hero-cta .btn {
        max-width: 280px;
        margin: 0 auto;
    }

    .tech-logos {
        margin-top: 30px;
    }

    .logos-container {
        gap: 20px;
    }

    .logos-container i,
    .logos-container span {
        font-size: 1.4rem;
    }

    /* Comparación */
    .comparison-section {
        padding: 60px 20px;
    }

    .comparison-section h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
        line-height: 1.2;
    }

    .comparison-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
        padding: 0 10px;
    }

    .comparison-card {
        padding: 25px 20px;
        margin: 0 auto;
        width: 100%;
        max-width: 350px;
        box-sizing: border-box;
        min-height: auto;
    }

    .card-badge {
        top: 12px;
        right: 12px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    /* Funcionalidades */
    .creations-section {
        padding: 60px 30px;
    }

    .creations-section h2 {
        font-size: 2rem;
    }

    .creations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .creation-card {
        padding: 25px 20px;
    }

    .creation-card i {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    /* Componentización */
    .componentization-section {
        padding: 60px 30px;
    }

    .componentization-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .componentization-text h2 {
        font-size: 2rem;
    }

    .diagram-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .diagram-block,
    .diagram-component,
    .diagram-list-item {
        flex: 1;
        min-width: 70px;
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .diagram-small-item {
        font-size: 0.6rem;
    }

    /* Anatomía del software */
    .software-anatomy-section {
        padding: 60px 30px;
    }

    .anatomy-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .anatomy-text h3 {
        font-size: 1.6rem;
    }

    .diagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .file-item {
        padding: 12px 8px;
        font-size: 0.7rem;
    }

    .file-item i {
        font-size: 1rem;
    }

    /* Precios */
    .pricing-section {
        padding: 60px 30px;
    }

    .pricing-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .pricing-header p {
        font-size: 1rem;
    }

    .pricing-container {
        max-width: 380px;
    }

    .pricing-card {
        padding: 40px 30px 30px;
        max-width: 100%;
    }

    .pricing-card.recommended {
        transform: none;
        margin: 0;
    }

    .pricing-card.recommended:hover {
        transform: translateY(-5px);
    }

    .amount {
        font-size: 3rem;
    }

    .features-list {
        margin-bottom: 30px;
    }

    .features-list li {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    /* FAQ */
    .faq-section {
        padding: 60px 30px;
    }

    .faq-header h2 {
        font-size: 2rem;
    }

    .faq-header p {
        font-size: 1rem;
    }

    .faq-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .faq-icon i {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 20px 20px;
        gap: 12px;
    }

    .question-text {
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }

    .faq-answer p {
        font-size: 0.85rem;
    }

    .faq-contact {
        margin-top: 40px;
    }

    .faq-contact-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* Footer */
    .main-footer {
        padding: 40px 30px 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 10px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }

    /* Pop-up de video */
    .popup-content {
        width: 95%;
        margin: 20px;
    }

    .popup-header {
        padding: 12px 15px;
    }

    .popup-title {
        font-size: 0.8rem;
    }

    /* Hero ultra compacto */
    .hero-video {
        margin: 20px auto 12px;
        padding: 0;
    }

    .video-demo-container {
        border-radius: 10px;
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .video-demo-header {
        padding: 8px 10px;
        height: 35px;
    }

    .video-demo-title {
        font-size: 0.7rem;
    }

    .video-demo-content {
        top: 35px;
    }

    .traffic-lights {
        gap: 3px;
    }

    .traffic-light {
        width: 6px;
        height: 6px;
    }
}

/* ============================================================================
   MOBILE PEQUEÑO - hasta 576px
   ============================================================================ */

@media (max-width: 576px) {

    /* Hero más compacto */
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .header-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Secciones más compactas */
    .comparison-section,
    .creations-section,
    .componentization-section,
    .software-anatomy-section,
    .pricing-section,
    .faq-section {
        padding: 50px 20px;
    }

    /* Títulos más pequeños */
    .comparison-section h2,
    .creations-section h2,
    .pricing-header h2,
    .faq-header h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .componentization-text h2,
    .anatomy-text h3 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    /* Cards más compactas */
    .comparison-card,
    .creation-card,
    .pricing-card {
        padding: 20px 15px;
    }

    /* Diagramas simplificados */
    .componentization-diagram,
    .anatomy-diagram {
        padding: 20px 15px;
    }

    .diagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .file-item {
        padding: 10px 6px;
        font-size: 0.65rem;
    }

    /* FAQ más compacta */
    .faq-question {
        padding: 15px 15px;
        gap: 10px;
    }

    .question-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }

    /* Footer más compacto */
    .main-footer {
        padding: 30px 20px 20px;
    }

    .footer-logo {
        margin-bottom: 10px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-icon i {
        font-size: 1rem;
    }

    /* Botones más pequeños */
    .btn,
    .btn-pricing,
    .faq-contact-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .hero-cta .btn {
        max-width: 250px;
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    /* Precios ajustados */
    .pricing-container {
        max-width: 320px;
    }

    .pricing-card {
        padding: 35px 20px 25px;
    }

    .amount {
        font-size: 2.5rem;
    }

    .currency {
        font-size: 1.2rem;
    }

    .features-list li {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .recommended-badge {
        padding: 8px 20px;
        font-size: 0.7rem;
        top: -12px;
    }
}

/* ============================================================================
   DISPOSITIVOS ULTRA PEQUEÑOS - hasta 480px
   ============================================================================ */

@media (max-width: 480px) {

    .container {
        padding: 90px 10px 30px;
    }

    /* Hero ultra compacto */
    .hero-video {
        margin: 25px auto 15px;
        padding: 0 5px;
    }

    .video-demo-container {
        border-radius: 12px;
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .video-demo-header {
        padding: 10px 12px;
        height: 40px;
    }

    .video-demo-title {
        font-size: 0.75rem;
    }

    .video-demo-content {
        top: 40px;
    }

    .traffic-lights {
        gap: 4px;
    }

    .traffic-light {
        width: 8px;
        height: 8px;
    }
    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    /* Logos más pequeños */
    .logos-container {
        gap: 15px;
    }

    .logos-container i,
    .logos-container span {
        font-size: 1.2rem;
    }

    /* Secciones ultra compactas */
    .comparison-section,
    .creations-section,
    .componentization-section,
    .software-anatomy-section,
    .pricing-section,
    .faq-section {
        padding: 40px 15px;
    }

    /* Comparación ultra compacta */
    .comparison-container {
        gap: 20px;
        padding: 0 5px;
    }

    .comparison-card {
        padding: 20px 15px;
        max-width: 300px;
    }

    .comparison-card h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .comparison-card li {
        margin-bottom: 12px;
        font-size: 0.85rem;
    }

    /* Títulos ultra pequeños */
    .section-subtitle {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .comparison-section h2,
    .creations-section h2,
    .pricing-header h2,
    .faq-header h2 {
        font-size: 1.4rem;
        line-height: 1.1;
        margin-bottom: 25px;
    }

    /* Comparación ultra compacta */
    .comparison-section {
        padding: 35px 10px;
    }

    .comparison-container {
        gap: 15px;
        padding: 0;
    }

    .comparison-card {
        padding: 15px 12px;
        max-width: 280px;
    }

    .comparison-card h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .comparison-card li {
        margin-bottom: 10px;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .card-badge {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    /* Cards ultra compactas */
    .comparison-card,
    .creation-card {
        padding: 15px 12px;
    }

    .creation-card i {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .creation-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .creation-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Pricing ultra compacto */
    .pricing-container {
        max-width: 300px;
    }

    .pricing-card {
        padding: 30px 15px 20px;
    }

    .amount {
        font-size: 2.2rem;
    }

    .recommended-badge {
        padding: 6px 16px;
        font-size: 0.65rem;
        top: -10px;
    }

    /* FAQ ultra compacto */
    .faq-icon {
        width: 50px;
        height: 50px;
    }

    .faq-icon i {
        font-size: 1.2rem;
    }

    .faq-question {
        padding: 12px 12px;
    }

    .question-text {
        font-size: 0.8rem;
    }

    .faq-answer p {
        font-size: 0.75rem;
    }

    /* Footer ultra compacto */
    .main-footer {
        padding: 25px 15px 15px;
    }

    .footer-bottom {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .footer-bottom p {
        margin-bottom: 3px;
    }
}

/* ============================================================================
   OPTIMIZACIONES PARA DISPOSITIVOS TOUCH
   ============================================================================ */

@media (hover: none) and (pointer: coarse) {

    /* Aumentar áreas de toque */
    .btn,
    .btn-pricing,
    .faq-question,
    .faq-contact-btn {
        min-height: 44px;
    }

    /* Eliminar efectos hover en touch devices */
    .creation-card:hover,
    .pricing-card:hover,
    .faq-item:hover {
        transform: none;
    }

    /* Simplificar animaciones en touch */
    .bg-shape {
        animation-duration: 30s;
    }

    /* Mejorar experiencia de toque en FAQ */
    .faq-question {
        -webkit-tap-highlight-color: rgba(139, 92, 246, 0.1);
    }
}

/* ============================================================================
   MODO PAISAJE EN MÓVILES
   ============================================================================ */

@media screen and (max-width: 768px) and (orientation: landscape) {

    .container {
        padding: 60px 15px 30px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .comparison-section,
    .creations-section,
    .componentization-section,
    .software-anatomy-section,
    .pricing-section,
    .faq-section {
        padding: 40px 30px;
    }

    .popup-content {
        width: 90%;
        max-width: 600px;
    }
}

/* ============================================================================
   MEJORAS DE ACCESIBILIDAD RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {

    /* Mejora de contraste en móvil */
    .hero-content p,
    .comparison-card li,
    .creation-card p,
    .anatomy-text p,
    .faq-answer p {
        color: #c0c0c0;
    }

    /* Espaciado mejorado para lectura */
    .faq-answer p {
        line-height: 1.6;
    }

    .creation-card p {
        line-height: 1.5;
    }

    /* Botones más accesibles */
    .btn-primary,
    .btn-pricing.highlighted {
        background: linear-gradient(135deg, #f59e0b, #dc2626);
    }
}

/* ============================================================================
   OPTIMIZACIONES DE RENDIMIENTO MOBILE
   ============================================================================ */

@media (max-width: 768px) {

    /* Reducir blur en móvil para mejor performance */
    .bg-shape {
        filter: blur(40px);
    }

    .animated-background {
        will-change: auto;
    }

    /* Simplificar backdrop-filter */
    .comparison-section,
    .pricing-section {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.03);
    }

    .creation-card,
    .comparison-card,
    .pricing-card,
    .faq-item {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.08);
    }
}