:root {
  --navy: #111a3a;
  --navy-2: #1a2550;
  --navy-3: #243167;
  --gold: #f5c330;
  --gold-2: #ffd863;
  --teal: #3cc6c0;
  --coral: #ff7a59;
  --ink: #eef1fb;
  --muted: #aab3d6;
  --line: rgba(255, 255, 255, .1);
  --radius: 18px;
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 80% -10%, #2a2f7a 0%, transparent 55%),
              radial-gradient(ellipse at -10% 40%, #1b3a6b 0%, transparent 45%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold); }
h3 { font-size: 1.15rem; }

/* Greca (patrón decorativo del catálogo) */
.greca {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px, var(--teal) 12px 18px, transparent 18px 24px);
  opacity: .7;
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  padding-top: max(12px, env(safe-area-inset-top));
  padding-left: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right));
  background: rgba(17, 26, 58, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.3rem var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 2px solid var(--gold); }
.brand b { color: var(--gold); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--gold); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .cart-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-2); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; text-decoration: none;
}
.icon-btn:hover, .cart-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-btn { background: var(--gold); color: var(--navy); border: 0; }
.cart-btn:hover { background: var(--gold-2); color: var(--navy); }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center;
}
.badge:empty, .badge[data-n="0"] { display: none; }
.badge.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }
.menu-btn { display: none; }

/* Selector de idioma ES | EN */
.lang-btn {
  display: inline-flex; height: 42px; padding: 3px; border-radius: 999px; cursor: pointer;
  background: var(--navy-2); border: 1px solid var(--line);
}
.lang-btn span {
  display: grid; place-items: center; min-width: 34px; border-radius: 999px;
  font: 800 .78rem var(--body); color: var(--muted); letter-spacing: .04em;
}
.lang-btn span.on { background: var(--teal); color: var(--navy); }

/* Botón de música con ecualizador animado */
#musicBtn .eq { display: none; position: absolute; gap: 2px; align-items: flex-end; height: 14px; }
#musicBtn.on svg { display: none; }
#musicBtn.on { border-color: var(--gold); color: var(--gold); }
#musicBtn.on .eq { display: flex; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: .2s; }
.eq i:nth-child(3) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 5vw, 64px);
  max-width: 1280px; margin: 0 auto;
}
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; font-weight: 800; color: var(--teal); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { color: var(--muted); font-size: 1.08rem; }
.narrow { max-width: 760px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font: 800 1rem var(--body);
  text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border: 1.5px solid var(--gold); color: var(--gold); background: transparent; }
