/* ============================================================
   BASE.CSS — BistroPro
   CSS genérico y reutilizable para cualquier cliente. Las variables de
   marca (paleta, tipografía, radios) viven en el CSS del cliente activo
   (ej. cafentik.css) — este archivo no debe tener colores/fuentes fijas.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: body ocupa mínimo el alto del viewport, en columna,
     y .page-content (abajo) crece para empujar el footer hasta el fondo
     cuando el contenido es más corto que la pantalla (monitores grandes/4K). */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1 0 auto;
  display: block;
  width: 100%;
}

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

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

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

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: auto;
  display: block;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-brand);
  font-size: 28px;
  color: var(--brand-primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: color .2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--brand-primary-deep);
}

.nav-cta {
  background: var(--brand-accent);
  color: var(--text-inverse) !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 2px 12px rgba(232, 75, 138, .3);
  transition: transform .2s, box-shadow .2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 75, 138, .4);
}

.nav-cta.disabled {
  background: var(--bg-surface-hover) !important;
  color: var(--text-tertiary) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hamburguesa móvil */
.hamburger {
  display: none;
  background: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: .3s;
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-elevated);
  z-index: 200;
  padding: 80px 32px 32px;
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .1);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer a {
  font-family: var(--font-data);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  z-index: 199;
  display: none;
}

.drawer-overlay.show {
  display: block;
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  color: var(--text-secondary);
  font-size: 28px;
}

/* ============================================================
   BARRA DE ESTADO
   ============================================================ */
.status-bar {
  background: var(--brand-primary-deep);
  text-align: center;
  padding: 10px 24px;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-inverse);
  letter-spacing: 0.5px;
}

.status-bar .pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

.status-bar.closed {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.status-bar.closed .pulse {
  background: #f87171;
  animation: none;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(31, 184, 176, .08), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(232, 75, 138, .05), transparent 50%),
    var(--bg-body);
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-primary-deep);
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(48px, 10vw, 72px);
  color: var(--brand-primary);
  margin: 12px 0;
}

.hero-tagline {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: inline-block;
  background: var(--brand-accent);
  color: var(--text-inverse);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(232, 75, 138, .3);
  transition: transform .2s, box-shadow .2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 75, 138, .4);
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-eyebrow {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-primary-deep);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 32px;
}

/* ============================================================
   GRID DE PRODUCTOS
   ============================================================ */
.product-grid {
  /* Flex con wrap (no grid): cada fila —incluida la última, incompleta— se
     centra como bloque, con el mismo gap uniforme entre tarjetas en vez de
     pegarse al borde o estirarse para llenar el ancho. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 20px;
}

.product-card {
  flex: 0 0 240px;
  width: 240px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

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

.product-card.is-hidden {
  display: none;
}

.product-card .img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--bg-surface), var(--brand-primary-pale));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .img-placeholder .icon {
  font-size: 48px;
  opacity: .5;
}

.product-card .card-body {
  padding: 16px 18px 20px;
}

.product-card .card-cat {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.product-card .card-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  margin: 4px 0;
}

.product-card .card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.product-card .card-price {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 20px;
  color: var(--brand-primary-deep);
}

.product-card .card-btn {
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-data);
  transition: background .2s;
}

.product-card .card-btn:hover {
  background: var(--brand-primary-deep);
}

/* ============================================================
   MENÚ — CATEGORÍAS
   ============================================================ */
.menu-cats {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 32px;
  -webkit-overflow-scrolling: touch;
}

.menu-cats::-webkit-scrollbar {
  height: 3px;
}

.menu-cats::-webkit-scrollbar-thumb {
  background: var(--brand-primary);
  border-radius: 4px;
}

.menu-cat-pill {
  flex-shrink: 0;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}

.menu-cat-pill:hover,
.menu-cat-pill.active {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
}

/* ============================================================
   DRAWER LATERAL — DETALLE DE PRODUCTO
   ============================================================ */
.product-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  z-index: 299;
  display: none;
  opacity: 0;
  transition: opacity .3s;
}

