/* =========================================================
   Miko Mochi — estilos
   Colores tomados del logo: lavanda, amarillo y tinta oscura
   ========================================================= */

:root {
  --lav-50: #F7F3FF;
  --lav-100: #EFE8FF;
  --lav-200: #DED1FC;
  --lav-300: #C9B6F8;
  --lav-400: #BFA9F6;
  --lav-500: #9F84EA;
  --lav-600: #7E62D6;
  --lav-700: #5F45B0;

  --ink: #241E2E;
  --ink-2: #4A4257;
  --muted: #6F6680;

  --yellow: #FFD66E;
  --yellow-2: #FFF0C4;
  --cream: #FFFBF4;
  --pink: #F7A8BC;

  --wa: #117F3E;
  --wa-hover: #0D6A33;
  --wa-brand: #25D366;
  --danger: #C0304F;

  --radius: 22px;
  --shadow: 0 10px 30px -14px rgba(63, 40, 120, .32);
  --header-h: 68px;

  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cdefs%3E%3Cg id='w'%3E%3Ccircle r='40' fill='%23BFA9F6'/%3E%3Ccircle r='32' fill='none' stroke='%23CBB9F9' stroke-width='3'/%3E%3Ccircle r='23' fill='none' stroke='%23CBB9F9' stroke-width='3'/%3E%3Ccircle r='14' fill='none' stroke='%23CBB9F9' stroke-width='3'/%3E%3Ccircle r='5' fill='%23CBB9F9'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23w' x='0' y='20'/%3E%3Cuse href='%23w' x='80' y='20'/%3E%3Cuse href='%23w' x='40' y='40'/%3E%3Cuse href='%23w' x='0' y='60'/%3E%3Cuse href='%23w' x='80' y='60'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.sheet-open { overflow: hidden; }

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.01em;
}

mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 .22em;
  border-radius: .3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.i { width: 1.2em; height: 1.2em; flex: none; }

:focus-visible {
  outline: 3px solid var(--lav-500);
  outline-offset: 2px;
  border-radius: 8px;
}

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1200px, 100% - 48px); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 0 -1px rgba(36, 30, 46, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 9px 0 -1px rgba(36, 30, 46, .28); }

.btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 6px 0 -1px rgba(95, 69, 176, .25); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-ghost .i { color: var(--wa); }

.btn-wa-solid { background: var(--wa); color: #fff; }
.btn-wa-solid:hover { background: var(--wa-hover); transform: translateY(-2px); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 251, 244, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(95, 69, 176, .1);
}

.nav { display: flex; align-items: center; gap: 12px; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.3rem;
}
.brand img {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(95, 69, 176, .3);
}
.brand em { font-style: normal; color: var(--lav-600); }

.nav-links { display: none; margin-left: auto; gap: 2px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 700; color: var(--ink-2); transition: background-color .15s;
}
.nav-links a:hover { background: var(--lav-100); }

.cart-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 10px 9px 14px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; font-weight: 800; cursor: pointer;
}
.cart-btn .count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-size: .85rem;
}
.cart-btn.bump .count { animation: bump .45s ease; }

@media (max-width: 420px) { .cart-label { display: none; } }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .cart-btn { margin-left: 8px; }
}

@keyframes bump {
  30% { transform: scale(1.35); }
  60% { transform: scale(.9); }
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  background-color: var(--lav-400);
  background-image: var(--seigaiha);
  background-size: 72px 36px;
  border-radius: 0 0 44px 44px;
  overflow: hidden;
  padding: 36px 0 56px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 25% 50%, rgba(191, 169, 246, .96) 30%, rgba(191, 169, 246, 0) 75%);
  pointer-events: none;
}

