/* =========================================================
   EL CHARRO DE JALISCO  —  modern, mobile-first, premium
   Inspired by DoorDash / UberEats / Toast
   ========================================================= */

:root {
  --rojo:        #dc2626;
  --rojo-dark:   #b91c1c;
  --rojo-light:  #fee2e2;
  --amarillo:    #fbbf24;
  --verde:       #16a34a;
  --bg:          #fafafa;
  --bg-card:     #ffffff;
  --ink:         #0f172a;
  --ink-soft:    #475569;
  --ink-faint:   #94a3b8;
  --line:        #e5e7eb;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 14px rgba(0,0,0,.08);
  --shadow-lg:   0 24px 48px rgba(0,0,0,.2);
  --radius:      14px;
  --radius-sm:   10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; color: var(--rojo); }
.brand-sub { font-size: 11px; color: var(--ink-faint); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.nav-info { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 13px; color: var(--ink-soft); }
.nav-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f0fdf4; color: var(--verde); font-weight: 600; font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.nav-phone { font-weight: 600; }
.cart-btn {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
}
.cart-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.cart-count {
  background: var(--rojo);
  color: #fff;
  border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* ============ LANGUAGE SWITCH ============ */
.lang-switch {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: #64748b;
  transition: all .15s;
}
.lang-btn.active {
  background: white;
  color: var(--rojo);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.lang-btn:hover:not(.active) { color: var(--ink); }

@media (max-width: 720px) {
  .nav-info { display: none; }
  .lang-btn { padding: 5px 8px; font-size: 11px; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(220,38,38,.6) 100%);
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 40px;
  max-width: 1280px; margin: 0 auto;
  color: #fff;
}
.hero-eyebrow {
  font-size: 13px; letter-spacing: 3px; font-weight: 700;
  color: var(--amarillo);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.hero-sub { font-size: 18px; opacity: .95; margin-bottom: 18px; max-width: 540px; }
.hero-meta {
  display: flex; gap: 10px; font-size: 14px; opacity: .9; margin-bottom: 28px;
}
.hero-cta {
  background: var(--amarillo);
  color: var(--ink);
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  display: inline-block;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(251,191,36,.45);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(251,191,36,.55); }
@media (max-width: 720px) {
  .hero { height: 380px; }
  .hero-content { padding: 0 20px; }
}

/* ============ PROMOS ============ */
.promos {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 20px 8px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.promo-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--rojo) 0%, #ea580c 100%);
  color: #fff;
  padding: 22px 24px;
  min-height: 120px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow);
}
.promo-card.alt { background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%); }
.promo-card h3 { font-size: 20px; margin-bottom: 6px; }
.promo-card p { opacity: .9; font-size: 14px; }
.promo-code {
  position: absolute; right: 16px; top: 16px;
  background: rgba(255,255,255,.2); border: 1px dashed rgba(255,255,255,.4);
  padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 12px; letter-spacing: 1px;
}

/* ============ CAT NAV (sticky) ============ */
.cat-nav-wrap {
  position: sticky; top: 65px;
  background: #fff;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.cat-nav {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-btn {
  flex-shrink: 0;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.cat-nav-btn:hover { color: var(--rojo); }
.cat-nav-btn.active { color: var(--rojo); border-bottom-color: var(--rojo); }

/* ============ CONTAINER + SECTIONS ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 36px 20px 60px; }
.section { margin-bottom: 48px; scroll-margin-top: 130px; }
.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.section-title span { font-size: 28px; }

/* ============ GRID & CARD ============ */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-pop { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.card-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f1f5f9; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img-wrap img { transform: scale(1.06); }
.card-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--rojo);
}
.card-body { padding: 16px; }
.card-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.card-desc { font-size: 13px; color: var(--ink-faint); margin-bottom: 12px; min-height: 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-size: 17px; font-weight: 800; color: var(--ink); }
.card-add {
  background: var(--ink); color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 300;
  transition: background .15s, transform .15s;
}
.card-add:hover { background: var(--rojo); transform: rotate(90deg); }

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
}
.modal.show { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-sheet {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 92%; max-width: 560px;
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: pop .2s ease;
}
.modal-sheet-full { max-width: 720px; }
@keyframes pop { from { transform: translate(-50%, -45%) scale(.95); opacity: 0; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  z-index: 5;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-radius: 50%;
  font-size: 18px; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.modal-body { overflow-y: auto; flex: 1; }

/* item modal */
.imodal-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.imodal-content { padding: 24px; }
.imodal-content h2 { font-size: 26px; margin-bottom: 6px; }
.imodal-content .imodal-price { color: var(--rojo); font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.imodal-desc { color: var(--ink-soft); margin-bottom: 24px; }
.opt-group { margin-bottom: 22px; }
.opt-group-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.opt-group-head h4 { font-size: 15px; }
.opt-group-head span { font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.opt-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  cursor: pointer;
  transition: background .12s;
}
.opt-row:hover { background: #f8fafc; }
.opt-row input { margin-right: 12px; width: 18px; height: 18px; accent-color: var(--rojo); }
.opt-row-name { flex: 1; font-weight: 500; }
.opt-row-price { color: var(--ink-faint); font-size: 13px; }
.opt-row-price.add { color: var(--verde); font-weight: 700; }

.special-note {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; resize: none; min-height: 70px;
  margin-bottom: 24px;
}
.special-note:focus { outline: none; border-color: var(--rojo); }

.imodal-foot {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
  position: sticky; bottom: 0;
}
.qty-pick {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px;
}
.qty-pick button {
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px; font-weight: 700;
  color: var(--ink);
}
.qty-pick button:hover { background: #f1f5f9; }
.qty-pick span { padding: 0 14px; font-weight: 700; min-width: 36px; text-align: center; }

.btn-add-cart {
  flex: 1;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .15s;
}
.btn-add-cart:hover { background: var(--rojo); }

/* ============ DRAWER CARRITO ============ */
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer.show { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 440px;
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,.15);
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 20px; }
.drawer-close { font-size: 22px; padding: 6px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 0; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: #fff; }

.cart-line {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid #f1f5f9;
}
.cart-line img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-line-info h4 { font-size: 14px; margin-bottom: 4px; }
.cart-line-mods { font-size: 12px; color: var(--ink-faint); margin-bottom: 4px; }
.cart-line-price { font-weight: 700; color: var(--ink); }
.cart-line-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-line-qty { display: flex; align-items: center; gap: 4px; }
.cart-line-qty button { width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; font-weight: 700; }
.cart-line-qty button:hover { background: var(--rojo); color: #fff; }
.cart-line-qty span { padding: 0 6px; font-weight: 700; }
.cart-empty {
  padding: 60px 24px; text-align: center; color: var(--ink-faint);
}
.cart-empty span { font-size: 64px; display: block; margin-bottom: 14px; }

.cart-tot-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--ink-soft); }
.cart-tot-row.total { padding-top: 10px; border-top: 1px solid var(--line); margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--ink); }
.btn-checkout {
  width: 100%; margin-top: 14px;
  background: var(--rojo); color: #fff;
  padding: 16px;
  border-radius: 999px;
  font-weight: 800; font-size: 16px;
  transition: background .15s;
}
.btn-checkout:hover { background: var(--rojo-dark); }
.btn-checkout:disabled { background: var(--ink-faint); cursor: not-allowed; }

/* ============ CHECKOUT ============ */
.modal-full .modal-sheet { height: 92vh; max-height: 800px; }
.checkout-head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.checkout-head h2 { font-size: 20px; }

.co-section {
  padding: 22px 24px;
  border-bottom: 1px solid #f1f5f9;
}
.co-section h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.co-section h3 .step { background: var(--rojo); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px var(--rojo-light);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.toggle-group { display: flex; gap: 10px; }
.toggle-btn {
  flex: 1;
  padding: 14px;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all .15s;
  text-align: center;
}
.toggle-btn.active { border-color: var(--rojo); background: var(--rojo-light); color: var(--rojo); }

.tip-group { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.tip-btn {
  padding: 12px 6px;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700;
  transition: all .15s;
}
.tip-btn.active { border-color: var(--verde); background: #f0fdf4; color: var(--verde); }

.co-summary { background: #f8fafc; padding: 18px 24px; }
.btn-pay {
  width: 100%;
  background: var(--verde); color: #fff;
  padding: 18px;
  border-radius: 999px;
  font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-pay:hover { background: #15803d; }
.btn-pay:disabled { background: var(--ink-faint); }

.secure-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--ink-faint);
  margin-top: 14px;
}

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  z-index: 300;
  transition: transform .25s;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--verde); }
.toast.error { background: var(--rojo); }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: #cbd5e1;
  margin-top: 60px;
  padding: 50px 20px 20px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr; gap: 40px;
}
.footer h3 { color: #fff; margin-bottom: 12px; }
.footer h4 { color: #fff; margin-bottom: 10px; font-size: 14px; }
.footer p { margin-bottom: 6px; font-size: 14px; }
.footer-bot {
  max-width: 1280px; margin: 30px auto 0;
  padding-top: 20px; border-top: 1px solid #1e293b;
  font-size: 12px; color: #64748b; text-align: center;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ ORDER SUCCESS ============ */
.order-success { padding: 40px 30px; text-align: center; }
.order-success .check {
  width: 80px; height: 80px; border-radius: 50%; background: var(--verde);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 44px;
  animation: pop .4s;
}
.order-success h2 { font-size: 26px; margin-bottom: 8px; }
.order-success p { color: var(--ink-soft); margin-bottom: 16px; }
.order-success .num {
  display: inline-block;
  background: #f1f5f9; padding: 10px 18px; border-radius: 8px;
  font-family: monospace; font-weight: 700;
  margin: 14px 0;
}

/* =============================================================
   RESPONSIVE — funciona en teléfonos, tablets, computadoras
   ============================================================= */

/* ---------- Layout fluido base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
* { -webkit-tap-highlight-color: rgba(220,38,38,.2); }

/* Touch-friendly inputs en móvil */
@media (max-width: 768px) {
  input, select, textarea, button { font-size: 16px !important; }
  /* iOS no hace zoom si fuente >= 16px */
}

/* ---------- TABLET (768px y menos) ---------- */
@media (max-width: 1024px) {
  .container { padding: 24px 16px 40px; }
  .grid { gap: 16px; }
  .grid > .card { min-width: 0; }
}

/* ---------- TELÉFONO GRANDE (720px y menos) ---------- */
@media (max-width: 720px) {
  /* Navbar */
  .nav-inner { padding: 0 12px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 9px; }
  .brand-mark { font-size: 26px; }
  .cart-btn { padding: 8px 12px; font-size: 13px; }
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 4px 8px; font-size: 11px; }

  /* Hero */
  .hero { height: 360px; }
  .hero-content h1 { font-size: 38px; line-height: 1; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 1.5px; }
  .hero-sub { font-size: 15px; }
  .hero-meta { font-size: 13px; flex-wrap: wrap; justify-content: center; }
  .hero-cta { padding: 14px 28px; font-size: 14px; }

  /* Cat nav scroll horizontal en móvil */
  .cat-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px; gap: 8px; flex-wrap: nowrap; }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-nav-btn { white-space: nowrap; flex-shrink: 0; }

  /* Grid de cards: 2 columnas */
  .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .grid-pop { grid-template-columns: repeat(2, 1fr) !important; }
  .card-img-wrap { aspect-ratio: 1.2/1; }
  .card-name { font-size: 14px; }
  .card-desc { font-size: 12px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .card-price { font-size: 16px; }
  .card-add { width: 32px; height: 32px; font-size: 18px; }
  .section-title { font-size: 20px; }
  .container { padding: 16px 12px 40px; }

  /* Promos */
  .promos { padding: 16px 12px; gap: 12px; }
  .promo-card { padding: 16px; min-width: 250px; }

  /* Modal item */
  .modal-sheet { width: 100%; max-width: 100%; max-height: 95vh; border-radius: 18px 18px 0 0; align-self: flex-end; }
  .imodal-img { height: 200px; }
  .imodal-content { padding: 18px; }
  .imodal-content h2 { font-size: 20px; }
  .imodal-foot { padding: 14px 16px; flex-direction: column; gap: 10px; align-items: stretch; }
  .qty-pick { align-self: center; }
  .btn-add-cart { width: 100%; }

  /* Drawer carrito: ocupa todo en móvil */
  .drawer-panel { width: 100%; max-width: 100%; }
  .cart-line { gap: 10px; }
  .cart-line img { width: 60px; height: 60px; }
  .cart-line h4 { font-size: 14px; }

  /* Checkout */
  .modal-sheet-full { max-width: 100%; width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .co-section { padding: 16px; }
  .co-section h3 { font-size: 15px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr !important; }
  .toggle-group { grid-template-columns: 1fr 1fr; }
  .tip-group { flex-wrap: wrap; gap: 6px; }
  .tip-btn { flex: 1 1 calc(33% - 6px); min-width: 0; padding: 10px 4px; font-size: 13px; }
  .btn-pay { padding: 16px; font-size: 16px; }

  /* Footer */
  .footer { padding: 30px 16px; }
  .footer-bot { font-size: 11px; padding: 16px; }
}

/* ---------- TELÉFONO PEQUEÑO (380px y menos: iPhone SE, etc.) ---------- */
@media (max-width: 380px) {
  .brand-text { display: none; }
  .nav-info { display: none; }
  .hero { height: 320px; }
  .hero-content h1 { font-size: 30px; }
  .grid { grid-template-columns: 1fr !important; }
  .grid-pop { grid-template-columns: 1fr !important; }
  .card-img-wrap { aspect-ratio: 16/9; }
  .lang-btn { padding: 4px 6px; }
  .cart-btn span:not(.cart-count) { display: none; }
}

/* ---------- LANDSCAPE en móvil (altura pequeña) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { height: 100vh; min-height: 280px; }
  .modal-sheet { max-height: 92vh; }
}

/* Safe areas iPhone X+ (notch / home indicator) */
@supports (padding: max(0px)) {
  .navbar { padding-top: env(safe-area-inset-top); }
  .footer-bot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .drawer-foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}