.product-drawer-overlay.show {
  display: block;
  opacity: 1;
}

.product-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-elevated);
  z-index: 300;
  overflow-y: auto;
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0, 0, 0, .12);
}

.product-drawer.open {
  right: 0;
}

.pd-header {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1;
}

.pd-back {
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-close {
  background: none;
  color: var(--text-tertiary);
  font-size: 24px;
}

.pd-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-surface), var(--brand-primary-pale));
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-image .icon {
  font-size: 64px;
  opacity: .3;
}

.pd-info {
  padding: 24px;
}

.pd-name {
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
}

.pd-price {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 28px;
  color: var(--brand-primary-deep);
  margin: 4px 0;
}

.pd-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

.pd-loading {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-family: var(--font-data);
}

.pd-option-group {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
}

.pd-option-group .group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pd-option-group .group-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.pd-option-group .group-req {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 600;
}

.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 100px;
  cursor: pointer;
  transition: .2s;
}

.option-chip:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-pale);
}

.option-chip.selected {
  border-color: var(--brand-primary);
  background: var(--brand-primary-pale);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.option-chip .chip-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.option-chip .chip-price {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.topping-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 140px;
}

.topping-info .chip-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.topping-info .chip-price {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text-tertiary);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.qty-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.qty-val {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.pd-notes {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
}

.pd-notes label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}

.pd-notes textarea {
  width: 100%;
  min-height: 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px;
  resize: vertical;
}

.pd-notes textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(31, 184, 176, .15);
}

.pd-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-elevated);
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.pd-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.pd-qty .qty-btn {
  width: 36px;
  height: 36px;
}

.pd-qty .qty-val {
  font-size: 16px;
  min-width: 28px;
}

.pd-add-btn {
  flex: 1;
  background: var(--brand-accent);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  text-align: center;
  box-shadow: 0 4px 16px rgba(232, 75, 138, .3);
  transition: .2s;
}

.pd-add-btn:hover {
  box-shadow: 0 6px 24px rgba(232, 75, 138, .4);
  transform: translateY(-1px);
}

.pd-add-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ============================================================
   SECCIÓN "PIDE DESDE TU CELULAR" (app banner)
   ============================================================ */
.app-banner {
  position: relative;
  background: var(--brand-primary);
  overflow: hidden;
}

.app-banner-wave-top {
  display: block;
  width: 100%;
  height: 60px;
  background: var(--bg-body);
}

.app-banner-wave-top svg {
  display: block;
  width: 100%;
  height: 100%;
}

.app-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.app-banner-text {
  color: var(--text-inverse);
}

.app-banner-text .ab-eyebrow {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .8;
  margin-bottom: 8px;
}

.app-banner-text h2 {
  font-family: var(--font-brand);
  font-size: 36px;
  margin-bottom: 16px;
}

.app-banner-text p {
  font-size: 16px;
  opacity: .9;
  max-width: 400px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.app-banner-text .ab-btn {
  display: inline-block;
  background: var(--text-inverse);
  color: var(--brand-primary-deep);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-family: var(--font-data);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  transition: transform .2s;
}

.app-banner-text .ab-btn:hover {
  transform: translateY(-2px);
}

.app-banner-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 220px;
  height: 400px;
  background: var(--text-inverse);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
  position: relative;
}

.phone-mockup .phone-notch {
  width: 100px;
  height: 24px;
  background: var(--bg-surface);
  border-radius: 0 0 14px 14px;
  margin: 0 auto 16px;
}