.hero-grid { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; padding: 6px 16px 6px 6px; border-radius: 999px;
  font-weight: 800; font-size: .9rem;
  box-shadow: 0 6px 16px -8px rgba(63, 40, 120, .5);
}
.pill-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center; font-size: .8rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  font-weight: 700;
  margin: 18px 0 14px;
}
.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  max-width: 33em; margin: 0;
  color: var(--ink-2); font-weight: 600;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-stats {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-stats li {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px; padding: 8px 14px;
  font-weight: 700; color: var(--ink-2); font-size: .92rem;
}
.hero-stats b {
  font-family: 'Fredoka', sans-serif; font-size: 1.35rem; color: var(--ink);
  display: inline-flex;
}
.hero-stats b .i { color: var(--wa); width: 1.3rem; height: 1.3rem; }

.hero-art {
  position: relative; order: -1; justify-self: center;
  width: min(240px, 64vw); aspect-ratio: 1;
}
.hero-logo {
  width: 100%; height: auto; border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .55), 0 30px 60px -22px rgba(60, 30, 130, .6);
  animation: float 6s ease-in-out infinite;
}
.mini {
  position: absolute; width: 30%;
  filter: drop-shadow(0 8px 10px rgba(63, 40, 120, .25));
  animation: float 5s ease-in-out infinite;
}
.mini svg { width: 100%; height: auto; }
.mini-1 { left: -14%; bottom: 2%; animation-delay: -1.2s; }
.mini-2 { right: -12%; top: 0; width: 25%; animation-delay: -2.6s; }
.mini-3 { right: -18%; bottom: 22%; width: 21%; animation-delay: -3.8s; }

@keyframes float { 50% { transform: translateY(-10px); } }

@media (min-width: 900px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero-art { order: 0; width: min(400px, 100%); }
}

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-tight { padding-top: 16px; }
@media (min-width: 900px) { .section { padding: 84px 0; } }

.section-head { max-width: 640px; margin-bottom: 26px; }
.eyebrow {
  display: inline-block; margin: 0 0 12px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem;
  color: var(--lav-700); background: var(--lav-100);
  padding: 6px 12px; border-radius: 999px;
}
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); font-weight: 700; }
.section-head p:not(.eyebrow) { color: var(--muted); font-weight: 600; margin: 10px 0 0; }

/* Pasos */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border: 2px solid var(--lav-100); box-shadow: var(--shadow);
}
.step-num {
  width: 46px; height: 46px; border-radius: 15px; margin-bottom: 14px;
  background: var(--yellow); display: grid; place-items: center;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.35rem;
  transform: rotate(-6deg);
}
.step:nth-child(2) .step-num { background: var(--lav-300); transform: rotate(5deg); }
.step:nth-child(3) .step-num { background: var(--pink); }
.step h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-weight: 600; }

/* ---------- Tienda ---------- */
.shop-section {
  background: linear-gradient(180deg, var(--lav-50) 0%, var(--lav-50) 70%, var(--cream) 100%);
  border-radius: 44px;
}

.shop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.shop-main { min-width: 0; }
@media (min-width: 1024px) { .shop { grid-template-columns: minmax(0, 1fr) 372px; gap: 32px; } }

.toolbar { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: -16px; padding: 2px 16px 4px;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  border: 2px solid var(--lav-200); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 14px;
  font-weight: 800; font-size: .92rem; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--lav-400); }
.chip .n {
  font-size: .74rem; background: var(--lav-100); color: var(--lav-700);
  border-radius: 999px; padding: 1px 7px;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] .n { background: var(--yellow); color: var(--ink); }

.search { position: relative; display: block; }
.search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input {
  width: 100%; padding: 12px 16px 12px 44px;
  border-radius: 999px; border: 2px solid var(--lav-200); background: #fff;
  font-weight: 700; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--lav-500); box-shadow: 0 0 0 4px rgba(159, 132, 234, .2); }

