/* Rancho Los Bañuelos · tienda
 * Tema miel con acabado premium: crema, miel y chocolate del logotipo, panal de abejas sutil,
 * chorros de miel entre secciones y tipografía editorial (Fraunces + DM Sans).
 */
:root {
  --choco-950: #180502;
  --choco-900: #290f05;
  --choco-800: #451a07;
  --ambar: #ac5619;
  --miel-osc: #b8601b;
  --miel: #e18935;
  --miel-claro: #f3a93c;
  --oro: #e7b56a;
  --oro-claro: #ffd56b;
  --crema: #faf1d5;
  --crema-50: #fdf8ec;
  --papel: #fffdf8;
  --arena: #f3e6c9;
  --hoja: #3e6b2b;
  --hoja-suave: #eef4e5;
  --wa: #1f7a4c;
  --error: #9c2c12;
  --error-suave: #fbe9e2;

  --texto: #2b1308;
  --texto-2: #563622;
  --texto-suave: #7a5a43;
  --linea: rgba(69, 26, 7, 0.14);
  --linea-fuerte: rgba(69, 26, 7, 0.26);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --miel-grad: linear-gradient(180deg, #ffd56b 0%, #f3a93c 45%, #e18935 78%, #c96d1f 100%);
  --hex-oro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cg fill='none' stroke='%23e7b56a' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34'/%3E%3C/g%3E%3C/svg%3E");
  --hex-ambar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cg fill='none' stroke='%23ac5619' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34'/%3E%3C/g%3E%3C/svg%3E");
  --hexagono: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 24px;
  --sombra: 0 1px 2px rgba(41, 15, 5, 0.06), 0 14px 30px -20px rgba(41, 15, 5, 0.45);
  --sombra-pop: 0 20px 44px -18px rgba(24, 5, 2, 0.6);
  --sombra-miel: drop-shadow(0 18px 22px rgba(90, 35, 0, 0.28));
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 76px; }
/* tocar rápido dos veces + o − ya no hace zoom en el celular; pellizcar sí sigue funcionando */
*, ::before, ::after { touch-action: manipulation; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--texto);
  background: var(--crema-50);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.has-cartbar { padding-bottom: 88px; }
body.sheet-open { overflow: hidden; }

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--miel); outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:active, .size:active, .stepper button:active, .cart-btn:active, .catbar a:active,
  .toast__btn:active, .cartbar__btn:active, .icon-btn:active { transform: scale(0.97); }
  .btn, .size, .stepper button, .cart-btn, .catbar a, .toast__btn, .cartbar__btn, .icon-btn { transition: transform 0.12s ease; }
}
.ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.eyebrow, .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--miel-osc);
}

/* ================================================================ encabezado */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  color: var(--crema);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.top.is-solid {
  background: rgba(41, 15, 5, 0.9);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 rgba(231, 181, 106, 0.18), 0 12px 30px -20px rgba(0, 0, 0, 0.8);
}
.top__inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.top__logo img { width: auto; height: 46px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)); transition: opacity 0.3s ease, transform 0.3s ease; }
.top:not(.is-solid) .top__logo img { opacity: 0; transform: translateY(-6px); }
.top__nav { display: none; margin-left: auto; gap: 2px; }
.top__nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--crema);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.top__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--oro-claro); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.top__nav a:hover, .top__nav a[aria-current="true"] { opacity: 1; color: var(--oro-claro); }
.top__nav a:hover::after, .top__nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (min-width: 900px) { .top__nav { display: flex; } }

