/* ====================================
   SKYPC - Estilos Responsivos
   Versión: 1.0
   Última actualización: Enero 2025
   ==================================== */

/* ====================================
   Tablet Landscape (1024px)
   ==================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .product-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ====================================
   Tablet Portrait (768px)
   ==================================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transition: right 0.3s;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .nav-links a {
        display: block;
        padding: 0.5rem;
        color: var(--text-primary) !important;
    }
    
    .menu-toggle {
        display: block;
        color: var(--text-primary) !important;
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    /* --- INICIO DE LA CORRECCIÓN --- */
    /* Se deshabilita el pseudo-elemento de la animación shimmer que causa el desbordamiento horizontal en móviles */
    .hero::before {
        display: none;
    }
    /* --- FIN DE LA CORRECCIÓN --- */
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Products */
    .product-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Utilities */
    .section {
        padding: 3rem 0;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .scroll-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ====================================
   Mobile Large (480px)
   ==================================== */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero {
        min-height: 70vh;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-text h2 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Cards */
    .card-content {
        padding: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
    }
    
    .category-card {
        padding: 2rem 1.5rem;
    }
    
    .category-card i {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact-info,
    .contact-form {
        padding: 2rem;
    }
    
    .contact-item {
        gap: 1rem;
    }
    
    .contact-item i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* ====================================
   Mobile Small (360px)
   ==================================== */
@media (max-width: 360px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    /* Hero */
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    
    /* Cards */
    .service-card,
    .category-card {
        min-width: 100%;
    }
    
    /* Footer */
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section p,
    .footer-section ul {
        font-size: 0.9rem;
    }
}

/* ====================================
   Print Styles
   ==================================== */
@media print {
    /* Hide non-essential elements */
    header,
    .whatsapp-float,
    .scroll-top,
    .hero-buttons,
    .cta-section,
    .social-links,
    .menu-toggle {
        display: none !important;
    }
    
    /* Reset colors for print */
    body {
        color: #000;
        background: #fff;
    }
    
    /* Ensure content breaks properly */
    .section {
        page-break-inside: avoid;
    }
    
    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    /* Remove shadows and backgrounds */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
        background: transparent !important;
    }
}

/* ====================================
   Accessibility - Reduced Motion
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-image {
        animation: none;
    }
    
    .whatsapp-float {
        animation: none;
    }
}

/* ====================================
   High Contrast Mode
   ==================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-orange: #ff3300;
        --primary-green: #00ff00;
        --dark-gray: #000000;
        --light-gray: #ffffff;
    }
    
    * {
        border-color: currentColor !important;
    }
    
    .btn,
    .card,
    .category-card {
        border: 2px solid currentColor;
    }
}