/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE FIRST OPTIMIZADO
   ========================================================================== */

/* Desktop grande y tablets */
@media screen and (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .product-container.reverse {
        direction: ltr;
    }

    .product-text {
        max-width: 100%;
    }

    .product-text h2 {
        font-size: clamp(28px, 5vw, 40px);
    }

    .product-text p {
        font-size: 16px;
    }

    .product-benefits {
        align-items: center;
        justify-content: center;
    }
    
    .benefit-item {
        justify-content: center;
    }

    .crypto-coin {
        width: 80px;
        height: 80px;
    }

    .character-3d {
        max-width: 350px;
    }

    .crypto-coin-group {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }
}

/* Tablet */
@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    /* Header móvil */
    .header {
        padding: var(--spacing-md) 0;
    }

    .header-content {
        padding: 0 var(--spacing-md);
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-lg);
        z-index: var(--z-fixed);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        padding: var(--spacing-md) 0;
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-right {
        gap: var(--spacing-sm);
    }

    .btn-header {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 13px;
    }

    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: clamp(36px, 8vw, 56px);
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: var(--spacing-lg);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }

    .stat-divider {
        display: none;
    }

    /* Product sections */
    .product-section {
        padding: var(--spacing-xl) 0;
    }

    .product-text h2 {
        font-size: clamp(24px, 6vw, 32px);
    }

    .product-text p {
        font-size: 15px;
        line-height: 1.6;
    }


    .crypto-coin {
        width: 70px;
        height: 70px;
    }

    .character-3d {
        max-width: 300px;
    }

    /* Green Section - Optimización de fondo */
    .green-section .container {
        background-position: 90% center, center;
        border-radius: 20px;
        padding: var(--spacing-xl);
        margin: var(--spacing-lg) auto;
    }

    /* Purple Section - Optimización de fondo */
    .purple-section .container::before {
        background: url('../images/bg-purple.svg') right center/contain no-repeat, 
                   linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.25) 100%);
        background-position: 90% center, center;
    }

    /* Download Section */
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .download-features {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }

    /* Navigation Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 255, 136, 0.05);
        border-radius: var(--radius-md);
        margin: var(--spacing-sm) 0;
        min-width: auto;
    }
    
    .dropdown-toggle i {
        display: none;
    }
    
    .nav-dropdown .dropdown-menu {
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Móvil */
@media screen and (max-width: 600px) {
    body {
        padding-top: 60px;
    }

    /* Header */
    .header {
        padding: var(--spacing-sm) 0;
    }

    .logo {
        font-size: 24px;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    /* Hero optimizado */
    .hero {
        min-height: 70vh;
        padding: var(--spacing-lg) 0;
    }

    .hero-content {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: clamp(28px, 10vw, 48px);
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: var(--spacing-md);
    }

    .hero-actions {
        gap: var(--spacing-sm);
    }

    .btn-hero,
    .btn-primary.btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 14px;
        border-radius: 25px;
    }

    .btn-secondary.btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 14px;
    }

    /* Product sections optimizadas */
    .product-section {
        padding: var(--spacing-lg) 0;
    }

    .container,
    .product-container,
    .purple-section .container,
    .green-section .container {
        box-sizing: border-box;
        width: 100%;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .product-container,
    .product-container.reverse {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px;
    }

    .product-text {
        text-align: center;
        padding: 0 var(--spacing-sm);
    }

    .product-text h2 {
        font-size: clamp(22px, 7vw, 28px);
        margin-bottom: var(--spacing-md);
        line-height: 1.3;
    }

    .product-text p {
        font-size: 14px;
        margin-bottom: var(--spacing-md);
        line-height: 1.6;
        opacity: 0.9;
    }

    .product-benefits {
        margin: var(--spacing-md) 0;
        padding: 0 var(--spacing-xs);
    }

    .product-benefits .benefit-item {
        font-size: 14px;
        justify-content: center;
        margin-bottom: var(--spacing-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .btn-primary {
        width: 100%;
        max-width: 300px;
        margin: var(--spacing-md) auto;
        display: block;
        padding: 12px 24px;
        font-weight: 600;
    }

    .product-visual {
        height: auto;
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: var(--spacing-md);
    }


    .crypto-coin {
        width: 60px;
        height: 60px;
    }

    .character-3d {
        max-width: 250px;
    }

    /* Green Section - Sin SVG en móvil */
    .green-section .container {
        padding: var(--spacing-lg);
        margin: var(--spacing-md) auto;
        background-attachment: local;
    }

    /* Purple Section - Sin SVG en móvil */
    .purple-section .container::before {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.3) 100%);
        background-attachment: local;
    }

    .purple-section .container {
        border-radius: 16px;
        padding: var(--spacing-lg);
        margin: var(--spacing-md) auto;
    }

    /* Download Section */
    .download-section {
        padding: 60px 0;
    }

    .download-content {
        padding: 0 var(--spacing-md);
    }

    .download-content h2 {
        font-size: clamp(24px, 6vw, 32px);
    }

    .download-content p {
        font-size: 16px;
    }

    .download-buttons {
        gap: var(--spacing-md);
    }

    .store-button {
        width: 80%;
        max-width: 300px;
    }

    .store-button img {
        height: 50px;
    }

    .download-features {
        gap: var(--spacing-md);
    }

    .feature-mini {
        font-size: 14px;
    }

    /* Home Features optimizadas */
    .home-features {
        padding: 80px 0;
    }

    .home-features-grid {
        padding: 0 16px;
        gap: 16px;
    }
    
    .home-feature-card {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 24px 20px;
    }
    
    .home-feature-content-section {
        padding-right: 0;
    }
    
    .home-feature-stats {
        justify-content: center;
    }
    
    .home-feature-action-section {
        justify-content: center;
    }
    
    .home-feature-btn {
        padding: 14px 28px;
        font-size: 16px;
    }

    /* Home Stats optimizadas */
    .home-stats-carousel {
        padding: 20px 0;
    }
    
    .home-stats-cards {
        gap: 12px;
        padding: 0 4px;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .home-stats-card {
        flex: 0 0 180px;
        padding: 16px 12px 12px;
        min-height: 120px;
        scroll-snap-align: start;
    }
    
    .home-stats-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .home-stats-icon img {
        width: 36px;
        height: 36px;
    }
    
    .home-stats-card-title {
        font-size: 12px;
        line-height: 1.1;
    }

    /* Explore Cards optimizadas */
    .explore-card {
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 204, 106, 0.2) 100%),
                   rgba(255, 255, 255, 0.05);
        background-attachment: local;
    }
}