.cart-btn {
  position: relative;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(231, 181, 106, 0.5);
  border-radius: 50%;
  background: rgba(24, 5, 2, 0.3);
  color: var(--crema);
  transition: background 0.2s;
}
@media (min-width: 900px) { .cart-btn { margin-left: 8px; } }
.cart-btn:hover { background: rgba(225, 137, 53, 0.25); }
.cart-btn__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--miel-grad);
  color: var(--choco-900);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--choco-900);
}
.cart-btn__count.bump { animation: bump 0.45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ================================================================ botones */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.btn--honey {
  background: var(--miel-grad);
  color: var(--choco-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(140, 55, 0, 0.25), 0 10px 22px -12px rgba(201, 109, 31, 0.85);
}
/* gotita de miel que cuelga del botón */
.btn--honey::after {
  content: "";
  position: absolute;
  left: 24%;
  top: calc(100% - 6px);
  width: 10px;
  height: 13px;
  border-radius: 2px 2px 8px 8px / 2px 2px 10px 10px;
  background: linear-gradient(180deg, #e18935, #c96d1f);
  transition: height 0.45s cubic-bezier(.3, 1.4, .5, 1);
  z-index: -1;
}
@media (hover: hover) {
  .btn--honey:hover { transform: translateY(-2px); filter: saturate(1.08); }
  .btn--honey:hover::after { height: 22px; }
}
.sheet .btn--honey::after, .track .btn--honey::after { display: none; }
.btn--ghost { border-color: var(--linea-fuerte); background: transparent; color: var(--choco-800); }
.btn--ghost:hover { border-color: var(--choco-800); background: rgba(255, 255, 255, 0.5); }
.btn--light { border-color: rgba(250, 241, 213, 0.45); color: var(--crema); }
.btn--light:hover { border-color: var(--crema); background: rgba(250, 241, 213, 0.08); }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -12px rgba(31, 122, 76, 0.9); }
.btn--wa:hover { background: #196a41; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ================================================================ portada: el frasco que derrama miel */
.intro {
  position: relative;
  color: var(--crema);
  background:
    radial-gradient(80% 55% at 75% 12%, rgba(255, 190, 90, 0.3), transparent 62%),
    radial-gradient(60% 45% at 8% 100%, rgba(172, 86, 25, 0.28), transparent 70%),
    linear-gradient(180deg, #34130a 0%, var(--choco-900) 55%, var(--choco-950) 100%);
}
.intro__stage { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.js .intro { height: 230svh; }
.js .intro__stage { position: sticky; top: 0; height: 100svh; }
@media (min-width: 900px) { .js .intro { height: 270vh; } .js .intro__stage { height: 100vh; } }
.intro__bg { position: absolute; inset: 0; z-index: -1; }
.hero__comb { position: absolute; inset: 0; background: var(--hex-oro); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }

/* capas de la animación: cada una se mueve con transform (sin volver a pintar) */
.intro__fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; contain: strict; }
.ifx-glow, .ifx-jar, .ifx-lid, .ifx-pool { position: absolute; left: 0; top: 0; will-change: transform; backface-visibility: hidden; }
.ifx-glow { border-radius: 50%; background: radial-gradient(circle, rgba(255, 213, 107, 0.5) 0%, rgba(243, 169, 60, 0.2) 42%, rgba(243, 169, 60, 0) 68%); }
.ifx-jar svg, .ifx-lid svg { display: block; overflow: visible; }
.ifx-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.ifx-pool {
  right: 0;
  height: calc(100% + 80px);
  transform: translate3d(0, 120%, 0);
  background: linear-gradient(180deg, #ffcf58 0, #f2a52d 16%, #d47a20 58%, #a9541a 100%);
}
.ifx-pool__wave {
  position: absolute;
  left: 0;
  top: -22px;
  width: calc(100% + 240px);
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='24'%3E%3Cpath d='M0 12C30 4 90 4 120 12S210 20 240 12V24H0Z' fill='%23ffcf58'/%3E%3Cpath d='M0 12C30 4 90 4 120 12S210 20 240 12' fill='none' stroke='%23fff5cc' stroke-opacity='.75' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 24px;
  will-change: transform;
  animation: ola-miel 4.6s linear infinite;
}
.ifx-pool__wave--back {
  top: -28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='24'%3E%3Cpath d='M0 12C30 4 90 4 120 12S210 20 240 12V24H0Z' fill='%23f6b445'/%3E%3C/svg%3E");
  background-position: 120px 0;
  opacity: 0.85;
  animation-duration: 7s;
  animation-direction: reverse;
}
@keyframes ola-miel { to { transform: translate3d(-240px, 0, 0); } }
.ifx-pool__deep { position: absolute; inset: 0; overflow: hidden; }
.ifx-bubble {
  position: absolute;
  bottom: 40px;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 251, 232, 0.6);
  background: rgba(255, 248, 220, 0.2);
  will-change: transform;
  animation: burbuja linear infinite;
}
@keyframes burbuja {
  from { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  to { transform: translate3d(8px, -60vh, 0); opacity: 0; }
}

.intro__layout { position: absolute; inset: 0; z-index: 3; pointer-events: none; padding-top: 74px; }
.intro__layout a, .intro__layout button { pointer-events: auto; }
.intro__brand { text-align: center; }
.intro__logo {
  width: clamp(150px, 46vw, 240px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
  animation: entrar-logo 1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes entrar-logo { from { opacity: 0; transform: translateY(-18px) scale(0.96); } }

/* textos: en celular aparecen sobre la miel al final; en computadora están a la izquierda desde el inicio */
.intro__copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--choco-900);
}
.hero__eyebrow { color: var(--choco-800); }
.hero__title {
  margin: 10px auto 0;
  max-width: 17ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 7.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--choco-900);
  font-variation-settings: "opsz" 90;
}
.hero__title span { display: block; font-style: italic; font-weight: 400; color: var(--choco-800); }
.intro__ship {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--choco-900);
  color: var(--oro-claro);
  font-weight: 600;
  font-size: 0.9rem;
}
.intro__ship::before { content: ""; width: 10px; height: 12px; clip-path: var(--hexagono); background: var(--miel-grad); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
/* sobre la miel los botones van en chocolate para que se lean */
.intro__copy .btn--honey { background: var(--choco-900); color: var(--oro-claro); box-shadow: 0 12px 24px -12px rgba(41, 15, 5, 0.9); }
.intro__copy .btn--honey::after { display: none; }
.intro__copy .btn--ghost { border-color: rgba(41, 15, 5, 0.55); color: var(--choco-900); background: rgba(255, 240, 200, 0.2); }

.intro__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 3;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro-claro);
  pointer-events: none;
}
.intro__hint i { width: 16px; height: 16px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: bajar 1.5s ease-in-out infinite; }
@keyframes bajar { 50% { transform: translateY(6px) rotate(45deg); opacity: 0.55; } }

@media (min-width: 900px) {
  .intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-content: center;
    padding-top: 60px;
    padding-bottom: 20vh;
  }
  .intro__brand, .intro__copy { grid-column: 1; text-align: left; }
  .intro__logo { width: min(320px, 26vw); margin: 0 0 18px -8px; }
  .intro__copy { position: static; color: var(--crema); }
  .hero__eyebrow { color: var(--oro-claro); }
  .hero__title { margin-left: 0; color: var(--crema); }
  .hero__title span { color: var(--oro); }
  .intro__ship { background: rgba(255, 213, 107, 0.12); border: 1px solid rgba(255, 213, 107, 0.4); }
  .hero__cta { justify-content: flex-start; }
  .intro__copy .btn--honey { background: var(--miel-grad); color: var(--choco-900); }
  .intro__copy .btn--honey::after { display: block; }
  .intro__copy .btn--ghost { border-color: rgba(250, 241, 213, 0.45); color: var(--crema); background: transparent; }
  .intro__copy .btn--ghost:hover { border-color: var(--crema); }
}

@media (prefers-reduced-motion: reduce) {
  .js .intro { height: auto; }
  .js .intro__stage { position: relative; height: 100svh; }
  .intro__hint { display: none; }
}

/* abejas */
.bee { position: absolute; z-index: 2; width: 42px; height: 32px; pointer-events: none; }
.bee svg { width: 100%; height: 100%; overflow: visible; }
.bee .bee__wings { transform-origin: 32px 24px; animation: aletear 0.09s linear infinite alternate; }
@keyframes aletear { to { transform: scaleY(0.35); } }
.bee--1 { top: 0; left: 0; offset-path: path("M 40 300 C 70 200, 320 190, 345 290 S 300 450, 190 455 S 20 400, 40 300"); animation: volar 16s linear infinite; }
.bee--2 { top: 0; left: 0; width: 32px; height: 24px; offset-path: path("M 300 120 C 370 150, 360 230, 300 215 S 240 95, 300 120"); animation: volar 10s linear infinite reverse; }
@keyframes volar { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.bee { offset-rotate: 0deg; }
@media (min-width: 900px) {
  .bee--1 { offset-path: path("M 820 300 C 900 140, 1180 160, 1210 330 S 1090 600, 960 570 S 760 440, 820 300"); animation-duration: 22s; }
  .bee--2 { width: 38px; height: 28px; offset-path: path("M 520 120 C 640 70, 760 150, 700 210 S 470 200, 520 120"); }
}

/* ================================================================ miel que escurre (app.js dibuja los chorros) */
.drip { position: absolute; left: 0; right: 0; top: -1px; height: 0; z-index: 1; pointer-events: none; }
.drip svg { position: absolute; left: 0; top: 0; width: 100%; overflow: visible; }
.gota {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: radial-gradient(circle at 35% 30%, #fff4cc 0 10%, #f6b445 28%, #e18935 62%, #b8601b 100%);
  box-shadow: 0 4px 8px rgba(110, 45, 0, 0.22);
  pointer-events: none;
  will-change: transform, opacity;
}

/* ================================================================ beneficios */
.perks { position: relative; background: var(--hex-ambar), var(--papel); border-bottom: 1px solid var(--linea); }
.perks > .wrap { position: relative; z-index: 2; }
.perks__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding-top: 84px; padding-bottom: 30px; }
.perk { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; font-size: 0.88rem; line-height: 1.35; text-align: center; color: var(--texto-suave); }
.perk .ico { width: 24px; height: 24px; color: var(--miel-osc); }
.perk b { display: block; font-weight: 600; color: var(--choco-800); }
@media (min-width: 900px) {
  .perks__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 104px; padding-bottom: 40px; }
  .perk { font-size: 0.92rem; }
}

/* ================================================================ secciones */
.sec { position: relative; padding: 150px 0 104px; }
.sec > .wrap { position: relative; z-index: 2; }
@media (min-width: 900px) { .sec { padding: 190px 0 128px; } }
.sec--cream { background: var(--hex-ambar), radial-gradient(80% 50% at 50% 0%, #fffaf0, transparent 70%), linear-gradient(180deg, #fcf5e4, #f8ecd0); }
.sec--dark { color: var(--crema); background: var(--hex-oro), radial-gradient(70% 45% at 50% 0%, rgba(225, 137, 53, 0.2), transparent 70%), linear-gradient(180deg, var(--choco-800), var(--choco-900) 45%, var(--choco-950)); }
.sec--sunset { background: radial-gradient(60% 50% at 85% 20%, rgba(255, 213, 107, 0.4), transparent 70%), var(--hex-ambar), linear-gradient(180deg, #fdedcf, #f9dca6); }
.sec--honey { background: var(--hex-ambar), radial-gradient(70% 50% at 20% 10%, #fffaea, transparent 70%), linear-gradient(180deg, #fff4d8, #fce5ac); }

.sec__head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
/* halo del color del fondo: el título se lee aunque pase un chorro de miel detrás */
.sec__head > * { text-shadow: 0 0 10px #fcf3df, 0 0 22px #fcf3df; }
.sec--dark .sec__head > * { text-shadow: 0 0 12px var(--choco-800), 0 0 26px var(--choco-800); }
.sec__title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 7.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--choco-800);
  font-variation-settings: "opsz" 90;
}
.sec--dark .eyebrow { color: var(--oro-claro); }
.sec--dark .sec__title { color: var(--crema); }
/* línea con un hexágono de panal al centro */
.sec__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 14px;
  margin-top: 16px;
}
.sec__rule::before, .sec__rule::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--miel)); }
.sec__rule::after { transform: scaleX(-1); }
.sec__rule { background: no-repeat center / 12px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M8 0l8 4.5v9L8 18l-8-4.5v-9z' fill='%23e18935'/%3E%3C/svg%3E"); }
.sec__rule::before { margin-right: 10px; }
.sec__rule::after { margin-left: 10px; }
.sec__lead { margin: 14px auto 0; max-width: 46ch; font-size: 1.02rem; color: var(--texto-suave); }
.sec--dark .sec__lead { color: rgba(250, 241, 213, 0.75); }
@media (min-width: 900px) { .sec__head { margin-bottom: 64px; } }

.empty { text-align: center; color: var(--texto-suave); padding: 30px 0; }

/* ---------------------------------------------------------------- productos destacados */
.features { display: grid; gap: 64px; }
.feature { display: grid; gap: 26px; align-items: center; }
.feature__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(201, 109, 31, 0.18);
  background:
    radial-gradient(58% 52% at 50% 50%, rgba(255, 220, 140, 0.75), rgba(255, 220, 140, 0) 72%),
    var(--hex-ambar),
    linear-gradient(180deg, #fffaf0, #fbefd3);
  box-shadow: var(--sombra);
}
.feature__float { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.feature__img {
  min-width: 0;
  min-height: 0;
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  filter: var(--sombra-miel);
  animation: flotar 7s ease-in-out infinite;
}
.feature:nth-child(even) .feature__img { animation-delay: -3.5s; }
@keyframes flotar { 50% { transform: translateY(-8px); } }
.feature__body { text-align: center; }
.feature__kicker { margin: 0; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--miel-osc); }
.feature__title { margin: 10px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 6vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--choco-800); font-variation-settings: "opsz" 80; }
.feature__title .t { display: inline; }
.feature__title .a { display: inline; font-style: italic; font-weight: 400; color: var(--miel-osc); }
.feature__title .t + .a::before { content: " "; }
.feature__desc { max-width: 44ch; margin: 14px auto 0; color: var(--texto-suave); font-size: 1rem; }

@media (min-width: 900px) {
  .features { gap: 88px; }
  .feature { grid-template-columns: 1.05fr 1fr; gap: 72px; }
  .feature:nth-child(even) .feature__media { order: 2; }
  .feature__body { text-align: left; }
  .feature__desc { margin-left: 0; }
}

/* controles de compra (presentaciones, precio y botón) */
.controls { margin-top: 24px; }
.sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (min-width: 900px) { .feature .sizes { justify-content: flex-start; } }
.size {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 9px 14px;
  border: 1px solid rgba(172, 86, 25, 0.3);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.size b { font-size: 0.95rem; font-weight: 600; color: var(--choco-800); }
.size span { font-size: 0.8rem; color: var(--texto-suave); }
.size:hover { border-color: var(--miel); }
.size[aria-pressed="true"] { border-color: transparent; background: var(--miel-grad); box-shadow: 0 8px 18px -10px rgba(201, 109, 31, 0.9); }
.size[aria-pressed="true"] span { color: var(--choco-800); }
.size.has-qty::after {
  content: attr(data-qty);
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--choco-800);
  color: var(--oro-claro);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.buy { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
@media (min-width: 900px) { .feature .buy { justify-content: flex-start; } }
.price { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 6vw, 2.3rem); line-height: 1; letter-spacing: -0.01em; color: var(--choco-800); font-variant-numeric: lining-nums; }
.price small { font-family: var(--sans); font-weight: 600; font-size: 0.4em; letter-spacing: 0.08em; color: var(--texto-suave); margin-left: 5px; }
.soldout { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--error); }

.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--choco-800);
  color: var(--crema);
  font-weight: 600;
  box-shadow: 0 10px 22px -14px rgba(41, 15, 5, 0.9);
}
.stepper button { width: 44px; height: 46px; border: 0; border-radius: 50%; background: transparent; font-size: 1.25rem; line-height: 1; color: var(--oro-claro); }
.stepper button:hover { background: rgba(255, 213, 107, 0.14); }
.stepper span { min-width: 28px; text-align: center; font-size: 1.02rem; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- tarjetas */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { gap: 28px; max-width: 980px; margin: 0 auto; } }
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 14px 24px;
  border: 1px solid rgba(231, 181, 106, 0.35);
  border-radius: var(--r-lg);
  text-align: center;
  background: linear-gradient(180deg, rgba(250, 241, 213, 0.08), rgba(250, 241, 213, 0.03));
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.pcard:hover { transform: translateY(-4px); border-color: rgba(255, 213, 107, 0.7); }
.pcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: radial-gradient(55% 55% at 50% 50%, rgba(255, 200, 90, 0.35), transparent 72%), var(--hex-oro), rgba(250, 241, 213, 0.04);
}
.pcard__img { position: relative; min-width: 0; min-height: 0; height: 80%; max-width: 72%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5)); transition: transform 0.5s ease; }
.pcard:hover .pcard__img { transform: translateY(-5px); }
.pcard__title { margin: 20px 10px 0; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; color: var(--crema); }
.pcard__unit { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 213, 107, 0.14); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--oro-claro); }
.pcard__desc { margin: 10px 10px 0; max-width: 34ch; color: rgba(250, 241, 213, 0.75); font-size: 0.95rem; }
.pcard .controls { margin-top: auto; padding-top: 20px; width: 100%; }
.pcard .price { color: var(--oro-claro); }
.pcard .price small { color: rgba(250, 241, 213, 0.65); }

