/* =============================================================
   Naples — Estilos
   Tokens > Reset > Layout > Componentes > Responsive
   ============================================================= */

:root {
  /* Colores marca Naples (extraídos del brand book real) */
  --c-primary: #B11F34;       /* rojo Naples */
  --c-primary-dark: #8E1929;
  --c-accent: #0E8554;        /* verde WhatsApp / abierto */
  --c-accent-dark: #0A6440;
  --c-cream: #F4E2D4;         /* crema Naples */
  --c-cream-soft: #FBF4EA;
  --c-bg: #F7EFE6;
  --c-card: #FFFDF9;
  --c-ink: #211A17;
  --c-muted: #8A7B70;
  --c-line: #E8DDD0;
  --c-star: #E8A33D;

  /* Tipografía */
  --f-display: "Playfair Display", Georgia, serif;
  --f-label: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Espaciado */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.14);

  --header-h: 64px;
  --tabs-h: 56px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--c-card);
  border-bottom: 1px solid var(--c-line);
  display: flex; align-items: center;
  padding: 0 16px;
  gap: 12px;
}
.header__logo {
  display: flex; align-items: center; gap: 10px;
}
.header__logo .badge { height: 46px; width: auto; flex: 0 0 auto; display: block; }
.header__logo .wordmark { display: flex; flex-direction: column; line-height: 1; }
.header__logo .wordmark b {
  font-family: var(--f-display);
  font-size: 23px; font-weight: 800;
  color: var(--c-primary);
  letter-spacing: .3px;
}
.header__logo .wordmark small {
  font-family: var(--f-label);
  font-size: 9px; font-weight: 500;
  letter-spacing: 2.6px;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-top: 3px;
}
/* Estilos del emblema NP (SVG inline) */
.badge-micro { font-family: var(--f-label); font-size: 13px; font-weight: 500; letter-spacing: 1.2px; }
.badge-np { font-family: var(--f-display); font-size: 72px; font-weight: 800; font-style: italic; }
.header__search {
  flex: 1; max-width: 480px; margin: 0 auto;
  position: relative;
}
.header__search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  outline: none;
  transition: border-color .15s, background .15s;
}
.header__search input:focus { border-color: var(--c-primary); background: #fff; }
.header__search::before {
  content: "🔍";
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: .5;
}
.header__cart {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background .15s;
}
.header__cart:hover { background: var(--c-bg); }
.header__cart-icon { font-size: 22px; }
.header__cart-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  transform: scale(0); transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.header__cart-badge.is-visible { transform: scale(1); }
.header__cart-badge.bump { animation: bump .35s; }
@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 240px;
  background: #1c1b1a center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,14,.45) 0%, rgba(20,16,14,.30) 45%, rgba(20,16,14,.82) 100%),
    radial-gradient(120% 80% at 30% 60%, rgba(20,16,14,0) 0%, rgba(20,16,14,.5) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 16px 24px;
  max-width: 1100px; margin: 0 auto;
}
/* h1 oculto visualmente (para SEO/accesibilidad) */
.hero__name-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero__tagline {
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-cream);
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero__tagline::before, .hero__tagline::after {
  content: ""; height: 1px; width: 26px;
  background: var(--c-cream); opacity: .6;
}
.hero__slogan {
  font-size: 14px; opacity: .92; margin-bottom: 14px;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 13px;
  align-items: center;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 4px; }
.hero__star { color: var(--c-star); }
.hero__abierto {
  background: var(--c-accent);
  color: #fff;
  padding: 3px 11px;
  border-radius: 999px;
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.hero__tags li {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ---------- Tabs categorías ---------- */
.tabs {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--c-card);
  border-bottom: 1px solid var(--c-line);
  height: var(--tabs-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__list {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  height: 100%;
  align-items: center;
  white-space: nowrap;
}
.tabs__btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--f-label);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-muted);
  transition: background .15s, color .15s;
}
.tabs__btn:hover { background: var(--c-bg); color: var(--c-ink); }
.tabs__btn.is-active {
  background: var(--c-primary);
  color: #fff;
}

/* ---------- Menú ---------- */
.menu {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}
.section {
  margin-bottom: 32px;
  scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 12px);
}
.section__title {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--c-ink);
}
.section__title::after {
  content: "";
  display: block;
  width: 36px; height: 3px;
  background: var(--c-primary);
  margin-top: 6px;
  border-radius: 2px;
}
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .products { grid-template-columns: 1fr 1fr; }
}

