/* ==========================================================================
   CAFÉ BOLEYA — DESIGN SYSTEM & EDITORIAL STYLES (AWWWARDS / FWA CRAFT)
   ========================================================================== */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-warm: #F2ECE1;
  --ink: #1A1816;
  --ink-muted: #6B645B;
  --gold: #C29B53;
  --gold-dark: #A47E3B;
  --olive: #5E7245;
  --olive-light: #EAF0E3;
  --danger: #B84A39;
  --border: rgba(26, 24, 22, 0.10);
  --shadow-sm: 0 4px 18px rgba(26, 24, 22, 0.05);
  --shadow-md: 0 14px 36px rgba(26, 24, 22, 0.09);
  --shadow-lg: 0 24px 60px rgba(26, 24, 22, 0.14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 0;
}

@media (max-width: 900px) {
  body {
    padding-bottom: 78px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

/* ==========================================================================
   TYPOGRAPHY & HEADINGS
   ========================================================================== */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 12px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold);
}

.display-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.page-hero {
  padding: 132px 0 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(194, 155, 83, 0.06) 0%, rgba(250, 247, 242, 0) 100%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.04;
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--ink-muted);
  max-width: 620px;
  font-size: 1.08rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--ink);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--olive);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background-color: var(--gold);
  color: #FFFFFF;
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: rgba(26, 24, 22, 0.25);
}

.btn-outline:hover {
  border-color: var(--ink);
  background-color: rgba(26, 24, 22, 0.04);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background-color: #FFFFFF;
  color: var(--ink);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.84rem;
}

/* ==========================================================================
   NAVBAR (GLASSMORPHISM) & LANGUAGE PILL
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 16px 0;
  transition: background-color var(--transition), backdrop-filter var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled,
.navbar.navbar-solid {
  background-color: rgba(250, 247, 242, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
  box-shadow: 0 6px 24px rgba(26, 24, 22, 0.05);
}

.navbar.navbar-hero:not(.scrolled) {
  color: #FFFFFF;
}

.navbar.navbar-hero:not(.scrolled) .brand-text span {
  color: rgba(255, 255, 255, 0.78);
}

.navbar.navbar-hero:not(.scrolled) .nav-link::after {
  background: var(--gold);
}

.navbar.navbar-hero:not(.scrolled) .lang-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.navbar.navbar-hero:not(.scrolled) .cart-trigger {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
}

.brand-text span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--olive);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-pill:hover {
  border-color: var(--gold);
}

.lang-pill .lang-opt {
  opacity: 0.45;
  transition: opacity 0.2s;
}

.lang-pill .lang-opt.active {
  opacity: 1;
  color: var(--gold-dark);
}

.navbar.navbar-hero:not(.scrolled) .lang-pill .lang-opt.active {
  color: #FFFFFF;
}

.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--ink);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cart-trigger:hover {
  background: var(--olive);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 6px;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .burger-btn {
    display: inline-flex;
  }
  .cart-trigger .cart-label-desktop {
    display: none;
  }
}

/* Mobile Drawer Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(26, 24, 22, 0.96);
  backdrop-filter: blur(20px);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
}

.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (NATIVE APP FEEL)
   ========================================================================== */

.bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 890;
    background: rgba(250, 247, 242, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 28px rgba(26, 24, 22, 0.08);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
  }

  .bottom-nav-item.active {
    color: var(--olive);
  }

  .bottom-nav-item svg {
    width: 21px;
    height: 21px;
  }

  .bottom-cart-dot {
    position: absolute;
    top: -2px;
    right: 18%;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--gold);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }
}

/* ==========================================================================
   HERO (INDEX.HTML)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background-color: #1A1816;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(20, 17, 14, 0.88) 0%, rgba(20, 17, 14, 0.58) 55%, rgba(20, 17, 14, 0.78) 100%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(110deg, rgba(20, 17, 14, 0.88) 0%, rgba(20, 17, 14, 0.56) 55%, rgba(20, 17, 14, 0.72) 100%), url('img/1000174407.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
  color: rgba(255, 255, 255, 0.84);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-meta strong {
  display: block;
  color: #FFFFFF;
  font-size: 1rem;
}

/* ==========================================================================
   SECTIONS, CARDS & STAR DISHES
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section-warm {
  background-color: var(--surface-warm);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
}

.dish-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.dish-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-warm);
}

.dish-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.dish-card:hover .dish-img-wrap img {
  transform: scale(1.06);
}

.dish-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(26, 24, 22, 0.82);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dish-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.dish-top h3 {
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.15;
}

.dish-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--olive);
  white-space: nowrap;
}

.dish-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
  flex: 1;
}

.dish-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #E5A93C;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 18px;
}

.review-author {
  font-weight: 700;
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* CTA Banner */
.cta-banner {
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 155, 83, 0.28) 0%, transparent 70%);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
}

/* ==========================================================================
   MENU PAGE (STICKY TABS & SEARCH)
   ========================================================================== */

