/* Las Medialunas del Abuelo · Lomas — forma: DESIGN.md "Mercury" (lienzo oscuro, tarjetas grafito planas,
   píldoras, títulos anchos a 480). Color: el dorado y el marrón del logo en lugar del cobalto. */
:root {
  --canvas: #16110d;
  --card: #201914;
  --obsidian: #2b221b;
  --slate: #786a5e;
  --mist: #ece2d4;
  --ash: #c9bcad;
  --ivory: #f2ebe1;
  --acc: #d68d02;      /* dorado de la insignia */
  --acc-hi: #e8a21c;
  --acc-ink: #1b1207;
  --brown: #794730;    /* marrón del logo */
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 12px;
  --r-pill: 40px;
  --max: 1200px;
  --gap: 12px;
  --sec: clamp(72px, 11vw, 128px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ivory);
  font: 400 16px/1.5 var(--body); letter-spacing: .002em;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Tipografía */
.h-xl, .h-lg, .h-sm, .hero-title {
  font-family: var(--display); font-weight: 480; font-stretch: 118%;
  margin: 0; text-wrap: balance;
}
.h-xl { font-size: clamp(44px, 9vw, 112px); line-height: 1.02; letter-spacing: .005em; }
.h-lg { font-size: clamp(30px, 4.6vw, 49px); line-height: 1.12; letter-spacing: .01em; }
.h-sm { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; letter-spacing: .015em; }
.label {
  margin: 0 0 14px; font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 480; color: var(--acc-hi);
}
p { margin: 0; }

/* Botones (píldoras) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  font: 480 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--acc); color: var(--acc-ink); }
.btn-primary:hover { background: var(--acc-hi); }
.btn-ghost { border-color: var(--mist); color: var(--ivory); background: transparent; }
.btn-ghost:hover { background: rgba(242, 235, 225, .08); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: fixed; inset: 12px 12px auto; z-index: 50; height: 60px;
  display: flex; align-items: center; gap: 16px; padding: 0 8px 0 10px;
  border-radius: var(--r-pill); transition: background-color .35s, backdrop-filter .35s;
}
.nav.is-solid { background: rgba(22, 17, 13, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 480; font-size: 15px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand em { font-style: normal; color: var(--ash); }
.nav-links { display: none; margin-inline: auto; gap: 4px; }
.nav-links a { padding: 10px 18px; border-radius: var(--r-pill); text-decoration: none; transition: background-color .2s; }
.nav-links a:hover { background: rgba(242, 235, 225, .08); }
.nav-cta { display: none; }
.burger { margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 50%; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.burger span { width: 22px; height: 1.5px; background: var(--ivory); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--canvas);
  display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 96px 24px 40px;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font: 480 32px/1.25 var(--display); font-stretch: 115%; text-decoration: none; padding: 6px 0; }
@media (min-width: 900px) {
  .nav { inset: 16px 24px auto; padding: 0 8px 0 12px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; transform-origin: 50% 40%; }
.hero-vid { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(22,17,13,.55) 0%, rgba(22,17,13,.15) 30%, rgba(22,17,13,.35) 55%, rgba(22,17,13,.92) 100%); }
.hero-in { position: relative; width: min(var(--max), 100% - 32px); margin: 0 auto; padding-bottom: clamp(72px, 12vh, 120px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mist); margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); }
.dot.on { background: #6fcf7f; box-shadow: 0 0 0 4px rgba(111, 207, 127, .18); }
.hero-title { font-size: clamp(42px, 8.2vw, 96px); line-height: 1.04; max-width: 13ch; color: #fff; }
.hero-title .w { display: inline-block; }
.hero-title .acc { color: var(--acc-hi); }
.hero-sub { margin-top: 20px; max-width: 520px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.45; color: var(--mist); font-weight: 420; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-scroll { position: absolute; right: 24px; bottom: 32px; width: 28px; height: 46px; border: 1px solid rgba(236,226,212,.6); border-radius: 20px; display: none; }
.hero-scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ivory); animation: rueda 1.8s var(--ease) infinite; }
@keyframes rueda { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }
@media (min-width: 900px) { .hero-scroll { display: block; } }

/* Cinta */
.cinta { overflow: hidden; border-block: 1px solid rgba(120,106,94,.35); background: var(--card); }
.cinta-track { will-change: transform; display: flex; align-items: center; gap: 28px; width: max-content; padding: 18px 0; animation: cinta 38s linear infinite; }
.cinta span { font: 480 clamp(20px, 2.6vw, 30px)/1 var(--display); font-stretch: 120%; white-space: nowrap; color: var(--mist); }
.cinta i { width: 22px; height: 14px; flex: none; background: var(--acc); -webkit-mask: radial-gradient(circle at 50% 120%, transparent 52%, #000 53%); mask: radial-gradient(circle at 50% 120%, transparent 52%, #000 53%); border-radius: 22px 22px 4px 4px; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* Secciones */
.sec { padding-block: var(--sec); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 40px; }
.sec-sub { max-width: 440px; color: var(--ash); }
.card { background: var(--card); border-radius: var(--r-card); padding: 32px; }

/* Historia */
.historia-grid { display: grid; gap: 48px; align-items: center; }
.lectura { margin-top: 24px; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--ivory); max-width: 34em; }
.lectura .wd { opacity: .22; transition: opacity .2s; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 40px; }
.stat { background: var(--card); border-radius: var(--r-card); padding: 20px 16px; min-width: 0; }
.stat b { display: flex; align-items: baseline; gap: 2px; font: 480 clamp(28px, 4vw, 42px)/1 var(--display); font-stretch: 115%; color: var(--ivory); }
.stat small { font-size: .55em; color: var(--acc-hi); }
.stat > span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.3; color: var(--ash); }
.historia-fig { position: relative; margin: 0; }
.historia-fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-card); }
.historia-fig figcaption { margin-top: 12px; font-size: 14px; color: var(--ash); }
.croissant { position: absolute; z-index: 2; width: 46%; left: -6%; top: -9%; fill: none; stroke: var(--acc-hi); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
@media (min-width: 900px) {
  .historia-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; }
}

