/**
 * Estilos Responsive - Todas las pantallas
 * Optics Sterling LLC
 */

/* ============================================
   TABLETS (768px - 991px)
   ============================================ */
@media (max-width: 991px) {
    /* Ajustes generales */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Header */
    .site-header {
        height: 70px;
    }
    
    .logo-image {
        height: 38px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .admin-login-text {
        display: none;
    }
    
    /* Productos */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    /* Why Choose */
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .why-choose-image {
        order: -1;
    }
    
    .why-choose-image img {
        height: 280px;
    }
}

/* ============================================
   MÓVILES GRANDES (480px - 767px)
   ============================================ */
@media (max-width: 767px) {
    /* Slider */
    .slider-section {
        height: 55vh;
        min-height: 320px;
    }
    
    .slide-content h1 {
        font-size: 1.75rem;
    }
    
    .slide-content p {
        font-size: 0.9375rem;
        max-width: 100%;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Servicios */
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
    
    /* Productos */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .product-card {
        border-radius: var(--border-radius-md);
    }
    
    .product-info {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .product-info h3 {
        font-size: 0.9375rem;
    }
    
    .product-price {
        font-size: 1.0625rem;
    }
    
    .btn-view {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .btn-add {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Why Choose */
    .why-choose-content h2 {
        font-size: 1.5rem;
    }
    
    .why-choose-list li {
        font-size: 0.9375rem;
    }
    
    .why-choose-image img {
        height: 220px;
    }
    
    /* Secciones */
    .services-section,
    .products-section,
    .why-choose-section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9375rem;
    }
}

/* ============================================
   MÓVILES PEQUEÑOS (< 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Slider */
    .slider-section {
        height: 50vh;
        min-height: 280px;
    }
    
    .slide-content h1 {
        font-size: 1.375rem;
    }
    
    .slide-content p {
        font-size: 0.8125rem;
        margin-bottom: var(--spacing-md);
    }
    
    .slide-content .btn-primary {
        padding: 0.6rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }
    
    /* Servicios */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    /* Productos */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .product-info {
        padding: var(--spacing-sm);
    }
    
    .product-info h3 {
        font-size: 0.8125rem;
    }
    
    .product-price {
        font-size: 0.9375rem;
    }
    
    .btn-add {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }
    
    /* Why Choose */
    .why-choose-content h2 {
        font-size: 1.25rem;
    }
    
    .why-choose-content > p {
        font-size: 0.875rem;
    }
    
    .why-choose-list li {
        font-size: 0.875rem;
    }
    
    .why-choose-image img {
        height: 180px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   IMPRESIÓN
   ============================================ */
@media print {
    .site-header,
    .slider-section,
    .slider-controls,
    .slider-dots,
    .footer-legal {
        display: none !important;
    }
    
    .slide {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        height: auto !important;
    }
    
    .slide-background {
        position: relative !important;
        height: 300px !important;
    }
    
    .slide-overlay {
        display: none !important;
    }
}

/* ============================================
   FOOTER RESPONSIVE - EXTRA
   ============================================ */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}