/* ==========================================================================
   Panadería Central — sistema visual
   Paleta: espresso #300101 · cacao #582619 · caramelo #cf773c · miel #f5c27a · crema #f7e4ad
   Tipos: Fraunces (display) + Plus Jakarta Sans (texto)
   Curvas (heredadas de KANZO): --ease-out cubic-bezier(.16,1,.3,1) · --ease-io cubic-bezier(.65,0,.35,1)
   ========================================================================== */

:root {
  --espresso: #300101;
  --cacao: #582619;
  --caramel: #cf773c;
  --miel: #f5c27a;
  --crema: #f7e4ad;

  --paper: #fbf5ea;
  --paper-2: #f4e9d4;
  --card: #fffaf1;
  --ink: #300101;
  --muted: #6b4436;
  --line: rgba(48, 1, 1, .12);
  --line-strong: rgba(48, 1, 1, .22);

  --f-display: "Fraunces", Georgia, serif;
  --f-text: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --r-xl: clamp(22px, 3vw, 36px);
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 12px;
  --header-h: 84px;
  --shadow: 0 1px 2px rgba(48, 1, 1, .05), 0 12px 32px -12px rgba(48, 1, 1, .22);
  --shadow-lg: 0 30px 80px -20px rgba(48, 1, 1, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
::selection { background: var(--miel); color: var(--espresso); }
:focus-visible { outline: 2.5px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--espresso); color: var(--crema); padding: 10px 16px; border-radius: 999px; transition: top .3s var(--ease-out); }
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 120;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--cacao); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--caramel); }
.eyebrow--light { color: var(--miel); }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--espresso); --fg: var(--crema);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .95rem; letter-spacing: .005em; white-space: nowrap;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), color .4s var(--ease-out);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fill, var(--cacao));
  transform: translateX(-101%); transition: transform .55s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(0); }
.btn:hover { color: var(--fill-text, var(--fg)); }
.btn:active { transform: scale(.97); }
.btn svg { transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--dark { --bg: var(--espresso); --fg: var(--crema); --fill: var(--cacao); }
.btn--cream { --bg: var(--crema); --fg: var(--espresso); --fill: var(--miel); }
.btn--outline { --bg: transparent; --fg: var(--espresso); --fill: var(--espresso); --fill-text: var(--crema); box-shadow: inset 0 0 0 1.5px var(--espresso); }
.btn--ghost-light { --bg: transparent; --fg: var(--crema); --fill: rgba(247, 228, 173, .14); box-shadow: inset 0 0 0 1.5px rgba(247, 228, 173, .4); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.text-btn { font-weight: 600; font-size: .9rem; color: var(--cacao); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: var(--caramel); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--espresso); border-bottom: 1.5px solid var(--caramel); padding-bottom: 4px; margin-top: 22px; }
.link-arrow svg { transition: transform .45s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--espresso);
  transition: background .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out);
}
.round-btn:hover { background: var(--espresso); color: var(--crema); }
.round-btn:active { transform: scale(.94); }
.round-btn[disabled] { opacity: .3; pointer-events: none; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.pill--glass { background: rgba(247, 228, 173, .1); color: var(--crema); box-shadow: inset 0 0 0 1px rgba(247, 228, 173, .22); backdrop-filter: blur(8px); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--miel); flex: none; }
.dot--live, .is-open .dot { background: #7fd08a; box-shadow: 0 0 0 0 rgba(127, 208, 138, .6); animation: live 2.2s infinite; }
.is-closed .dot { background: var(--caramel); animation: none; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(127, 208, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 208, 138, 0); } }

/* ---------- Topbar ---------- */
.topbar { background: var(--espresso); color: var(--crema); font-size: .8rem; }
.topbar__inner { max-width: var(--max); margin: auto; padding: 8px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__status { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar__status svg { flex: none; color: var(--miel); }
.pill__icon { flex: none; color: var(--miel); }
.topbar__status.is-closed svg { color: var(--caramel); }
.topbar__mid { opacity: .75; }
.topbar__social { display: flex; gap: 4px; }
.topbar__social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.topbar__social a:hover { background: rgba(247, 228, 173, .14); }
.topbar__social svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 245, 234, .82); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); transition: box-shadow .4s var(--ease-out); }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(48, 1, 1, .3); }
.header__inner { max-width: var(--max); margin: auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 34px; height: auto; transition: transform .6s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__word { width: 168px; height: auto; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 10px 14px; font-weight: 500; font-size: .95rem; color: var(--muted); border-radius: 999px; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px; background: var(--caramel); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav a:hover, .nav a.is-active { color: var(--espresso); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: var(--paper-2); }
.bag-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--espresso); color: var(--crema); font-weight: 600; font-size: .92rem; transition: transform .35s var(--ease-out), background .35s; }
.bag-btn:hover { background: var(--cacao); }
.bag-btn:active { transform: scale(.96); }
.bag-btn__count { min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--miel); color: var(--espresso); font-size: .85rem; font-variant-numeric: tabular-nums; }
.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.3); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; }
.menu-btn span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 1.8px; background: var(--espresso); border-radius: 2px; transition: transform .45s var(--ease-out); }
.menu-btn span:nth-child(1) { top: 19px; } .menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section__head > div { max-width: 760px; }
.section__aside { max-width: 360px; }