.phone-mockup .phone-screen {
  width: 100%;
  height: calc(100% - 40px);
  background: var(--bg-surface);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-screen .ps-logo {
  font-family: var(--font-brand);
  font-size: 22px;
  color: var(--brand-primary);
}

.phone-screen .ps-text {
  font-size: 10px;
  color: var(--text-tertiary);
  font-family: var(--font-data);
}

.phone-screen .ps-cards {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.phone-screen .ps-minicard {
  width: 50px;
  height: 50px;
  background: var(--brand-primary-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ============================================================
   SECCIÓN UBICACIONES (con refuerzo visual)
   ============================================================ */
.locations-section {
  background: var(--bg-surface);
  padding: 64px 24px;
}

.locations-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.location-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}

.location-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.location-card .loc-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-primary-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.location-card .loc-name {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.location-card .loc-address {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.location-card .loc-schedule {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loc-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-data);
  font-size: 13px;
}

.loc-day .day-name {
  color: var(--text-secondary);
  font-weight: 600;
}

.loc-day .day-hours {
  color: var(--text-primary);
}

.loc-day .day-closed {
  color: var(--text-tertiary);
  font-style: italic;
}

.loc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
}

.loc-status.open {
  color: #16a34a;
}

.loc-status.closed {
  color: var(--text-tertiary);
}

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

/* Refuerzo de ubicaciones: mini resumen */
.locations-summary {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 32px;
}

.locations-summary .ls-icon {
  width: 72px;
  height: 72px;
  background: var(--brand-primary-pale);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

.locations-summary .ls-content h3 {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.locations-summary .ls-content p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 500px;
}

.ls-days {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ls-day-chip {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary-pale);
  color: var(--brand-primary-deep);
}

/* ============================================================
   SECCIÓN REGALO
   ============================================================ */
.gift-section {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-body);
}

.gift-card-preview {
  max-width: 400px;
  margin: 0 auto 32px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--text-inverse);
  text-align: left;
  box-shadow: 0 8px 32px rgba(31, 184, 176, .25);
}

.gift-card-preview .gc-logo {
  font-family: var(--font-brand);
  font-size: 32px;
  margin-bottom: 24px;
}

.gift-card-preview .gc-label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .7;
}

.gift-card-preview .gc-name {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 16px;
}

.gift-card-preview .gc-code {
  font-family: var(--font-data);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  background: rgba(255, 255, 255, .2);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.gift-cta {
  display: inline-block;
  background: var(--brand-accent);
  color: var(--text-inverse);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(232, 75, 138, .3);
}

.gift-form {
  max-width: 420px;
  margin: 32px auto 0;
  text-align: left;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-subtle);
}

.gift-form label {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  display: block;
  margin: 14px 0 6px;
}

.gift-form label:first-child {
  margin-top: 0;
}

.gift-form input,
.gift-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}

.gift-form input:focus,
.gift-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.gift-form button {
  width: 100%;
  margin-top: 20px;
}

.gift-success {
  max-width: 420px;
  margin: 0 auto 24px;
  background: var(--brand-primary-pale);
  border: 1px solid var(--brand-primary-light);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 14px;
  color: var(--brand-primary-deep);
}

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 399;
  display: none;
  align-items: center;
  justify-content: center;
}

.login-overlay.show {
  display: flex;
}

.login-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 380px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .15);
}

.login-modal .lm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  color: var(--text-tertiary);
  font-size: 24px;
}

.login-modal .lm-title {
  font-family: var(--font-brand);
  font-size: 28px;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.login-modal .lm-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.login-modal .phone-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  transition: border-color .2s;
}

.login-modal .phone-input:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(31, 184, 176, .15);
}

.phone-input .prefix {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 15px;
}

.phone-input input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-data);
  font-size: 16px;
  outline: none;
}

.login-modal .lm-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.login-modal .lm-error {
  font-size: 13px;
  color: var(--brand-accent);
  margin-bottom: 12px;
  display: none;
}

.login-modal .lm-error.show {
  display: block;
}

.login-modal .lm-btn {
  width: 100%;
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  transition: .2s;
}

.login-modal .lm-btn:hover {
  background: var(--brand-primary-deep);
}

.login-modal .lm-privacy {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 16px;
}

.login-modal .lm-privacy a {
  color: var(--brand-primary);
  text-decoration: underline;
}

.login-modal .lm-step {
  display: none;
}

