/* ===== STP ACADEMY MÉXICO - RESPONSIVE DESIGN ===== */

/* ===== BREAKPOINTS ===== */
/* 
  xs: 0px - 479px    (Mobile pequeño)
  sm: 480px - 767px  (Mobile grande)
  md: 768px - 1023px (Tablet)
  lg: 1024px - 1199px (Desktop pequeño)
  xl: 1200px+        (Desktop grande)
*/

/* ===== DESKTOP GRANDE (1200px+) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ===== DESKTOP PEQUEÑO (1024px - 1199px) ===== */
@media (max-width: 1199px) and (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
    
    .hero-container {
        gap: var(--spacing-xl);
    }
    
    .proceso-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== TABLET (768px - 1023px) ===== */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    /* Header */
    .nav-menu {
        gap: var(--spacing-lg);
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Proceso */
    .proceso-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    /* Beneficios */
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .beneficios-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Negocio Info */
    .negocio-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

/* ===== MOBILE GRANDE (480px - 767px) ===== */
@media (max-width: 767px) and (min-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Header */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-mobile {
        display: block;
    }
    
    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Secciones */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Proceso */
    .proceso-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    /* Beneficios */
    .beneficios-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .beneficio-card {
        padding: var(--spacing-lg);
    }
    
    .beneficios-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: var(--spacing-md);
        font-size: 1rem;
    }
    
    .faq-content {
        padding: var(--spacing-md);
    }
}

/* ===== MOBILE PEQUEÑO (0px - 479px) ===== */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header */
    .nav-container {
        padding: var(--spacing-sm);
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    /* Hero */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
    
    /* Secciones */
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-md);
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Botones */
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    /* Proceso */
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    /* Beneficios */
    .beneficio-card {
        padding: var(--spacing-md);
    }
    
    .beneficio-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .beneficio-title {
        font-size: 1.2rem;
    }
    
    .beneficio-description {
        font-size: 0.9rem;
    }
    
    .beneficio-features {
        font-size: 0.85rem;
    }
    
    .beneficios-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }
    
    .faq-content {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    /* Negocio Info */
    .negocio-info {
        padding: var(--spacing-xl) 0;
    }
    
    .contacto {
        padding: var(--spacing-md);
    }
    
    .contacto-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .contacto-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contacto-text {
        font-size: 0.9rem;
    }
}

/* ===== ORIENTACIÓN LANDSCAPE EN MÓVILES ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-description {
        margin-bottom: var(--spacing-md);
    }
    
    .hero-features {
        margin-bottom: var(--spacing-md);
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
}

/* ===== ACCESIBILIDAD Y PREFERENCIAS DEL USUARIO ===== */

/* Reducir movimiento para usuarios con preferencias 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;
    }
    
    .hero-bg-elements {
        display: none;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --accent-color: #004085;
        --text-dark: #000000;
        --text-medium: #333333;
        --border-light: #666666;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --bg-light: #2d2d2d;
        --bg-lighter: #404040;
        --text-dark: #ffffff;
        --text-medium: #cccccc;
        --text-light: #999999;
        --border-light: #555555;
    }
    
    .hero {
        background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--white) 100%);
    }
    
    .header {
        background-color: var(--white);
        border-bottom: 1px solid var(--border-light);
    }
    
    .beneficio-card,
    .faq-item,
    .proceso-cta {
        background-color: var(--bg-lighter);
        border-color: var(--border-light);
    }
}

/* ===== IMPRESIÓN ===== */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .header,
    .hero-bg-elements,
    .btn,
    .nav-mobile {
        display: none !important;
    }
    
    .hero {
        margin-top: 0;
        padding: 20px 0;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .faq-answer {
        max-height: none !important;
    }
    
    .faq-content {
        background: white !important;
    }
}