/* ===== Punto Rica Donde El Gato — Menú digital ===== */

:root {
  --yellow: #FFC629;
  --yellow-deep: #E8A800;
  --dark: #181410;
  --dark-soft: #2b2620;
  --cream: #FFF7DF;
  --muted: #8a8378;
  --green: #25D366;
  --red: #FF4B3E;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.18);
  --font-display: 'Fredoka', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html {
  opacity: 0;
  transition: opacity .35s ease;
}
html.is-ready { opacity: 1; }

body {
  background: var(--yellow);
  font-family: var(--font-body);
  color: var(--dark);
  padding-bottom: 110px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }

::selection { background: var(--dark); color: var(--yellow); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--dark);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 0 2px var(--dark);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-info { flex: 1; min-width: 0; }
.brand-name {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.3px;
  line-height: 1.15;
}
.brand-sub {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  transition: background .3s ease;
}
.status-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted);
  transition: background .3s ease;
}
.status-badge span.label { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .3px; }
.status-badge.is-open { background: rgba(37,211,102,0.15); }
.status-badge.is-open .dot { background: var(--green); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse-dot 1.8s infinite; }
.status-badge.is-open span.label { color: var(--green); }
.status-badge.is-closed .dot { background: var(--muted); }
.status-badge.is-closed span.label { color: var(--muted); }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 7px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Category pills */
.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 14px;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  text-decoration: none;
  background: transparent;
  color: var(--yellow);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1.5px solid rgba(255,198,41,0.45);
  transition: all .2s ease;
}
.cat-pill.active,
.cat-pill:hover {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}
.cat-pill--special {
  border-color: var(--red);
  color: #ff8f85;
}
.cat-pill--special.active,
.cat-pill--special:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 62vw;
  max-height: 460px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: hero-zoom 16s ease-in-out infinite alternate;
  opacity: 0.9;
}
@keyframes hero-zoom {
  from { transform: scale(1.0); }
  to { transform: scale(1.09); }
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,20,16,0.15) 0%, rgba(24,20,16,0.55) 55%, rgba(24,20,16,0.96) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 20px 26px;
  width: 100%;
  color: #fff;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,198,41,0.16);
  border: 1px solid rgba(255,198,41,0.5);
  color: var(--yellow);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .5px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  animation: fadeInUp .7s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.04;
  margin: 0 0 10px;
  animation: fadeInUp .7s ease .08s both;
}
.hero-title em {
  font-style: normal;
  color: var(--yellow);
}
.hero-sub {
  font-size: 14.5px;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  line-height: 1.5;
  margin: 0 0 16px;
  animation: fadeInUp .7s ease .16s both;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: fadeInUp .7s ease .24s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--yellow); color: var(--dark); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(255,198,41,0.35); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Contenido / Menú ===== */
.main-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 16px 0;
}

.menu-section { scroll-margin-top: 128px; margin-bottom: 30px; }

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  padding: 9px 22px;
  border-radius: 14px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.section-title--special { background: linear-gradient(120deg, #2a1210, var(--dark)); color: #ffb199; }

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.items-grid--special { grid-template-columns: 1fr; max-width: 520px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

.item-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, outline-color .2s ease;
  outline: 2px solid transparent;
}
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.item-card.in-cart { outline-color: var(--yellow); }

.item-card--special {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.item-card--special .item-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.item-card--special .item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.item-card--special:hover .item-img img { transform: scale(1.05); }
.item-card--special .item-body { display: flex; align-items: center; gap: 12px; padding: 16px; }
.item-card--special .item-top { flex: 1; }

.item-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.item-top { flex: 1; min-width: 0; }
.item-name { color: #fff; font-weight: 800; font-size: 16px; line-height: 1.2; }
.item-desc { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.4; }
.item-price { color: var(--yellow); font-weight: 800; font-size: 16px; margin-top: 8px; }
.item-combo { color: var(--muted); font-weight: 700; font-size: 12px; }

.item-action { flex-shrink: 0; }

.add-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.add-btn:hover { filter: brightness(1.05); }
.add-btn:active { transform: scale(0.86); }

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,198,41,0.1);
  border-radius: 999px;
  padding: 5px;
}
.stepper--dark { background: var(--dark-soft); }
.stepper-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease;
}
.stepper-btn:active { transform: scale(0.85); }
.stepper-btn.dec { background: var(--dark-soft); color: var(--yellow); }
.stepper .stepper-btn.dec { background: var(--dark); }
.stepper-btn.inc { background: var(--yellow); color: var(--dark); }
.stepper-qty { color: #fff; font-weight: 800; font-size: 15px; min-width: 14px; text-align: center; }

/* ===== Galería ===== */
.gallery-section { margin: 38px 0 32px; }
.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.gallery-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--dark);
  margin: 0;
}
.gallery-head a {
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  color: var(--dark);
  opacity: .7;
  white-space: nowrap;
}
.gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex-shrink: 0;
  width: 150px; height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  background: var(--dark);
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10,8,6,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.visible { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(90vw, 480px); max-height: 80vh; border-radius: 14px; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  font-size: 20px; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  font-size: 20px; cursor: pointer;
}
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }

/* ===== Info / footer ===== */
.info-section {
  background: var(--dark);
  border-radius: 26px;
  color: #fff;
  padding: 26px 22px;
  margin: 10px 0 26px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.info-item .info-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .6px; margin-bottom: 4px; }
.info-item .info-value { font-weight: 700; font-size: 14.5px; }
.info-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  flex-wrap: wrap;
}
.ig-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
}
.info-followers { font-size: 12.5px; color: var(--muted); font-weight: 700; }

.footer-note {
  text-align: center;
  color: var(--dark);
  opacity: 0.55;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 0 8px;
}

/* ===== Carrito flotante ===== */
.cart-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 480px; margin: 0 auto;
  background: var(--dark);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  z-index: 40;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2), opacity .25s ease;
}
.cart-bar.visible { transform: translateY(0); opacity: 1; }
.cart-bar.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.06); } 100% { transform: scale(1); } }

.cart-bar-left { display: flex; align-items: center; gap: 10px; }
.cart-count-badge {
  background: var(--yellow); color: var(--dark);
  font-weight: 900; font-size: 14px;
  border-radius: 999px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.cart-bar-label { color: #fff; font-weight: 700; font-size: 15px; }
.cart-bar-total { color: var(--yellow); font-weight: 900; font-size: 17px; }

/* ===== Sheet (carrito / checkout) ===== */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 50;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.sheet-overlay.visible { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 480px; margin: 0 auto;
  background: var(--cream);
  border-radius: 24px 24px 0 0;
  z-index: 51;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.1);
}
.sheet.visible { transform: translateY(0); }
.sheet-inner { padding: 20px; }

.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.sheet-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0; color: var(--dark); }
.icon-btn {
  background: none; border: none; font-size: 20px; color: var(--dark);
  cursor: pointer; font-weight: 700; padding: 4px;
  display: flex; align-items: center; gap: 8px;
}

.cart-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--dark);
  border-radius: 16px; padding: 12px 14px; margin-bottom: 10px;
}
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-name { color: #fff; font-weight: 800; font-size: 15px; }
.cart-row-sub { color: var(--yellow); font-weight: 700; font-size: 13px; margin-top: 2px; }
.cart-empty { text-align: center; color: var(--muted); font-weight: 600; padding: 30px 0; }

.cart-total-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-weight: 900; font-size: 18px; color: var(--dark);
}

.btn-block {
  width: 100%;
  background: var(--dark);
  color: var(--yellow);
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  margin-top: 4px;
  transition: transform .15s ease;
}
.btn-block:hover { filter: brightness(1.15); }
.btn-block:active { transform: scale(0.98); }
.btn-block:disabled { opacity: .5; cursor: not-allowed; }

.field-label { display: block; font-weight: 800; font-size: 13px; color: var(--dark); margin-bottom: 6px; }
.field-input {
  width: 100%; padding: 14px; border-radius: 14px;
  border: 2px solid var(--dark); font-size: 15px; margin-bottom: 14px;
  background: #fff; font-family: inherit;
}
.field-input:focus { outline: none; border-color: var(--yellow-deep); box-shadow: 0 0 0 3px rgba(255,198,41,0.35); }
textarea.field-input { min-height: 64px; resize: vertical; }

.whatsapp-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none; border-radius: 16px; padding: 16px;
  font-weight: 800; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: filter .15s ease, transform .15s ease;
}
.whatsapp-btn:hover { filter: brightness(1.06); }
.whatsapp-btn:active { transform: scale(0.98); }
.whatsapp-btn:disabled { background: #b7c9bd; cursor: not-allowed; }
.send-hint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* ===== Responsive: tablet & desktop (mobile layout stays untouched below 860px) ===== */
@media (min-width: 860px) {
  .header-top {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 32px 16px;
  }
  .category-nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px 18px;
    justify-content: flex-start;
  }

  .hero {
    min-height: 0;
    max-height: none;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 64px 32px;
  }
  .hero-bg {
    position: relative;
    inset: auto;
    flex: 0 0 380px;
    width: 380px;
    height: 380px;
    border-radius: 32px;
    overflow: hidden;
    order: 2;
    box-shadow: 0 28px 60px rgba(0,0,0,0.45);
    transform: rotate(2deg);
  }
  .hero-bg::after { display: none; }
  .hero-content {
    position: static;
    order: 1;
    flex: 0 1 520px;
    width: auto;
    padding: 0;
  }
  .hero-title { font-size: clamp(38px, 3.6vw, 56px); }
  .hero-sub { max-width: 440px; }

  .main-wrap { max-width: 1120px; padding-left: 32px; padding-right: 32px; }

  .items-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

  .gallery-item { width: 210px; height: 260px; }

  .info-section { padding: 34px 40px; }
}

@media (min-width: 1240px) {
  .hero { gap: 84px; }
  .hero-bg { flex-basis: 440px; width: 440px; height: 440px; }
  .hero-content { flex-basis: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