/* ---------- Hero ---------- */
.hero { padding: 0; --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.hero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% 30%, rgba(207, 119, 60, .28), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(88, 38, 25, .9), transparent 60%),
    linear-gradient(160deg, #3d0805 0%, var(--espresso) 55%, #1f0000 100%);
  color: var(--crema);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  min-height: min(820px, calc(100svh - var(--header-h) - 40px));
}
.hero__panel::before { /* grano sutil */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__glow { position: absolute; width: 520px; height: 520px; right: 8%; top: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(245, 194, 122, .26), transparent 65%); filter: blur(20px); z-index: -1; transition: transform 1.2s cubic-bezier(.2, .75, .2, 1); }
.hero__copy { padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 56px) clamp(36px, 5vw, 72px) calc(var(--edge) + clamp(0px, 3vw, 48px)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.7rem, 1.2rem + 4.6vw, 5.4rem); line-height: .96; letter-spacing: -.035em;
  font-variation-settings: "opsz" 144; margin: 26px 0 26px;
}
.hero__title .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--miel); }
.hero__lead { max-width: 470px; font-size: clamp(1rem, .95rem + .25vw, 1.12rem); color: rgba(247, 228, 173, .82); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; gap: clamp(20px, 3vw, 44px); margin: 46px 0 0; padding-top: 26px; border-top: 1px solid rgba(247, 228, 173, .16); }
.hero__facts dt { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; color: var(--crema); }
.hero__facts dt span { font-size: 1rem; color: var(--miel); margin-left: 2px; vertical-align: top; }
.hero__facts dd { margin: 6px 0 0; font-size: .8rem; color: rgba(247, 228, 173, .7); }

.hero__visual { position: relative; display: grid; place-items: center; padding: 0; }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--r-lg) var(--r-lg); background: var(--cacao); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__arch { width: 90%; height: 90%; border-radius: 50% 50% var(--r-lg) var(--r-lg) / 34% 34% var(--r-lg) var(--r-lg); box-shadow: 0 0 0 10px rgba(247, 228, 173, .06), 0 0 0 1px rgba(247, 228, 173, .18); }
.hero__arch img { transform: scale(1.12); transition: transform 1.2s cubic-bezier(.2, .75, .2, 1); object-position: 50% 60%; }

.steam { position: absolute; width: 110px; height: 190px; left: 50%; top: 4%; transform: translateX(-30%); pointer-events: none; z-index: 2; }
.steam path { stroke: rgba(255, 246, 225, .7); stroke-width: 5; filter: blur(4px); stroke-dasharray: 60 200; animation: steam 4.2s var(--ease-io) infinite; opacity: 0; }
.steam path:nth-child(2) { animation-delay: 1.3s; } .steam path:nth-child(3) { animation-delay: 2.6s; }
@keyframes steam {
  0% { stroke-dashoffset: 0; opacity: 0; }
  25% { opacity: .9; }
  100% { stroke-dashoffset: -220; opacity: 0; }
}

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 20px;
  background: #fbf5ea; color: var(--espresso); box-shadow: var(--shadow-lg);
}
/* globo de chat: colita abajo, del lado que mira a la taza */
.float-card::after {
  content: ""; position: absolute; bottom: 0; width: 24px; height: 26px; background: inherit;
}
.float-card--a { border-bottom-right-radius: 4px; }
.float-card--a::after { right: -20px; clip-path: path("M0 0 Q3 20 24 26 L0 26 Z"); }
.float-card--b { border-bottom-left-radius: 4px; }
.float-card--b::after { left: -20px; clip-path: path("M24 0 Q21 20 0 26 L24 26 Z"); }
.float-card small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.float-card strong { display: block; font-size: .95rem; line-height: 1.25; }
.float-card b { font-size: .85rem; color: var(--cacao); font-variant-numeric: tabular-nums; }
.float-card img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.float-card--a { left: clamp(16px, 3vw, 40px); bottom: 16%; animation: floaty 6s var(--ease-io) infinite; transition: transform .4s var(--ease-out); }
.float-card--a:hover { animation-play-state: paused; transform: translateY(-4px) scale(1.02); }
.float-card .plus { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso); color: var(--crema); font-style: normal; font-size: 1.2rem; margin-left: 6px; }
.float-card--b { right: clamp(24px, 4vw, 64px); top: 14%; animation: floaty 7s var(--ease-io) -2s infinite; }
.beans { width: 40px; height: 40px; border-radius: 12px; background: url("../assets/menu/granos.webp") center / cover; }
@keyframes floaty { 50% { translate: 0 -10px; } }

/* entrada del hero */
.hero__in { opacity: 0; translate: 0 30px; filter: blur(6px); }
.hero__title .hero__in { translate: 0 105%; filter: none; }
.is-ready .hero__in { animation: rise 1.2s var(--ease-out) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; translate: 0 0; filter: blur(0); } }
.hero__arch { clip-path: inset(100% 0 0 0); }
.is-ready .hero__arch { animation: unveil 1.5s var(--ease-io) .15s forwards; }
@keyframes unveil { to { clip-path: inset(-20px); } }
.float-card { opacity: 0; }
.is-ready .float-card--a { animation: pop-in .9s var(--ease-spring) 1.1s forwards, floaty 6s var(--ease-io) 2s infinite; }
.is-ready .float-card--b { animation: pop-in .9s var(--ease-spring) 1.3s forwards, floaty 7s var(--ease-io) 2.2s infinite; }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(28px, 4vw, 44px) 0 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); font-style: italic; color: var(--cacao); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--caramel); font-size: 1.1rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Categorías ---------- */
.cats__grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 3fr); gap: clamp(24px, 3vw, 48px); align-items: end; }
.cats__intro .h2 { margin-bottom: 14px; }
.cats__rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 3 / 4;
  background: var(--espresso); color: var(--crema); text-align: left; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; padding: 18px;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(48, 1, 1, .78) 0%, rgba(48, 1, 1, 0) 42%, rgba(48, 1, 1, .1) 60%, rgba(48, 1, 1, .7) 100%); }
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile__name { font-family: var(--f-display); font-size: clamp(1.25rem, 1rem + .7vw, 1.65rem); line-height: 1.05; letter-spacing: -.01em; }
.cat-tile__foot { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 600; }
.cat-tile__go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--crema); color: var(--espresso); transform: translateX(-6px) rotate(-45deg); opacity: .0; transition: transform .5s var(--ease-out), opacity .4s; }
.cat-tile:hover .cat-tile__go, .cat-tile:focus-visible .cat-tile__go { transform: none; opacity: 1; }
.cat-tile--wide { grid-column: span 2; aspect-ratio: auto; }

