/* ============ DOEY Cookies ============ */
:root {
  /* Paleta DOEY: 60% Vanilla Cream · 20% Chocolate · 10% Caramel · 10% acentos */
  --cream: #FFF8EC;      /* Vanilla Cream: fondo principal */
  --latte: #EBD4B7;      /* Latte: fondos secundarios */
  --choco: #4B2E1E;      /* Chocolate: logo, textos, contraste */
  --choco-deep: #2F1C12; /* Chocolate oscuro (derivado) para el pie */
  --caramel: #D4A15B;    /* Caramel: segundo color de marca */
  --pistachio: #A7C957;  /* Acento fresco */
  --berry: #E63963;      /* Acento energético / llamadas a la acción */
  --honey: #F4B942;      /* Detalles, íconos y highlights */
  --white: #FFFFFF;
  --text-soft: rgba(75, 46, 30, .82);
  --radius: 22px;
  --shadow: 0 10px 30px rgba(75, 46, 30, .12);
  --font-display: "Fredoka", "Arial Rounded MT Bold", Arial, sans-serif;
  --font-body: "Nunito", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--choco);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 1rem/1 var(--font-body);
  padding: 1em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--dark { background: var(--choco); color: var(--cream); }
.btn--dark:hover { background: var(--choco-deep); }
.btn--pink, .btn--honey { background: var(--honey); color: var(--choco); }
.btn--ghost { border-color: var(--choco); color: var(--choco); background: transparent; }
.btn--ghost:hover { background: var(--choco); color: var(--cream); }
.btn--sm { padding: .75em 1.2em; font-size: .9rem; }
.btn--block { width: 100%; }
/* Berry solo con texto grande (≥19px negrita) para cumplir contraste */
.btn--berry { background: var(--berry); color: var(--white); font-size: 1.1875rem; }
.btn--berry:hover { background: #CF2F57; }

.eyebrow {
  font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  font-size: .78rem; color: var(--choco); margin: 0 0 .8em;
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: var(--caramel); }
.eyebrow--pink { color: var(--honey); }
.eyebrow--pink::before { background: var(--honey); }

/* ---------- Anuncio + header ---------- */
.announce {
  background: var(--choco); color: var(--honey);
  text-align: center; font-weight: 700; font-size: .85rem; padding: .55em 16px;
}
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--honey);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 18px rgba(75, 46, 30, .15); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo__img { height: 52px; width: auto; display: block; }
.logo__word { font: 700 2rem/1 var(--font-display); letter-spacing: .02em; }
.logo__sub { font-size: .55rem; font-weight: 800; letter-spacing: .5em; margin-right: -.5em; }
.nav { display: flex; gap: 28px; margin-inline: auto; }
.nav a { font-weight: 800; text-decoration: none; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  background: var(--berry); border-radius: 3px; transform: scaleX(0); transition: transform .2s;
}
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative; text-decoration: none; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--cream); color: var(--choco); cursor: pointer;
  display: grid; place-items: center;
}
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--choco); color: var(--honey);
  font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.cart-btn.bump { animation: bump .35s ease; }
.account-btn.is-member { width: auto; padding: 0 14px 0 10px; gap: 6px; display: flex; border-radius: 999px; background: var(--choco); color: var(--honey); }
.account-btn__name { font-weight: 800; font-size: .9rem; color: var(--cream); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-btn__name::before { content: "Hola, "; }
@keyframes bump { 50% { transform: scale(1.18); } }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.burger span { display: block; height: 3px; background: var(--choco); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); position: relative; padding: 56px 0 110px; overflow: hidden; color: var(--choco); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); letter-spacing: -.01em; }
.hero h1 span { color: var(--berry); }
.hero__lead { font-size: 1.15rem; max-width: 34ch; margin: 0 0 1.8em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; }
.hero__cookie { width: 100%; height: 100%; animation: spin 40s linear infinite; filter: drop-shadow(0 30px 40px rgba(75, 46, 30, .3)); }
.hero__cookie img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.hero__sticker {
  position: absolute; width: 34%; aspect-ratio: 1; right: -2%; top: 2%;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); border: 4px solid var(--choco);
  box-shadow: 0 12px 24px rgba(75, 46, 30, .25);
  animation: float 4s ease-in-out infinite; transform: rotate(-12deg);
}
.hero__sticker img { width: 80%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { translate: 0 -12px; } }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px; color: var(--honey); }