.login-modal .lm-step.active {
  display: block;
}

/* ============================================================
   CARRITO (badge en el header + drawer lateral)
   ============================================================ */
.cart-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 14px;
}

.cart-badge .count,
.cart-badge#cart-count {
  position: relative;
  top: -8px;
  background: var(--brand-accent);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  z-index: 398;
  display: none;
}

.cart-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-elevated);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transition: right .3s ease;
  box-shadow: -4px 0 32px rgba(0, 0, 0, .12);
}

.cart-drawer.open {
  right: 0;
}

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

.cart-drawer-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-close-btn {
  background: none;
  color: var(--text-tertiary);
  font-size: 22px;
}

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

.cart-empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 48px 0;
  font-size: 14px;
}

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

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.cart-item-variant,
.cart-item-mods {
  font-size: 12px;
  color: var(--text-tertiary);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-price {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-primary-deep);
  min-width: 50px;
  text-align: right;
}

#cart-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: none;
  flex-direction: column;
  gap: 12px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-primary);
}

.cart-total-row strong {
  font-family: var(--font-data);
  font-size: 18px;
  color: var(--brand-primary-deep);
}

.btn-checkout {
  display: block;
  text-align: center;
  background: var(--brand-accent);
  color: var(--text-inverse);
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
}

/* ============================================================
   FOOTER CON OLAS CSS
   ============================================================ */
.footer-wave-container {
  position: relative;
  background: var(--bg-body);
  margin-top: -1px;
}

.footer-wave-container svg {
  display: block;
  width: 100%;
  height: 100px;
}

.site-footer {
  background: var(--brand-primary);
  padding: 48px 24px 24px;
  color: var(--text-inverse);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
  color: var(--text-inverse);
}

.footer-brand p {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-mint);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  padding: 4px 0;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom a {
  color: var(--brand-mint);
}

.newsletter-signup label {
  font-family: var(--font-data, inherit);
}

.newsletter-signup .form-control {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--text-inverse);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.newsletter-signup .form-control::placeholder {
  color: rgba(255, 255, 255, .55);
}

.newsletter-signup .form-control:focus {
  outline: none;
  border-color: var(--text-inverse);
}

.newsletter-signup .btn-newsletter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}

.newsletter-signup .btn-newsletter:hover {
  background: var(--brand-accent-light);
}

.newsletter-signup .btn-newsletter:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .product-grid {
    gap: 12px;
  }

  .product-card {
    flex: 0 0 calc(50% - 6px);
    width: calc(50% - 6px);
  }

  .product-drawer {
    width: 100%;
    right: -100%;
  }

  .cart-drawer {
    width: 100%;
    right: -100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 20px 40px;
  }

  .hero-tagline {
    font-size: 15px;
  }

  .app-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-banner-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .phone-mockup {
    width: 180px;
    height: 320px;
  }

  .locations-summary {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .product-card {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* ============================================================
   COMPATIBILIDAD — vistas legacy compartidas de BistroPro
   (login, registro, recuperar contraseña, checkout, confirmación)
   Estas vistas usan clases genéricas de cart.css con colores fijos del
   tema oscuro original ("Los Traviesos"). El alias de variables ya vive
   en cafentik.css (--bg, --card, --border, --text, --muted, --accent,
   --accent2) — aquí solo se corrigen los valores que cart.css escribió
   literales (no como var()) y por eso ese alias no alcanza a corregir.
   ============================================================ */
.form-control {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.radio-option label {
  border: 1px solid var(--border-subtle);
}

/* Encabezado de marca para páginas de login/registro/contraseña (sin nav,
   hideHeader=true) — logo Cafentik enlazando a inicio. */
.auth-brand {
  text-align: center;
  padding: 40px 24px 0;
}
.auth-brand a {
  font-family: var(--font-brand);
  font-size: 32px;
  color: var(--brand-primary);
}

.auth-wrap {
  max-width: 420px;
}
.auth-wrap h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: normal;
  text-transform: none;
}
.auth-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}