/* Así se hacen */
.hacen { background: var(--card); }
.hacen-grid { display: grid; gap: 40px; }
.pasos { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 8px; }
.paso { display: flex; gap: 20px; padding: 20px; border-radius: var(--r-card); background: var(--canvas); opacity: .5; transition: opacity .4s, background-color .4s; }
.paso.is-on { opacity: 1; background: var(--obsidian); }
.paso-n { font: 480 14px/1.6 var(--display); color: var(--acc-hi); }
.paso h3 { margin: 0 0 4px; font: 480 21px/1.25 var(--display); font-stretch: 112%; }
.paso p { color: var(--ash); }
.hacen-stack { position: relative; aspect-ratio: 4/5; border-radius: var(--r-card); overflow: hidden; background: var(--canvas); }
.hv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.hv.is-on { opacity: 1; }
.hacen-bar { height: 3px; margin-top: 12px; background: var(--obsidian); border-radius: 3px; overflow: hidden; }
.hacen-bar i { display: block; height: 100%; width: 100%; background: var(--acc); transform: scaleX(.33); transform-origin: left; }
@media (min-width: 900px) {
  .hacen-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; min-height: 100vh; }
  .hacen-media { max-width: min(420px, 62vh); justify-self: end; width: 100%; margin-top: 60px; }
}
@media (max-width: 899px) {
  .paso { opacity: 1; background: var(--obsidian); }
  .hacen-stack { max-width: 460px; }
}