.menu-controls {
  position: sticky;
  top: 66px;
  z-index: 400;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.menu-controls-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tabs-scroll::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.tab-btn.active {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.search-box {
  position: relative;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  outline: none;
}

.search-box input:focus {
  border-color: var(--gold);
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
}

/* ==========================================================================
   RESERVAS PAGE (INTERACTIVE SVG FLOORPLAN)
   ========================================================================== */

.res-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.field-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 24, 22, 0.16);
  background: var(--bg);
  font-size: 0.94rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--gold);
  background: var(--surface);
}

.res-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .res-layout {
    grid-template-columns: 1fr;
  }
}

.floorplan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.floorplan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  font-weight: 600;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.legend-dot.avail { background: #EAF0E3; border: 2px solid var(--olive); }
.legend-dot.occ { background: #E9E4DC; border: 2px solid #ABA396; }
.legend-dot.sel { background: var(--gold); border: 2px solid var(--gold-dark); }

.svg-wrap {
  width: 100%;
  overflow-x: auto;
}

.floorplan-svg {
  width: 100%;
  height: auto;
  min-width: 340px;
  display: block;
}

.table-node {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.table-node .table-shape {
  fill: #EAF0E3;
  stroke: #5E7245;
  stroke-width: 2.2;
  transition: fill 0.22s ease, stroke 0.22s ease;
}

.table-node:hover .table-shape {
  fill: #D8E6C8;
}

.table-node.occupied {
  cursor: not-allowed;
  opacity: 0.65;
}

.table-node.occupied .table-shape {
  fill: #E5E0D8;
  stroke: #9C9488;
  stroke-dasharray: 4 3;
}

.table-node.selected .table-shape {
  fill: #C29B53;
  stroke: #1A1816;
  stroke-width: 2.8;
}

.table-node.selected text {
  fill: #FFFFFF;
}

.res-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.res-summary-box {
  background: var(--surface-warm);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.res-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 5px 0;
}

.res-summary-row strong {
  font-family: var(--font-mono);
}

.ticket-card {
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.ticket-card h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.ticket-divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  margin: 16px 0;
}

/* ==========================================================================
   FIDELIDAD PAGE (DIGITAL WALLET CARD)
   ========================================================================== */

.loyalty-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .loyalty-grid {
    grid-template-columns: 1fr;
  }
}

.wallet-card {
  background: linear-gradient(135deg, #1F1C18 0%, #312B23 60%, #1A1816 100%);
  color: #FFFFFF;
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(194, 155, 83, 0.35);
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 155, 83, 0.25) 0%, transparent 70%);
}

.wallet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.wallet-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
}

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.stamp-slot {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
}

.stamp-slot.filled {
  background: var(--gold);
  border: 2px solid #FFF2D6;
  color: #1A1816;
  font-weight: 700;
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(194, 155, 83, 0.45);
}

/* ==========================================================================
   GALERÍA PAGE (BENTO GRID & LIGHTBOX)
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 18px;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }
}

.bento-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-warm);
}

.bento-item.tall {
  grid-row: span 2;
}

.bento-item.wide {
  grid-column: span 2;
}

.bento-item img,
.bento-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-play-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(26, 24, 22, 0.78);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform var(--transition), background-color var(--transition);
}

.bento-item:hover .video-play-badge {
  transform: scale(1.12);
  background: var(--gold);
}

.bento-item:hover img {
  transform: scale(1.07);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 24, 22, 0.78) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-item:hover .bento-overlay {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 13, 11, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 860px;
  max-height: 88vh;
  text-align: center;
  color: #FFFFFF;
}

.lightbox-inner img,
.lightbox-inner video {
  max-height: 76vh;
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 0 auto 14px;
  outline: none;
}

/* ==========================================================================
   CART DRAWER (PERSISTENT)
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 980;
  background: rgba(26, 24, 22, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  z-index: 990;
  background: var(--bg);
  box-shadow: -12px 0 44px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.qty-control button {
  background: none;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}

.modality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.modality-btn {
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.modality-btn.active {
  border-color: var(--olive);
  background: var(--olive-light);
  color: var(--olive);
}

.bank-card {
  background: linear-gradient(135deg, #1E1B18, #2F2A24);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 14px;
  border: 1px solid rgba(194, 155, 83, 0.4);
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 5px 0;
}

.bank-row strong {
  font-family: var(--font-mono);
  color: var(--gold);
}

.notice-box {
  background: #FFF6E6;
  border-left: 3px solid var(--gold);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.83rem;
  color: #5C451A;
  margin-top: 12px;
}

.cart-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ==========================================================================
   SUCURSAL & FOOTER
   ========================================================================== */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.status-pill.open {
  background: var(--olive-light);
  color: var(--olive);
}

.status-pill.closed {
  background: #FBECE9;
  color: var(--danger);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.footer {
  background: #161412;
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer h4 {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.52);
}

.toast {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #FFFFFF;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow-md);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(20, 17, 14, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.28s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fullscreen-modal-card {
  width: min(480px, 100%);
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(194, 155, 83, 0.45);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.fullscreen-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-modal-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
