/* ========================================
   RESPONSIVE.CSS — MarMon Pizza
   Breakpoints: 1024px (tablet), 768px (mobile)
   ======================================== */

/* ================================================================
   TABLET (max-width: 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .container-split,
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .testimonials-carousel::before,
  .testimonials-carousel::after {
    width: 120px;
  }

  .hero-content {
    padding-right: 6vw;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .about-image-bg {
    inset: -1rem -1rem 1rem 1rem;
  }
}

/* ================================================================
   MOBILE (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { display: none; }

  /* Hero — legible en mobile */
  .hero-content {
    padding: 0 clamp(1.5rem, 5vw, 6vw);
    text-align: center;
    align-items: center;
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.55) 50%,
      rgba(0, 0, 0, 0.9) 100%
    );
  }
  .hero-cta-row {
    justify-content: center;
  }
  .hero-sub {
    text-align: center;
  }

  /* About */
  .about-image-bg {
    display: none;
  }

  /* Delivery */
  .delivery-grid {
    gap: 3rem;
  }
  .delivery-map iframe {
    height: 300px;
  }
  .btn-delivery {
    font-size: 1rem;
    padding: 1.25rem 2rem;
  }

  /* Testimonials */
  .testimonials-section .section-header {
    padding: 0 clamp(1.5rem, 5vw, 6vw);
  }
  .testimonial-ticket {
    width: 320px;
    height: 280px;
    padding: 1.5rem;
  }
  .testimonials-track {
    animation-duration: 45s;
  }
  .ticket-avatar {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
  .ticket-social {
    font-size: 1.5rem;
  }
  .ticket-comment {
    font-size: 0.9375rem;
    padding: 1rem 0;
  }
  .testimonials-carousel::before,
  .testimonials-carousel::after {
    width: 80px;
  }

  /* Menu */
  .menu-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .menu-item-actions {
    flex-direction: row;
    align-items: stretch;
  }
  .menu-item-size {
    flex: 1;
    min-width: unset;
  }
  .menu-tab {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-col p {
    justify-content: center;
  }
  .footer-social {
    align-items: center;
  }

  /* Cart */
  .cart-drawer {
    width: 100vw;
  }

  /* CTA */
  .btn-mega {
    font-size: 1.125rem;
    padding: 1.5rem 2.5rem;
  }

  /* ---- Touch Targets: mínimo 44x44px ---- */
  .nav-mobile-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-primary,
  .btn-ghost {
    min-height: 44px;
  }
  .btn-add-cart {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .final-cta-social a {
    min-width: 44px;
    min-height: 44px;
  }
  .footer-social a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ================================================================
   SMALL MOBILE (max-width: 480px)
   ================================================================ */
@media (max-width: 480px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
  }

  .gallery-card {
    aspect-ratio: 16 / 10;
  }

  .menu-item-actions {
    flex-direction: column;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }
}

/* ================================================================
   MOBILE PERFORMANCE — GPU / blur / parallax / marquee
   ================================================================ */
@media (max-width: 768px) {
  /* Aliviar blur (consume GPU en mobile) */
  .navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  /* Desactivar parallax pesado */
  .parallax-bg, [data-parallax] {
    transform: none !important;
  }
  /* Marquees a velocidad razonable */
  .marquee-track {
    animation-duration: 30s !important;
  }
  /* Sombras más livianas */
  .gallery-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
}

/* ================================================================
   RESPETO POR USUARIOS CON MOTION REDUCIDO
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

