/* ==========================================================================
   PAPÁ GOLFEADO — ULTRA-PREMIUM DELIVERY APP (TACO BELL DESIGN SYSTEM)
   Inspirado en la App Oficial de Taco Bell: Limpio, Cálido, Dinámico & Alta Conversión
   Canvas Ivory Cálido · Grid de Tarjetas Verticales · Dock con Botón Central FAB
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  /* Canvas Taco Bell: Cálido, Lujoso, Aireado, Impecable */
  --app-bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-alt: #F4EFEA;
  --surface-muted: #EFE8E1;
  --surface-card: #FFFFFF;
  --surface-promo: #FEF3C7;
  --surface-dark: #1A0E08;

  /* Cacao Imperial & Contraste Tipográfico */
  --cacao-black: #1A0F09;
  --cacao-deep: #2B1408;
  --cacao-title: #1C120C;
  --cacao-body: #6E5F55;
  --cacao-muted: #9E8E83;
  --border-subtle: rgba(43, 20, 8, 0.05);
  --border-light: rgba(43, 20, 8, 0.08);

  /* Acentos Taco Bell & Melao Criollo */
  --melao-gold: #D97706;
  --melao-glow: #F59E0B;
  --melao-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --hero-gradient: linear-gradient(135deg, #2D0F08 0%, #4D1A0E 55%, #782C17 100%);
  --amber: #FBBF24;
  --cheese-gold: #FDE68A;
  --green: #16A34A;
  --green-bg: #DCFCE7;
  --purple-brand: #38140B;

  /* Tipografías */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Elevaciones & Radios Taco Bell */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 18px rgba(35, 18, 10, 0.04);
  --shadow-hover: 0 10px 28px rgba(35, 18, 10, 0.09);
  --shadow-fab: 0 8px 24px rgba(43, 20, 8, 0.35);
  --shadow-dock: 0 -4px 24px rgba(35, 18, 10, 0.06);
  --shadow-sheet: 0 -12px 40px rgba(0, 0, 0, 0.25);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: #EDE7DF;
}

body {
  font-family: var(--font-sans);
  background-color: #EDE7DF;
  color: var(--cacao-title);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  font: inherit;
}

input, select, textarea {
  font: inherit;
}

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

/* ==========================================================================
   APP SHELL CONTAINER (PHONE / PWA FRAME - ADAPTADO A MÓVIL)
   ========================================================================== */
.app-frame {
  width: 100%;
  max-width: 500px;
  background-color: var(--app-bg);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.12);
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 501px) {
  body {
    padding: 24px 0;
  }
  .app-frame {
    border-radius: 40px;
    overflow: hidden;
    min-height: calc(100vh - 48px);
    border: 4px solid #DFD7CD;
  }
}

@media (max-width: 500px) {
  body {
    padding: 0;
    background-color: var(--app-bg);
  }
  .app-frame {
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ==========================================================================
   1. TOP APP BAR (ESTILO TACO BELL: HAMBURGER, BRAND TITLE, NOTIFICATIONS & BAG)
   ========================================================================== */
.tb-top-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: max(12px, env(safe-area-inset-top, 12px)) 18px 8px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.tb-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Icon Buttons (Hamburger, Bell, Bag) */
.tb-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cacao-deep);
  box-shadow: 0 3px 10px rgba(35, 18, 10, 0.04);
  position: relative;
  transition: all 0.2s var(--ease-spring);
}

.tb-icon-btn:active {
  transform: scale(0.94);
  background: var(--surface-alt);
}

.tb-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--melao-gold);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--app-bg);
}

/* Brand Center Lockup */
.tb-brand-lockup {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tb-greeting {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cacao-muted);
  line-height: 1;
  margin-bottom: 2px;
}

.tb-brand-title {
  font-family: var(--font-sans);
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cacao-deep);
  line-height: 1.1;
}

.tb-brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--melao-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tb-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Delivery Pill & Live BCV Bar */
.tb-delivery-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tb-location-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  color: var(--cacao-body);
  box-shadow: 0 2px 8px rgba(35, 18, 10, 0.03);
  text-align: left;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.tb-location-pill strong {
  color: var(--cacao-title);
  font-weight: 800;
}