.cards--light .pcard { background: linear-gradient(180deg, #fffcf3, #fff4da); border-color: rgba(201, 109, 31, 0.22); box-shadow: var(--sombra); }
.cards--light .pcard__media { background: radial-gradient(55% 55% at 50% 50%, rgba(255, 210, 120, 0.55), transparent 72%), var(--hex-ambar), #fff9ea; }
.cards--light .pcard__img { filter: var(--sombra-miel); }
.cards--light .pcard__title { color: var(--choco-800); }
.cards--light .pcard__unit { background: rgba(225, 137, 53, 0.12); color: var(--miel-osc); }
.cards--light .pcard__desc { color: var(--texto-suave); }
.cards--light .pcard .price { color: var(--choco-800); }
.cards--light .pcard .price small { color: var(--texto-suave); }

/* ---------------------------------------------------------------- cómo pedir */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { padding: 28px 22px 26px; border: 1px solid rgba(231, 181, 106, 0.26); border-radius: var(--r-lg); text-align: center; background: rgba(250, 241, 213, 0.04); }
.hex {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 62px;
  clip-path: var(--hexagono);
  background: var(--miel-grad);
  color: var(--choco-900);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
}
.steps h3 { margin: 14px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 1.55rem; letter-spacing: -0.01em; color: var(--oro-claro); }
.steps p { margin: 0; color: rgba(250, 241, 213, 0.78); }
.steps__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ================================================================ rastrear pedido */
.sec--track .sec__head { margin-bottom: 32px; }
.track {
  max-width: 520px;
  margin: 0 auto;
  padding: 26px 22px 22px;
  border: 1px solid rgba(201, 109, 31, 0.2);
  border-radius: var(--r-lg);
  background: var(--papel);
  box-shadow: var(--sombra);
}
.track__form { display: flex; flex-direction: column; gap: 16px; }
.track__intro { margin: 0; text-align: center; color: var(--texto-suave); line-height: 1.55; }
.track__intro b { font-weight: 600; color: var(--choco-800); }
.track__error { margin: 0; padding: 10px 12px; border: 1px solid #efcabf; border-radius: var(--r-sm); background: var(--error-suave); color: var(--error); font-weight: 500; font-size: 0.92rem; }
.track__help { margin: 0; text-align: center; font-size: 0.82rem; line-height: 1.5; color: var(--texto-suave); }
.track__mine-title { margin: 0 0 10px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--miel-osc); }
.track__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.track__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--linea);
  border-radius: var(--r);
  background: #fffaf0;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}
.track__item:hover { border-color: var(--miel); }
.track__item-main { display: flex; flex-direction: column; min-width: 0; }
.track__item-main b { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--choco-800); }
.track__item-main small { font-size: 0.8rem; color: var(--texto-suave); }
.track__state { font-weight: 600; color: var(--miel-osc) !important; }
.track__state:empty { display: none; }
.track__go { flex: none; font-weight: 600; font-size: 0.86rem; color: var(--choco-800); white-space: nowrap; }
.track__or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; font-size: 0.82rem; color: var(--texto-suave); }
.track__or::before, .track__or::after { content: ""; flex: 1; height: 1px; background: var(--linea); }