/* Card producto */
.product {
  background: var(--c-card);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 12px;
  position: relative;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.product:hover { box-shadow: var(--shadow-md); border-color: #d8d2c6; }
.product:active { transform: scale(.99); }
.product__info { display: flex; flex-direction: column; }
.product__name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--c-ink);
}
.product__desc {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product__price {
  font-weight: 700;
  font-size: 16px;
  color: var(--c-primary);
  margin-top: auto;
}
.product__price--tba { color: var(--c-muted); font-size: 13px; font-weight: 500; font-style: italic; }
.product__media {
  position: relative;
  width: 96px; height: 96px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-bg);
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product__add {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  color: var(--c-primary);
  font-size: 22px;
  font-weight: 700;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, background .15s, color .15s;
  line-height: 1;
}
.product__add:hover { background: var(--c-primary); color: #fff; transform: scale(1.1); }
.product__add.pulse { animation: pulse .3s; }
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); background: var(--c-accent); color: #fff; }
  100% { transform: scale(1); }
}

/* ---------- Drawer carrito ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 60;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.cart {
  position: fixed; top: 0; right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--c-card);
  z-index: 70;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart.is-open { transform: translateX(0); }
.cart__header {
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--c-line);
}
.cart__title { font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.cart__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  color: var(--c-muted);
  transition: background .15s;
}
.cart__close:hover { background: var(--c-bg); color: var(--c-ink); }

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}
.cart__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--c-muted);
}
.cart__empty-icon { font-size: 56px; margin-bottom: 12px; opacity: .35; }

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: center;
}
.cart-item__img {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-bg);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 600; font-size: 14px; }
.cart-item__price { color: var(--c-muted); font-size: 13px; margin-top: 2px; }
.cart-item__qty {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
}
.cart-item__qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  font-size: 16px;
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.cart-item__qty button:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.cart-item__qty span { font-weight: 600; min-width: 20px; text-align: center; }
.cart-item__subtotal { font-weight: 700; color: var(--c-primary); }

.cart__modo {
  margin: 16px 0 12px;
  display: flex; gap: 8px;
  background: var(--c-bg);
  padding: 4px;
  border-radius: var(--r-md);
}
.cart__modo button {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  transition: background .15s, color .15s;
}
.cart__modo button.is-active { background: var(--c-card); color: var(--c-ink); box-shadow: var(--shadow-sm); }

.cart__form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cart__form label {
  font-size: 12px; font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cart__form input,
.cart__form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .15s;
}
.cart__form input:focus,
.cart__form textarea:focus { border-color: var(--c-primary); }
.cart__form textarea { resize: vertical; min-height: 60px; }

.cart__footer {
  padding: 16px 18px;
  border-top: 1px solid var(--c-line);
  background: var(--c-card);
}
.cart__totals { margin-bottom: 14px; font-size: 14px; }
.cart__totals .row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  color: var(--c-muted);
}
.cart__totals .row--total {
  font-size: 18px; font-weight: 700;
  color: var(--c-ink);
  border-top: 1px solid var(--c-line);
  margin-top: 6px; padding-top: 10px;
}
.btn-wapp {
  width: 100%;
  background: var(--c-accent);
  color: #fff;
  padding: 14px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .1s;
}
.btn-wapp:hover { background: var(--c-accent-dark); }
.btn-wapp:active { transform: scale(.98); }
.btn-wapp:disabled { background: var(--c-line); color: var(--c-muted); cursor: not-allowed; }
.btn-wapp svg { width: 22px; height: 22px; }
.cart__hint {
  font-size: 12px; color: var(--c-muted); text-align: center; margin-top: 8px;
}

/* ---------- Modal producto ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 80;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal.is-open { display: flex; }
.modal__box {
  background: var(--c-card);
  border-radius: var(--r-lg);
  max-width: 460px;
  width: 100%;
  overflow: hidden;
  max-height: 90vh;
  display: flex; flex-direction: column;
  animation: slideUp .25s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal__img {
  height: 240px;
  background: var(--c-bg) center/cover no-repeat;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.modal__body { padding: 20px; overflow-y: auto; }
.modal__name { font-family: var(--f-display); font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.modal__desc { color: var(--c-muted); font-size: 14px; margin-bottom: 16px; }
.modal__price { font-size: 22px; font-weight: 700; color: var(--c-primary); margin-bottom: 16px; }
.modal__qty {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.modal__qty button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  font-size: 18px;
  display: grid; place-items: center;
}
.modal__qty span { font-weight: 700; font-size: 18px; min-width: 30px; text-align: center; }
.modal__add {
  width: 100%;
  background: var(--c-primary);
  color: #fff;
  padding: 14px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  transition: background .15s;
}
.modal__add:hover { background: var(--c-primary-dark); }

/* ---------- Modal de locales ---------- */
.locales { position: relative; padding: 28px 22px 22px; text-align: center; }
.locales__close { top: 12px; right: 12px; }
.locales__title {
  font-family: var(--f-display);
  font-size: 24px; font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.locales__sub { font-size: 14px; color: var(--c-muted); margin-bottom: 20px; }
#locales-list { display: flex; flex-direction: column; gap: 12px; }
.locale-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-card);
  text-align: left;
  transition: border-color .15s, background .15s, transform .1s;
}
.locale-btn:hover { border-color: var(--c-accent); background: #f6fbf8; }
.locale-btn:active { transform: scale(.99); }
.locale-btn__icon {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: grid; place-items: center;
}
.locale-btn__icon svg { width: 24px; height: 24px; fill: currentColor; }
.locale-btn__info { flex: 1; }
.locale-btn__name { font-weight: 700; font-size: 16px; color: var(--c-ink); }
.locale-btn__zona {
  font-family: var(--f-label);
  text-transform: uppercase; letter-spacing: 1px;
  font-size: 11px; color: var(--c-muted); margin-top: 2px;
}
.locale-btn__arrow { color: var(--c-accent); font-size: 22px; font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-ink);
  color: #d3cfc6;
  padding: 32px 16px 24px;
  margin-top: 32px;
}
.footer__top {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__ig {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--f-label);
  text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 12px; color: var(--c-cream);
  transition: color .15s;
}
.footer__ig:hover { color: #fff; }
.footer__note { font-size: 12px; color: #8a847a; margin-top: 8px; font-style: italic; }

/* Nuestros locales */
.footer__heading {
  flex: 1 1 200px;
  text-align: center;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
  margin: 0;
}
@media (max-width: 560px) {
  .footer__heading { flex-basis: 100%; order: 3; font-size: 24px; }
}
.footer__locales {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
}
.footer__locales-title {
  font-family: var(--f-display);
  font-size: 18px; color: #fff; margin-bottom: 16px;
}
.footer__locales-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .footer__locales-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.locale-card {
  background: rgba(255,255,255,.04);
  border: 1px solid #2a2a2a;
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.locale-card__name {
  font-weight: 700; font-size: 16px; color: #fff;
  margin-bottom: 10px;
}
.locale-card__row {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0;
  font-size: 14px; color: #d3cfc6;
  transition: color .15s;
}
.locale-card__row:hover { color: #fff; }
.locale-card__row svg { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }
.locale-card__row--wa svg { fill: var(--c-accent); }
.locale-card__row--map svg { fill: var(--c-primary); }
.locale-card__row--time { color: #a8a299; cursor: default; }
.locale-card__row--time svg { fill: var(--c-star); }
.locale-card__row--time:hover { color: #a8a299; }
.footer h4 {
  font-family: var(--f-display);
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}
.footer__brand { display: flex; align-items: center; }
.footer__emblema { height: 150px; width: auto; }
.footer__list li { padding: 3px 0; font-size: 14px; }
.footer__list a:hover { color: #fff; }

/* Contacto: teléfono + redes */
.footer__phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: #efe9df;
  transition: color .15s;
}
.footer__phone:hover { color: #fff; }
.footer__phone svg { width: 18px; height: 18px; fill: var(--c-primary); flex: 0 0 auto; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  color: #d3cfc6;
  transition: background .15s, color .15s, transform .15s;
}
.footer__socials a:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }
.footer__socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer__bottom {
  text-align: center;
  font-size: 12px;
  color: #8a847a;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #2a2a2a;
}

/* ---------- Responsive desktop ---------- */
@media (min-width: 720px) {
  .hero { height: 304px; }
  .hero__content { padding-bottom: 34px; }
}

@media (max-width: 480px) {
  .header__search { display: none; }
}

/* Body scroll lock cuando hay overlay abierto */
body.no-scroll { overflow: hidden; }