.tb-pin-icon {
  font-size: 0.82rem;
}

.tb-chevron {
  color: var(--melao-gold);
  font-size: 0.7rem;
  margin-left: auto;
}

.tb-bcv-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--cacao-deep);
  box-shadow: 0 2px 8px rgba(35, 18, 10, 0.03);
  white-space: nowrap;
}

.bcv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

/* Mode Switcher Segment (Delivery vs Pick-up) */
.app-mode-switch {
  display: flex;
  background: var(--surface-muted);
  padding: 3px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.app-mode-tab {
  flex: 1;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cacao-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s var(--ease-spring);
}

.app-mode-tab.active {
  background: var(--surface);
  color: var(--cacao-deep);
  box-shadow: 0 2px 8px rgba(35, 18, 10, 0.08);
}

/* ==========================================================================
   2. SEARCH BAR CON FILTRO (ESTILO TACO BELL)
   ========================================================================== */
.tb-search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 3px 12px rgba(35, 18, 10, 0.04);
  padding: 4px 6px 4px 14px;
}

.tb-search-icon {
  color: var(--cacao-muted);
  flex-shrink: 0;
  margin-right: 10px;
}

.tb-search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.86rem;
  color: var(--cacao-title);
  padding: 8px 0;
}

.tb-search-input::placeholder {
  color: var(--cacao-muted);
  font-size: 0.82rem;
}

.tb-filter-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--cacao-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.tb-filter-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   3. HERO PROMO CARD (ESTILO TACO BELL: LIVE MÁS HERO)
   ========================================================================== */
.tb-hero-card {
  margin: 16px 20px 8px 20px;
  background: var(--hero-gradient);
  border-radius: var(--radius-lg);
  padding: 22px 20px 24px 20px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(45, 15, 8, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tb-hero-content {
  flex: 1;
  max-width: 62%;
  z-index: 2;
}

.tb-hero-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}

.tb-hero-title {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.tb-hero-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--cheese-gold);
}

.tb-hero-subtitle {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
  margin-bottom: 14px;
}

.tb-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--melao-gradient);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.45);
  transition: all 0.2s var(--ease-spring);
}

.tb-hero-btn:active {
  transform: scale(0.95);
}

.tb-btn-arrow {
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.tb-hero-btn:hover .tb-btn-arrow {
  transform: translateX(3px);
}

.tb-hero-media {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.tb-hero-img {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transform: rotate(-3deg);
  transition: transform 0.3s var(--ease-spring);
}

.tb-hero-card:hover .tb-hero-img {
  transform: rotate(0deg) scale(1.05);
}

.tb-heat-pill {
  position: absolute;
  bottom: -8px;
  background: rgba(26, 15, 9, 0.88);
  backdrop-filter: blur(8px);
  color: var(--cheese-gold);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(251, 191, 36, 0.3);
  white-space: nowrap;
}

/* Dots Carousel */
.tb-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.tb-hero-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s;
}

.tb-hero-dots .dot.active {
  width: 16px;
  border-radius: var(--radius-full);
  background: var(--amber);
}

/* ==========================================================================
   4. CATEGORIES ROW (ESTILO TACO BELL: ICONOS DE PRODUCTO FLOTANTES)
   ========================================================================== */
.tb-categories-section {
  padding: 10px 0 6px 0;
}

.tb-categories-scroll {
  display: flex;
  gap: 16px;
  padding: 6px 20px 10px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tb-categories-scroll::-webkit-scrollbar {
  display: none;
}

.tb-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.tb-category-item:active {
  transform: scale(0.92);
}

.tb-cat-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(35, 18, 10, 0.04);
  transition: all 0.25s var(--ease-spring);
}

.tb-category-item.active .tb-cat-icon-wrap {
  background: #FDF3E3;
  border-color: var(--melao-gold);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.25);
  transform: translateY(-2px);
}

.tb-cat-icon-wrap.tb-3d-highlight {
  background: linear-gradient(135deg, #2D1409, #542211);
}

.tb-cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.tb-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cacao-body);
  transition: color 0.2s;
}

.tb-category-item.active .tb-cat-label {
  color: var(--melao-gold);
  font-weight: 800;
}