.btn-block { width: 100%; }
.trust { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .9rem; }
.trust b { display: block; font: 800 1.5rem var(--display); color: var(--ink); }
.hero-art img {
  border-radius: 28px; border: 3px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 10px rgba(245, 195, 48, .08);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* Secciones */
.section { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(16px, 5vw, 64px); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.pillar {
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.pillar-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(245, 195, 48, .15); color: var(--gold); font-size: 1.4rem; margin-bottom: 14px; }
.pillar h3 { color: var(--gold); font-size: 1.4rem; }
.pillar p, .pillar li { color: var(--muted); }
.pillar ul { padding-left: 18px; margin: 0; }
.pillar li { margin-bottom: 6px; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.values span { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--teal); color: var(--teal); font-weight: 700; font-size: .9rem; }

/* Tienda */
.shop-tools { margin: 20px 0 16px; }
.search {
  display: flex; align-items: center; gap: 10px; max-width: 520px;
  background: var(--navy-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px;
}
.search:focus-within { border-color: var(--gold); }
.search svg { color: var(--muted); flex: none; }
.search input { flex: 1; background: none; border: 0; color: var(--ink); font: 600 1rem var(--body); padding: 14px 0; outline: none; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: thin; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--navy-2); border: 1px solid var(--line); color: var(--muted); font: 700 .9rem var(--body);
}
.chip:hover { color: var(--ink); }
.chip.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.cat-block { margin-top: 36px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; }
.cat-head h3 { font-size: 1.7rem; color: var(--ink); margin: 0; }
.cat-head .eyebrow { color: var(--coral); margin: 0; width: 100%; font-size: .7rem; }
.cat-head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column;
  background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245, 195, 48, .5); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.card-img { aspect-ratio: 1; background: #f4eedb; display: grid; place-items: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img .ph { color: var(--navy-3); font: 800 1.1rem var(--display); text-align: center; padding: 20px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.card-body h4 { font: 700 1.05rem var(--display); margin: 0; }
.card-body .desc { color: var(--muted); font-size: .86rem; margin: 0; flex: 1; }
.card select {
  width: 100%; padding: 9px 10px; border-radius: 10px; background: var(--navy); color: var(--ink);
  border: 1px solid var(--line); font: 600 .88rem var(--body);
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.price { font: 800 1.1rem var(--body); color: var(--gold); }
.price small { font-size: .75rem; color: var(--muted); font-weight: 600; }
.add {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: var(--gold); color: var(--navy); border: 0; cursor: pointer; font: 800 .85rem var(--body);
}
.add:hover { background: var(--gold-2); }
.add svg { width: 16px; height: 16px; stroke-width: 2.4; }
.add.ask { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* Cómo pedir */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 30px 0; }
.steps li { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 800 1.1rem var(--display); margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }
.notice { border-left: 4px solid var(--coral); background: rgba(255, 122, 89, .08); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; }
.notice h3 { color: var(--coral); }
.notice p { color: var(--muted); margin: 0; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.contact-cards { display: grid; gap: 14px; }
.ccard {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none;
  background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius);
  font: 700 1.2rem var(--display); transition: border-color .2s, transform .2s;
}
.ccard:hover { border-color: var(--gold); transform: translateX(4px); }
.ccard small { display: block; font: 800 .7rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ccard-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none; color: #fff; }
.ccard-ico.ig { background: linear-gradient(45deg, #f9a12e, #e1306c, #833ab4); }
.ccard-ico.wa { background: #25d366; }
.ccard-ico.web { background: var(--navy-3); color: var(--gold); }

/* Footer */
.foot { text-align: center; padding: 40px 16px 30px; border-top: 1px solid var(--line); }
.foot-brand { font: 800 1.4rem var(--display); color: var(--gold); margin: 0 0 12px; }
.foot-social { display: flex; justify-content: center; gap: 20px; margin-bottom: 14px; }
.foot-social a { color: var(--teal); font-weight: 700; }
.fine { color: var(--muted); font-size: .8rem; max-width: 640px; margin: 0 auto; }

.wa-float {
  position: fixed; z-index: 20;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.wa-float svg { width: 28px; height: 28px; }

/* Carrito (drawer) */
.overlay { position: fixed; inset: 0; background: rgba(5, 8, 20, .6); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 50;
  height: 100vh; height: 100dvh;
  padding-top: env(safe-area-inset-top);
  width: min(440px, 100%); background: var(--navy); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.5rem; }
.drawer-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
}
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img, .cart-item .ph-sm { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #f4eedb; }
.cart-item h4 { margin: 0; font: 700 .95rem var(--display); }
.cart-item .meta { color: var(--muted); font-size: .8rem; }
.qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--navy-2); color: var(--ink); cursor: pointer; font-weight: 800; }
.cart-item .line-price { text-align: right; font-weight: 800; color: var(--gold); }
.cart-item .remove { display: block; margin-top: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .78rem; text-decoration: underline; }
.cart-empty { color: var(--muted); text-align: center; padding: 30px 0; }
.order-form { display: grid; gap: 12px; margin-top: 18px; }
.sum-row { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; font-size: .92rem; margin-bottom: -6px; }
.price .iva { font-size: .7rem; color: var(--muted); font-weight: 700; }
.totals { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.totals strong { font: 800 1.6rem var(--display); color: var(--gold); }
.order-form .fine { margin: 0; text-align: left; }
.order-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.order-form input, .order-form select, .order-form textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; background: var(--navy-2); color: var(--ink);
  border: 1px solid var(--line); font: 600 .95rem var(--body);
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: none; border-color: var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 150%);
  background: var(--ink); color: var(--navy); padding: 12px 20px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .3s; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* Responsive */
[hidden] { display: none !important; }

/* Tarjeta: imagen clicable para vista rápida */
button.card-img { position: relative; width: 100%; border: 0; padding: 0; cursor: zoom-in; }
.tag18, .tag-gal {
  position: absolute; top: 10px; padding: 3px 8px; border-radius: 999px;
  font: 800 .72rem var(--body); color: #fff;
}
.tag18 { left: 10px; background: var(--coral); }
.tag-gal { right: 10px; background: rgba(17, 26, 58, .75); }
.linklike { all: unset; cursor: pointer; }
.linklike:hover { color: var(--gold); }
.linklike:focus-visible, .card-img:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.add.done { background: var(--teal); color: var(--navy); border-color: var(--teal); }

/* Categorías fijas al desplazarse */
.chips { position: sticky; top: 66px; z-index: 10; background: var(--navy); margin: 0 -4px; padding: 10px 4px 12px; }

/* Vista rápida */
.qv {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 8, 20, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.qv-card {
  position: relative; width: min(920px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--navy); border: 1px solid var(--line); border-radius: 24px; overscroll-behavior: contain;
}
.qv-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.qv-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.qv-main { aspect-ratio: 1; background: #f4eedb; display: grid; place-items: center; overflow: hidden; border-radius: 24px 0 0 24px; }
.qv-main img { width: 100%; height: 100%; object-fit: cover; }
.qv-main .ph { color: var(--navy-3); font: 800 1.3rem var(--display); text-align: center; padding: 30px; }
.qv-thumbs { display: flex; gap: 8px; padding: 10px; }
.qv-thumbs button { width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.qv-thumbs button.on { border-color: var(--gold); }
.qv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; }
.qv-info h3 { font-size: 1.7rem; margin: 0; padding-right: 40px; }
.qv-info .eyebrow { margin: 0; }
.qv-price .price { font-size: 1.5rem; }
.qv-desc { color: var(--muted); margin: 0; }
.qv-18 { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 122, 89, .12); color: var(--coral); font-weight: 700; font-size: .88rem; }
.qv-info select {
  width: 100%; padding: 12px; border-radius: 12px; background: var(--navy-2); color: var(--ink);
  border: 1px solid var(--line); font: 600 16px var(--body);
}
.qv-buy { display: flex; gap: 12px; align-items: center; }
.qv-buy .btn { flex: 1; }
.qty.big { margin: 0; background: var(--navy-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 10px; }
.qty.big button { width: 38px; height: 38px; font-size: 1.1rem; }
.qty.big span { min-width: 18px; text-align: center; font-weight: 800; }
.qv-wa { color: var(--teal); font-weight: 700; text-decoration: none; }

/* Barra de pedido (solo celular) */
.cart-bar {
  position: fixed; left: 12px; right: 12px; z-index: 25;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 16px;
  background: var(--gold); color: var(--navy); font: 800 .95rem var(--body); cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.cart-bar span { flex: 1; text-align: left; }
.cart-bar b { background: var(--navy); color: var(--gold); padding: 7px 14px; border-radius: 999px; }

/* Asistente */
.ai-fab {
  position: fixed; z-index: 21; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(90px, calc(env(safe-area-inset-bottom) + 82px));
  background: radial-gradient(circle at 50% 40%, var(--navy-3), var(--navy)); color: var(--gold);
  display: grid; place-items: center; border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 0 0 rgba(60, 198, 192, .55);
  animation: aiPulse 3.2s ease-out infinite;
}
.ai-fab svg { width: 28px; height: 28px; }
.ai-fab .ai-x, .ai-fab.open .ai-open { display: none; }
.ai-fab.open .ai-x { display: block; }
.ai-fab.open { animation: none; }
@keyframes aiPulse { 0% { box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 0 rgba(60,198,192,.55); } 70%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 14px rgba(60,198,192,0); } }

/* Ojo animado del logo */
.ai-fab svg.ai-eye { width: 44px; height: 28px; overflow: visible; }
.ai-lid { transform-origin: 32px 20px; animation: aiBlink 5.5s infinite; }
.ai-iris { animation: aiLook 9s ease-in-out infinite; }
#aiIrisTrack { transition: transform .15s ease-out; }
.ai-fab.tracking .ai-iris { animation: none; }
@keyframes aiBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } 97% { transform: scaleY(1); } }
@keyframes aiLook {
  0%, 18%, 100% { transform: translate(0, 0); }
  24%, 38% { transform: translate(-9px, 1px); }
  44%, 58% { transform: translate(9px, -1px); }
  64%, 76% { transform: translate(2px, 3px); }
}
.ai-hint {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--navy);
  font: 800 .8rem var(--body); box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.ai-hint.show { opacity: 1; }
.ai-fab.open .ai-hint { display: none; }

/* Si Netlify muestra su sello abajo, subimos los botones flotantes para que nada quede tapado */
body.nf-badge .wa-float { bottom: calc(76px + env(safe-area-inset-bottom)); }
body.nf-badge .ai-fab { bottom: calc(146px + env(safe-area-inset-bottom)); }
body.nf-badge .ai-panel { bottom: calc(214px + env(safe-area-inset-bottom)); }
body.nf-badge .cart-bar { bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (max-width: 760px) {
  body.nf-badge.has-bar .wa-float { bottom: calc(136px + env(safe-area-inset-bottom)); }
  body.nf-badge.has-bar .ai-fab { bottom: calc(200px + env(safe-area-inset-bottom)); }
  body.nf-badge .ai-panel { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .ai-hint { display: none; }
}
.ai-panel {
  position: fixed; z-index: 65; right: max(20px, env(safe-area-inset-right));
  bottom: max(160px, calc(env(safe-area-inset-bottom) + 152px));
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 200px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--navy); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--navy-2); border-bottom: 1px solid var(--line); }
.ai-head div { flex: 1; display: grid; line-height: 1.25; }
.ai-head small { color: var(--teal); font-size: .75rem; }
.ai-avatar img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold); }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.ai-msg.bot { background: var(--navy-2); border-bottom-left-radius: 4px; }
.ai-msg.user { align-self: flex-end; background: var(--gold); color: var(--navy); font-weight: 700; border-bottom-right-radius: 4px; }
.ai-msg a { color: var(--teal); font-weight: 700; }
.ai-wa { display: inline-block; margin-top: 8px; padding: 7px 14px; border-radius: 999px; background: #25d366; color: #fff !important; text-decoration: none; }
.ai-prod { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; margin-top: 8px; }
.ai-prod img, .ai-prod .ph-sm { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #f4eedb; }
.ai-prod b { display: block; font-size: .85rem; line-height: 1.2; }
.ai-prod small { color: var(--gold); font-weight: 800; }
.ai-prod button, .ai-more {
  border: 1px solid var(--gold); background: transparent; color: var(--gold); border-radius: 999px;
  padding: 5px 10px; font: 800 .78rem var(--body); cursor: pointer;
}
.ai-more { margin-top: 10px; width: 100%; }
.ai-quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
.ai-quick button {
  flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--teal); background: transparent;
  color: var(--teal); font: 700 .8rem var(--body); cursor: pointer;
}
.ai-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ai-form input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; background: var(--navy-2); color: var(--ink);
  border: 1px solid var(--line); font: 600 16px var(--body);
}
.ai-form input:focus { outline: none; border-color: var(--gold); }

/* Mapa (se carga al tocar) */
.map { grid-column: 1 / -1; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--navy-2); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-load {
  width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px;
  border: 0; cursor: pointer; color: var(--ink);
  background: radial-gradient(circle at 50% 40%, var(--navy-3), var(--navy-2));
}
.map-load svg { width: 40px; height: 40px; color: var(--gold); }
.map-load b { font: 800 1.2rem var(--display); }
.map-load small { color: var(--muted); }
.ccard-ico.pin { background: var(--coral); }

/* Casillas del pedido y pie legal */
.order-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--muted); }
.order-form .check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--gold); }
.order-form .check a { color: var(--teal); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 14px; }
.foot-legal a { color: var(--muted); font-size: .85rem; }
.foot .fine + .fine { margin-top: 6px; }

