/* ===== RESPONSIVE DESIGN - LUCKHAND GAMING (FINAL) ===== */

/* Tablets grandes y laptops pequeñas */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 30px;
    }
    
    .focus-section {
        gap: 60px;
    }
    
    .game-embed-container {
        max-width: 1000px;
    }
}

/* Tablets */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 25px;
    }
    
    .focus-section {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .game-info-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .focus-visual {
        order: -1;
        margin-bottom: 30px;
    }
    
    .visual-element {
        width: 150px;
        height: 150px;
    }
    
    .rotating-circle {
        width: 120px;
        height: 120px;
    }
}

/* Tablets pequeñas y móviles grandes (768px) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Menú Hamburguesa (alineación correcta) */
    .nav-menu {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Ajustes de padding para móviles */
    .hero-modern {
        padding: 140px 0 80px;
        min-height: auto;
    }
    
    .about-modern,
    .games-modern,
    .contact-modern {
        padding: 80px 0;
        min-height: auto;
    }
    
    .demo-container {
        padding: 100px 0 40px;
    }
    
    /* Tipografía móvil */
    .modern-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .modern-subtitle {
        font-size: 1.1rem;
    }
    
    .focus-content h3 {
        font-size: 2rem;
    }
    
    /* Botones en columna para móviles */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-modern {
        width: 100%;
        max-width: 280px;
    }
    
    /* Grid de características a una columna */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    /* ===== CORRECCIÓN CRÍTICA DE CENTRADO ===== */
    .game-embed-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto 30px !important;
    }

    /* ===== CORRECCIÓN IFRAME (ASPECTO Y BORDES) ===== */
    .game-frame.horizontal {
        width: 100%;
        max-width: 100%;
        margin: 0 auto !important;
        /* Forzamos proporción de TV */
        aspect-ratio: 16/9 !important; 
        height: auto !important;
        /* Reducimos el borde grueso de PC para ganar espacio */
        border-width: 5px !important; 
    }

    .game-frame.horizontal iframe {
        height: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    
    .game-frame.vertical iframe {
        height: 600px;
        max-width: 350px;
    }
    
    /* Selector de vista en columna */
    .view-selector {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .view-btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* CTA modern responsive */
    .cta-modern {
        padding: 40px 25px;
    }
    
    .cta-modern h3 {
        font-size: 1.8rem;
    }

    /* ===== CORRECCIÓN VISUAL SELECTOR (BOTONES VERDES) ===== */
    .selector-tabs {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        border-radius: 24px;
        padding: 6px;
        gap: 8px;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
        border-radius: 18px;
        padding: 15px 20px;
    }
}

/* Móviles medianos (480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navegación móvil compacta */
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .nav-logo img {
        height: 60px;
    }
    
    .modern-title {
        font-size: 2rem;
    }
    
    .modern-header {
        margin-bottom: 50px;
    }
    
    .demo-header h1 {
        font-size: 2rem;
    }
    
    /* Cards más compactas */
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-number {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .focus-pillars {
        gap: 20px;
    }
    
    .pillar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .game-frame.horizontal iframe {
        height: 100% !important;
    }
    
    .game-frame.vertical iframe {
        height: 500px;
        max-width: 300px;
    }
    
    /* Stats grid compacto */
    .stat-item {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .cta-modern {
        padding: 30px 20px;
    }
    
    .cta-modern h3 {
        font-size: 1.6rem;
    }
}

/* Móviles pequeños (360px) */
@media screen and (max-width: 360px) {
    .modern-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-number {
        font-size: 2rem;
    }
    
    .game-frame.horizontal iframe {
        height: 100% !important;
    }
    
    .game-frame.vertical iframe {
        height: 450px;
        max-width: 280px;
    }
    
    .platform-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Alturas específicas para landscape móvil */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero-modern {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .about-modern {
        min-height: auto;
    }
    
    /* En landscape, el iframe debe ajustarse a la altura disponible */
    .game-frame.horizontal {
        width: 100%;
        aspect-ratio: 16/9 !important;
        height: auto !important;
        max-height: 80vh; /* Limitar altura para que no se salga */
        margin: 0 auto !important;
        border-width: 5px !important;
    }

    .game-frame.horizontal iframe {
        height: 100% !important;
    }
}

/* Soporte para pantallas muy grandes */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .game-embed-container {
        max-width: 1400px;
    }
    
    .game-frame.horizontal iframe {
        height: 700px;
    }
}