/* ==========================================================================
   5. POPULAR PICKS (ESTILO TACO BELL: GRID VERTICAL DE TARJETAS BLANCAS)
   ========================================================================== */
.tb-picks-section {
  padding: 12px 20px 20px 20px;
}

.tb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.tb-section-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cacao-title);
  line-height: 1.1;
}

.tb-section-sub {
  font-size: 0.72rem;
  color: var(--cacao-muted);
  font-weight: 600;
  margin-top: 2px;
  display: block;
}

.tb-view-all-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cacao-deep);
  transition: color 0.2s;
}

.tb-view-all-btn:hover {
  color: var(--melao-gold);
}

/* GRID 2 COLUMNAS TACO BELL */
.tb-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Tarjeta Vertical Taco Bell */
.tb-product-card {
  background: var(--surface-card);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}

.tb-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Top Row inside Card: Badge + Heart */
.tb-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  z-index: 2;
}

.tb-card-badge {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.tb-badge-bestseller {
  background: var(--cacao-deep);
  color: #FFFFFF;
}

.tb-badge-popular {
  background: var(--amber);
  color: var(--cacao-black);
}

.tb-badge-save {
  background: var(--green-bg);
  color: var(--green);
}

.tb-heart-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C0B4A9;
  transition: all 0.2s;
}

.tb-heart-btn:hover, .tb-heart-btn.active {
  color: #EF4444;
  transform: scale(1.15);
}

/* Card Food Media */
.tb-card-media-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-alt);
  margin-bottom: 10px;
  position: relative;
}

.tb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-spring);
}

.tb-product-card:hover .tb-card-img {
  transform: scale(1.06);
}

/* Card Body */
.tb-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tb-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--cacao-title);
  line-height: 1.25;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tb-card-ingredients {
  font-size: 0.7rem;
  color: var(--cacao-muted);
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--cacao-body);
  margin-bottom: 10px;
}

.tb-star {
  color: var(--amber);
  font-size: 0.8rem;
}

.tb-reviews {
  color: var(--cacao-muted);
  font-size: 0.65rem;
}

/* Bottom Price & Add Row */
.tb-card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 4px;
}

.tb-price-stack {
  display: flex;
  flex-direction: column;
}

.tb-price-usd {
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--cacao-title);
  line-height: 1;
}

.tb-price-bcv {
  font-size: 0.65rem;
  color: var(--cacao-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Circular Add + Button */
.tb-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--melao-gold);
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transition: all 0.2s var(--ease-spring);
}

.tb-add-btn:active {
  transform: scale(0.88);
  background: var(--melao-deep);
}

/* ==========================================================================
   6. EXCLUSIVE OFFER / COMBO BANNER (ESTILO TACO BELL BANNER INFERIOR)
   ========================================================================== */
.tb-exclusive-offer-card {
  margin: 10px 20px 16px 20px;
  background: var(--surface-promo);
  border-radius: var(--radius-lg);
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tb-offer-text-col {
  flex: 1;
  max-width: 62%;
  z-index: 2;
}

.tb-offer-tag {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--melao-deep);
  display: inline-block;
  margin-bottom: 2px;
}

.tb-offer-title {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--cacao-title);
  line-height: 1.15;
  margin-bottom: 4px;
}

.tb-offer-desc {
  font-size: 0.72rem;
  color: var(--cacao-body);
  line-height: 1.35;
  margin-bottom: 12px;
}

.tb-offer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cacao-deep);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(43, 20, 8, 0.2);
  transition: all 0.2s;
}

.tb-offer-btn:active {
  transform: scale(0.95);
}

.tb-offer-media-col {
  width: 38%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.tb-offer-img {
  width: 100%;
  max-width: 120px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(35, 18, 10, 0.15);
}

.tb-discount-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cacao-deep);
  color: var(--cheese-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid #FFFFFF;
}

.tb-discount-badge span {
  font-size: 0.76rem;
}

.tb-discount-badge small {
  font-size: 0.52rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   7. SENSORY 3D MINI BANNER
   ========================================================================== */
.tb-sensory-bar {
  margin: 4px 20px 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.2s;
}

.tb-sensory-bar:active {
  transform: scale(0.98);
}

.tb-sensory-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-sparkle {
  font-size: 1.25rem;
}

.tb-sensory-left strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--cacao-title);
  display: block;
}