/* Eventos y speech */
.speech {
  position: relative; margin: 28px 0 0; padding: clamp(24px, 4vw, 44px);
  border-radius: 28px; border: 1px solid rgba(245, 195, 48, .35);
  background:
    radial-gradient(circle at 12% 0%, rgba(60, 198, 192, .18), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(255, 122, 89, .16), transparent 50%),
    linear-gradient(160deg, var(--navy-2), var(--navy));
}
.speech::before {
  content: "“"; position: absolute; top: -18px; left: 24px;
  font: 800 6rem/1 var(--display); color: var(--gold); opacity: .55;
}
.speech-text p { font: 600 clamp(1.05rem, 2.2vw, 1.25rem)/1.65 var(--display); color: var(--ink); margin: 0 0 14px; max-width: 820px; }
.speech-text p:first-child { color: var(--gold); font-size: clamp(1.3rem, 3vw, 1.6rem); }
.speech-text .speech-sign { color: var(--teal); font-style: italic; margin-top: 20px; }
.speech-btn { margin-top: 8px; }
.speech-btn svg { width: 20px; height: 20px; }
.speech-btn.on { background: var(--gold); color: var(--navy); }
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.ev-card { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.ev-ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--gold), var(--coral)); color: var(--navy); font-size: 1.5rem;
}
.ev-card h3 { color: var(--gold); font-size: 1.3rem; }
.ev-card p { color: var(--muted); margin: 0; }
.ev-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ev-note { margin: 14px 0 0; text-align: left; }
@media (max-width: 900px) { .ev-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .ev-cta .btn { flex: 1 1 100%; } }