/* ---------- Secciones ---------- */
.section { padding: 90px 0; }
.section--cream { background: var(--cream); }
.section--latte { background: var(--latte); }
.section--honey { background: var(--honey); }
.section--choco .section__head, .section--choco .eyebrow { color: var(--cream); }
.section--choco .eyebrow::before { background: var(--honey); }
.section--honey .eyebrow::before { background: var(--choco); }
.section--honey .hl { background: var(--choco); color: var(--honey); }

/* ---------- Franja Honey ---------- */
.marquee { background: var(--honey); color: var(--choco); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; }
.marquee__group span { font: 700 clamp(1.15rem, 3vw, 1.6rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee__group i { font-style: normal; font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.section--choco { background: var(--choco); color: var(--cream); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section__head p:last-child { font-size: 1.1rem; margin: 0; }

/* ---------- Grid de sabores ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative; color: var(--choco);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(75, 46, 30, .18); }
.card__img {
  aspect-ratio: 1; border-radius: 18px; background: var(--latte);
  display: grid; place-items: center; margin-bottom: 18px; overflow: hidden;
}
.card__img svg, .card__img img { width: 82%; transition: transform .5s ease; }
/* Las fotos se muestran redondas, como galleta, para que giren igual que los dibujos. */
.card__img img, .line__img img { aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; }
.card__img svg, .card__img img, .line__img svg, .line__img img { filter: drop-shadow(0 10px 14px rgba(75, 46, 30, .35)); }
.card:hover .card__img svg, .card:hover .card__img img { transform: rotate(18deg) scale(1.05); }
/* Giro de entrada al aparecer en pantalla (también se ve en celular). */
@keyframes cookieIn { from { transform: rotate(-120deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.card.reveal.is-in .card__img > svg, .card.reveal.is-in .card__img > img { animation: cookieIn .9s cubic-bezier(.2, .8, .2, 1) .15s backwards; }
.card.is-soldout .card__img { filter: grayscale(.7); opacity: .75; }
.card__tag--soldout { background: var(--choco) !important; color: var(--cream) !important; }
.add:disabled { background: var(--latte); color: var(--text-soft); cursor: not-allowed; }
.add:disabled:hover { background: var(--latte); color: var(--text-soft); }
/* Etiqueta a la izquierda, montada sobre el borde de arriba de la foto (mitad en lo blanco, mitad en lo crema). */
.card__tags { position: absolute; top: 24px; left: 40px; z-index: 2; transform: translateY(-50%); display: flex; }
.card__tags:empty { display: none; }
.card__tag {
  box-shadow: 0 0 0 3px var(--white);
  background: var(--honey); color: var(--choco); font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: .35em .9em; border-radius: 999px;
}
.card h3 { font-size: 1.5rem; margin-bottom: .3em; }
.card p { margin: 0 0 1.2em; flex: 1; color: var(--text-soft); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__price { font: 700 1.25rem var(--font-display); }
.card__img { position: relative; }
.card__qty {
  position: absolute; top: 12px; right: 12px; min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: 999px; background: var(--berry); color: var(--white);
  font: 700 1.2rem var(--font-display); display: grid; place-items: center; box-shadow: var(--shadow);
}
.card.is-picked { outline: 3px solid var(--honey); outline-offset: -3px; }
.card__foot .qty--card { margin-inline: auto; }
.card__foot:has(.add) { justify-content: center; }
/* Checkout debajo del menú: se queda pegado abajo mientras recorres los sabores. */
.menu-checkout {
  position: sticky; bottom: 16px; z-index: 30; margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream); color: var(--choco); border: 3px solid var(--honey);
  border-radius: 999px; padding: 10px 10px 10px 24px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
.menu-checkout__info { font-weight: 800; }
@media (max-width: 560px) {
  .menu-checkout { border-radius: 22px; padding: 12px; justify-content: center; text-align: center; }
  .menu-checkout .btn { width: 100%; }
}
.add {
  border: 0; background: var(--honey); color: var(--choco);
  font: 800 .95rem var(--font-body); padding: .7em 1.2em; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.add:hover { background: var(--choco); color: var(--cream); }

/* ---------- Cajas ---------- */
/* Flex centrado: si hay menos de 4 cajas activas, quedan centradas. */
.boxes { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.boxes .box { flex: 0 1 calc((100% - 60px) / 4); }
.box {
  background: var(--white); border-radius: var(--radius); padding: 22px; text-align: center;
  border: 3px solid transparent; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .2s, transform .2s;
}
.box:hover { transform: translateY(-4px); }
.box.is-active { border-color: var(--berry); }
.box img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 12px; }
.box h3 { font-size: 1.4rem; margin-bottom: .2em; }
.box small { display: block; opacity: .75; }
.box strong { display: block; font: 700 1.2rem var(--font-display); margin-top: .5em; }

/* ---------- Regalos ---------- */
.gift { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.gift__art img { max-width: 360px; margin-inline: auto; transform: rotate(-6deg); border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.gift h2 span { color: var(--honey); }
.gift p { font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 2em; }
.checks li { padding-left: 1.8em; position: relative; margin: .5em 0; font-weight: 700; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; width: 1.3em; height: 1.3em; border-radius: 50%;
  background: var(--pistachio); color: var(--choco); display: grid; place-items: center; font-size: .8em; top: .15em;
}

/* ---------- Votación semanal ---------- */
.vote-board { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vote-col { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.vote-col h3 { font-size: 1.5rem; }
.vote-col--danger { border: 3px dashed var(--berry); }
.vote-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vote-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.vote-row__img { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--latte); display: grid; place-items: center; }
.vote-row__img img { width: 100%; height: 100%; object-fit: cover; }
.vote-row__img span { width: 70%; height: 70%; border-radius: 50%; }
.vote-row strong { display: block; font: 700 1.1rem var(--font-display); }
.vote-row small { color: var(--text-soft); font-weight: 700; }
.vote-bar { height: 8px; border-radius: 99px; background: var(--latte); margin-top: 6px; overflow: hidden; }
.vote-bar span { display: block; height: 100%; background: var(--pistachio); border-radius: 99px; }
.vote-col--danger .vote-bar span { background: var(--berry); }
.vote-row__score { font: 700 1.4rem var(--font-display); }
.vote-save { margin: 16px 0 0; font-weight: 800; }
.vote-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.vote-total { text-align: center; margin: 14px 0 0; font-weight: 700; color: var(--text-soft); }
@media (max-width: 780px) { .vote-board { grid-template-columns: 1fr; } }

/* ---------- Mood Points (promo) ---------- */
.mp-promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.mp-promo p { font-size: 1.1rem; }
.hl { background: var(--honey); padding: 0 .2em; border-radius: 8px; }
.mp-promo__perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mp-promo__perks li { background: var(--cream); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.mp-promo__perks b { font-size: 2rem; }
.mp-promo__perks strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.mp-promo__perks span { font-size: .9rem; }

/* ---------- Tienda ---------- */
.store { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.store__addr { font-size: 1.15rem; font-weight: 700; }
.hours { border-collapse: collapse; margin: 0 0 1.8em; width: 100%; max-width: 420px; }
.hours td { padding: .6em 0; border-bottom: 1px dashed var(--caramel); }
.hours td:last-child { text-align: right; font-weight: 700; }
.store__pattern {
  aspect-ratio: 1; border-radius: 50%; background: url("../assets/DOEY_wax_paper_pattern.svg") center/180%;
  border: 10px solid var(--caramel); box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.footer { background: var(--choco-deep); color: var(--cream); padding: 60px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: 40px; }
.footer__logo { width: 180px; height: auto; margin-bottom: 12px; }
.footer h4 { font-size: 1.1rem; color: var(--honey); }
.footer nav a { display: block; text-decoration: none; margin: .4em 0; opacity: .85; }
.footer nav a:hover { opacity: 1; text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; background: var(--honey); color: var(--choco);
  display: grid; place-items: center; transition: transform .2s;
}
.social a:hover { transform: translateY(-3px); }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 244, 236, .15); font-size: .85rem; opacity: .7; }

/* ---------- Drawer de pedido ---------- */
.overlay { position: fixed; inset: 0; background: rgba(47, 28, 18, .45); z-index: 60; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--cream); z-index: 70; display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .3s ease;
}
.drawer.is-open { transform: none; box-shadow: -10px 0 40px rgba(0, 0, 0, .2); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: var(--latte); }
.drawer__head h3 { margin: 0; font-size: 1.6rem; }
.icon-btn { border: 0; background: var(--cream); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--choco); }
.drawer__box { padding: 20px 24px 8px; }
.drawer__box label { font-weight: 800; font-size: .85rem; display: block; margin-bottom: 6px; }
.drawer__box select {
  width: 100%; padding: .8em 1em; border-radius: 12px; border: 2px solid var(--latte);
  font: 700 1rem var(--font-body); color: var(--choco); background: var(--white);
}
.progress { height: 10px; background: var(--latte); border-radius: 99px; margin-top: 14px; overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--berry); border-radius: 99px; transition: width .3s; }
.drawer__hint { font-size: .9rem; font-weight: 700; margin: .6em 0 0; }
.drawer__list { list-style: none; margin: 0; padding: 8px 24px; flex: 1 0 auto; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--latte); }
.line__img { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: var(--latte); display: grid; place-items: center; }
.line__img svg, .line__img img { width: 80%; }
.line__name { flex: 1; font-weight: 800; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--choco); background: transparent; color: var(--choco); font-weight: 800; cursor: pointer; }
.empty { text-align: center; padding: 40px 0; opacity: .7; }
.drawer__foot { padding: 20px 24px; border-top: 2px solid var(--latte); position: sticky; bottom: 0; background: var(--cream); }
.drawer__total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 14px; }
.drawer__envio { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; font-size: .92rem; color: var(--choco); }
.drawer__envio small { color: var(--berry); font-weight: 700; }

/* ---------- Pasos del pedido ---------- */
.drawer__earn { margin: -4px 0 14px; font-weight: 800; font-size: .9rem; background: var(--honey); border-radius: 12px; padding: .6em .9em; }
.drawer__alt { display: block; margin: 12px auto 0; }
.link { background: none; border: 0; padding: 0; color: var(--choco); font: 700 .9rem var(--font-body); text-decoration: underline; cursor: pointer; }
.order-step { padding: 8px 24px 16px; display: grid; gap: 12px; flex: 1 0 auto; }
.order-step__back { justify-self: start; }
.order-step h4 { margin: 8px 0 0; font-size: 1.15rem; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice--3 { grid-template-columns: repeat(3, 1fr); }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center; text-align: center; min-height: 52px; padding: 8px 6px;
  border: 2px solid var(--latte); border-radius: 14px; background: var(--white);
  font-weight: 800; font-size: .85rem; line-height: 1.25; transition: border-color .15s, background .15s;
}
.choice input:checked + span { border-color: var(--choco); background: var(--honey); }
.choice input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-weight: 800; font-size: .85rem; }
.field small { font-weight: 600; opacity: .7; }
.field input, .field textarea {
  width: 100%; padding: .75em .9em; border-radius: 12px; border: 2px solid var(--latte);
  font: 600 1rem var(--font-body); color: var(--choco); background: var(--white); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--choco); }
.form__error { color: #B3261E; font-weight: 700; margin: 0; min-height: 1.2em; font-size: .9rem; }
.order-done { padding: 32px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; flex: 1 0 auto; align-content: center; }
.order-done__icon { font-size: 3.4rem; }
.order-done h3 { margin: 0; font-size: 1.8rem; }
.order-done__num { font: 700 1.3rem var(--font-display); background: var(--honey); padding: .25em .9em; border-radius: 999px; margin: 0; }
.order-done p { margin: 0; }
.order-done .btn--block { width: 100%; }
.order-done__links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Formulario de dirección ---------- */
.dir { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dir__full { grid-column: 1 / -1; }
.dir label { display: grid; gap: 6px; font-weight: 800; font-size: .85rem; }
.dir small { font-weight: 600; opacity: .7; }
.dir input, .dir select {
  width: 100%; padding: .75em .9em; border-radius: 12px; border: 2px solid var(--latte);
  font: 600 1rem var(--font-body); color: var(--choco); background: var(--white);
}
.dir input:focus, .dir select:focus { outline: none; border-color: var(--choco); }
.dir-save { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .85rem; cursor: pointer; }
.dir-save input { width: 18px; height: 18px; accent-color: var(--choco); }
.dir-saved { margin: 0; font-size: .85rem; font-weight: 700; background: var(--cream); border-radius: 10px; padding: .5em .8em; }
.dir-geo { display: grid; gap: 8px; background: var(--cream); border: 2px dashed var(--honey); border-radius: 14px; padding: 12px; }
.dir-geo__body { display: grid; gap: 8px; justify-items: start; }
.dir-geo__hint, .dir-geo__ok, .dir-geo__warn { margin: 0; font-size: .85rem; font-weight: 700; }
.dir-geo__warn { color: #8A1C38; }
.dir-geo__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dir-map { width: 100%; height: 180px; border: 0; border-radius: 12px; background: var(--latte); }
.geo-tag { font-weight: 800; font-size: .8rem; }
.prov-badge { display: inline-block; background: var(--honey); color: var(--choco); font-weight: 800; font-size: .78rem; padding: .2em .7em; border-radius: 999px; }
@media (max-width: 420px) { .dir { grid-template-columns: 1fr; } }

/* ---------- Tienda para recoger ---------- */
.pickup { display: grid; gap: 8px; }
.pickup label { position: relative; cursor: pointer; }
.pickup input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pickup span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--latte); background: var(--white); font-weight: 700; }
.pickup small { font-weight: 600; color: var(--text-soft); }
.pickup input:checked + span { border-color: var(--choco); background: var(--honey); }
.pickup input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 2px; }
.punto-badge { display: inline-block; background: var(--choco); color: var(--honey); font-weight: 800; font-size: .75rem; padding: .2em .7em; border-radius: 999px; }

/* ---------- Cuentas para transferencia ---------- */
.bancos { display: grid; gap: 10px; }
.bancos__title { margin: 0; font-weight: 800; font-size: .9rem; }
.bancos__title small { font-weight: 600; opacity: .7; }
.bancos__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bancos__opts label { position: relative; cursor: pointer; }
.bancos__opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bancos__opts span { display: inline-block; padding: .5em .9em; border-radius: 999px; border: 2px solid var(--latte); background: var(--white); font-weight: 800; font-size: .9rem; }
.bancos__opts input:checked + span { background: var(--honey); border-color: var(--choco); }
.bancos__opts input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 2px; }
.cuenta { background: var(--white); border: 2px solid var(--honey); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.cuenta__banco { font-weight: 800; }
.cuenta__banco small { font-weight: 700; opacity: .7; margin-left: 4px; }
.cuenta__num { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cuenta__num span { font: 700 1.5rem var(--font-display); letter-spacing: .04em; word-break: break-all; }
.cuenta__titular { font-size: .85rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  background: var(--choco); color: var(--cream); padding: .9em 1.4em; border-radius: 999px;
  font-weight: 700; z-index: 80; transition: transform .3s ease, visibility .3s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .boxes .box { flex-basis: calc((100% - 20px) / 2); }
  .gift, .store, .mp-promo { grid-template-columns: 1fr; gap: 40px; }
  .gift__art img { max-width: 260px; }
  .store__pattern { max-width: 340px; margin-inline: auto; width: 100%; }
}
@media (max-width: 780px) {
  .hide-mobile { display: none; }
  .account-btn__name { max-width: 72px; }
  .account-btn__name::before { content: none; }
  .burger { display: block; }
  .header__inner { justify-content: space-between; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--honey); padding: 8px 16px 20px; margin: 0;
    clip-path: inset(0 0 100% 0); transition: clip-path .25s ease;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); box-shadow: 0 10px 20px rgba(75, 46, 30, .15); }
  .nav a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid rgba(75, 46, 30, .15); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { padding-top: 32px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__art { max-width: 320px; grid-row: 1; }
  .section { padding: 64px 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .boxes { gap: 12px; }
  .boxes .box { flex-basis: calc((100% - 12px) / 2); }
  .box { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.drawer__envio .drawer__km { color: var(--text-soft); font-weight: 600; }
.link--danger { color: #A3213F; }
.qty--card { gap: 14px; background: var(--latte); border-radius: 999px; padding: 6px; }
.qty--card button { width: 40px; height: 40px; font-size: 1.2rem; background: var(--white); border-color: var(--choco); }
.qty--card button:hover { background: var(--choco); color: var(--cream); }
.qty--card strong { min-width: 24px; text-align: center; font: 700 1.3rem var(--font-display); }
/* Con el checkout del menú visible, el aviso sale más arriba para no taparlo. */
body.has-checkout .toast { bottom: 150px; }

/* ---------- Horneándose ahora (página principal) ---------- */
.horno-home { background: var(--honey); padding: 22px 0; border-block: 3px solid var(--choco); }
.horno-home__title { margin: 0 0 12px; text-align: center; font-size: 1.5rem; color: var(--choco); }
.horno-home__list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.horno-home__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
  background: var(--cream); color: var(--choco); border-radius: 18px; padding: 12px 18px; box-shadow: var(--shadow);
}
.horno-home__flama { font-size: 1.6rem; animation: flama 1s ease-in-out infinite alternate; }
@keyframes flama { to { transform: scale(1.15) rotate(-6deg); } }
.horno-home__que { font-weight: 700; }
.horno-home__reloj { font: 700 1.6rem var(--font-display); font-variant-numeric: tabular-nums; color: var(--berry); }
.horno-home__bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--latte); overflow: hidden; }
.horno-home__bar span { display: block; height: 100%; width: 0; background: var(--berry); border-radius: inherit; transition: width 1s linear; }
@media (prefers-reduced-motion: reduce) { .horno-home__flama { animation: none; } }

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; background: var(--white); border-radius: var(--radius); padding: clamp(22px, 5vw, 48px); box-shadow: var(--shadow); color: var(--choco); }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
.legal li { margin-bottom: .35em; }
.legal a:not(.btn) { color: var(--berry); font-weight: 700; }
.legal__fecha { color: var(--text-soft); font-size: .9rem; }
.footer__legal a { color: inherit; }
.footer__contacto p { margin: 0 0 .6em; opacity: .9; line-height: 1.5; }
.footer__contacto a { display: block; color: inherit; text-decoration: none; margin: .35em 0; opacity: .9; overflow-wrap: anywhere; }
.footer__contacto a:hover { opacity: 1; text-decoration: underline; }