.tb-sensory-left p {
  font-size: 0.7rem;
  color: var(--cacao-muted);
}

.tb-btn-ghost-sm {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--melao-gold);
  white-space: nowrap;
}

/* ==========================================================================
   8. FLOATING ORDER ISLAND (BARRA DINÁMICA DE PEDIDO)
   ========================================================================== */
.app-floating-cart {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 28px);
  max-width: 468px;
  background: var(--cacao-deep);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(43, 20, 8, 0.45);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease-spring);
}

.app-floating-cart.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.floating-cart-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-qty-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--melao-gold);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-totals-col {
  display: flex;
  flex-direction: column;
}

.cart-total-usd {
  font-size: 0.96rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
}

.cart-total-bcv {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.btn-view-order {
  background: #FFFFFF;
  color: var(--cacao-deep);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s;
  touch-action: manipulation;
}

.btn-view-order:active {
  transform: scale(0.95);
}

/* ==========================================================================
   9. BOTTOM NAVIGATION DOCK (ESTILO TACO BELL: 5 TABS + BOTÓN CENTRAL FAB)
   ========================================================================== */
.tb-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-dock);
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px max(14px, env(safe-area-inset-bottom, 14px)) 12px;
}

.tb-dock-tab {
  flex: 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #9E8E83;
  font-size: 0.68rem;
  font-weight: 700;
  transition: all 0.2s;
  touch-action: manipulation;
}

.tb-dock-tab.active {
  color: var(--cacao-deep);
}

.tb-dock-tab:active {
  transform: scale(0.92);
}

/* BOTÓN CENTRAL FAB TACO BELL (ORDER) */
.tb-dock-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -26px;
  cursor: pointer;
  z-index: 10;
}

.tb-fab-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cacao-deep);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  border: 4px solid var(--app-bg);
  position: relative;
  transition: transform 0.25s var(--ease-spring);
}

.tb-dock-fab:hover .tb-fab-icon-wrap {
  transform: scale(1.08);
}

.tb-dock-fab:active .tb-fab-icon-wrap {
  transform: scale(0.92);
}

.tb-fab-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: var(--melao-gold);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 900;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cacao-deep);
}

.tb-fab-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--cacao-deep);
  margin-top: 3px;
}

/* ==========================================================================
   10. NATIVE BOTTOM SHEETS (PERSONALIZADOR, CHECKOUT, UBICACIÓN, TRACKER, 3D)
   ========================================================================== */
.app-bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 11, 7, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-spring);
}

.app-bottom-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.app-bottom-sheet {
  background: var(--surface);
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.38s var(--ease-spring);
  overflow: hidden;
  position: relative;
}

.app-bottom-sheet-backdrop.open .app-bottom-sheet {
  transform: translateY(0);
}

/* Drag Handle */
.sheet-drag-handle {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-light);
  margin: 10px auto 4px auto;
  flex-shrink: 0;
  cursor: pointer;
}

/* Close button in sheet */
.sheet-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  color: var(--cacao-deep);
  border: 1px solid var(--border-subtle);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.sheet-close-btn:hover {
  background: var(--surface-muted);
  transform: scale(1.06);
}

.sheet-close-btn:active {
  transform: scale(0.94);
}

#sheet-3d .sheet-close-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

#sheet-3d .sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

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

.sheet-sticky-footer {
  padding: 14px 20px max(18px, env(safe-area-inset-bottom, 18px)) 20px;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.03);
}

/* Botón Acción Principal en Sheet */
.btn-sheet-submit {
  width: 100%;
  background: var(--cacao-deep);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(43, 20, 8, 0.3);
  transition: all 0.2s var(--ease-spring);
}

.btn-sheet-submit:active {
  transform: scale(0.98);
}

/* Customizer Sheet Hero & Options */
.sheet-hero-image-wrap {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  background: var(--surface-dark);
}

.sheet-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-item-header {
  margin-bottom: 16px;
}

.sheet-item-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--cacao-title);
  line-height: 1.2;
}

.sheet-item-desc {
  font-size: 0.8rem;
  color: var(--cacao-body);
  line-height: 1.45;
  margin-top: 4px;
}