/* Móviles muy pequeños */
@media screen and (max-width: 480px) {
    body {
        padding-top: 55px;
    }

    /* Header ultra compacto */
    .header {
        padding: 10px 0;
    }

    .header-content {
        padding: 0 12px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-img {
        width: 24px;
        height: 24px;
    }

    /* Hero ultra optimizado */
    .hero {
        min-height: 60vh;
        padding: var(--spacing-md) 0;
    }

    .hero-content {
        padding: 0 12px;
    }

    .hero-title {
        font-size: clamp(24px, 12vw, 36px);
    }

    .hero-subtitle {
        font-size: 14px;
    }

    /* Product sections ultra compactas */
    .product-section {
        padding: var(--spacing-md) 0;
    }

    .container,
    .product-container {
        padding: 0 12px !important;
    }

    .product-text h2 {
        font-size: clamp(20px, 8vw, 26px);
    }

    .product-text p {
        font-size: 13px;
    }

    .crypto-coin {
        width: 50px;
        height: 50px;
    }

    .character-3d {
        max-width: 200px;
    }

    /* Secciones coloreadas ultra compactas */
    .green-section .container,
    .purple-section .container {
        border-radius: 12px;
        padding: var(--spacing-md);
        margin: var(--spacing-sm) auto;
    }

    /* Home Stats ultra optimizadas */
    .home-stats-carousel {
        padding: 25px 0;
    }
    
    .home-stats-cards {
        gap: 16px;
        padding: 0 8px;
    }
    
    .home-stats-card {
        flex: 0 0 200px;
        padding: 20px 16px 16px;
        min-height: 140px;
    }
    
    .home-stats-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
    
    .home-stats-icon img {
        width: 42px;
        height: 42px;
    }
    
    .home-stats-card-title {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .home-stats-carousel-container::before,
    .home-stats-carousel-container::after {
        width: 50px;
    }

    /* Download ultra optimizada */
    .download-section {
        padding: 40px 0;
    }

    .download-content {
        padding: 0 12px;
    }

    .store-button img {
        height: 45px;
    }

    /* QR Code optimizado */
    .qr-code {
        width: 160px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        border-radius: 25px;
        padding: 0 10px 0 0;
    }
    
    .qr-image {
        width: 40px;
        height: 40px;
        border-radius: 20px;
    }
    
    .qr-text {
        font-size: 13px;
        margin-left: 6px;
    }
}

/* Animaciones optimizadas para móvil */
@media (prefers-reduced-motion: reduce) {
    .hero-orb,
    .crypto-animation,
    .home-stats-cards {
        animation: none;
    }
}

/* Fix para landscape en móvil */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: clamp(24px, 6vw, 36px);
    }
}

/* Responsive adjustments for all sections */
@media screen and (max-width: 992px) {
    .container,
    .product-container {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .product-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .product-text {
        text-align: center;
    }

    .product-text h2 {
        font-size: clamp(24px, 5vw, 32px);
    }

    .product-text p {
        font-size: 16px;
        line-height: 1.5;
    }

    .product-benefits {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-primary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .product-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    .crypto-coin-group {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .product-text h2 {
        font-size: clamp(20px, 6vw, 28px);
    }

    .product-text p {
        font-size: 14px;
    }

    .product-benefits {
        gap: 8px;
    }

    .crypto-coin-group {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .container,
    .product-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-text h2 {
        font-size: clamp(18px, 7vw, 24px);
    }

    .product-text p {
        font-size: 12px;
    }

    .btn-primary {
        max-width: 250px;
    }

    .crypto-coin-group {
        width: 100%;
    }
}

/* Download Section - Mobile Optimization */
@media (max-width: 768px) {
    .download-section {
        padding: 20px 0;
    }

    .download-content {
        padding: 0 10px;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .store-button {
        width: 100%;
        max-width: 250px;
    }

    .download-features {
        flex-direction: column;
        gap: 20px;
    }

    .feature-mini {
        justify-content: center;
    }

    .phone-mockup {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Debit Card Page - Mobile Styles */
@media screen and (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .step {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }

    .step-number {
        min-width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin: 0;
    }

    .step-content {
        flex: 1;
    }

    .step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .step-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-container .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .benefits {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .benefit {
        text-align: center;
        padding: 1.5rem;
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .benefit h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .benefit p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}