@media (min-width: 720px) {
  .toolbar { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .chips {
    margin: 0; padding-inline: 2px 24px; flex: 1; min-width: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .search { width: 220px; flex: none; }
}
@media (min-width: 1024px) {
  .toolbar {
    position: sticky; top: var(--header-h); z-index: 20;
    background: rgba(247, 243, 255, .92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    padding: 12px 0;
  }
}

/* Bloques por categoría */
.cat-block { margin-top: 26px; }
.cat-title {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-size: 1.55rem; font-weight: 600; margin-bottom: 14px;
}
.cat-title span { font-family: 'Nunito', sans-serif; font-size: .85rem; color: var(--muted); font-weight: 800; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .grid { gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Tarjeta de producto */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius);
  border: 2px solid transparent; overflow: hidden;
  box-shadow: 0 6px 20px -12px rgba(63, 40, 120, .35);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(63, 40, 120, .45); }
.card.is-selected { border-color: var(--ink); }

.card-art {
  aspect-ratio: 6 / 5; display: grid; place-items: center; padding: 8px;
  background-color: var(--tint, var(--lav-100));
  background-image: radial-gradient(circle at 50% 115%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 60%);
}
.card-art svg { width: 88%; height: auto; transition: transform .3s ease; }
.card:hover .card-art svg { transform: scale(1.05) rotate(-2deg); }

.check {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 4px 10px -4px rgba(36, 30, 46, .5);
  transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.check svg { width: 16px; height: 16px; }
.card.is-selected .check { transform: scale(1); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 12px; }
@media (min-width: 620px) { .card-body { padding: 14px 14px 14px; } }

.card-kicker {
  margin: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 800; color: var(--lav-700);
}
.card-title { font-size: 1.08rem; font-weight: 600; margin: 2px 0 12px; }
.card-action { margin-top: auto; }

.btn-add {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed var(--lav-300); background: var(--lav-50); color: var(--lav-700);
  border-radius: 14px; padding: 8px; min-height: 44px;
  font-weight: 800; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn-add svg { width: 16px; height: 16px; }
.btn-add:hover { background: var(--lav-100); border-style: solid; }
.btn-add:disabled, .btn-add:disabled:hover {
  border: 2px solid var(--lav-100); background: var(--lav-50); color: var(--muted); cursor: not-allowed;
}

/* Sabores agotados */
.soldout-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 10px;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.card.is-soldout .card-art { filter: grayscale(.85); opacity: .55; }
.card.is-soldout .card-kicker, .card.is-soldout .card-title { opacity: .55; }
.card.is-soldout:hover { transform: none; box-shadow: 0 6px 20px -12px rgba(63, 40, 120, .35); }
.card.is-soldout:hover .card-art svg { transform: none; }

.stepper {
  display: flex; align-items: center; gap: 2px;
  background: var(--ink); border-radius: 14px; padding: 4px; min-height: 44px;
}
.stepper button {
  flex: none; width: 34px; height: 34px; border-radius: 10px; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.25rem; font-weight: 800; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s;
}
.stepper button:hover { background: rgba(255, 255, 255, .26); }
.stepper input {
  flex: 1; min-width: 0; width: 100%;
  background: transparent; border: 0; color: #fff; text-align: center;
  font-weight: 800; font-size: 1rem; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 2px solid var(--yellow); border-radius: 6px; }

.catalog-loading { text-align: center; padding: 56px 16px; color: var(--muted); font-weight: 700; }
.catalog-loading .spin {
  display: block; width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%;
  border: 4px solid var(--lav-200); border-top-color: var(--lav-600);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-search {
  text-align: center; padding: 48px 16px; color: var(--muted); font-weight: 700;
}
.empty-search strong { display: block; color: var(--ink); font-family: 'Fredoka', sans-serif; font-size: 1.3rem; }

/* ---------- Panel de cotización ---------- */
.quote {
  background: #fff; border-radius: 28px;
  border: 2px solid var(--lav-100);
  box-shadow: 0 24px 50px -26px rgba(63, 40, 120, .55);
  display: flex; flex-direction: column; overflow: hidden;
}
.quote.flash { animation: flash .9s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 6px var(--yellow), 0 24px 50px -26px rgba(63, 40, 120, .55); } }

.quote-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px;
  background-color: var(--lav-400); background-image: var(--seigaiha); background-size: 56px 28px;
}
.quote-kicker {
  margin: 0 0 2px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lav-700);
  display: inline-block; background: rgba(255, 255, 255, .7); padding: 2px 8px; border-radius: 999px;
}
.quote-head h3 { font-size: 1.5rem; font-weight: 700; }

.quote-close {
  display: none; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); cursor: pointer;
}
.quote-close .i { width: 18px; height: 18px; }

.quote-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; overflow-y: auto; overscroll-behavior: contain; }

.quote-empty { text-align: center; color: var(--muted); font-weight: 600; padding: 4px 8px 6px; }
.quote-empty-art { width: 92px; margin: 0 auto 6px; }
.quote-empty-art svg { width: 100%; height: auto; }
.quote-empty p { margin: 0; font-size: .92rem; }
.quote-empty strong { display: block; color: var(--ink); font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.1rem; }

.quote-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.q-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px; border-radius: 16px; background: var(--lav-50);
}
.q-art {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--tint, var(--lav-100)); display: grid; place-items: center;
}
.q-art svg { width: 36px; height: auto; }
.q-name { font-weight: 800; font-size: .9rem; line-height: 1.2; overflow-wrap: anywhere; }
.q-name small { display: block; color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

.q-ctrl { display: flex; align-items: center; gap: 3px; }
.q-ctrl button {
  width: 28px; height: 28px; border-radius: 9px; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 1rem; line-height: 1;
  box-shadow: inset 0 0 0 1.5px var(--lav-200);
  display: grid; place-items: center;
}
.q-ctrl button:hover { box-shadow: inset 0 0 0 2px var(--lav-400); }
.q-ctrl .q-del { background: transparent; box-shadow: none; color: var(--muted); margin-left: 2px; }
.q-ctrl .q-del:hover { color: var(--danger); box-shadow: none; }
.q-ctrl .q-del svg { width: 14px; height: 14px; }
.q-ctrl output { min-width: 36px; text-align: center; font-weight: 800; font-size: .92rem; }

.quote-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 16px; background: var(--yellow-2);
}
.quote-total span { display: block; font-size: .8rem; font-weight: 800; color: var(--ink-2); }
.quote-total strong { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.3rem; }

