/**
 * Estilos Responsive - Ges Sistemas a Medida
 * 
 * Media queries para adaptación a diferentes dispositivos
 */

/* ============================================
   TABLETS (max-width: 991px)
   ============================================ */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 60px 0;
    }
    
    /* Navbar */
    #mainNavbar {
        padding: 12px 0;
    }
    
    .navbar-collapse {
        background: var(--color-primary-dark);
        margin-top: 15px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        margin: 4px 0;
    }
    
    .btn-cta {
        margin-top: 15px;
        display: inline-block;
        text-align: center;
    }
    
    /* Hero */
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    /* Secciones */
    .section-title {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

/* ============================================
   MÓVILES GRANDES (max-width: 767px)
   ============================================ */
@media (max-width: 767.98px) {
    :root {
        --section-padding: 50px 0;
    }
    
    /* Tipografía */
    body {
        font-size: 15px;
    }
    
    /* Hero */
    .hero {
        text-align: center;
        padding-top: 90px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Secciones */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Tarjetas */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================
   MÓVILES PEQUEÑOS (max-width: 575px)
   ============================================ */
@media (max-width: 575.98px) {
    /* Navbar */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Botones */
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    /* Secciones */
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-brand {
        font-size: 1.25rem;
    }
}

/* ============================================
   PANTALLAS GRANDES (min-width: 1200px)
   ============================================ */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
}

/* ============================================
   PREFERENCIAS DE USUARIO
   ============================================ */

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Modo oscuro del sistema (preparado para futuro) */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --color-white: #1a1a1a;
        --color-light: #2a2a2a;
        --color-dark: #f8f9fa;
    }
}
*/