/* ================================================================ pie */
.foot { position: relative; padding: 150px 0 28px; color: rgba(250, 241, 213, 0.78); background: var(--hex-oro), linear-gradient(180deg, var(--choco-900), var(--choco-950)); }
.foot > .wrap { position: relative; z-index: 2; }
.foot__inner { display: grid; gap: 36px; justify-items: center; text-align: center; }
.foot__brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.foot__logo { width: 170px; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
.foot__tag { margin: 0; max-width: 30ch; font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: var(--crema); }
.foot__info { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.foot__label { margin: 10px 0 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oro); }
.foot__label:first-child { margin-top: 0; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.foot__nav a { color: rgba(250, 241, 213, 0.88); font-size: 0.95rem; text-decoration: none; }
.foot__nav a:hover { color: var(--oro-claro); }
.foot__small { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(231, 181, 106, 0.18); font-size: 0.82rem; color: rgba(250, 241, 213, 0.55); }
@media (min-width: 760px) {
  .foot { padding-top: 170px; }
  .foot__inner { gap: 30px; }
}

/* ================================================================ aparecer al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.85s ease, transform 0.85s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .feature.reveal .feature__media { transform: scale(0.94); opacity: 0; transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity 0.9s ease; }
.js .feature.reveal.is-in .feature__media { transform: none; opacity: 1; }

/* ================================================================ pedido en curso */
.obanner {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 36;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(520px, calc(100% - 24px));
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(225, 137, 53, 0.6);
  border-radius: 999px;
  background: rgba(41, 15, 5, 0.96);
  color: var(--crema);
  box-shadow: var(--sombra-pop);
  transform: translateX(-50%);
  animation: subir-barra 0.45s cubic-bezier(.2, .9, .3, 1.15);
}
.obanner[hidden] { display: none; }
body.has-cartbar .obanner { bottom: calc(86px + env(safe-area-inset-bottom)); }
.obanner__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.obanner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.obanner__text b { font-size: 0.9rem; font-weight: 600; }
.obanner__text span { font-size: 0.8rem; color: var(--oro-claro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obanner__go { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--miel-grad); color: var(--choco-900); font-weight: 700; font-size: 0.84rem; }
.obanner__close { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(250, 241, 213, 0.1); color: var(--crema); }
.obanner__close .ico { width: 16px; height: 16px; }

/* ================================================================ barra del pedido */
.cartbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cartbar__btn {
  pointer-events: auto;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid rgba(231, 181, 106, 0.5);
  border-radius: 999px;
  background: rgba(41, 15, 5, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--crema);
  font-weight: 600;
  box-shadow: var(--sombra-pop);
  animation: subir-barra 0.45s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes subir-barra { from { transform: translateY(120%); } }
.cartbar__count { display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 7px; border-radius: 999px; background: var(--miel-grad); color: var(--choco-900); font-size: 0.84rem; font-weight: 700; }
.cartbar__label { flex: 1; text-align: left; }
.cartbar__label small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--oro); line-height: 1.3; }
.cartbar__total { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--oro-claro); }

/* ================================================================ categorías fijas (celular) */
.catbar {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 39;
  background: rgba(41, 15, 5, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(231, 181, 106, 0.16);
  box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.9);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}
.catbar.is-visible { transform: none; opacity: 1; visibility: visible; transition: transform 0.3s ease, opacity 0.3s ease; }
.catbar__inner { display: flex; gap: 4px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catbar__inner::-webkit-scrollbar { display: none; }
.catbar__inner > :first-child { margin-left: auto; }
.catbar__inner > :last-child { margin-right: auto; }
.catbar a {
  position: relative;
  flex: none;
  padding: 12px 10px;
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  color: rgba(250, 241, 213, 0.75);
  transition: color 0.2s;
}
.catbar a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--oro-claro); transform: scaleX(0); transition: transform 0.25s ease; }
.catbar a[aria-current="true"] { color: var(--oro-claro); font-weight: 600; }
.catbar a[aria-current="true"]::after { transform: scaleX(1); }
@media (min-width: 900px) { .catbar { display: none; } }
@media (max-width: 899px) { html { scroll-padding-top: 116px; } }

