/* ==========================================================================
   EL BOLSI PARAGUAY — Estilos compartidos
   Mobile-first: las reglas base son para celular, los @media agrandan.
   ========================================================================== */

:root {
  --terracota: #a4472b;
  --terracota-dark: #7d3520;
  --crema: #faf3e6;
  --crema-alta: #fffaf1;
  --carbon: #2c211c;
  --carbon-suave: #5a4a41;
  --dorado: #c9973f;
  --verde: #4b6b4f;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --linea: #e7dac6;
  --sombra: 0 8px 24px rgba(44, 33, 28, 0.12);
  --radio: 16px;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--carbon);
  font-family: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.4em;
  color: var(--terracota-dark);
}

p { margin: 0 0 1em; }

a { color: inherit; }

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--crema-alta);
  border-bottom: 1px solid var(--linea);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--terracota-dark);
  white-space: nowrap;
}

.brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracota);
  color: var(--crema-alta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.header-nav a.nav-link {
  display: none;
  text-decoration: none;
  font-weight: 700;
  color: var(--carbon-suave);
  padding: 8px 6px;
}

.header-nav a.nav-link.active {
  color: var(--terracota);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--terracota);
  color: var(--crema-alta);
}
.btn-primary:hover { background: var(--terracota-dark); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--terracota);
  color: var(--terracota-dark);
}

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Hero (landing) ---------- */
.hero {
  padding: 48px 0 40px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 151, 63, 0.16), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(164, 71, 43, 0.12), transparent 40%);
}

.hero .eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--verde);
  background: rgba(75, 107, 79, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--carbon-suave);
  max-width: 40em;
  margin: 0 auto 26px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero-ctas .btn { width: 100%; max-width: 320px; }

.trust-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.trust-item {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--carbon-suave);
  background: var(--crema-alta);
  border: 1px solid var(--linea);
  border-radius: 999px;
  padding: 6px 14px;
}

.trust-item small {
  font-weight: 600;
  opacity: 0.8;
}

.section-narrow .section-sub {
  max-width: 46em;
}

/* ---------- Mapa embebido ---------- */
.map-section { padding-bottom: 0; }

.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 66%;
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--linea);
  box-shadow: var(--sombra);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-cta {
  text-align: center;
  margin-top: 14px;
}

@media (min-width: 640px) {
  .map-embed { padding-bottom: 38%; }
}

/* ---------- Info strip (landing) ---------- */
.info-strip {
  padding: 28px 0;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
}

.info-item .info-label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dorado);
  margin-bottom: 4px;
}

.info-item .info-value {
  font-weight: 700;
  color: var(--carbon);
}

/* ---------- Secciones landing ---------- */
.section {
  padding: 44px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--carbon-suave);
  max-width: 38em;
  margin: 0 auto 28px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.highlight-card {
  background: var(--crema-alta);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 20px;
  box-shadow: var(--sombra);
}

.highlight-card .emoji {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.highlight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.highlight-card p {
  color: var(--carbon-suave);
  font-size: 0.95rem;
  margin: 0;
}

.cta-band {
  background: var(--terracota);
  color: var(--crema-alta);
  border-radius: var(--radio);
  padding: 32px 20px;
  text-align: center;
  margin: 0 18px;
}

.cta-band h2 { color: var(--crema-alta); }
.cta-band p { color: rgba(255, 250, 241, 0.9); }
.cta-band .btn-primary { background: var(--crema-alta); color: var(--terracota-dark); }
.cta-band .btn-primary:hover { background: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--carbon);
  color: rgba(250, 243, 230, 0.85);
  padding: 32px 0 24px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.site-footer a { color: var(--dorado); text-decoration: none; }

.footer-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-grid h4 {
  color: var(--dorado);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 243, 230, 0.15);
  padding-top: 16px;
  font-size: 0.78rem;
  color: rgba(250, 243, 230, 0.55);
  text-align: center;
}

/* ==========================================================================
   PÁGINA /menu — carta digital
   ========================================================================== */

.menu-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--crema);
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--linea);
}

.search-box {
  position: relative;
  margin-bottom: 12px;
}

.search-box input {
  width: 100%;
  padding: 13px 42px 13px 16px;
  border-radius: 999px;
  border: 2px solid var(--linea);
  background: var(--crema-alta);
  font-size: 1rem;
  color: var(--carbon);
}

.search-box input:focus {
  outline: none;
  border-color: var(--terracota);
}

.search-box .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
}

.search-box .search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--carbon-suave);
  padding: 6px 8px;
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.category-chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--crema-alta);
  border: 2px solid var(--linea);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--carbon-suave);
  white-space: nowrap;
}

.chip.active {
  background: var(--terracota);
  border-color: var(--terracota);
  color: var(--crema-alta);
}

.menu-content {
  padding: 18px 0 120px;
}

.menu-results-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--carbon-suave);
}

.menu-category {
  margin-bottom: 30px;
  scroll-margin-top: calc(var(--header-h) + 128px);
}

.menu-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--dorado);
}

.menu-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.menu-item {
  background: var(--crema-alta);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.menu-item-main {
  flex: 1;
  min-width: 0;
}

.menu-item-name {
  font-weight: 800;
  color: var(--carbon);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.menu-item-desc {
  font-size: 0.88rem;
  color: var(--carbon-suave);
  margin: 4px 0 0;
}

.menu-item-price {
  font-weight: 800;
  color: var(--terracota-dark);
  margin-top: 6px;
  font-size: 0.98rem;
}

.tag-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(75, 107, 79, 0.14);
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--terracota);
  background: var(--crema-alta);
  color: var(--terracota);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.qty-btn.add {
  background: var(--terracota);
  color: var(--crema-alta);
}

.qty-value {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}

/* ---------- Barra flotante de pedido ---------- */
.order-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  background: var(--terracota);
  color: var(--crema-alta);
  border-radius: 999px;
  padding: 10px 10px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(44, 33, 28, 0.3);
  transform: translateY(140%);
  transition: transform 0.25s ease;
}

.order-bar.visible { transform: translateY(0); }

.order-bar .order-count {
  font-weight: 800;
  font-size: 0.95rem;
}

.order-bar .btn {
  background: var(--crema-alta);
  color: var(--terracota-dark);
}

/* ---------- Panel de pedido (modal) ---------- */
.order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 33, 28, 0.5);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.order-overlay.open { display: flex; }

.order-panel {
  background: var(--crema);
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-panel-header h3 { margin: 0; }

.order-panel-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--carbon-suave);
  padding: 4px 8px;
}

.order-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--crema-alta);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 10px 12px;
}

.order-list-item .oli-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.order-list-item .oli-price {
  font-size: 0.82rem;
  color: var(--carbon-suave);
}

.order-empty-msg {
  text-align: center;
  color: var(--carbon-suave);
  padding: 30px 10px;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  padding-top: 8px;
  border-top: 1px solid var(--linea);
}

.order-note {
  font-size: 0.78rem;
  color: var(--carbon-suave);
  text-align: center;
}

/* ---------- Botón flotante WhatsApp (landing) ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: row; justify-content: center; }
  .hero-ctas .btn { width: auto; }
  .trust-bar { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (min-width: 720px) {
  .header-nav a.nav-link { display: inline-block; }
  .menu-items { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.9rem; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .highlight-grid { grid-template-columns: repeat(3, 1fr); }
}