/* Carta */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 28px; padding: 0 16px 4px; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid rgba(236,226,212,.35); background: transparent; cursor: pointer; scroll-snap-align: start;
  font-weight: 420; transition: background-color .25s, color .25s, border-color .25s;
}
.tab[aria-selected="true"] { background: var(--ivory); color: var(--canvas); border-color: var(--ivory); }
.grid-carta { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: var(--gap); }
.item { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-card); overflow: hidden; min-width: 0; }
.item-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--obsidian); }
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.item:hover .item-img img { transform: scale(1.04); }
.item-tag { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(22,17,13,.78); font-size: 12px; font-weight: 480; }
.item-body { display: flex; flex-direction: column; gap: 6px; padding: 20px; flex: 1; }
.item h3 { margin: 0; font: 480 18px/1.25 var(--display); font-stretch: 108%; }
.item p { color: var(--ash); font-size: 14px; line-height: 1.4; }
.ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.op { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid rgba(236,226,212,.3); background: transparent; font-size: 13px; cursor: pointer; }
.op[aria-pressed="true"] { border-color: var(--acc); color: var(--acc-hi); }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.precio { font: 480 20px/1 var(--display); font-stretch: 110%; }
.precio sup { color: var(--acc-hi); font-size: 14px; }
.step { display: flex; align-items: center; gap: 4px; background: var(--obsidian); border-radius: var(--r-pill); padding: 2px; }
.step button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.step button:hover { background: rgba(242,235,225,.08); }
.step .add { background: var(--acc); color: var(--acc-ink); }
.step .add:hover { background: var(--acc-hi); }
.step output { min-width: 22px; text-align: center; font-weight: 480; }
.step[data-q="0"] .menos, .step[data-q="0"] output { display: none; }
.nota { margin-top: 24px; font-size: 13px; color: var(--ash); }

/* Combos */
.combos { padding-top: 0; }
.combos-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.combo { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--card); border-radius: var(--r-card); padding: 14px; }
.combo img { width: 112px; height: 112px; object-fit: cover; border-radius: 8px; }
.combo h3 { margin: 0 0 4px; font: 480 18px/1.25 var(--display); font-stretch: 108%; }
.combo p { color: var(--ash); font-size: 14px; line-height: 1.4; }
.combo .item-foot { padding-top: 10px; }
.vaso { margin-top: var(--gap); display: grid; gap: 24px; align-items: center; background: var(--brown); border-radius: var(--r-card); padding: 16px; }
.vaso img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; }
.vaso .label { color: #ffd38a; }
.vaso p:last-child { margin-top: 10px; color: #f1dcc9; }
@media (min-width: 760px) { .vaso { grid-template-columns: 260px 1fr; padding: 16px 40px 16px 16px; } .vaso img { aspect-ratio: 1; } }

/* Galería */
.galeria { overflow: hidden; padding-block: 0 var(--sec); }
.gal-track { display: flex; gap: var(--gap); padding-inline: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-intro { flex: none; width: min(78vw, 340px); align-self: center; padding-right: 12px; }
.gal-track figure { flex: none; margin: 0; width: min(72vw, 380px); scroll-snap-align: center; }
.gal-track img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-card); }
@media (min-width: 900px) {
  .gal-track { overflow: visible; width: max-content; padding-inline: max(24px, (100vw - var(--max)) / 2); }
  .gal-track figure { width: 360px; }
  .gal-track figure:nth-child(odd) { transform: translateY(40px); }
  .galeria { height: 100vh; display: flex; align-items: center; padding: 0; background: var(--canvas); }
}

/* Reels */
.reels { padding-top: 0; }
.reels-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 280px); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
.reels-row::-webkit-scrollbar { display: none; }
.phone { margin: 0; scroll-snap-align: center; }
.phone video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 28px; border: 6px solid var(--obsidian); background: var(--card); }
.phone figcaption { margin-top: 12px; font-size: 14px; color: var(--ash); }
@media (min-width: 900px) { .reels-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 290px)); justify-content: center; gap: 32px; overflow: visible; margin: 0; padding: 0 0 48px; } .phone:nth-child(2) { transform: translateY(48px); } }

/* Local */
.local-grid { display: grid; gap: var(--gap); }
.horarios { width: 100%; border-collapse: collapse; margin-top: 28px; }
.horarios th, .horarios td { padding: 14px 0; border-bottom: 1px solid rgba(120,106,94,.4); text-align: left; font-weight: 400; }
.horarios td { text-align: right; font-weight: 480; white-space: nowrap; padding-left: 12px; }
.horarios tr.hoy th::after { content: "Hoy"; margin-left: 8px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--acc); color: var(--acc-ink); font-size: 11px; font-weight: 480; }
.local-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.local-list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.local-list span { color: var(--ash); }
.local-list a, .local-list b { font-weight: 480; }
.local-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mapa { position: relative; min-height: 340px; border-radius: var(--r-card); overflow: hidden; background: var(--card); }
.mapa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.mapa button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(22,17,13,.7); }
@media (min-width: 900px) { .local-grid { grid-template-columns: 1fr 1.1fr; } .local-info { padding: 48px; } }