/* ================================================================ aviso "agregado" */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 45;
  width: min(520px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(225, 137, 53, 0.4);
  border-radius: 18px;
  background: var(--papel);
  color: var(--texto);
  box-shadow: var(--sombra-pop);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.15), opacity 0.25s ease;
}
.toast[hidden] { display: none; }
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.toast__img { flex: none; width: 46px; height: 46px; padding: 4px; border-radius: 12px; object-fit: contain; background: #fff3d6; }
.toast__text { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; line-height: 1.3; }
.toast__text strong { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hoja); }
.toast__text span { font-weight: 600; font-size: 0.94rem; color: var(--choco-800); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast__btn { flex: none; padding: 10px 14px; border: 0; border-radius: 999px; background: var(--choco-800); color: var(--oro-claro); font-weight: 700; font-size: 0.86rem; }

/* ================================================================ panel del pedido */
html.modal-open, html.modal-open body { overflow: hidden; }
.sheet-layer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: stretch; justify-content: flex-end; }
.sheet-layer[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(24, 5, 2, 0.55); opacity: 0; transition: opacity 0.3s ease; }
.sheet {
  position: relative;
  width: min(92vw, 460px);
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-radius: 24px 0 0 24px;
  background: var(--papel);
  color: var(--texto);
  overflow: hidden;
  box-shadow: -24px 0 60px -20px rgba(24, 5, 2, 0.6);
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(.2, .9, .25, 1);
  outline: none;
  touch-action: pan-y;
}
.sheet.is-dragging { transition: none; }
@media (min-width: 700px) and (min-height: 560px) {
  .sheet-layer { align-items: center; justify-content: center; padding: 24px; }
  .sheet {
    width: min(560px, 100%);
    height: auto;
    max-height: min(900px, calc(100vh - 48px));
    max-height: min(900px, calc(100dvh - 48px));
    border-radius: 24px;
    box-shadow: 0 40px 90px -30px rgba(24, 5, 2, 0.75);
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: transform 0.35s cubic-bezier(.2, .9, .25, 1), opacity 0.25s ease;
  }
  .sheet-layer.is-open .sheet { opacity: 1; }
  .sheet__head { padding-top: 18px; }
  .sheet__foot, #sheetDone { padding-bottom: 18px; }
}
.sheet-layer.is-open .sheet-backdrop { opacity: 1; }
.sheet-layer.is-open .sheet { transform: none; }
.sheet__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 16px;
  padding-top: calc(18px + env(safe-area-inset-top));
  background: var(--hex-oro), linear-gradient(180deg, var(--choco-800), var(--choco-900));
  color: var(--crema);
}
.sheet__kicker { margin: 0; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oro-claro); }
.sheet__title { margin: 4px 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.01em; }
.icon-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(250, 241, 213, 0.25); border-radius: 50%; background: rgba(250, 241, 213, 0.08); color: var(--crema); }
.icon-btn:hover { background: rgba(250, 241, 213, 0.18); }
.sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 20px 24px; }
#sheetDone { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.sheet__foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  background: #fffaf0;
  border-top: 1px solid var(--linea);
}
.sheet__foot[hidden] { display: none; }
.sheet__total { display: flex; align-items: baseline; justify-content: space-between; }
.sheet__total span { font-weight: 500; color: var(--texto-suave); }
.sheet__total strong { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--choco-800); }