/* Páginas legales */
.legal { max-width: 820px; margin: 0 auto; padding: 32px 16px 60px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--gold); }
.legal h2 { font-size: 1.2rem; color: var(--ink); margin-top: 1.8em; }
.legal p { color: var(--muted); }
.legal b { color: var(--ink); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.legal .back { display: inline-block; margin-bottom: 24px; color: var(--teal); font-weight: 700; text-decoration: none; }
.legal-switch { margin-left: auto; display: flex; gap: 16px; }
.legal-switch a { color: var(--muted); font-weight: 700; text-decoration: none; }

/* En celulares sin mouse, sin efectos hover que se quedan "pegados" */
@media (hover: none) {
  .card:hover, .btn:hover, .ccard:hover { transform: none; }
  .card:hover .card-img img { transform: none; }
}
.chips { -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.chip { scroll-snap-align: start; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 28px; }
  .hero-art { order: -1; width: min(240px, 62vw); margin: 0 auto; }
  .hero-art img { border-radius: 22px; }
  .hero-cta, .trust { justify-content: center; }
  .narrow { margin-left: auto; margin-right: auto; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .top-actions { margin-left: auto; }
  .top-actions > a.icon-btn { display: none; }
  .brand span { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .add { justify-content: center; min-height: 40px; }
  /* iPhone hace zoom si el texto de un campo mide menos de 16px */
  .card select, .order-form input, .order-form select, .order-form textarea, .search input { font-size: 16px; }
  .hero h1 { font-size: 2.1rem; }
  .lead { font-size: 1rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .pillar, .steps li { padding: 22px; }
  .ccard { font-size: 1.05rem; padding: 14px 16px; }
  .cat-head h3 { font-size: 1.4rem; }
  .qty button { width: 34px; height: 34px; }
  .chips { top: 62px; }
  .cart-bar { display: flex; }
  body.has-bar .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.has-bar .ai-fab { bottom: calc(154px + env(safe-area-inset-bottom)); }
  body.has-bar .foot { padding-bottom: 100px; }
  .wa-float, .ai-fab { width: 52px; height: 52px; }
  .ai-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .ai-panel { left: 8px; right: 8px; width: auto; top: calc(8px + env(safe-area-inset-top)); bottom: calc(8px + env(safe-area-inset-bottom)); height: auto; }
  .qv { padding: 0; place-items: end stretch; }
  .qv-card { border-radius: 24px 24px 0 0; max-height: 92dvh; }
  .qv-body { grid-template-columns: 1fr; }
  .qv-main { border-radius: 24px 24px 0 0; }
  .qv-info { padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); }
  .qv-info h3 { font-size: 1.4rem; }
  .map { aspect-ratio: 4 / 3; }
}
@media (max-width: 380px) {
  .grid { gap: 10px; }
  .card-body { padding: 10px; }
  .card-body h4 { font-size: .95rem; }
  .price { font-size: 1rem; }
  .top-actions { gap: 6px; }
  .icon-btn, .cart-btn, .lang-btn { width: 38px; height: 38px; }
  .lang-btn { width: auto; }
  .lang-btn span { min-width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
