/* 
 * DobleSena Landing Page Responsive Styles
 * Estilos responsivos para diferentes dispositivos
 */

/* Tablets y dispositivos medianos (menos de 992px) */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }
    
    .hero-text {
        margin-bottom: 40px;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .premium-content, 
    .tournaments-content, 
    .download-content {
        flex-direction: column;
    }
    
    .tournament-image,
    .download-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .premium-plans {
        margin-top: 40px;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
    
    .feature-card,
    .step,
    .tournament-feature {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Dispositivos móviles (menos de 768px) */
@media screen and (max-width: 768px) {
    .main-nav {
        height: auto;
        padding: 15px 5%;
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
    }
    
    .nav-links {
        flex-basis: 100%;
        flex-direction: column;
        gap: 10px;
        display: none;
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .auth-buttons.active {
        display: flex;
        flex-basis: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step {
        max-width: 100%;
    }
    
    .premium-plans {
        flex-direction: column;
        align-items: center;
    }
    
    .plan-card {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }
    
    .tournament-features {
        grid-template-columns: 1fr;
    }
    
    .device-compatibility {
        justify-content: center;
    }
    
    .testimonial-author {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Dispositivos móviles pequeños (menos de 576px) */
@media screen and (max-width: 576px) {
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon img {
        width: 60px;
        height: 60px;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .premium-text h3,
    .tournament-text h3,
    .download-text h3 {
        font-size: 1.5rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Dispositivos de alta resolución */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content {
        max-width: 1320px;
    }
    
    .hero-text h2 {
        font-size: 3.5rem;
    }
    
    .hero-text p {
        font-size: 1.3rem;
    }
    
    .features-grid,
    .premium-content,
    .tournaments-content,
    .download-content {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Orientación horizontal en dispositivos móviles */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }
    
    .hero-content {
        padding: 20px 5%;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-text p {
        margin-bottom: 15px;
    }
    
    .hero-buttons {
        margin-top: 15px;
    }
    
    .hero-stats {
        margin-top: 20px;
    }
}

/* Soporte para modo oscuro */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #121212;
        --dark-color: #f5f5f5;
        --text-color: #e0e0e0;
        --text-light: #ffffff;
    }
    
    body {
        background-color: #121212;
    }
    
    .feature-card,
    .step,
    .testimonial-content,
    .faq-question,
    .tournament-feature {
        background-color: #1e1e1e;
        color: var(--text-light);
    }
    
    .plan-card {
        background-color: #1e1e1e;
        color: var(--text-light);
    }
    
    .plan-card h4,
    .feature-card h3,
    .faq-question h3 {
        color: var(--text-light);
    }
    
    .plan-price span,
    .testimonial-author p {
        color: #aaa;
    }
    
    .faq-answer {
        background-color: #2a2a2a;
    }
    
    .how-to-play,
    .testimonials,
    .faq {
        background-color: #181818;
    }
}

/* Ajustes de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Soporte para impresión */
@media print {
    .hero {
        background: none !important;
        color: black !important;
    }
    
    .main-nav,
    .hero-buttons,
    .hero-image,
    .video-container,
    .download-image,
    .footer {
        display: none !important;
    }
    
    .hero-content,
    .premium-content,
    .tournaments-content {
        display: block !important;
    }
    
    .section-title::after {
        display: none !important;
    }
    
    .feature-card,
    .step,
    .plan-card,
    .tournament-feature {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .btn {
        border: 1px solid #ddd !important;
        color: black !important;
        background: none !important;
    }
}