.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  grid-template-areas: "img info total" "img step step";
  align-items: center;
  gap: 4px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linea);
}
.line__img { grid-area: img; width: 60px; height: 60px; padding: 5px; border-radius: 14px; object-fit: contain; background: radial-gradient(circle, #fff3cf, #f6e3b6); }
.line__info { grid-area: info; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.line__info strong { font-weight: 600; color: var(--choco-800); }
.line__info small { color: var(--texto-suave); }
.line .stepper { grid-area: step; justify-self: start; margin-top: 6px; }
.line .stepper button { width: 36px; height: 34px; font-size: 1.05rem; }
.line .stepper span { min-width: 24px; font-size: 0.95rem; }
.line__total { grid-area: total; align-self: start; font-weight: 600; color: var(--choco-800); }
.lines__empty { padding: 36px 0 10px; text-align: center; color: var(--texto-suave); }
.lines__empty img { width: 110px; margin: 0 auto 12px; filter: var(--sombra-miel); }

.checkout { display: flex; flex-direction: column; gap: 22px; padding-top: 20px; }
.checkout[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field[hidden] { display: none; }
.field > span, .field > legend { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.98rem; color: var(--choco-800); padding: 0; margin-bottom: 10px; }
.field > label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; color: var(--choco-800); margin-bottom: 2px; }
.field .field__label { font-weight: 500; font-size: 0.85rem; color: var(--texto-suave); margin: 0; }
.field__n { display: inline-grid; place-items: center; width: 24px; height: 27px; clip-path: var(--hexagono); background: var(--miel-grad); color: var(--choco-900); font-size: 0.78rem; font-weight: 700; }
.field small { font-weight: 400; color: var(--texto-suave); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 420px) { .field-row { grid-template-columns: 1fr 1fr; } }
/* 16px para que el iPhone no haga zoom al escribir */
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--linea-fuerte); border-radius: var(--r-sm); background: #fff; font-size: 16px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--miel); box-shadow: 0 0 0 3px rgba(225, 137, 53, 0.2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(156, 44, 18, 0.12); }

.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--linea-fuerte); border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.option:has(input:checked) { border-color: var(--miel); box-shadow: inset 0 0 0 1px var(--miel); background: #fff7e6; }
.option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ambar); }
.option__text { display: flex; flex-direction: column; flex: 1; }
.option__text small { color: var(--texto-suave); font-size: 0.85rem; }
.option__cost { font-weight: 600; color: var(--choco-800); white-space: nowrap; }
.option__cost s { font-weight: 400; color: var(--texto-suave); }
.option__cost .free { color: var(--hoja); }
.option--fixed { cursor: default; border-color: var(--miel); background: #fff7e6; box-shadow: inset 0 0 0 1px var(--miel); color: var(--choco-800); }
.option--fixed svg { flex: none; color: var(--ambar); }

.summary { margin: 0; padding: 14px 16px; border-radius: var(--r-sm); background: #fff6e0; border: 1px solid var(--linea); }
.summary div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--texto-2); }
.summary dt, .summary dd { margin: 0; }
.summary__total { margin-top: 6px; padding-top: 9px !important; border-top: 1px solid var(--linea); font-weight: 600; font-size: 1.08rem; color: var(--choco-800) !important; }
.summary s { color: var(--texto-suave); font-weight: 400; }
.summary .free { color: var(--hoja); }

