:root { --primary: #e8600a; --primary-dark: #c44d08; --primary-light:#fff3ec; --secondary: #ffa500; --dark: #1a1a2e; --dark2: #16213e; --success: #25d366; --light-bg: #f8f5f0; --text: #1f2937; --text-muted: #6b7280; --border: #e5e7eb; --card-shadow: 0 2px 12px rgba(0,0,0,0.07); --radius: 14px; --radius-sm: 8px; --radius-lg: 20px; --font-body: 'Nunito', sans-serif; --font-heading: 'Barlow', sans-serif; --font-display: 'Barlow Condensed', sans-serif; } *, *::before, *::after { box-sizing: border-box; margin: 0; } html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; } body { font-family: var(--font-body); color: var(--text); background: #fff; overflow-x: hidden; line-height: 1.6; } img { max-width: 100%; height: auto; display: block; } a { color: inherit; } h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; } button, input, textarea, select { font-family: inherit; font-size: inherit; } *:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; } .product-card-emoji { height: 160px; background: linear-gradient(145deg, #fdf6ef, #fceee2); } @media (max-width: 767px) { .product-card-emoji { height: 130px; } } @media (min-width: 1200px) { .product-card-emoji { height: 180px; } } .product-card-emoji img { transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), filter .35s ease; } .product-card:hover .product-card-emoji img { transform: scale(1.1) translateY(-4px); } .product-card { height: 100%; display: flex; flex-direction: column; border-radius: var(--radius); background: linear-gradient(160deg, #fffaf6 0%, #fff8f2 100%); border: 1.5px solid rgba(232,96,10,0.1); } .prod-body { flex: 1; display: flex; flex-direction: column; } .prod-name { flex: 1; font-size: 13px; line-height: 1.4; } @media (min-width: 992px) { .prod-name { font-size: 13.5px; } } .btn-cart { margin-top: auto; padding: 10px 14px; font-size: 13px; } @media (max-width: 575px) { .btn-cart { font-size: 11.5px; padding: 8px 10px; } .prod-price { font-size: 15px !important; } } .prod-col { flex: 0 0 50% !important; max-width: 50% !important; width: 50%; box-sizing: border-box; } @media (min-width: 576px) { .prod-col { flex: 0 0 50% !important; max-width: 50% !important; } } @media (min-width: 768px) { .prod-col { flex: 0 0 33.3333% !important; max-width: 33.3333% !important; } } @media (min-width: 1200px) { .prod-col { flex: 0 0 25% !important; max-width: 25% !important; } } .hero-main { min-height: 500px; display: flex; align-items: center; } @media (max-width: 767px) { .hero-inner { padding: 40px 0 30px !important; } .hero-title { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; } .hero-desc { font-size: 14px; } .hero-btns .btn { font-size: 13.5px; padding: 10px 20px; } .hero-stats { gap: 16px; } } @media (min-width: 768px) { .hero-main { min-height: 520px; } } .service-box { padding: 20px 12px; } @media (max-width: 575px) { .service-box { padding: 14px 8px; } .service-box h6 { font-size: 12px !important; } .service-box i { font-size: 1.6rem !important; } } @media (max-width: 767px) { .promo-banner .row .col-6 { margin-bottom: 4px; } .promo-card { padding: 14px 10px; } .promo-price { font-size: 1.1rem !important; } .promo-title { font-size: 12px !important; } } .category-card { height: 100%; cursor: pointer; transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s; } .category-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,0.1); } @media (max-width: 575px) { .category-card h6 { font-size: 12px !important; } .category-card small { font-size: 10px !important; } .cat-icon img { height: 55px !important; } } .filter-bar { -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; gap: 8px !important; } .filter-bar::-webkit-scrollbar { display: none; } @media (max-width: 991px) { .filter-bar { flex-wrap: nowrap !important; overflow-x: auto; } .filter-btn { flex-shrink: 0; } } @media (min-width: 992px) { .filter-bar { flex-wrap: wrap; } } .filter-btn { min-height: 44px; padding: 8px 18px; white-space: nowrap; } .search-wrapper { flex: 1; max-width: 340px; } .search-wrapper input { font-size: 16px; min-height: 44px; border-radius: 50px; padding: 10px 52px 10px 20px; width: 100%; border: 2px solid var(--border); outline: none; transition: border .2s, box-shadow .2s; } .search-wrapper input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,96,10,0.1); } .search-wrapper button { min-width: 40px; min-height: 40px; } @media (max-width: 767px) { .search-wrapper { max-width: 100%; } .products-toolbar { flex-direction: column; gap: 10px; } .toolbar-right { width: 100%; justify-content: space-between; } } @media (max-width: 767px) { .testimonial-card { padding: 20px; } .testimonial-text { font-size: 13.5px; } } @media (max-width: 767px) { .nosotros-stat-val { font-size: 2rem !important; } } @media (max-width: 767px) { .step-num { width: 48px; height: 48px; font-size: 1.2rem; } .step-card { padding: 20px 12px; } .step-card p { font-size: 13px; } } .wa-band-btn { display: inline-flex; align-items: center; gap: 10px; } @media (max-width: 575px) { .wa-band { padding: 32px 0; } .wa-band-btn { font-size: 0.9rem !important; padding: 13px 22px !important; } .wa-band h2 { font-size: 1.4rem; } } .payment-method-card { min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; } @media (max-width: 575px) { .payment-method-card { padding: 14px 8px; min-height: 110px; } .pm-icon-wrap { width: 50px !important; height: 50px !important; } .pm-label { font-size: 11.5px !important; } .pm-sub { font-size: 10px !important; } } #cartPanel { width: 400px; max-width: 100vw; } @media (max-width: 575px) { #cartPanel { width: 100vw; right: -100vw !important; } #cartPanel.open { right: 0 !important; } } @media (max-width: 767px) { .contact-card-hover { padding: 24px 20px !important; } #contacto iframe { height: 280px !important; } } @media (max-width: 767px) { .footer-dark .footer-menu-col { display: none; } .footer-dark [class*="col-md-"] { margin-bottom: 20px; } .footer-dark .row { gap: 0; } } .navbar-main { position: sticky; top: 0; z-index: 1000; transition: box-shadow .3s; } .hamburger-btn { min-width: 44px; min-height: 44px; } @media (max-width: 575px) { .brand-text-trejo { font-size: 22px !important; } .brand-text-top, .brand-text-sub { display: none !important; } .brand-icon { width: 36px !important; height: 36px !important; } .cart-toggle-label { display: none; } .cart-toggle-btn { padding: 9px 12px; } } .mobile-menu-panel { max-width: 85vw; } .mobile-menu-nav a { min-height: 52px; } #toast-container { padding: 0 16px; width: 100%; max-width: 400px; transform: translateX(-50%); } @media (max-width: 575px) { .toast-msg { font-size: 13px; padding: 10px 18px; } } .modal-box { max-height: 90vh; overflow-y: auto; width: min(420px, 92vw); } @media (max-width: 575px) { .modal-box { padding: 24px 20px; } .modal-price { font-size: 1.7rem !important; } } #inquiry-form input, #inquiry-form textarea { font-size: 16px !important; } .delivery-banner .container { flex-wrap: wrap; gap: 12px; justify-content: center; } @media (max-width: 767px) { .delivery-pill { font-size: 12px; } .delivery-banner { padding: 12px 0; } } @supports (padding: max(0px)) { .navbar-main { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); } .footer-dark { padding-bottom: max(40px, env(safe-area-inset-bottom)); } #cartPanel { padding-bottom: env(safe-area-inset-bottom); } #cartFab { bottom: max(26px, calc(env(safe-area-inset-bottom) + 16px)); } } @media (prefers-reduced-motion: reduce) { .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; } .hero-card { animation: none !important; } .promo-ticker-track { animation: none !important; } * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } } @media (prefers-contrast: high) { .product-card { border: 2px solid var(--dark) !important; } .filter-btn { border-width: 2px; } } @media print { .promo-ticker, .navbar-main, .mobile-menu-panel, #cartPanel, .wa-band, #cartFab, #backToTop, .hamburger-btn { display: none !important; } .hero-main { min-height: auto; padding: 30px 0; } .product-card { break-inside: avoid; } } .cat-section-divider { display: flex; align-items: center; margin: 28px 0 10px; gap: 14px; } .cat-section-divider::before { content: ''; flex: 1; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(232,96,10,0.3)); } .cat-section-divider::after { content: ''; flex: 1; height: 1.5px; background: linear-gradient(90deg, rgba(232,96,10,0.3), transparent); } .cat-section-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); background: #fff8f4; padding: 5px 16px; border-radius: 50px; border: 1.5px solid rgba(232,96,10,0.2); white-space: nowrap; } .hero-stat-box { display: flex; flex-direction: column; gap: 2px; } .hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--secondary); line-height: 1; letter-spacing: -1px; } .hero-stat-label { font-size: 11.5px; color: rgba(255,255,255,0.55); font-weight: 500; } @media (max-width: 575px) { .hero-stat-num { font-size: 1.5rem; } .hero-stats { gap: 16px; margin-top: 20px; } } #noResults > div { max-width: 100%; } @media (max-width: 575px) { #noResults > div { padding: 30px 20px; } } @media (max-width: 575px) { .nosotros-section .col-6 > div { padding: 20px 12px !important; } .nosotros-section .nosotros-stat { font-size: 2rem !important; } } .section-heading { text-align: center; margin-bottom: 3rem; } .section-heading h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--dark); } .section-heading p { color: var(--text-muted); font-size: 15px; margin-top: .5rem; } @media (max-width: 575px) { #contacto iframe { height: 250px !important; } } .prod-badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border-radius: 50px; z-index: 4; pointer-events: none; } .prod-badge.badge-new { background: #059669; } .prod-badge.badge-hot { background: #dc2626; } .prod-badge.badge-pop { background: var(--dark2); } .filter-btn.active { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; box-shadow: 0 4px 12px rgba(232,96,10,0.3); } @media (max-width: 575px) { .promo-section-title { font-size: 1.4rem !important; } .promo-section-sub { font-size: 12px !important; } } @keyframes skeleton-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } } .skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 800px 100%; animation: skeleton-shimmer 1.5s infinite; border-radius: var(--radius-sm); } #scroll-progress { height: 3px; background: linear-gradient(90deg, var(--secondary), var(--primary)); transition: width .1s linear; } .cart-item-emoji img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; } #backToTop { width: 46px; height: 46px; min-width: 44px; min-height: 44px; } .steps-section { background: var(--light-bg); } .step-connector { opacity: 0.3; font-size: 1.4rem; color: var(--primary); } .wa-band::before, .wa-band::after { pointer-events: none; } /* lazy opacity removed - handled natively by browser */ @media (min-width: 992px) { ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #f1f1f1; } ::-webkit-scrollbar-thumb { background: rgba(232,96,10,0.4); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--primary); } } .product-card { transition: transform .3s ease, box-shadow .3s, border-color .3s; } .product-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 20px 50px rgba(232,96,10,0.14), 0 8px 20px rgba(0,0,0,0.06); border-color: rgba(232,96,10,0.35) !important; z-index: 2; } @media (max-width: 575px) { section { overflow: hidden; } .container { padding-left: 16px; padding-right: 16px; } } @keyframes float-badge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } } .hero-badge { } /* hero-title span: color sólido en lugar de gradient-clip para evitar
   el bug de texto transparente en algunos navegadores/dispositivos.
   El hero-name-trejo tiene su propio override en el bloque de enhancement. */
.hero-title span { color: var(--secondary); }
@keyframes heroTextShimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } } .hero-card { box-shadow: 0 4px 20px rgba(255,165,0,0); transition: background .3s; } .hero-card:hover { background: rgba(255,165,0,0.12) !important; border-color: rgba(255,165,0,0.35) !important; } @keyframes heroCardGlow { 0%,100% { box-shadow: 0 4px 20px rgba(255,165,0,0); } 50% { box-shadow: 0 8px 30px rgba(255,165,0,0.18); } } .product-card-emoji { position: relative; overflow: hidden; } .product-card-emoji::before { content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient( to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100% ); transform: skewX(-20deg); opacity: 0; transition: opacity .1s; z-index: 3; pointer-events: none; } .product-card:hover .product-card-emoji::before { opacity: 1; animation: imgShimmer .6s ease forwards; } @keyframes imgShimmer { 0% { left: -75%; } 100% { left: 125%; } } .filter-btn { transition: all .2s cubic-bezier(0.34,1.56,0.64,1) !important; transform-origin: center; } .filter-btn:hover:not(.active) { transform: scale(1.06) translateY(-1px); box-shadow: 0 4px 14px rgba(232,96,10,0.18); } .filter-btn.active { transform: scale(1.04); box-shadow: 0 6px 18px rgba(232,96,10,0.32); animation: filterActivePop .35s cubic-bezier(0.34,1.56,0.64,1) both; } @keyframes filterActivePop { 0% { transform: scale(0.95); } 60% { transform: scale(1.08); } 100% { transform: scale(1.04); } } .promo-card { position: relative; overflow: hidden; } .promo-card::after { content: ''; position: absolute; inset: 0; border-radius: 14px; background: radial-gradient(circle at 50% 0%, rgba(255,165,0,0.15), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; } .promo-card:hover::after { opacity: 1; } .promo-card img { transition: transform .4s cubic-bezier(0.34,1.56,0.64,1), filter .3s; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)); } .promo-card:hover img { transform: scale(1.1) translateY(-4px) rotate(-2deg); filter: drop-shadow(0 8px 16px rgba(232,96,10,0.25)); } .category-card { position: relative; overflow: hidden; } .category-card::before { content: ''; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(135deg, rgba(232,96,10,0.08), transparent); opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 0; } .category-card:hover::before { opacity: 1; } .category-card > * { position: relative; z-index: 1; } .step-num { position: relative; overflow: visible !important; } .step-num::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: rgba(232,96,10,0.2); opacity: 0; transform: scale(0.8); transition: all .3s; z-index: -1; } .step-card:hover .step-num::after { opacity: 1; transform: scale(1.1);  } @keyframes stepPulse { 0%,100% { opacity: 0.2; transform: scale(1.05); } 50% { opacity: 0.5; transform: scale(1.18); } } .wa-band-btn { position: relative; } .wa-band-btn::before { content: ''; position: absolute; inset: 0; border-radius: 50px; background: rgba(37,211,102,0.4); display: none; } @keyframes waPulse { 0%,100% { box-shadow: 0 8px 30px rgba(0,0,0,0.25); } 50% { box-shadow: 0 12px 40px rgba(37,211,102,0.45), 0 0 0 8px rgba(37,211,102,0.1); } } @keyframes waRing { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.3); opacity: 0; } } .section-title::after { transition: width .6s cubic-bezier(0.22,1,0.36,1) !important; } .testimonial-card { border-left: 3px solid transparent; transition: all .35s, border-color .35s; } .testimonial-card:hover { border-left-color: var(--primary) !important; } .check-item { transition: transform .3s cubic-bezier(0.34,1.56,0.64,1), opacity .3s; } .check-item:hover { transform: translateX(6px); } .check-item .check-icon { transition: transform .3s cubic-bezier(0.34,1.56,0.64,1), background .3s; } .check-item:hover .check-icon { transform: scale(1.15) rotate(-6deg); background: var(--secondary) !important; } .contact-card-hover > div > div:first-child { transition: transform .4s cubic-bezier(0.34,1.56,0.64,1), box-shadow .3s; } .contact-card-hover:hover > div > div:first-child { transform: scale(1.12) rotate(-8deg); box-shadow: 0 8px 24px rgba(0,0,0,0.18); } .cart-toggle-btn { transition: all .3s cubic-bezier(0.34,1.56,0.64,1) !important; } .cart-toggle-btn:hover { transform: scale(1.08) translateY(-1px) !important; box-shadow: 0 6px 20px rgba(255,165,0,0.5) !important; } .pm-icon-wrap { transition: transform .4s cubic-bezier(0.34,1.56,0.64,1), box-shadow .3s !important; } .payment-method-card:hover .pm-icon-wrap { transform: scale(1.15) rotate(-6deg) !important; box-shadow: 0 10px 28px rgba(0,0,0,0.28) !important; } .delivery-pill { position: relative; padding-bottom: 2px; transition: color .2s; } .delivery-pill::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: rgba(110,231,183,0.8); transition: width .3s ease; } .delivery-pill:hover::after { width: 100%; } .promo-badge { position: relative; } .promo-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #fff; border-radius: 50%; margin-right: 5px; vertical-align: middle;  } @keyframes dotBlink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } } .navbar-logo-img { filter: brightness(1); transition: filter .3s, transform .3s !important; } .navbar-logo-img:hover { filter: brightness(1.1) drop-shadow(0 0 8px rgba(255,165,0,0.5)); } .btn-cart { position: relative; overflow: hidden; transition: all .3s cubic-bezier(0.34,1.56,0.64,1) !important; } .btn-cart:active { transform: scale(0.96) !important; } #backToTop i { transition: transform .3s cubic-bezier(0.34,1.56,0.64,1); } #backToTop:hover i { transform: translateY(-3px); } .footer-dark a { transition: color .2s, padding-left .2s, letter-spacing .2s !important; } .footer-dark a:hover { letter-spacing: 0.02em; } .nosotros-stat { transition: transform .3s cubic-bezier(0.34,1.56,0.64,1); } .nosotros-stat:hover { transform: scale(1.05); } .cat-section-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary); background: #fff8f4; padding: 5px 16px; border-radius: 50px; border: 1.5px solid rgba(232,96,10,0.2); white-space: nowrap; } .cat-section-label i { font-size: 12px; opacity: 0.8; } .prod-badge { } @keyframes badgeWobble { 0%,80%,100% { transform: rotate(0deg); } 85% { transform: rotate(-5deg); } 92% { transform: rotate(4deg); } }
/* ================================================================
   RESPONSIVE PATCH v2 — 100% mobile-first optimization
   ================================================================ */