.quote-min { display: flex; flex-direction: column; gap: 6px; }
.quote-min-bar { height: 10px; border-radius: 999px; background: var(--lav-100); overflow: hidden; }
.quote-min-bar span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--lav-500), var(--lav-600));
  transition: width .3s ease, background-color .3s ease;
}
.quote-min.ok .quote-min-bar span { background: var(--wa); }
.quote-min p { margin: 0; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.quote-min.ok p { color: var(--wa); }

.link-btn {
  background: none; border: 0; padding: 4px; cursor: pointer;
  color: var(--ink-2); font-weight: 800; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--danger); }

.quote-form { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; border-top: 2px dashed var(--lav-100); margin-top: 2px; }
.quote-form .field:first-child { margin-top: 12px; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-weight: 800; font-size: .86rem; }
.field .opt { color: var(--muted); font-weight: 600; }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0;
  border: 2px solid var(--lav-200); border-radius: 12px;
  padding: 10px 12px; background-color: var(--lav-50); font-weight: 600;
  outline: none; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--lav-500); background-color: #fff; box-shadow: 0 0 0 4px rgba(159, 132, 234, .2);
}
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 34px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235F45B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}
.field select:disabled { cursor: not-allowed; opacity: .6; }
.field textarea { resize: vertical; min-height: 76px; }
.field .err { display: none; color: var(--danger); font-size: .8rem; font-weight: 700; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.date-row { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; }
.field.invalid .err { display: block; }

.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Precio por unidad en la tarjeta del sabor */
.card-price { margin: -4px 0 12px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1rem; color: var(--ink); }
.card-price small { font-family: 'Nunito', sans-serif; font-size: .72rem; font-weight: 800; color: var(--muted); }

/* Entrega: retiro sin costo o despacho con costo adicional */
.entrega { border: 0; padding: 0; margin: 0; min-width: 0; }
.entrega legend { font-weight: 800; font-size: .86rem; padding: 0; margin-bottom: 2px; }
.entrega .opcion {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 6px;
  border: 2px solid var(--lav-200); border-radius: 12px; background: var(--lav-50);
  font-weight: 600; font-size: .92rem; cursor: pointer;
}
.entrega .opcion:has(input:checked) { border-color: var(--lav-500); background: #fff; }
.entrega .opcion input {
  width: 18px; height: 18px; margin: 0; padding: 0; flex: none; accent-color: var(--lav-600);
  border: 0; box-shadow: none; background: none;
}

.btn-send {
  width: 100%; margin-top: 4px; padding: 15px 18px; border-radius: 16px;
  background: var(--wa); color: #fff; font-size: 1.04rem;
  box-shadow: 0 6px 0 -1px #0A4F26;
}
.btn-send:hover:not(:disabled) { background: var(--wa-hover); transform: translateY(-2px); }
.btn-send:disabled { background: #B7B0C4; box-shadow: none; cursor: not-allowed; }

.note { margin: 0; font-size: .8rem; text-align: center; color: var(--muted); font-weight: 600; }

/* Panel: escritorio = columna fija; móvil = hoja inferior */
@media (min-width: 1024px) {
  .quote { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 36px); }
  .quote-bar, .scrim { display: none !important; }
}

@media (max-width: 1023.98px) {
  .quote {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    max-height: 90vh; max-height: 90dvh;
    border-radius: 28px 28px 0 0; border-bottom: 0;
    transform: translateY(105%); visibility: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
  }
  .quote.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  .quote-head { position: relative; }
  .quote-head::before {
    content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 5px; border-radius: 999px; background: rgba(36, 30, 46, .25);
  }
  .quote-close { display: grid; }
  .quote-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) { .fields-row { grid-template-columns: 1fr; } }

.scrim {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(36, 30, 46, .45);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.scrim.show { opacity: 1; pointer-events: auto; }

.quote-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 20px;
  padding: 10px 10px 10px 18px;
  box-shadow: 0 16px 32px -12px rgba(36, 30, 46, .6);
  transform: translateY(160%); visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}
body.has-items .quote-bar { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.quote-bar strong { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.quote-bar span { font-size: .82rem; font-weight: 700; opacity: .75; }
.quote-bar .btn { background: var(--yellow); color: var(--ink); padding: 12px 18px; }

/* Botón flotante de WhatsApp */
.wa-fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa-brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 24px -8px rgba(18, 140, 68, .6);
  transition: transform .2s ease, bottom .35s cubic-bezier(.2, .8, .2, 1);
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover { transform: scale(1.07); }
@media (max-width: 1023.98px) {
  body.has-items .wa-fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* En escritorio el panel ocupa la derecha: el botón flotante va a la izquierda */
@media (min-width: 1024px) {
  .wa-fab { right: auto; left: 18px; }
}

/* Aviso breve */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 80;
  max-width: calc(100% - 32px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: .92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 12px 24px -10px rgba(36, 30, 46, .6);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 28px; } }

/* ---------- Gato que guiña al enviar ---------- */
.wink {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 70px 16px 16px;
  background: rgba(36, 30, 46, .55);
  animation: wink-fade .25s ease;
}
.wink-card {
  width: min(340px, 100%); text-align: center;
  background: #fff; border-radius: 28px; padding: 24px 22px 16px;
  box-shadow: 0 30px 60px -20px rgba(36, 30, 46, .6);
  animation: wink-card-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.wink-cat {
  width: 172px; aspect-ratio: 1; margin: -86px auto 10px; border-radius: 50%;
  background-color: var(--lav-400); background-image: var(--seigaiha); background-size: 48px 24px;
  box-shadow: 0 0 0 6px #fff, 0 16px 30px -12px rgba(63, 40, 120, .55);
  display: grid; place-items: center;
  animation: wink-cat-in .6s cubic-bezier(.2, .9, .3, 1.3) both;
}
.wink-cat svg { width: 92%; height: auto; overflow: visible; }
.wink h3 { font-size: 1.6rem; font-weight: 700; }
.wink p { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.wink-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; }
.wink-actions .btn { width: 100%; }

.wink .eye-open, .wink .eye-closed, .wink .wink-spark { transform-box: fill-box; transform-origin: center; }
.wink .eye-open { animation: wink-eye 3s ease-in-out .3s infinite; }
.wink .eye-closed { opacity: 0; animation: wink-lid 3s ease-in-out .3s infinite; }
.wink .wink-spark { transform: scale(0); animation: wink-spark 3s ease-in-out .3s infinite; }

@keyframes wink-fade { from { opacity: 0; } }
@keyframes wink-card-in { from { opacity: 0; transform: translateY(24px) scale(.92); } }
@keyframes wink-cat-in {
  0% { opacity: 0; transform: translateY(40px) scale(.5); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.06); }
  100% { opacity: 1; transform: none; }
}
@keyframes wink-eye {
  0%, 10% { transform: scaleY(1); opacity: 1; }
  15%, 58% { transform: scaleY(.1); opacity: 0; }
  64%, 100% { transform: scaleY(1); opacity: 1; }
}
@keyframes wink-lid {
  0%, 12% { opacity: 0; }
  15%, 58% { opacity: 1; }
  61%, 100% { opacity: 0; }
}
@keyframes wink-spark {
  0%, 12% { transform: scale(0) rotate(0deg); }
  20% { transform: scale(1.3) rotate(45deg); }
  26%, 52% { transform: scale(1) rotate(45deg); }
  58%, 100% { transform: scale(0) rotate(90deg); }
}

/* ---------- Para quién ---------- */
.uses {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .uses { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.use { background: #fff; border-radius: var(--radius); padding: 20px; border: 2px solid var(--lav-100); }
.use-ic {
  width: 50px; height: 50px; border-radius: 16px; margin-bottom: 14px;
  background: var(--lav-100); color: var(--lav-700); display: grid; place-items: center;
}
.use:nth-child(2) .use-ic { background: var(--yellow-2); color: #8A6400; }
.use:nth-child(3) .use-ic { background: #FDE3EA; color: #B23A5B; }
.use:nth-child(4) .use-ic { background: #E3F3E8; color: var(--wa); }
.use-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.use h3 { font-size: 1.15rem; font-weight: 600; }
.use p { margin: 6px 0 0; color: var(--muted); font-weight: 600; font-size: .93rem; }

/* ---------- Llamado final ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; gap: 22px; align-items: center;
  background: var(--ink); color: #fff;
  border-radius: 32px; padding: 36px 24px;
}
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; color: #fff; position: relative; z-index: 1; }
.cta-band p { margin: 10px 0 0; opacity: .8; font-weight: 600; position: relative; z-index: 1; }
.cta-band .btn { justify-self: start; position: relative; z-index: 1; }
.cta-deco {
  position: absolute; width: 170px; right: -30px; bottom: -40px; opacity: .95;
  transform: rotate(-12deg);
}
.cta-deco svg { width: 100%; height: auto; }
@media (max-width: 719.98px) { .cta-deco { width: 120px; right: -26px; bottom: -34px; opacity: .5; } }
@media (min-width: 720px) {
  .cta-band { grid-template-columns: 1fr auto; padding: 44px 48px; padding-right: 200px; }
  .cta-band .btn { justify-self: end; }
}

/* ---------- Pie ---------- */
.site-footer { padding: 40px 0 120px; }
@media (min-width: 1024px) { .site-footer { padding-bottom: 48px; } }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-inner p { margin: 0; color: var(--muted); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.footer-links a {
  padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .9rem;
  background: var(--lav-100); color: var(--lav-700); cursor: pointer;
}
.footer-links a:hover { background: var(--lav-200); }
.site-footer small { color: var(--muted); font-weight: 600; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  /* sin animación, el gato queda guiñando */
  .wink .eye-open { opacity: 0; }
  .wink .eye-closed { opacity: 1; }
  .wink .wink-spark { transform: none; }
}