.form-error { margin: 0; padding: 10px 12px; border: 1px solid #efcabf; border-radius: var(--r-sm); background: var(--error-suave); color: var(--error); font-weight: 500; font-size: 0.92rem; }
.form-error[hidden] { display: none; }
.hint { margin: 0; font-size: 0.8rem; color: var(--texto-suave); text-align: center; }

.link { border: 0; background: none; padding: 8px; color: var(--choco-800); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link--inline { display: inline; padding: 0; color: var(--error); }

.done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0 8px; text-align: center; }
.done__icon { display: grid; place-items: center; width: 68px; height: 76px; clip-path: var(--hexagono); background: var(--miel-grad); color: var(--choco-900); animation: latido 0.55s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes latido { from { transform: scale(0.5); opacity: 0; } }
.done__title { margin: 6px 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: -0.01em; color: var(--choco-800); }
.done__text { margin: 0; max-width: 34ch; color: var(--texto-suave); }
.done__total { margin: 4px 0 8px; font-size: 1.1rem; }
.done--paid .done__icon { background: linear-gradient(180deg, #7fb447, #3e6b2b); color: #fff; }
.done__step { margin: 4px 0 0; max-width: 36ch; color: var(--texto-2); }

.bank { width: 100%; padding: 14px; border: 1px dashed var(--miel); border-radius: var(--r-sm); background: #fff; text-align: left; }
.bank__title { margin: 0 0 8px; font-weight: 600; color: var(--choco-800); }
.bank dl { margin: 0; }
.bank dl div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.bank dt { color: var(--texto-suave); }
.bank dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
.bank__note { margin: 8px 0 0; font-size: 0.85rem; color: var(--texto-suave); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }

/* ================================================================ envío gratis: un frasquito que se llena */
.freeship { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid rgba(225, 137, 53, 0.3); border-radius: var(--r); background: linear-gradient(135deg, #fff8e6, #ffecc0); }
.freeship[hidden] { display: none; }
.freeship__jar { position: relative; flex: none; width: 30px; height: 38px; border: 2px solid var(--choco-800); border-top-width: 5px; border-radius: 5px 5px 10px 10px; overflow: hidden; background: rgba(255, 255, 255, 0.7); }
.freeship__honey { position: absolute; left: 0; right: 0; bottom: 0; height: 10%; background: var(--miel-grad); transition: height 0.6s cubic-bezier(.2, .9, .3, 1.2); }
.freeship__info { flex: 1; min-width: 0; }
.freeship__text { margin: 0 0 8px; font-size: 0.88rem; line-height: 1.35; color: var(--choco-800); }
.freeship__tube { height: 6px; border-radius: 99px; background: rgba(69, 26, 7, 0.1); overflow: hidden; }
.freeship__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--miel-grad); transition: width 0.6s cubic-bezier(.2, .9, .3, 1.2); }
.freeship.is-free { border-color: rgba(62, 107, 43, 0.3); background: linear-gradient(135deg, #f1f7e4, #e1efcd); }
.freeship.is-free .freeship__text { color: var(--hoja); }
.freeship.is-free .freeship__fill { background: linear-gradient(90deg, #6f9a2e, #3e6b2b); }

/* datos de la tarjeta para transferir */
.payinfo { margin-top: 10px; padding: 14px; border: 1px dashed var(--miel); border-radius: var(--r-sm); background: #fff; }
.payinfo[hidden] { display: none; }
.payinfo__title { margin: 0 0 8px; font-weight: 600; color: var(--choco-800); }
.payinfo__note { margin: 8px 0 0; font-size: 0.85rem; color: var(--texto-suave); }
.payinfo dl, .bank dl { margin: 0; }
.payinfo dl div, .bank dl div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.payinfo dt { color: var(--texto-suave); }
.payinfo dd { margin: 0; font-weight: 600; text-align: right; }
/* número de tarjeta: en su propio renglón, completo y grande, con el botón de copiar al lado */
.payinfo dl div.bank__num, .bank dl div.bank__num {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "dt dt" "dd btn";
  align-items: center;
  gap: 4px 10px;
  margin: 6px 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #fff6e2;
}
.bank__num dt { grid-area: dt; font-size: 0.8rem; }
.bank__num dd { grid-area: dd; min-width: 0; margin: 0; text-align: left !important; white-space: nowrap; font-size: clamp(0.98rem, 4.4vw, 1.2rem); letter-spacing: 0.04em; color: var(--choco-900); }
.bank__num .copy { grid-area: btn; padding: 7px 10px; }
.copy { flex: none; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--choco-800); color: var(--oro-claro); font-weight: 700; font-size: 0.8rem; }
.copy.is-done { background: var(--hoja); color: #fff; font-size: 0.76rem; }

/* ================================================================ comprobante de pago */
.proofbox { margin-top: 12px; }
.proofbox[hidden] { display: none; }
.proofbox__title { margin: 0 0 8px; font-weight: 600; color: var(--choco-800); }
.drop {
  position: relative;
  display: block;
  border: 1.5px dashed var(--miel);
  border-radius: var(--r);
  background: #fffaf0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop:hover, .drop.is-over { border-color: var(--ambar); background: #fff4dc; }
.drop.is-ready { border-style: solid; border-color: #b9d3a8; background: var(--hoja-suave); }
.drop.is-busy { opacity: 0.6; pointer-events: none; }
.drop:has(.drop__input[aria-invalid="true"]) { border-color: var(--error); background: var(--error-suave); }
.drop:has(.drop__input:focus-visible) { outline: 2px solid var(--miel); outline-offset: 3px; }
/* el input cubre todo el recuadro: así se puede tocar en cualquier parte y recibe el foco */
.drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 14px; text-align: center; color: var(--choco-800); pointer-events: none; }
.drop__empty svg { color: var(--ambar); }
.drop__empty strong { font-weight: 600; }
.drop__empty small { color: var(--texto-suave); }
.drop__empty[hidden], .drop__full[hidden] { display: none; }
.drop__full { display: flex; align-items: center; gap: 12px; padding: 10px 12px; pointer-events: none; }
.drop__thumb { flex: none; width: 60px; height: 60px; border-radius: var(--r-sm); object-fit: cover; background: #fff; border: 1px solid var(--linea); }
.drop__thumb.is-pdf { object-fit: contain; padding: 4px; }
.drop__info { display: flex; flex-direction: column; color: var(--choco-800); }
.drop__info small { color: var(--hoja); font-weight: 500; }

/* subiendo: el botón se llena de miel con el avance */
.btn.is-uploading {
  background: linear-gradient(90deg, #f3a93c 0 var(--p, 0%), #f8deaa var(--p, 0%) 100%);
  transition: none;
}

/* recibo corto del pedido pagado */
.minireceipt {
  position: relative;
  width: 100%;
  margin: 6px 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--linea);
  border-radius: var(--r-sm);
  background: #fff;
  text-align: left;
  overflow: hidden;
  box-shadow: var(--sombra);
}
.minireceipt__stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border: 2px solid var(--hoja);
  border-radius: 6px;
  color: var(--hoja);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: rotate(-7deg);
  animation: sello 0.45s cubic-bezier(.3, 1.5, .5, 1) both 0.2s;
}
@keyframes sello { from { transform: rotate(-7deg) scale(1.9); opacity: 0; } }
.minireceipt__folio { margin: 0 0 16px; padding-right: 110px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--choco-800); }
.minireceipt__folio small { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--texto-suave); }
.minireceipt__row, .minireceipt__total { display: flex; justify-content: space-between; margin: 0; padding: 3px 0; color: var(--texto-suave); }
.minireceipt__total { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--linea); color: var(--choco-800); font-weight: 600; }
.minireceipt__total strong { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.minireceipt__link { display: inline-block; margin: 8px 0 6px; font-weight: 700; color: var(--ambar); text-underline-offset: 3px; }
.btn--pulse { animation: latido-wa 2s ease-in-out infinite; }
@keyframes latido-wa { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 122, 76, 0.4); } 50% { box-shadow: 0 0 0 9px rgba(31, 122, 76, 0); } }

/* ================================================================ ubicación actual */
.geo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--choco-800);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--choco-800);
  font-weight: 600;
  transition: background 0.2s;
}
.geo:hover { background: #fff6e2; }
.geo[hidden] { display: none; }
.geo svg { color: var(--ambar); }
.geo.is-busy { opacity: 0.75; cursor: progress; }
.geo.is-busy svg { animation: latir-pin 0.9s ease-in-out infinite; }
@keyframes latir-pin { 50% { transform: translateY(-3px); } }
.geo-ok { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(62, 107, 43, 0.35); border-radius: var(--r-sm); background: var(--hoja-suave); }
.geo-ok[hidden] { display: none; }
.geo-ok__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--hoja); }
.geo-ok__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; color: var(--hoja); }
.geo-ok__text strong { font-weight: 600; }
.geo-ok__text small { color: var(--texto-suave); }
.geo-ok__map { flex: none; font-weight: 600; font-size: 0.86rem; color: var(--choco-800); }
.geo-ok__clear { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(69, 26, 7, 0.07); color: var(--choco-800); }
.geo-ok__clear .ico { width: 15px; height: 15px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* movimiento reducido: todo queda quieto y visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bee { display: none; }
  .js .reveal, .js .feature.reveal .feature__media { opacity: 1; transform: none; }
}

/* ================================================================ inventario */
.size.is-out { opacity: 0.55; background: repeating-linear-gradient(-45deg, rgba(69, 26, 7, 0.04) 0 6px, transparent 6px 12px), #fff; }
.size.is-out b { text-decoration: line-through; text-decoration-thickness: 1px; }
.size.is-out span { color: var(--error); font-weight: 600; }
.size.is-out[aria-pressed="true"] { background: #f6ead2; box-shadow: inset 0 0 0 1.5px var(--miel-osc); }
.lowstock { flex-basis: 100%; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--error); }
.feature .lowstock { text-align: inherit; }
.pcard .lowstock { color: var(--oro-claro); }
.cards--light .pcard .lowstock { color: var(--error); }
.stepper button.is-max { opacity: 0.35; }

/* ---------------- pago con tarjeta (Clip) */
.option__logo { flex: none; width: 40px; height: 40px; margin-left: auto; object-fit: contain; }
.option--fixed .option__logo { margin-left: auto; }
.done__clip { display: block; width: 44px; height: 44px; margin: 4px auto 0; }
.payinfo__card { display: flex; gap: 10px; align-items: flex-start; margin: 0; line-height: 1.45; }
.payinfo__card svg { flex: none; margin-top: 1px; color: var(--miel-osc); }
.done__icon--wait { animation: none; }
.done__icon--wait svg { animation: girar 0.9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .done__icon--wait svg { animation-duration: 2.4s; } }