/* ── 1. GLOBAL OVERFLOW & BOX CONTROL ── */
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
* { min-width: 0; }
.container { padding-left: max(16px, env(safe-area-inset-left, 0px));
             padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ── 2. SECTION PADDING MOBILE ── */
@media (max-width: 575px) {
  section.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  section.py-4 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
  section.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .mb-5 { margin-bottom: 2rem !important; }
  .mb-4 { margin-bottom: 1.5rem !important; }
}

/* ── 3. OFERTAS SECTION RESPONSIVE ── */
/* Contenedor principal */
#ofertas { padding-left: 0; padding-right: 0; }
#ofertas .container { padding-left: 16px; padding-right: 16px; }

@media (max-width: 575px) {
  #ofertas { padding-top: 0; }
  /* Barra de urgencia */
  #ofertas > div:first-child .container > div {
    flex-direction: column; gap: 8px;
  }
  /* Título hero-ofertas */
  #ofertas h2 { font-size: clamp(1.6rem, 8vw, 2.2rem) !important; }
  #ofertas > .container > div > p { font-size: 13.5px !important; }

  /* Card grande (aceite) */
  #ofertas .col-12.col-md-6.col-lg-5 > div {
    padding: 16px !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  #ofertas .col-12.col-md-6.col-lg-5 img { height: 80px !important; }
  #ofertas .col-12.col-md-6.col-lg-5 h3 { font-size: 1.1rem !important; }
  #ofertas .col-12.col-md-6.col-lg-5 span[style*="1.8rem"] { font-size: 1.3rem !important; }

  /* 3 cards pequeñas (fideos, harinas, azúcar) */
  #ofertas .col-12.col-sm-4 { flex: 0 0 100% !important; max-width: 100% !important; }
  #ofertas .col-12.col-sm-4 > div { flex-direction: row !important; align-items: center !important;
    padding: 14px !important; text-align: left !important; }
  #ofertas .col-12.col-sm-4 img { height: 56px !important; margin-bottom: 0 !important;
    margin-right: 12px; flex-shrink: 0; }
  #ofertas .col-12.col-sm-4 > div > div { display: flex; flex-direction: column; }
  #ofertas .col-12.col-sm-4 h4 { margin-bottom: 2px !important; }
  #ofertas .col-12.col-sm-4 p { margin-bottom: 4px !important; }

  /* CTAs inferiores */
  #ofertas .container > div:last-child a {
    width: 100%; justify-content: center; font-size: 14px !important; padding: 12px 20px !important;
  }
  #ofertas .container > div:last-child { flex-direction: column; gap: 12px; }
}