/* FAQ */
.faq { padding-top: 0; }
.faq-grid { display: grid; gap: 32px; }
.faq-list { display: grid; gap: 8px; }
details { background: var(--card); border-radius: var(--r-card); }
summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 24px; position: relative; font-weight: 480; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--acc-hi); transition: transform .3s var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 24px 22px; color: var(--ash); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }

/* Cierre */
.cierre { position: relative; min-height: 80svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.cierre > img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; opacity: .38; }
.cierre::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(22,17,13,.2), var(--canvas) 78%); }
.cierre-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 32px; padding: 72px 16px; }

/* Footer */
.foot { border-top: 1px solid rgba(120,106,94,.35); padding: 40px 0 120px; }
.foot-in { display: grid; gap: 14px; font-size: 14px; color: var(--ash); }
.foot .brand { color: var(--ivory); }
.foot-small { font-size: 12px; letter-spacing: .01em; }

/* Barra del pedido */
.cartbar {
  position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 10px 0 10px; border: 0; border-radius: var(--r-pill);
  background: var(--acc); color: var(--acc-ink); font-weight: 480; cursor: pointer;
  width: min(420px, calc(100% - 32px)); justify-content: space-between;
  transition: transform .4s var(--ease), opacity .3s;
}
.cartbar[hidden] { display: none; }
.cartbar.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.04); } }
.cartbar-n { min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-pill); background: var(--acc-ink); color: var(--acc-hi); display: grid; place-items: center; }
.cartbar b { padding-right: 12px; font-size: 17px; }

/* Hoja del pedido */
.sheet {
  border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92svh;
  background: var(--card); color: var(--ivory); border-radius: 20px 20px 0 0; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(10, 7, 5, .7); }
.sheet[open] { animation: sube .45s var(--ease); }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
.sheet-in { padding: 20px 20px max(20px, env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--obsidian); font-size: 24px; cursor: pointer; }
.lineas { list-style: none; margin: 0; padding: 0; }
.lineas li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(120,106,94,.35); }
.lineas .ln-n { font-weight: 480; }
.lineas .ln-op { color: var(--ash); font-size: 13px; }
.lineas .ln-p { grid-column: 1; color: var(--ash); font-size: 14px; }
.lineas .step { grid-row: 1 / span 2; grid-column: 2; }
.lineas .vacio { display: block; padding: 24px 0; color: var(--ash); border: 0; }
.pedido { display: grid; gap: 14px; margin-top: 18px; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--ash); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 48px; padding: 0 10px; text-align: center; border-radius: var(--r-pill); border: 1px solid rgba(236,226,212,.35); font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--ivory); color: var(--canvas); border-color: var(--ivory); }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.f { display: grid; gap: 6px; font-size: 13px; color: var(--ash); }
.f[hidden] { display: none; }
.f input, .f select, .f textarea {
  width: 100%; min-height: 48px; padding: 12px 18px; border-radius: 24px; border: 1px solid rgba(236,226,212,.35);
  background: var(--canvas); color: var(--ivory); font: 400 16px/1.3 var(--body);
}
.f textarea { resize: vertical; border-radius: 18px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.sheet-total b { font: 480 28px/1 var(--display); font-stretch: 112%; }
.envio-nota { font-size: 13px; color: var(--ash); }
@media (min-width: 760px) {
  .sheet { margin: auto; max-width: 520px; border-radius: 16px; max-height: 88vh; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .lectura .wd { opacity: 1; }
}

/* Ajustes celular angosto */
.brand { min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-foot { flex-wrap: wrap; row-gap: 10px; }
.op { min-height: 44px; }
.seg input { pointer-events: none; }
@media (max-width: 400px) {
  .brand em { display: none; }
  .combo { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .combo img { width: 84px; height: 84px; }
}
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