/* ---------- Tarjetas de producto ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 1; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 6px); overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), opacity .6s; }
.card__media img.is-loading { opacity: 0; }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--crema); color: var(--espresso); }
.card__badge--new { background: var(--caramel); color: var(--espresso); }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card__cat { font-size: .74rem; font-weight: 600; color: var(--muted); }
.card__name { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.15; letter-spacing: -.01em; }
.card__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__desc { font-size: .86rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.add-btn {
  position: relative; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--espresso); color: var(--crema);
  transition: transform .45s var(--ease-spring), background .3s;
}
.add-btn:hover { background: var(--cacao); transform: rotate(90deg); }
.add-btn:active { transform: scale(.88); }
.add-btn.is-added { background: var(--caramel); color: var(--espresso); }
.add-btn .qty-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--miel); color: var(--espresso); font-size: .7rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 2px var(--card); }

/* placeholder tipográfico cuando no hay foto propia */
.ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 18px; background: radial-gradient(120% 100% at 30% 0%, var(--cacao), var(--espresso)); color: var(--crema); }
.ph img { width: 30%; height: auto; opacity: .9; margin: 0 auto 12px; object-fit: contain; }
.ph span { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; line-height: 1.1; color: var(--miel); }

/* ---------- Favoritos ---------- */
.rail-ctrl { display: flex; gap: 10px; }
.favs__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 23vw, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.favs__rail::-webkit-scrollbar { display: none; }
.favs__rail > li { scroll-snap-align: start; display: flex; }
.favs__rail .card { width: 100%; }