@media (min-width: 576px) and (max-width: 767px) {
  #ofertas .col-12.col-sm-4 { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
  #ofertas .col-12.col-md-6.col-lg-5 img { height: 90px !important; }
}

/* ── 4. HERO SECTION — TABLET (768–991px) ── */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-main { min-height: auto; padding: 40px 0; }
  .hero-inner { padding: 28px 0 !important; }
  .hero-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem) !important; }
  .hero-name-trejo { font-size: clamp(3.5rem, 11vw, 5.5rem) !important; }
  .hero-btns .btn { padding: 11px 22px !important; font-size: 14px !important; }
  .col-lg-6.d-none.d-lg-block { display: none !important; }
}

/* ── 5. PRODUCT GRID — TABLET ── */
@media (min-width: 768px) and (max-width: 991px) {
  .prod-col { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
}
@media (min-width: 576px) and (max-width: 767px) {
  .prod-col { flex: 0 0 50% !important; max-width: 50% !important; }
}
@media (max-width: 399px) {
  /* Very small phones: single column */
  .prod-col { flex: 0 0 100% !important; max-width: 100% !important; }
  .product-card-emoji { height: 120px !important; }
}

/* ── 6. CATEGORIES GRID — MOBILE ── */
@media (max-width: 399px) {
  /* 2 col stays OK, but reduce padding */
  .category-card.p-3 { padding: 12px 8px !important; }
  .cat-icon img { height: 48px !important; }
  .category-card h6 { font-size: 11px !important; }
  .category-card small { display: none; }
}

/* ── 7. SERVICES STRIP ── */
@media (max-width: 399px) {
  .service-box { padding: 12px 6px !important; }
  .service-box h6 { font-size: 11px !important; }
  .service-box small { font-size: 10px !important; }
}

/* ── 8. FILTER BAR — MOBILE IMPROVEMENTS ── */
@media (max-width: 767px) {
  .filter-bar-wrap { margin-left: -16px; margin-right: -16px; padding-left: 16px; }
  .filter-bar { padding-right: 24px !important; }
  .filter-btn { min-height: 40px; padding: 6px 14px; font-size: 12px; }
}

/* ── 9. SEARCH BAR MOBILE ── */
@media (max-width: 575px) {
  .search-wrapper-responsive { max-width: 100% !important; width: 100% !important; }
  .search-wrapper input { font-size: 16px !important; /* prevents iOS zoom */ }
  #searchInput { width: 100% !important; }
}

/* ── 10. NAVBAR MOBILE REFINEMENTS ── */
@media (max-width: 399px) {
  .brand-text-trejo { font-size: 18px !important; }
  .cart-toggle-btn { padding: 7px 10px !important; }
  .navbar-inner { gap: 8px !important; padding: 8px 0 !important; }
  .hamburger-btn { width: 38px !important; height: 38px !important; min-width: 38px !important; }
}

/* ── 11. TICKER OVERFLOW FIX ── */
.promo-ticker { overflow: hidden !important; max-width: 100vw; }
.promo-ticker-track { width: max-content; }

/* ── 12. NOSOTROS SECTION — MOBILE ── */
@media (max-width: 575px) {
  .nosotros-section .row.g-4 { gap: 1rem !important; }
  .nosotros-section .col-6 > div { padding: 16px 10px !important; border-radius: 12px; }
  .nosotros-section .nosotros-stat { font-size: 1.8rem !important; }
  .check-item { gap: 10px; margin-bottom: 8px; }
  .check-icon { width: 34px !important; height: 34px !important; min-width: 34px !important; }
}
@media (min-width: 576px) and (max-width: 767px) {
  .nosotros-section .col-6 { flex: 0 0 50% !important; max-width: 50% !important; }
}

/* ── 13. TESTIMONIALS MOBILE ── */
@media (max-width: 575px) {
  .testimonials-section .row.g-4 > div { margin-bottom: 0; }
  .testimonial-card { padding: 18px 16px; }
  .testimonial-text { font-size: 13px !important; }
}

/* ── 14. WHATSAPP CTA BAND ── */
@media (max-width: 575px) {
  .wa-band { padding: 28px 0 !important; }
  .wa-band h2 { font-size: 1.3rem !important; padding: 0 12px; }
  .wa-band p { font-size: 13px !important; padding: 0 8px; }
  .wa-band-btn { font-size: 0.88rem !important; padding: 12px 20px !important; width: 100%; justify-content: center; }
  .wa-band .container { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ── 15. STEPS (COMO PEDIR) — MOBILE ── */
@media (max-width: 575px) {
  .steps-section .col-md-2.step-connector { display: none !important; }
  .step-card { padding: 16px 10px !important; }
  .step-num { width: 44px !important; height: 44px !important; font-size: 1.1rem !important; }
  .step-card h5 { font-size: 14px !important; }
  .step-card p { font-size: 12.5px !important; }
}
@media (min-width: 576px) and (max-width: 767px) {
  .step-connector { display: none !important; }
}

/* ── 16. CONTACT SECTION — MOBILE ── */
@media (max-width: 575px) {
  #contacto .row.g-4 > div { margin-bottom: 4px; }
  .contact-card-hover { padding: 20px 16px !important; }
  #contacto iframe { height: 220px !important; border-radius: 12px; }
  #inquiry-form input, #inquiry-form textarea, #inquiry-form select {
    font-size: 16px !important; /* prevent iOS zoom */
  }
}

/* ── 17. FOOTER MOBILE ── */
@media (max-width: 575px) {
  .footer-dark { padding: 32px 0 20px !important; }
  .footer-dark .col-md-3, .footer-dark .col-md-4 { margin-bottom: 24px; }
  .footer-dark h5 { margin-bottom: 12px !important; font-size: 0.95rem !important; }
  .footer-dark a { font-size: 13px; margin-bottom: 6px; }
  .footer-social a { width: 34px !important; height: 34px !important; }
}
@media (max-width: 767px) {
  .footer-dark .footer-menu-col { display: none !important; }
  .footer-dark .text-md-end { text-align: left !important; }
}

/* ── 18. CART PANEL — MOBILE FULL SCREEN ── */
@media (max-width: 575px) {
  #cartPanel { width: 100vw !important; right: -100vw !important; border-radius: 0; }
  #cartPanel.open { right: 0 !important; }
  .cart-header { padding: 16px; }
  .cart-footer { padding: 14px; }
  .btn-checkout { font-size: 14px; padding: 12px; }
}

/* ── 19. MODAL — MOBILE ── */
@media (max-width: 575px) {
  .modal-box { padding: 20px 16px !important; width: min(100vw - 24px, 400px) !important; border-radius: 16px; }
  .modal-add-btn { padding: 12px !important; font-size: 14px !important; }
  .modal-price { font-size: 1.6rem !important; }
}

/* ── 20. PRODUCT MODAL IMAGE ── */
@media (max-width: 575px) {
  #modal-img { max-height: 110px !important; }
  .modal-emoji { font-size: 2.8rem !important; }
}

/* ── 21. DELIVERY BANNER — MOBILE ── */
@media (max-width: 575px) {
  .delivery-banner .container { flex-direction: column; gap: 8px !important; padding: 0 16px; }
  .delivery-pill { font-size: 12px !important; }
  .delivery-banner { padding: 10px 0 !important; }
}

/* ── 22. PROMO BANNER SECTION ── */
@media (max-width: 575px) {
  .promo-banner { padding: 24px 0 !important; }
  .promo-card { padding: 14px 10px !important; }
  .promo-section-title { font-size: 1.3rem !important; margin-bottom: 0.5rem !important; }
  .promo-banner .row.g-3 { gap: 0; }
}

/* ── 23. SECTION TITLES — SCALE ON MOBILE ── */
@media (max-width: 575px) {
  .section-heading h2 { font-size: clamp(1.3rem, 7vw, 1.8rem) !important; }
  .section-heading p { font-size: 13.5px !important; }
  .section-title { font-size: clamp(1.2rem, 6vw, 1.6rem) !important; }
}

/* ── 24. NO HOVER EFFECTS ON TOUCH DEVICES ── */
@media (hover: none) {
  .product-card:hover { transform: none !important; box-shadow: var(--card-shadow) !important; }
  .category-card:hover { transform: none !important; }
  .promo-card:hover { transform: none !important; }
  .filter-btn:hover:not(.active) { transform: none !important; }
  .service-box:hover { transform: none !important; }
  .testimonial-card:hover { transform: none !important; }
  .check-item:hover { transform: none !important; }
}

/* ── 25. TOUCH TARGET MINIMUMS ── */
.filter-btn, .btn-cart, .sort-select, .fav-filter-btn, .qty-btn, .modal-qty-btn,
.hamburger-btn, .cart-toggle-btn, .mobile-menu-close, .fav-btn,
.btn-checkout, .btn-clear-cart, .mobile-menu-nav a {
  min-height: 44px !important;
}
@media (max-width: 575px) {
  .qty-btn, .modal-qty-btn { min-width: 44px !important; }
}

/* ── 26. PROMO TICKER MOBILE SPEED ── */
@media (max-width: 575px) {
  .promo-ticker-track { animation-duration: 20s !important; }
}

/* ── 27. BACK TO TOP & FAB POSITIONING ── */
@media (max-width: 575px) {
  #backToTop { bottom: max(90px, calc(env(safe-area-inset-bottom, 0px) + 80px)); right: 14px; }
  #cartFab { bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px)); right: 14px; }
}

/* ── 28. ROW GUTTER REDUCTION MOBILE ── */
@media (max-width: 575px) {
  .g-4 { --bs-gutter-x: 1rem !important; --bs-gutter-y: 1rem !important; }
  .g-3 { --bs-gutter-x: 0.75rem !important; --bs-gutter-y: 0.75rem !important; }
}

/* ── 29. TEXT OVERFLOW PREVENTION ── */
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-break: break-word; }
p, span, small, a { overflow-wrap: break-word; }
.prod-name { overflow-wrap: break-word; word-break: break-word; hyphens: auto; }

/* ── 30. INPUT ZOOM FIX iOS ── */
@media (max-width: 767px) {
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="search"], textarea, select {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
  }
}