/* Option Groups */
.sheet-option-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.sheet-group-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cacao-title);
  margin-bottom: 10px;
}

.sheet-radio-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-radio-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.sheet-radio-card.selected {
  border-color: var(--melao-gold);
  background: #FDF6EE;
  box-shadow: 0 0 0 1px var(--melao-gold);
}

.sheet-radio-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cacao-title);
}

.sheet-radio-price {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--melao-deep);
}

.sheet-checkbox-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.sheet-checkbox-card.checked {
  border-color: var(--melao-gold);
  background: #FDF6EE;
}

/* Stepper Cantidad */
.sheet-qty-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-muted);
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--cacao-title);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.15s;
}

.stepper-btn:active {
  transform: scale(0.9);
}

.stepper-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cacao-title);
  min-width: 20px;
  text-align: center;
}

/* Cart Sheet Items List */
.cart-item-app-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-app-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-title-text {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--cacao-title);
  line-height: 1.2;
}

.cart-item-mod-text {
  font-size: 0.74rem;
  color: var(--melao-deep);
  font-weight: 700;
  margin-top: 2px;
}

.cart-item-price-text {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--cacao-title);
}

/* Checkout Inputs & Pills */
.checkout-delivery-box {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 14px 0;
}

.checkout-delivery-box label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cacao-muted);
  display: block;
  margin-bottom: 6px;
}

.checkout-address-input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--cacao-title);
  outline: none;
  resize: none;
}

.payment-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pay-pill {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--surface);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cacao-body);
  transition: all 0.2s;
}

.pay-pill.active {
  border-color: var(--melao-gold);
  background: #FDF6EE;
  color: var(--melao-deep);
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--cacao-body);
  margin-bottom: 6px;
}

.calc-breakdown-row.total-bold {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--cacao-title);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 8px;
}

.bcv-total-small {
  display: block;
  font-size: 0.72rem;
  color: var(--cacao-muted);
  font-weight: 600;
  text-align: right;
}

/* 3D Scanner Hotspot Pins */
.scanner-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--melao-gold);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: pulsePin 2s infinite ease-in-out;
  z-index: 10;
}

.scanner-pin.active {
  background: #FFFFFF;
  box-shadow: 0 0 0 6px var(--melao-gold);
}

@keyframes pulsePin {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

.scanner-pin-tooltip {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.88);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

/* Toast */
.app-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--cacao-deep);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 400;
  opacity: 0;
  transition: all 0.3s var(--ease-spring);
  pointer-events: none;
}

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

/* ==========================================================================
   ADAPTACIONES RESPONSIVAS A DISPOSITIVOS MÓVILES (IMPECCABLE ADAPT)
   ========================================================================== */
@media (max-width: 400px) {
  .tb-top-header {
    padding: max(10px, env(safe-area-inset-top, 10px)) 14px 6px 14px;
  }
  .tb-brand-title {
    font-size: 1.18rem;
  }
  .tb-hero-card {
    margin: 10px 14px 6px 14px;
    padding: 16px 14px 20px 14px;
  }
  .tb-hero-title {
    font-size: 1.2rem;
  }
  .tb-products-grid {
    gap: 10px;
  }
  .tb-product-card {
    padding: 10px;
    border-radius: 16px;
  }
  .tb-card-title {
    font-size: 0.82rem;
  }
  .tb-picks-section {
    padding: 10px 14px 16px 14px;
  }
  .tb-exclusive-offer-card {
    margin: 10px 14px 14px 14px;
    padding: 14px;
  }
  .tb-offer-title {
    font-size: 1.05rem;
  }
  .tb-sensory-bar {
    margin: 4px 14px 14px 14px;
    padding: 10px 12px;
  }
  .app-floating-cart {
    width: calc(100% - 20px);
    padding: 8px 12px;
  }
  .btn-view-order {
    padding: 6px 12px;
    font-size: 0.74rem;
  }
}

/* Ergonomía táctil para móviles */
@media (hover: none) and (pointer: coarse) {
  .tb-icon-btn, .tb-filter-btn, .tb-category-item, .tb-hero-btn, .tb-add-btn, .tb-heart-btn, .btn-sheet-submit {
    touch-action: manipulation;
  }
  .app-bottom-sheet {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
}