/* ---------- Carta / filtros ---------- */
.filters {
  position: sticky; top: calc(var(--header-h) - 1px); z-index: 20;
  margin: 0 calc(var(--gutter) * -1) 28px; padding: 14px var(--gutter) 12px;
  background: rgba(251, 245, 234, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.filters.is-stuck { border-bottom-color: var(--line); }
.filters__row { display: flex; gap: 10px; margin-bottom: 12px; }
.search { position: relative; flex: 1; display: flex; align-items: center; }
.search > svg { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 52px; padding: 0 52px 0 50px; border-radius: 999px;
  border: 0; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 1rem; transition: box-shadow .3s;
}
.search input::placeholder { color: #8f6e61; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--espresso), 0 0 0 5px rgba(207, 119, 60, .18); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd { position: absolute; right: 16px; font: 600 .75rem var(--f-text); padding: 3px 8px; border-radius: 6px; background: var(--paper-2); color: var(--muted); }
.sort { position: relative; }
.sort select {
  appearance: none; height: 52px; padding: 0 44px 0 20px; border-radius: 999px; border: 0;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: .9rem; cursor: pointer;
}
.sort select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--espresso); }
.sort svg { position: absolute; right: 16px; top: 50%; translate: 0 -50%; pointer-events: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chips + .chips { margin-top: 8px; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-weight: 600; font-size: .88rem; color: var(--espresso);
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s;
}
.chip:hover { background: var(--paper-2); }
.chip sup { font-size: .72rem; font-weight: 700; color: var(--muted); top: 0; transition: color .3s; }
.chip[aria-pressed="true"] { background: var(--espresso); color: var(--crema); box-shadow: none; }
.chip[aria-pressed="true"] sup { color: var(--miel); }
.chip--tag { height: 34px; padding: 0 13px; font-size: .82rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip--tag::before { content: ""; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px currentColor; transition: background .3s; }
.chip--tag[aria-pressed="true"] { background: var(--caramel); color: var(--espresso); }
.chip--tag[aria-pressed="true"]::before { background: var(--espresso) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7e4ad' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: none; }
.chip.is-zero { opacity: .4; }
.filters__status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; min-height: 22px; font-size: .86rem; color: var(--muted); }
.filters__status strong { color: var(--espresso); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 18px; }
.grid > li { display: flex; animation: card-in .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
.grid > li > .card { width: 100%; }
@keyframes card-in { from { opacity: 0; translate: 0 18px; scale: .98; } }
.grid__group { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; padding: 18px 0 2px; animation: none !important; }
.grid__group:first-child { padding-top: 0; }
.grid__group h3 { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: -.01em; }
.grid__group span { font-size: .85rem; color: var(--muted); }
.grid__group::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }
.empty { text-align: center; padding: 64px 16px; display: grid; justify-items: center; gap: 12px; }
.empty img { width: 44px; opacity: .8; }
.empty h3 { font-family: var(--f-display); font-size: 1.6rem; }
.empty p { color: var(--muted); max-width: 420px; margin-bottom: 8px; }

/* ---------- Pasos ---------- */
.steps__panel { border-radius: var(--r-xl); background: var(--cacao); color: var(--crema); padding: clamp(36px, 5vw, 72px); position: relative; overflow: hidden; }
.steps__panel::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1.5px solid rgba(245, 194, 122, .2); box-shadow: 0 0 0 60px rgba(245, 194, 122, .04), 0 0 0 120px rgba(245, 194, 122, .03); }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps__list li { padding: 26px; border-radius: var(--r-lg); background: rgba(48, 1, 1, .35); box-shadow: inset 0 0 0 1px rgba(247, 228, 173, .12); }
.steps__n { font-family: var(--f-display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--miel); }
.steps__list h3 { font-family: var(--f-display); font-size: 1.5rem; margin: 18px 0 8px; }
.steps__list p { color: rgba(247, 228, 173, .78); font-size: .95rem; }

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.about__photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5.2; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__copy .h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); margin-bottom: 18px; }
.about__copy > p { color: var(--muted); max-width: 520px; }
.rating { display: flex; align-items: center; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.stars { color: var(--caramel); font-size: 1.35rem; letter-spacing: 2px; }
.rating p { font-size: .9rem; color: var(--muted); }
.rating strong { color: var(--espresso); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stats dt small { font-size: .55em; margin-left: 2px; }
.stats dd { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.about__side { margin: 0; position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--espresso); }
.about__side img { width: 100%; height: 100%; object-fit: cover; }
.about__side figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(251, 245, 234, .94); font-size: .85rem; font-weight: 600; }
.about__side figcaption span { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }

/* ---------- Oficio ---------- */
.craft__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.craft__card .arch--sm { aspect-ratio: 4 / 5; margin-bottom: 20px; }
.craft__card .arch--sm img { transition: transform 1.1s var(--ease-out); }
.craft__card:hover .arch--sm img { transform: scale(1.06); }
.craft__n { font-family: var(--f-display); font-style: italic; color: var(--caramel); font-size: 1.1rem; }
.craft__card h3 { font-family: var(--f-display); font-size: 1.7rem; margin: 2px 0 8px; }
.craft__card p { color: var(--muted); max-width: 360px; }

/* ---------- Origen ---------- */
.origin__panel {
  border-radius: var(--r-xl); padding: clamp(36px, 5vw, 72px); color: var(--crema);
  background: radial-gradient(90% 120% at 100% 0%, rgba(207, 119, 60, .35), transparent 60%), var(--espresso);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center;
}
.origin__copy p:not(.eyebrow) { color: rgba(247, 228, 173, .8); margin-top: 18px; max-width: 440px; }
.origin__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.origin__card { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: rgba(247, 228, 173, .06); box-shadow: inset 0 0 0 1px rgba(247, 228, 173, .16); transition: background .4s, transform .5s var(--ease-out); }
.origin__card:hover { background: rgba(247, 228, 173, .1); transform: translateY(-4px); }
.origin__card header span { display: block; font-family: var(--f-display); font-size: 2rem; line-height: 1; }
.origin__card header small { color: var(--miel); font-weight: 600; font-size: .82rem; }
.notes { display: flex; flex-wrap: wrap; gap: 6px; }
.notes li { padding: 6px 12px; border-radius: 999px; font-size: .8rem; background: rgba(245, 194, 122, .14); color: var(--crema); }
.origin__card footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.origin__card footer b { font-variant-numeric: tabular-nums; }

/* ---------- Sedes ---------- */
.sedes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sede { display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.sede__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.sede__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.sede:hover .sede__img img { transform: scale(1.05); }
.sede__body { flex: 1; padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.sede__status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); font-size: .8rem; font-weight: 600; }
.sede h3 { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; }
.sede address { font-style: normal; color: var(--muted); font-size: .92rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hours td { padding: 8px 0; border-top: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.hours tr.is-today td { color: var(--espresso); font-weight: 700; }
.hours tr.is-today td:first-child::after { content: " · hoy"; color: var(--caramel); font-weight: 600; }
.sede__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ---------- Instagram ---------- */
.ig__strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; row-gap: 40px; }
.ig__strip a { position: relative; display: block; aspect-ratio: 3 / 4.2; border-radius: var(--r); overflow: hidden; background: var(--espresso); }
.ig__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), opacity .5s; }
.ig__strip a::after { content: ""; position: absolute; inset: 0; background: rgba(48, 1, 1, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7e4ad' stroke-width='1.7'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E") center / 34px no-repeat; opacity: 0; transition: opacity .4s; }
.ig__strip a:hover::after { opacity: 1; }
.ig__strip a:hover img { transform: scale(1.06); }
.ig__strip li:nth-child(even) { translate: 0 28px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__grid .h2 { margin-bottom: 14px; }
.faq__grid .btn { margin-top: 24px; }
.faq__list details { border-top: 1px solid var(--line-strong); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq__list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary i { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background .3s, transform .5s var(--ease-out); }
.faq__list summary i::before, .faq__list summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; translate: -50% -50%; transition: rotate .5s var(--ease-out); }
.faq__list summary i::after { rotate: 90deg; }
.faq__list details[open] summary i { background: var(--espresso); color: var(--crema); box-shadow: none; }
.faq__list details[open] summary i::after { rotate: 0deg; }
.faq__list details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq__list details[open] > div { grid-template-rows: 1fr; }
.faq__list details > div > p { overflow: hidden; color: var(--muted); padding-right: 48px; }
.faq__list details[open] > div > p { padding-bottom: 22px; }

/* ---------- CTA ---------- */
.cta { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter) 0; }
.cta__panel { position: relative; overflow: hidden; text-align: center; border-radius: var(--r-xl); padding: clamp(48px, 7vw, 96px) var(--gutter); background: linear-gradient(160deg, var(--cacao), var(--espresso)); color: var(--crema); display: grid; justify-items: center; gap: 16px; }
.cta__mark { width: 64px; margin-bottom: 8px; animation: sway 6s var(--ease-io) infinite; }
@keyframes sway { 50% { rotate: -4deg; translate: 0 -4px; } }
.cta__panel p { color: rgba(247, 228, 173, .8); max-width: 480px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--max); margin: auto; padding: 56px var(--gutter) 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr 1.1fr; gap: 32px; }
.footer__brand img { width: 120px; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: .9rem; max-width: 260px; }
.footer__col h3 { font-family: var(--f-display); font-size: 1.15rem; margin-bottom: 12px; }
.footer__col p { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.footer__col a { display: block; color: var(--muted); font-size: .92rem; padding: 3px 0; transition: color .3s; }
.footer__col a:hover { color: var(--espresso); }
.footer__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--cacao); color: var(--crema); transition: transform .4s var(--ease-spring), background .3s; }
.footer__social a.is-dark { background: var(--espresso); }
.footer__social a:hover { transform: translateY(-3px); background: var(--caramel); color: var(--espresso); }
.footer__social svg { width: 22px; height: 22px; }
.wa .fill { fill: currentColor; }
.footer__legal { max-width: var(--max); margin: auto; padding: 18px var(--gutter) 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }

/* ---------- Dock móvil ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
  display: none; align-items: center; gap: 12px; height: 60px; padding: 0 20px 0 10px; border-radius: 999px;
  background: var(--espresso); color: var(--crema); font-weight: 600; box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .6s var(--ease-out);
}
.dock.is-visible { transform: none; }
.dock b { margin-left: auto; font-variant-numeric: tabular-nums; }
.dock__count { min-width: 40px; height: 40px; border-radius: 999px; background: var(--miel); color: var(--espresso); display: grid; place-items: center; }

/* ---------- Diálogos ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(31, 0, 0, .5); backdrop-filter: blur(4px); }
dialog[open]::backdrop { animation: fade .4s var(--ease-out); }
dialog.is-closing::backdrop { animation: fade-out .3s var(--ease-out) forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
html.is-locked { overflow: hidden; }

/* Ficha de producto */
.sheet { width: min(940px, calc(100% - 32px)); margin: auto; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow-lg); overflow: hidden; }
.sheet[open] { animation: sheet-in .6s var(--ease-out); }
.sheet.is-closing { animation: sheet-out .3s var(--ease-io) forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(24px) scale(.97); } }
.sheet__close-form { position: absolute; right: 14px; top: 14px; z-index: 3; }
.sheet__close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 245, 234, .92); box-shadow: var(--shadow); transition: transform .4s var(--ease-out); }
.sheet__close:hover { transform: rotate(90deg); }
.pd { display: grid; grid-template-columns: 1fr 1fr; max-height: min(88svh, 720px); }
.pd__media { position: relative; background: var(--paper-2); min-height: 100%; }
.pd__media img, .pd__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd__body { display: flex; flex-direction: column; overflow-y: auto; }
.pd__scroll { padding: 32px 32px 20px; display: flex; flex-direction: column; gap: 6px; }
.pd__cat { font-size: .8rem; font-weight: 600; color: var(--muted); }
.pd__title { font-family: var(--f-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.02; letter-spacing: -.02em; padding-right: 40px; }
.pd__price { font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.pd__desc { color: var(--muted); }
.opt { border: 0; margin: 18px 0 0; padding: 0; }
.opt legend { font-weight: 700; font-size: .92rem; margin-bottom: 10px; padding: 0; }
.opt legend small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.opt__vals { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__vals label { position: relative; }
.opt__vals input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt__vals span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: .88rem; font-weight: 600; transition: background .3s, color .3s, box-shadow .3s; }
.opt__vals input:checked + span { background: var(--espresso); color: var(--crema); box-shadow: none; }
.opt__vals input:focus-visible + span { outline: 2.5px solid var(--caramel); outline-offset: 2px; }
.opt__note { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field > span { font-weight: 700; font-size: .92rem; }
.field > span small { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-radius: 14px; padding: 13px 16px; background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 1rem; resize: vertical; min-height: 50px;
  transition: box-shadow .3s;
}
.field textarea { min-height: 76px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--espresso), 0 0 0 5px rgba(207, 119, 60, .16); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 2px #b3261e; }
.field__err { font-size: .8rem; color: #9b1c14; font-weight: 600; }
.pd__bar { position: sticky; bottom: 0; margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 16px 32px 24px; background: linear-gradient(180deg, rgba(251, 245, 234, 0), var(--paper) 30%); }
.pd__bar .btn { flex: 1; justify-content: space-between; }
.stepper { display: inline-flex; align-items: center; height: 50px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.stepper button { width: 46px; height: 50px; display: grid; place-items: center; border-radius: 999px; transition: background .3s; }
.stepper button:hover { background: var(--paper-2); }
.stepper button[disabled] { opacity: .3; pointer-events: none; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper--sm { height: 38px; }
.stepper--sm button { width: 36px; height: 38px; }
.stepper--sm svg { width: 16px; height: 16px; }

/* Drawer del pedido */
.drawer { position: fixed; inset: 0 0 0 auto; height: 100%; width: min(480px, 100%); margin: 0 0 0 auto; background: var(--paper); box-shadow: var(--shadow-lg); }
.drawer[open] { animation: drawer-in .6s var(--ease-out); }
.drawer.is-closing { animation: drawer-out .35s var(--ease-io) forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.drawer__inner { height: 100%; display: flex; flex-direction: column; }
.dr__head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.dr__head h2 { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: -.01em; }
.dr__head .sheet__close { margin-left: auto; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; }
.dr__back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.dr__progress { display: flex; gap: 6px; padding: 14px 22px 0; }
.dr__progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.dr__progress span::after { content: ""; position: absolute; inset: 0; background: var(--caramel); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.dr__progress span.is-done::after { transform: scaleX(1); }
.dr__labels { display: flex; justify-content: space-between; padding: 8px 22px 0; font-size: .74rem; font-weight: 600; color: var(--muted); }
.dr__labels .is-current { color: var(--espresso); }
.dr__body { flex: 1; overflow-y: auto; padding: 18px 22px; overscroll-behavior: contain; }
.dr__body > * { animation: step-in .55s var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; translate: 24px 0; } }
.dr__body.is-back > * { animation-name: step-back; }
@keyframes step-back { from { opacity: 0; translate: -24px 0; } }
.dr__foot { padding: 16px 22px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 12px; }
.dr__total { display: flex; justify-content: space-between; align-items: baseline; }
.dr__total span { color: var(--muted); font-size: .9rem; }
.dr__total b { font-family: var(--f-display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.dr__hint { font-size: .78rem; color: var(--muted); text-align: center; }

.bl { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.bl:first-child { padding-top: 0; }
.bl__img { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.bl__img img, .bl__img .ph { width: 100%; height: 100%; object-fit: cover; }
.bl__img .ph { padding: 8px; }
.bl__img .ph img { width: 40%; margin: 0; }
.bl__img .ph span { display: none; }
.bl h4 { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.bl__opts { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.bl__ctrl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.bl__rm { font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bl__rm:hover { color: var(--espresso); }
.bl__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl.is-leaving { animation: leave .35s var(--ease-io) forwards; }
@keyframes leave { to { opacity: 0; translate: 40px 0; } }

.dr__empty { text-align: center; padding: 48px 12px; display: grid; justify-items: center; gap: 12px; }
.dr__empty img { width: 52px; }
.dr__empty h3 { font-family: var(--f-display); font-size: 1.6rem; }
.dr__empty p { color: var(--muted); max-width: 300px; }
.dr__suggest { margin-top: 22px; }
.dr__suggest h3 { font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); margin-bottom: 8px; }
.mini img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.mini div { flex: 1; font-size: .88rem; }
.mini b { display: block; font-weight: 700; }
.mini small { color: var(--muted); font-variant-numeric: tabular-nums; }
.mini .add-btn { width: 38px; height: 38px; }

.choice { display: grid; gap: 10px; }
.choice label { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .3s, background .3s; }
.choice label:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.choice input { position: absolute; opacity: 0; }
.choice label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--espresso); background: #fff7e8; }
.choice label:has(input:focus-visible) { outline: 2.5px solid var(--caramel); outline-offset: 2px; }
.choice__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); color: var(--cacao); flex: none; }
.choice__ico svg { width: 22px; height: 22px; }
.choice__txt { flex: 1; }
.choice__txt b { display: block; font-size: .96rem; }
.choice__txt small { color: var(--muted); font-size: .82rem; }
.choice__radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); flex: none; transition: box-shadow .3s var(--ease-out); }
.choice label:has(input:checked) .choice__radio { box-shadow: inset 0 0 0 7px var(--espresso); }
.choice__tag { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); }
.choice__tag.is-open { background: #e3f3e2; color: #1d5b26; }
.choice__tag.is-closed { background: #f6e3d7; color: #7a3410; }
.step-title { font-family: var(--f-display); font-size: 1.35rem; margin: 6px 0 12px; }
.step-title:not(:first-child) { margin-top: 26px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; height: 48px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .3s; }
.seg input:checked + span { background: var(--espresso); color: var(--crema); box-shadow: none; }
.seg input:focus-visible + span { outline: 2.5px solid var(--caramel); outline-offset: 2px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.slots label { position: relative; }
.slots input { position: absolute; opacity: 0; inset: 0; }
.slots span { display: grid; place-items: center; height: 42px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: all .3s; }
.slots input:checked + span { background: var(--espresso); color: var(--crema); box-shadow: none; }
.slots input:focus-visible + span { outline: 2.5px solid var(--caramel); outline-offset: 2px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); font-size: .84rem; color: var(--muted); margin-top: 14px; }
.note svg { color: var(--cacao); width: 18px; height: 18px; margin-top: 1px; }

.summary { border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); padding: 16px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .88rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary ul { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); display: grid; gap: 6px; font-size: .88rem; }
.summary li { display: flex; justify-content: space-between; gap: 12px; }
.summary li small { display: block; color: var(--muted); }
.wa-preview { margin-top: 16px; border-radius: 18px; padding: 14px; background: #e9dfcc; }
.wa-preview p { font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.wa-bubble { position: relative; margin-left: auto; max-width: 92%; padding: 10px 12px; border-radius: 14px 4px 14px 14px; background: #fffaf1; font-size: .8rem; white-space: pre-wrap; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); max-height: 220px; overflow: auto; }

.done { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 32px 8px; }
.done__check { width: 92px; height: 92px; border-radius: 50%; background: var(--espresso); display: grid; place-items: center; animation: pop-in .7s var(--ease-spring); }
.done__check svg { width: 44px; height: 44px; color: var(--miel); stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease-out) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font-family: var(--f-display); font-size: 1.9rem; }
.done p { color: var(--muted); max-width: 320px; }
.done code { font: 700 1rem var(--f-text); letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); }

/* Buscador rápido */
.qs { width: min(640px, calc(100% - 24px)); margin: 10vh auto auto; }
.qs[open] { animation: sheet-in .45s var(--ease-out); }
.qs__box { background: var(--paper); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 12px; }
.search--lg input { height: 60px; font-size: 1.1rem; }
.qs__list { max-height: 56vh; overflow-y: auto; margin-top: 8px; }
.qs__list li button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; text-align: left; transition: background .2s; }
.qs__list li button:hover, .qs__list li button.is-active { background: var(--paper-2); }
.qs__list img, .qs__list .ph { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.qs__list .ph { padding: 6px; } .qs__list .ph span { display: none; } .qs__list .ph img { width: 60%; height: auto; margin: 0; }
.qs__list b { display: block; font-size: .95rem; }
.qs__list small { color: var(--muted); }
.qs__list .price { margin-left: auto; font-size: .9rem; }
.qs__empty { padding: 18px; color: var(--muted); text-align: center; }
.qs__list mark { background: var(--miel); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--espresso); color: var(--crema); font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 160%); transition: transform .55s var(--ease-out); max-width: calc(100% - 24px);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast button { padding: 8px 14px; border-radius: 999px; background: var(--miel); color: var(--espresso); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.toast:empty { display: none; }

/* Imagen que vuela al pedido */
.flyer { position: fixed; z-index: 70; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: var(--shadow-lg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; animation: reveal-in 1.1s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0s) backwards; }
@keyframes reveal-in { from { opacity: 0; translate: 0 44px; filter: blur(6px); } }
.no-js .reveal, .no-js .hero__in, .no-js .float-card { opacity: 1; translate: none; filter: none; }
.no-js .hero__arch { clip-path: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .mobile-nav {
    display: grid; position: fixed; inset: var(--header-h) 0 0; z-index: 39; background: var(--paper);
    padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); grid-template-rows: 1fr auto;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility 0s .7s;
  }
  .mobile-nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-io); }
  .mobile-nav nav { display: flex; flex-direction: column; }
  .mobile-nav nav a { font-family: var(--f-display); font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.1; padding: 8px 0; border-bottom: 1px solid var(--line); opacity: 0; translate: 0 20px; transition: opacity .5s, translate .6s var(--ease-out); }
  .mobile-nav.is-open nav a { opacity: 1; translate: 0 0; }
  .mobile-nav.is-open nav a:nth-child(2) { transition-delay: .06s; } .mobile-nav.is-open nav a:nth-child(3) { transition-delay: .12s; }
  .mobile-nav.is-open nav a:nth-child(4) { transition-delay: .18s; } .mobile-nav.is-open nav a:nth-child(5) { transition-delay: .24s; }
  .mobile-nav__foot { display: grid; gap: 14px; }
  .mobile-nav__foot p { color: var(--muted); font-size: .9rem; }
  .about__grid { grid-template-columns: 1fr 1.2fr; }
  .about__side { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__cta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer__cta .btn { width: auto; }
}
@media (max-width: 960px) {
  .topbar__mid { display: none; }
  .hero__panel { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding-bottom: 12px; }
  .hero__copy { padding-left: var(--edge); padding-right: var(--edge); }
  .hero__visual { padding: 12px 0 0; }
  .hero__arch { width: 90%; height: auto; aspect-ratio: 4 / 4.4; }
  .cats__grid { grid-template-columns: 1fr; }
  .cats__rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(168px, 42vw); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .cats__rail > * { scroll-snap-align: start; }
  .cat-tile--wide { grid-column: auto; }
  .origin__panel { grid-template-columns: 1fr; }
  .sedes__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .ig__strip { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .ig__strip li:nth-child(even) { translate: none; }
  .pd { grid-template-columns: 1fr; max-height: none; }
  .pd__media { aspect-ratio: 16 / 11; min-height: 0; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .topbar__inner { justify-content: center; }
  .topbar__social { display: none; }
  .brand__word { width: 132px; }
  .brand__mark { width: 26px; }
  .bag-btn { padding: 0 6px 0 14px; height: 44px; }
  .bag-btn__label { display: none; }
  .bag-btn svg { display: block; }
  .icon-btn { width: 42px; height: 42px; }
  .hero { padding-top: 0; }
  .hero__facts dt { font-size: 1.5rem; }
  .float-card--b { display: none; }
  .float-card--a { left: 8px; bottom: 9%; }
  .steps__list { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 4 / 3; }
  .craft__grid { grid-template-columns: 1fr; gap: 36px; }
  .craft__card .arch--sm { aspect-ratio: 4 / 3.2; }
  .origin__cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px 12px 12px; }
  .card__name { font-size: 1.02rem; }
  .card__desc { display: none; }
  .filters__row { flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .topbar__status { font-size: .74rem; text-align: center; justify-content: center; }
  .sort { flex: 1; }
  .sort select { width: 100%; height: 44px; font-size: 1rem; }
  /* barra de filtros: al pegarse solo quedan las categorías y el conteo */
  .filters { display: flex; flex-direction: column; top: calc(var(--header-h) - 1px - var(--filters-hide, 0px)); padding-top: 10px; padding-bottom: 8px; margin-bottom: 18px; }
  .filters__row { order: 1; margin-bottom: 10px; }
  .chips--tags { order: 2; }
  [data-cat-chips] { order: 3; }
  .filters .chips { margin-top: 0; padding-right: 40px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .chips--tags { margin-bottom: 10px; }
  .filters__status { order: 4; margin-top: 8px; min-height: 0; font-size: .8rem; }
  .chip { height: 42px; }
  .chip--tag { height: 40px; }
  .add-btn { width: 44px; height: 44px; }
  .search input { height: 48px; }
  .search kbd { display: none; }
  .dock { display: flex; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__cta { flex-direction: column; align-items: stretch; }
  .footer__cta .btn { width: 100%; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .sheet { width: 100%; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 94svh; overflow: hidden; }
  /* ficha de producto: la barra de cantidad y "Agregar" siempre a la vista */
  .pd { display: flex; flex-direction: column; max-height: 94svh; }
  .pd__media { flex: none; aspect-ratio: auto; height: min(30svh, 260px); }
  .pd__body { flex: 1; min-height: 0; }
  .sheet[open] { animation-name: sheet-up; }
  .sheet.is-closing { animation: sheet-down .3s var(--ease-io) forwards; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  @keyframes sheet-down { to { transform: translateY(100%); } }
  .pd__scroll { padding: 22px 20px 12px; }
  .pd__bar { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .hide-sm { display: none; }
  .pd__bar .btn { padding: 0 18px; }
}
@media (max-width: 400px) {
  .dr__head h2 { font-size: 1.35rem; }
  .hero__facts { gap: 16px; }
  .hero__facts dd { font-size: .72rem; }
}
@media (max-width: 360px) {
  .header__inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand__word { width: 100px; }
  .header__actions { gap: 4px; }
  .pd__bar { gap: 8px; }
  .pd__bar .stepper button { width: 38px; }
  .pd__bar .btn { padding: 0 14px; gap: 8px; }
}
@media (max-width: 340px) {
  .header [data-open-search] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__in, .float-card { opacity: 1 !important; translate: none !important; filter: none !important; }
  .hero__arch { clip-path: none !important; }
  .steam, .marquee__track { animation: none !important; }
  .steam { display: none; }
}

/* ==========================================================================
   Plan Business — páginas internas (carta, café, nosotros, sedes)
   ========================================================================== */

/* Cabecera de página: mismo panel espresso del hero, más bajo, con foto en arco */
.phero { padding: 0; --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.phero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% 30%, rgba(207, 119, 60, .26), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(88, 38, 25, .9), transparent 60%),
    linear-gradient(160deg, #3d0805 0%, var(--espresso) 55%, #1f0000 100%);
  color: var(--crema);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end;
  min-height: clamp(380px, 56svh, 540px);
}
.phero__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.phero__copy { align-self: center; padding: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 56px) clamp(40px, 6vw, 88px) calc(var(--edge) + clamp(0px, 3vw, 48px)); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.phero__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); line-height: .98; letter-spacing: -.035em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.phero .hero__ctas { margin-top: 10px; }
.phero__media { margin: 48px calc(var(--edge) * .6) 0 0; justify-self: end; width: min(100%, 400px); aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 50% 50% 0 0 / 30% 30% 0 0; box-shadow: 0 0 0 10px rgba(247, 228, 173, .06), 0 0 0 1px rgba(247, 228, 173, .18); }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; gap: 8px; font-size: .82rem; color: rgba(247, 228, 173, .7); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(247, 228, 173, .35); }
.crumbs a:hover { color: var(--crema); }
.crumbs [aria-current] { color: var(--miel); font-weight: 600; }

/* Café: fichas de origen */
.odetail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.odetail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-radius: var(--r-xl); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.odetail__img { background: var(--paper-2); }
.odetail__img img { width: 100%; height: 100%; object-fit: cover; }
.odetail__body { padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.odetail__zone { font-size: .82rem; font-weight: 600; color: var(--caramel); }
.odetail h3 { font-family: var(--f-display); font-size: clamp(2rem, 1.6rem + 1.2vw, 2.7rem); line-height: 1; letter-spacing: -.02em; }
.odetail__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0; padding: 12px 0; border-block: 1px solid var(--line); }
.odetail__facts dt { font-size: .75rem; color: var(--muted); font-weight: 600; }
.odetail__facts dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; }
.notes--dark li { background: var(--paper-2); color: var(--espresso); }
.odetail .muted { font-size: .92rem; }
.odetail__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.odetail__foot b { font-family: var(--f-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }

/* Café: tostado */
.roast__panel { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: center; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 56px); color: var(--crema); background: radial-gradient(90% 120% at 100% 0%, rgba(207, 119, 60, .3), transparent 60%), var(--cacao); }
.roast__img { margin: 0; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.roast__img img { width: 100%; height: 100%; object-fit: cover; }
.roast__copy > p:not(.eyebrow) { color: rgba(247, 228, 173, .82); max-width: 520px; margin-top: 16px; }
.roast__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.roast__list li { padding: 14px 16px; border-radius: 16px; background: rgba(48, 1, 1, .3); box-shadow: inset 0 0 0 1px rgba(247, 228, 173, .14); }
.roast__list b { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; color: var(--miel); }
.roast__list span { font-size: .86rem; color: rgba(247, 228, 173, .8); }
.roast__copy .roast__next { display: inline-flex; margin-top: 22px; padding: 8px 14px; border-radius: 999px; background: rgba(245, 194, 122, .14); color: var(--crema); font-size: .86rem; font-weight: 600; }

/* Café: guía de molienda */
.grind__list { display: grid; gap: 0; }
.grind__list li { display: flex; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line-strong); }
.grind__list li:last-child { border-bottom: 1px solid var(--line-strong); }
.grind__list h3 { font-family: var(--f-display); font-size: 1.35rem; }
.grind__list p { color: var(--muted); font-size: .92rem; }
.grind__list p b { color: var(--espresso); }
.grind__dots { display: grid; grid-template-columns: repeat(5, 10px); gap: 5px; flex: none; }
.grind__dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--cacao); }
.grind__dots i:nth-child(-n + 5) { background: transparent; }
.grind__dots[style*="--n:1"] i:nth-child(-n + 1),
.grind__dots[style*="--n:2"] i:nth-child(-n + 2),
.grind__dots[style*="--n:4"] i:nth-child(-n + 4) { background: var(--cacao); }

/* Nosotros: línea de tiempo */
.tl__list { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: tl; }
.tl__list::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1.5px; background: linear-gradient(90deg, var(--caramel), var(--line-strong)); }
.tl__list li { position: relative; padding-top: 44px; }
.tl__list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 4px var(--caramel); }
.tl__list li:last-child::before { box-shadow: inset 0 0 0 1.5px var(--caramel); }
.tl__year { font-family: var(--f-display); font-style: italic; color: var(--caramel); font-size: 1.15rem; }
.tl__list h3 { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.1; margin: 4px 0 8px; }
.tl__list p { color: var(--muted); font-size: .92rem; }

/* Nosotros / Sedes: tarjetas de valor y formas de pedir */
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value, .way { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.value h3, .way h3 { font-family: var(--f-display); font-size: 1.5rem; }
.value p, .way p { color: var(--muted); font-size: .94rem; }
.value__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--espresso); color: var(--miel); margin-bottom: 6px; }
.value__ico svg { width: 24px; height: 24px; }
.way .btn { margin-top: auto; }

/* Sedes: mapa */
.sede__map { display: block; width: 100%; height: 240px; border: 0; filter: saturate(.85) sepia(.12); border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
  .tl__list { grid-template-columns: 1fr; gap: 0; }
  .tl__list::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; background: linear-gradient(180deg, var(--caramel), var(--line-strong)); }
  .tl__list li { padding: 0 0 28px 40px; }
  .tl__list li::before { top: 4px; }
  .odetail__grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .phero__panel { grid-template-columns: 1fr; min-height: 0; }
  .phero__copy { padding: 40px var(--edge) 8px; }
  .phero__media { justify-self: center; margin: 24px auto 0; width: min(78%, 340px); aspect-ratio: 4 / 3.4; }
  .roast__panel { grid-template-columns: 1fr; }
  .roast__img { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
  .values__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .odetail { grid-template-columns: 1fr; }
  .odetail__img { aspect-ratio: 16 / 9; }
  .roast__list { grid-template-columns: 1fr; }
  .phero__media { aspect-ratio: 16 / 11; width: 100%; border-radius: 40% 40% 0 0 / 30% 30% 0 0; }
}