/* ── 31. PAYMENT METHODS SECTION ── */
@media (max-width: 399px) {
  .payment-method-card { min-height: 100px !important; padding: 12px 6px !important; }
  .pm-icon-wrap { width: 44px !important; height: 44px !important; font-size: 1.1rem !important; }
  .pm-label { font-size: 10.5px !important; }
  .pm-sub { font-size: 9.5px !important; }
}

/* ── 32. HERO STATS MOBILE ── */
@media (max-width: 399px) {
  .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 12px !important; }
  .hero-stat-box { flex: 1 1 calc(33% - 8px); min-width: 60px; }
  .hero-stat-num { font-size: 1.3rem !important; }
  .hero-stat-label { font-size: 10px !important; }
}

/* ── 33. NOSOTROS STATS BLOCK ── */
@media (max-width: 399px) {
  .nosotros-section [data-target] { font-size: 1.6rem !important; }
  .nosotros-section .rounded-3 { padding: 16px 8px !important; }
}

/* ── 34. NO-RESULTS MESSAGE ── */
@media (max-width: 575px) {
  #noResults > div { padding: 24px 16px !important; margin: 0 !important; border-radius: 16px !important; }
  #noResults h5 { font-size: 1rem !important; }
  #noResults p { font-size: 13px !important; }
  #noResults .d-flex { gap: 8px !important; }
  #noResults a { padding: 9px 16px !important; font-size: 13px !important; }
}

