/**
 * Responsive Styles - Cyber Byte Perú
 * Media queries para diferentes tamaños de pantalla
 */

/* ============================================
   TABLET (768px - 1023px)
   ============================================ */

@media (max-width: 1023px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
  
  .section-padding {
    padding: var(--spacing-3xl) 0;
  }
  
  /* Typography */
  h1 { font-size: 40px; }
  h2 { font-size: 36px; }
  h3 { font-size: 28px; }
  h4 { font-size: 22px; }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-description {
    font-size: 18px;
  }
  
  /* Header */
  .navbar {
    padding: var(--spacing-sm) 0;
  }
  
  .navbar-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-2xl);
    transition: left var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }
  
  .navbar-menu.active {
    left: 0;
  }
  
  .navbar-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
  }
  
  .navbar-menu .nav-link {
    font-size: 18px;
    padding: var(--spacing-md) 0;
    width: 100%;
    display: block;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .btn-whatsapp {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 14px;
  }
  
  .btn-whatsapp span {
    display: inline;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  /* Timeline */
  .timeline::before {
    left: 32px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: var(--spacing-4xl);
  }
  
  .timeline-number {
    position: absolute;
    left: 0;
  }
  
  .timeline-content {
    max-width: 100%;
  }
  
  /* Testimonials */
  .testimonials-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }
  
  .footer-col {
    min-width: 0;
    padding: var(--spacing-md);
  }
  
  .footer-logo {
    font-size: 24px;
  }
  
  .footer-social {
    gap: var(--spacing-sm);
  }
  
  .social-link {
    width: 45px;
    height: 45px;
  }
  
  .social-link i {
    font-size: 18px;
  }
  
  .footer-contact li {
    flex-wrap: wrap;
    padding: var(--spacing-xs);
  }
  
  .footer-contact li span,
  .footer-contact li a {
    word-break: break-word;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .footer-legal {
    justify-content: center;
    gap: var(--spacing-md);
  }
}

/* ============================================
   MOBILE (< 768px)
   ============================================ */

@media (max-width: 767px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .section-padding {
    padding: var(--spacing-2xl) 0;
  }
  
  /* Typography */
  h1 { font-size: 36px; }
  h2 { font-size: 32px; }
  h3 { font-size: 28px; }
  h4 { font-size: 20px; }
  h5 { font-size: 18px; }
  h6 { font-size: 16px; }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-description {
    font-size: 16px;
  }
  
  /* Header */
  .navbar {
    height: 70px;
    padding: var(--spacing-sm) 0;
  }
  
  .logo {
    font-size: 18px;
    letter-spacing: 1px;
  }
  
  .btn-whatsapp {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
  }
  
  .btn-whatsapp span {
    display: none;
  }
  
  .btn-whatsapp i {
    font-size: 18px;
  }
  
  /* Mostrar botón WhatsApp en móvil */
  .btn-whatsapp {
    display: flex !important;
  }
  
  /* Hero */
  .hero-content {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .hero-trust {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .service-card {
    padding: var(--spacing-xl);
  }
  
  /* Timeline */
  .timeline-item {
    padding-left: var(--spacing-3xl);
  }
  
  .timeline-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 24px;
  }
  
  .timeline-content {
    padding: var(--spacing-lg);
  }
  
  /* Testimonials */
  .testimonials-carousel {
    grid-template-columns: 1fr;
  }
  
  .carousel-controls {
    flex-wrap: wrap;
  }
  
  /* CTA Section */
  .cta-title {
    font-size: 32px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  /* Footer */
  .footer {
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
  }
  
  .footer::after {
    opacity: 0.2;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .footer-col {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
  }
  
  .footer-col::before {
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
  }
  
  .footer-col:hover {
    transform: translateY(-3px);
  }
  
  .footer-brand {
    text-align: center;
    margin-bottom: var(--spacing-xl);
  }
  
  .footer-logo {
    font-size: 22px;
    margin-bottom: var(--spacing-md);
  }
  
  .footer-description {
    font-size: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .footer-social {
    justify-content: center;
    margin-top: var(--spacing-lg);
    gap: var(--spacing-sm);
  }
  
  .social-link {
    width: 44px;
    height: 44px;
  }
  
  .social-link i {
    font-size: 18px;
  }
  
  .footer-title {
    font-size: 18px;
    margin-bottom: var(--spacing-md);
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links a {
    justify-content: center;
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
  
  .footer-contact {
    text-align: center;
  }
  
  .footer-contact li {
    justify-content: center;
    flex-wrap: wrap;
    padding: var(--spacing-sm);
    text-align: center;
  }
  
  .footer-contact li::before {
    display: none;
  }
  
  .footer-contact li:hover {
    padding-left: var(--spacing-sm);
    transform: none;
  }
  
  .footer-contact li i {
    flex-shrink: 0;
    width: 18px;
  }
  
  .footer-contact li span,
  .footer-contact li a {
    text-align: center;
    word-break: break-word;
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .footer-copyright {
    font-size: 13px;
    margin-bottom: var(--spacing-sm);
    justify-content: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
  }
  
  .footer-legal a {
    font-size: 13px;
    padding: var(--spacing-xs);
  }
  
  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: var(--spacing-xl);
  }
  
  /* Buttons */
  .btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 16px;
  }
  
  /* Tienda - Mobile Filters */
  .mobile-filters-toggle {
    display: flex !important;
  }
}

/* ============================================
   SMALL MOBILE (< 480px)
   ============================================ */

@media (max-width: 479px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  /* Header - Móvil pequeño */
  .navbar {
    height: 65px;
    padding: var(--spacing-xs) 0;
  }
  
  .logo {
    font-size: 16px;
    letter-spacing: 1px;
  }
  
  .btn-whatsapp {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .btn-whatsapp span {
    display: none;
  }
  
  .btn-whatsapp i {
    font-size: 16px;
  }
  
  .navbar-menu {
    top: 65px;
    height: calc(100vh - 65px);
    padding: var(--spacing-lg);
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .service-card {
    padding: var(--spacing-lg);
  }
  
  .testimonial-card {
    padding: var(--spacing-lg);
  }
  
  .modal-content {
    padding: var(--spacing-xl);
  }
  
  /* Footer - Móvil pequeño */
  .footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
  }
  
  .footer-grid {
    gap: var(--spacing-lg);
  }
  
  .footer-col {
    padding: var(--spacing-md);
  }
  
  .footer-logo {
    font-size: 20px;
  }
  
  .footer-description {
    font-size: 13px;
  }
  
  .footer-title {
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
  }
  
  .footer-links li {
    margin-bottom: var(--spacing-xs);
  }
  
  .footer-links a {
    font-size: 13px;
  }
  
  .footer-contact li {
    font-size: 12px;
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-xs);
  }
  
  .footer-contact i {
    font-size: 14px;
    width: 16px;
  }
  
  .footer-copyright {
    font-size: 11px;
  }
  
  .footer-legal a {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .social-link i {
    font-size: 16px;
  }
}

/* ============================================
   LARGE DESKTOP (> 1440px)
   ============================================ */

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 72px;
  }
  
  .section-title {
    font-size: 48px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-carousel {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */

@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: var(--spacing-5xl) 0;
  }
  
  .hero-content {
    padding: var(--spacing-2xl) 0;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .header,
  .footer,
  .hero-scroll,
  .btn,
  .carousel-controls {
    display: none;
  }
  
  .section-padding {
    padding: var(--spacing-lg) 0;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}

/* ============================================
   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;
  }
}

/* ============================================
   DARK MODE SUPPORT (Future)
   ============================================ */

@media (prefers-color-scheme: dark) {
  /* Puede ser implementado en el futuro */
}
