/* ==============================================
   MOBILE RESPONSIVE - LANDING PAGE ÚNICAMENTE
   ============================================== */

/* Móviles pequeños (0-575px) */
@media (max-width: 575px) {

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-md);
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
        justify-content: center;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-lg);
    }

    .stat {
        min-width: 100px;
    }

    .stat strong {
        font-size: 1.25rem;
    }

    .stat span {
        font-size: 0.8125rem;
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 0.875rem;
    }

    /* Chat Preview */
    .chat-preview {
        transform: none;
        max-width: 100%;
    }

    .chat-preview:hover {
        transform: none;
    }

    /* Sections */
    .oracles-section,
    .features,
    .how-it-works,
    .pricing,
    .cta,
    .faq {
        padding: var(--spacing-2xl) 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Oracles Grid */
    .oracles-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .oracle-card {
        padding: var(--spacing-lg);
    }

    .oracle-card h3 {
        font-size: 1.25rem;
    }

    .oracle-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .step-number {
        width: 36px;
        height: 36px;
    }

    /* Pricing Grid */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .pricing-card {
        padding: var(--spacing-lg);
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    .amount {
        font-size: 2.5rem;
    }

    .currency {
        font-size: 1.25rem;
    }

    .pricing-header h3 {
        font-size: 1.25rem;
    }

    /* CTA Section */
    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1.125rem;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: var(--spacing-2xl) 0;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* FAQ */
    .faq-question {
        padding: var(--spacing-md);
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9375rem;
    }

    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* ===== OPTIMIZACIONES DEL CHAT MODAL PARA MÓVILES ===== */

    /* Asegurar que el modal ocupe toda la pantalla */
    .demo-chat-modal {
        padding: 0;
    }

    .demo-chat-container {
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    /* Header del chat MUY compacto para ganar espacio */
    .demo-chat-header {
        padding: 8px 12px;
        min-height: auto;
    }

    .demo-chat-title {
        font-size: 0.9rem;
        gap: 6px;
    }

    .demo-chat-title i {
        font-size: 1rem;
    }

    #demoChatAvatar {
        width: 24px !important;
        height: 24px !important;
        margin-right: 6px !important;
    }

    .demo-chat-close {
        font-size: 1.25rem;
        padding: 4px;
        width: 32px;
        height: 32px;
    }

    /* MAXIMIZAR área de mensajes - Lo más importante */
    .demo-chat-messages {
        padding: 8px;
        gap: 8px;
        flex: 1;
    }

    /* Mensajes MÁS ANCHOS para aprovechar el espacio */
    .demo-chat-messages .message {
        max-width: 92%;
        padding: 10px 12px;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* Reducir área de input para dar más espacio al contenido */
    .demo-chat-input-area {
        padding: 8px;
        gap: 6px;
    }

    .demo-chat-input {
        height: 44px;
        padding: 8px 10px;
        font-size: 16px;
    }

    .demo-chat-send {
        width: 44px;
        height: 44px;
        min-width: 44px;
        flex-shrink: 0;
    }

    .demo-chat-send i {
        font-size: 1rem;
    }

    /* Optimizar register overlay */
    .register-overlay .register-card {
        padding: 16px;
        max-width: 92%;
    }

    .register-card i {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .register-card h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .register-card p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
}

/* Móviles medianos (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .oracles-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    /* Chat modal un poco más espacioso */
    .demo-chat-messages .message {
        max-width: 88%;
    }
}

/* Landscape móvil */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-stats {
        padding-top: var(--spacing-md);
    }

    .demo-chat-container {
        height: 95vh;
    }

    /* En landscape, header AÚN MÁS compacto */
    .demo-chat-header {
        padding: 6px 10px;
    }

    .demo-chat-title {
        font-size: 0.85rem;
    }

    /* Input más compacto en landscape */
    .demo-chat-input {
        height: 38px;
    }

    .demo-chat-send {
        width: 38px;
        height: 38px;
    }
}