/* ── 35. STICKY NAVBAR SAFE AREA ── */
.navbar-main {
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* ── 36. SECTION HEADING MOBILE ── */
@media (max-width: 575px) {
  #categorias .text-center.mb-3 h2 { font-size: clamp(1.4rem, 7vw, 1.8rem) !important; }
  #productos .text-center.mb-4 h1 { font-size: clamp(2.2rem, 10vw, 3.5rem) !important; }
  #productos .text-center.mb-4 p { font-size: 12.5px !important; }
}

/* ── 37. INLINE-STYLE OVERRIDES FOR OFERTAS ON MOBILE ── */
@media (max-width: 575px) {
  /* countdown bar */
  #oferta-countdown { font-size: 11px !important; }
  /* badge "stock limitado" */
  #ofertas .container span[style*="rgba(255,255,255,0.15)"] { font-size: 10px !important; padding: 2px 8px !important; }
}

/* ── 38. SMOOTH SCROLL OFFSET FOR STICKY NAV ── */
:target { scroll-margin-top: 80px; }
@media (max-width: 575px) { :target { scroll-margin-top: 70px; } }

/* ── 39. MOBILE MENU SCROLLBAR HIDDEN ── */
.mobile-menu-panel { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mobile-menu-panel::-webkit-scrollbar { display: none; }

/* ── 40. PRODUCT CARD MIN-HEIGHT REMOVAL ON MOBILE ── */
@media (max-width: 575px) {
  .product-card { min-height: auto !important; }
  .product-card-emoji { height: 130px !important; }
  .prod-body { padding: 10px 12px 12px !important; }
}

