/* =========================================================
   Pureza 61 — estilos
   Fondo de cera, tarjetas redondeadas y bloques en verde de la casa.
   Titulares en Bodoni y Figtree para textos, precios y controles.
   ========================================================= */

:root {
  /* Paleta de la casa */
  --verde-950: #08241a;
  --verde-900: #0c3120;
  --verde-800: #0f3d20;
  --verde-700: #145230;
  --verde-600: #1b6b35;
  --verde-500: #2a8446;
  --oro: #b8923a;
  --oro-claro: #d9bd73;
  --oro-palido: #efe2bd;
  --oro-tinta: #86661f;   /* oro legible sobre fondos claros */
  --burdeos: #6b1526;
  --burdeos-900: #4d0f1b;
  --kraft: #e7d8bd;
  --cera: #f3ecdf;        /* fondo de página */
  --crema: #f5efe3;
  --papel: #fbf8f2;
  --blanco: #fffdf9;
  --tinta: #13261b;       /* texto y píldoras oscuras */
  --tinta-2: #465048;
  --tinta-3: #6f746a;
  --linea: #e0d5bf;

  --display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: var(--display);

  --r-xl: clamp(26px, 3vw, 36px);
  --r-lg: 24px;
  --r-md: 16px;
  --shadow-sm: 0 1px 2px rgba(19, 38, 27, .06), 0 4px 14px -6px rgba(19, 38, 27, .12);
  --shadow: 0 24px 50px -24px rgba(19, 38, 27, .35), 0 4px 12px -4px rgba(19, 38, 27, .08);
  --shadow-lg: 0 30px 60px -22px rgba(8, 36, 26, .45), 0 8px 18px -8px rgba(8, 36, 26, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --azulejo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d9bd73' stroke-width='1'%3E%3Cpath d='M36 6L66 36L36 66L6 36Z'/%3E%3Ccircle cx='36' cy='36' r='8'/%3E%3Cpath d='M36 16C43 25 43 30 36 36C29 30 29 25 36 16ZM56 36C47 43 42 43 36 36C42 29 47 29 56 36ZM36 56C29 47 29 42 36 36C43 42 43 47 36 56ZM16 36C25 29 30 29 36 36C30 43 25 43 16 36Z'/%3E%3Cpath d='M0 0H10L0 10ZM72 0H62L72 10ZM0 72V62L10 72ZM72 72H62L72 62Z'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--cera);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 6px; }

.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: 1rem; top: -3rem; z-index: 100; background: var(--tinta); color: var(--crema); padding: .5rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--oro-tinta); }
.eyebrow--light { color: var(--oro-claro); }
.step-n { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1rem; letter-spacing: 0; color: var(--oro-tinta); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-size: .95rem; font-weight: 600; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--spring), box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); transition-duration: .1s; }
.btn svg { transition: transform .35s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn--dark { background: var(--tinta); color: var(--crema); }
.btn--dark:hover { background: var(--verde-700); box-shadow: 0 12px 24px -12px rgba(15, 61, 32, .6); }
.btn--line { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn--line:hover { background: var(--tinta); color: var(--crema); }
.btn--gold { background: var(--oro-claro); color: var(--tinta); }
.btn--gold:hover { background: #e4ca86; box-shadow: 0 12px 26px -12px rgba(184, 146, 58, .8); }
.btn--cream { background: var(--crema); color: var(--tinta); }
.btn--cream:hover { background: var(--blanco); }
.btn--line-light { border-color: rgba(245, 239, 227, .45); color: var(--crema); background: transparent; }
.btn--line-light:hover { border-color: var(--crema); background: rgba(245, 239, 227, .1); }
.btn--round { width: 48px; min-height: 48px; padding: 0; background: var(--oro-claro); color: var(--tinta); flex: none; }
.btn--round:hover { background: #e4ca86; transform: rotate(90deg); }
.btn--round:hover svg { transform: none; }
.btn--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: 50%; background: rgba(19, 38, 27, .07); color: var(--tinta); font-size: 1rem;
  transition: background .2s, transform .3s var(--spring);
}
.icon-btn:hover { background: rgba(19, 38, 27, .13); transform: rotate(90deg); }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(243, 236, 223, .84);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--linea); box-shadow: 0 10px 30px -24px rgba(19, 38, 27, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--verde-800); }
.brand img { width: 38px; }
.brand__word { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; line-height: 1; }
.brand__word b { font-style: italic; color: var(--oro-tinta); font-weight: 600; }
.brand__word--light { color: var(--crema); }

.nav { display: flex; gap: .25rem; }
.nav a {
  padding: .5rem .9rem; border-radius: 999px; text-decoration: none;
  font-size: .92rem; font-weight: 500; color: var(--tinta-2); transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(19, 38, 27, .06); color: var(--tinta); }
.site-header__actions { display: flex; align-items: center; gap: .5rem; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  height: 46px; padding: 0 1.1rem; border: 0; border-radius: 999px;
  background: var(--tinta); color: var(--crema); font-weight: 600; font-size: .92rem;
  transition: background .25s, transform .35s var(--spring);
}
.cart-btn:hover { background: var(--verde-700); transform: translateY(-2px); }
.cart-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: var(--oro-claro); color: var(--tinta); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(19, 38, 27, .07); position: relative; }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--tinta); transition: transform .3s var(--ease), top .3s; }
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22.5px; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; gap: 0;
    padding: .5rem; border-radius: 22px; background: var(--papel); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .nav a { padding: .9rem 1rem; font-size: 1.05rem; }
  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 460px) { .cart-btn__label { display: none; } .cart-btn { padding: 0 .9rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  background: radial-gradient(ellipse 55% 60% at 75% 45%, rgba(239, 226, 189, .7), transparent 70%);
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; } }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }

.pill-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1.05rem;
  border: 1px solid var(--linea); border-radius: 999px; background: var(--papel);
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--verde-700);
  box-shadow: var(--shadow-sm);
}
.pill-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde-500); box-shadow: 0 0 0 4px rgba(42, 132, 70, .18); }

.hero__title {
  margin-top: 1.25rem;
  font-family: var(--display); font-weight: 700; font-optical-sizing: auto;
  font-size: clamp(3.1rem, 7.4vw, 6.4rem); line-height: .92; letter-spacing: -.03em; color: var(--tinta);
}
.hero__title em { font-weight: 600; color: var(--verde-600); }
.hero__lead { max-width: 34rem; margin-top: 1.4rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.6; color: var(--tinta-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--tinta-3); }
.hero__trust li::before { content: '✓'; margin-right: .45rem; color: var(--verde-600); font-weight: 700; }

/* Fotos de producto, quietas */
.hero__media { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; align-items: end; }
.hero__photo {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-xl);
  background: var(--papel); box-shadow: var(--shadow); text-decoration: none; color: var(--tinta);
}
.hero__photo img { width: 100%; object-fit: cover; }
.hero__photo--main img { aspect-ratio: 4 / 5.4; object-position: 50% 30%; }
.hero__photo--side { margin-bottom: 2.5rem; }
.hero__photo--side img { aspect-ratio: 4 / 5; }
.hero__photo--naz { aspect-ratio: 4 / 5.4; background: var(--crema); }
.hero__photo--naz .naz-stage .naz { height: min(72cqh, 108cqw); margin-top: -8cqh; }
.hero__photo--white { background: #fff; }
.hero__photo--white img { aspect-ratio: 4 / 3; object-fit: contain; padding: 3%; }
/* Aquí la etiqueta va bajo la foto para no tapar las barritas */
.hero__photo--white .hero__photo-tag { position: static; max-width: none; margin: 0 10px 10px; background: var(--crema); box-shadow: none; }
.hero__photo-tag {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem;
  padding: .4rem .8rem; border-radius: 12px; background: rgba(251, 248, 242, .95);
  font-size: .74rem; line-height: 1.35; color: var(--tinta-3); box-shadow: var(--shadow-sm);
}
.hero__photo-tag b { font-size: .82rem; font-weight: 700; color: var(--tinta); }
.hero__photo:hover .hero__photo-tag b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Banda de ventajas ---------- */
.band { overflow: hidden; background: var(--verde-800); color: var(--oro-palido); padding: .85rem 0; }
.band__track {
  display: flex; align-items: center; gap: 1.4rem; width: max-content; animation: marquee 50s linear infinite;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.band__track i { font-style: normal; font-size: .7rem; color: var(--oro-claro); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tight { padding-top: clamp(1rem, 2vw, 2rem); }
.section--joined { padding-top: 0; }
#tienda { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section__head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .section__head { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; } }
.section__title {
  margin-top: .7rem; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: .96; letter-spacing: -.03em; color: var(--tinta);
}
.section__title em { font-weight: 600; color: var(--verde-600); }
.section__lead { font-size: 1.08rem; color: var(--tinta-2); max-width: 30rem; }

/* ---------- Tienda (rejilla) ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
  .tile--naz, .tile--info { grid-column: 1 / -1; }
}

.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 1.1rem; min-width: 0;
  padding: clamp(1.1rem, 2vw, 1.6rem); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tag {
  display: inline-flex; align-items: center; padding: .38rem .8rem; border-radius: 999px;
  background: rgba(19, 38, 27, .08); color: var(--tinta);
  font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
}
.tag--gold { background: var(--oro-claro); color: var(--tinta); }
.tag--light { background: rgba(245, 239, 227, .14); color: var(--crema); }

/* Cifras: tamaño óptico pequeño para que los trazos finos no desaparezcan */
.price, .specs dd, .bignum, .walks__time b, .totals__grand dd, .addr-card__num { font-variation-settings: 'opsz' 14; }
.price { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 700; line-height: 1; font-variant-numeric: lining-nums; white-space: nowrap; }
.price b { font-size: 2.1rem; letter-spacing: -.02em; }
.price small { font-family: var(--sans); font-size: .9rem; font-weight: 600; margin-left: 1px; opacity: .8; }
.price--lg b { font-size: 3rem; }

.tile__body { display: flex; flex-direction: column; min-width: 0; }
.tile__title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: .95; letter-spacing: -.02em; }
.tile__sub { margin-top: .6rem; font-size: .95rem; line-height: 1.5; opacity: .82; max-width: 36ch; }
.tile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: auto; padding-top: 1.35rem; }
.tile__kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Incensario Nazareno: ilustración coloreada + configuración en una sola ficha */
.tile--naz { background: var(--verde-800); color: var(--crema); padding: clamp(.6rem, 1vw, .8rem); gap: .7rem; overflow: clip; }
.tile--naz::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--azulejo) center / 64px; opacity: .06; }
.naz-view { position: relative; margin: 0; border-radius: calc(var(--r-xl) - 8px); overflow: hidden; background: var(--crema); }
.naz-view .naz-stage { border-radius: inherit; }
.naz-view__cap {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; max-width: calc(100% - 24px);
  padding: .4rem .9rem; border-radius: 999px; background: rgba(19, 38, 27, .88); color: var(--crema);
  font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Móvil: la figura se queda fija arriba mientras eliges colores */
@media (max-width: 859px) {
  .naz-view {
    position: sticky; top: 80px; z-index: 4; height: clamp(230px, 38vh, 320px);
    box-shadow: 0 14px 24px -14px rgba(8, 36, 26, .55);
  }
  .naz-panel__about { order: 10; padding-top: 1.1rem; border-top: 1px dashed var(--linea); }
  .naz-panel__desc { font-size: .88rem; }
}
@media (min-width: 860px) {
  .tile--naz { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: .8rem; }
  .naz-view { min-height: 460px; }
}

.naz-panel {
  display: grid; gap: 1.35rem; align-content: start; min-width: 0;
  padding: clamp(1.1rem, 2.6vw, 2rem); border-radius: calc(var(--r-xl) - 8px); background: var(--papel); color: var(--tinta);
}
.naz-panel__head .tile__title { margin-top: .7rem; }
.naz-panel__lead { margin-top: .45rem; font-size: .95rem; color: var(--tinta-2); }
.naz-panel__desc { font-size: .92rem; line-height: 1.55; color: var(--tinta-2); max-width: 60ch; }
.naz-panel .chips { margin-top: .8rem; }

.buyopts { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: .5rem; }
.buyopts legend { padding: 0; margin-bottom: .75rem; }
.buyopt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem;
  padding: .8rem 1rem; border: 1.5px solid var(--linea); border-radius: 16px; background: var(--blanco);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.buyopt:hover { border-color: #cfc2a6; }
.buyopt:has(input:checked) { border-color: var(--tinta); background: var(--crema); }
.buyopt input { accent-color: var(--tinta); margin: 0; width: 18px; height: 18px; }
.buyopt__txt { display: grid; line-height: 1.3; }
.buyopt__txt b { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .95rem; }
.buyopt__txt small { font-size: .8rem; color: var(--tinta-3); }
.buyopt__save { padding: .12rem .5rem; border-radius: 999px; background: var(--oro-claro); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.buyopt__price { display: grid; justify-items: end; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buyopt__price s { font-size: .78rem; font-weight: 500; color: var(--tinta-3); }

.naz-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; }
@media (max-width: 480px) { .naz-buy .qty button { width: 36px; } .naz-buy .btn { padding-inline: 1rem; } }
.naz-note { margin-top: -.6rem; font-size: .78rem; color: var(--tinta-3); }

/* Incienso en polvo */
.tile--polvo { background: var(--kraft); color: var(--tinta); }
.tile__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #efebe4; }

.aromas { border: 0; margin: 1.1rem 0 0; padding: 0; min-width: 0; }
.aromas__row { display: flex; flex-wrap: wrap; gap: .4rem; }
.aroma { position: relative; cursor: pointer; }
.aroma input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.aroma__pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .8rem .32rem .32rem;
  border: 1px solid rgba(19, 38, 27, .12); border-radius: 999px; background: rgba(255, 253, 249, .6);
  font-size: .82rem; font-weight: 600; color: var(--tinta);
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--spring), box-shadow .25s;
}
.aroma__icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; transition: background .25s; }
.aroma:hover .aroma__pill { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.aroma input:checked + .aroma__pill { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 10px 18px -10px var(--c); }
.aroma input:checked + .aroma__pill .aroma__icon { background: rgba(255, 255, 255, .22); }
.aroma input:focus-visible + .aroma__pill { outline: 2px solid var(--tinta); outline-offset: 2px; }
.aromas__notes { margin-top: .75rem; font-family: var(--display); font-style: italic; font-size: 1.08rem; color: var(--tinta-2); min-height: 1.6em; }
.aromas__notes::before { content: 'Notas: '; font-family: var(--sans); font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oro-tinta); }

/* Incienso en barrita */
.tile--barritas { background: var(--burdeos); color: var(--crema); }
.tile--barritas .tile__media--photo { aspect-ratio: 4 / 3; background: #fff; }
.tile__media--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.stick { width: 100%; max-width: 300px; margin-top: 1.1rem; color: rgba(245, 239, 227, .55); }
.stick__ember { animation: ember 2.2s ease-in-out infinite; transform-origin: 290px 28.5px; }
@keyframes ember { 50% { opacity: .65; transform: scale(.85); } }
.stick__smoke { stroke-dasharray: 30; animation: smoke 3s ease-in-out infinite; }
@keyframes smoke { 0% { stroke-dashoffset: 30; opacity: 0; } 40% { opacity: 1; } 100% { stroke-dashoffset: -30; opacity: 0; } }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0 0; }
.specs div { padding-top: .6rem; border-top: 1px solid rgba(245, 239, 227, .22); }
.specs dt { font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .7; }
.specs dd { margin: .2rem 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; font-variant-numeric: lining-nums; }
.specs dd small { font-family: var(--sans); font-size: .85rem; font-weight: 600; margin-left: .15rem; opacity: .75; }

/* Tarjeta de envío */
.tile--info { background: var(--oro-claro); color: var(--tinta); justify-content: space-between; }
.bignum { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 8vw, 6.5rem); line-height: .82; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.bignum small { font-size: .38em; font-weight: 600; vertical-align: top; margin-left: .05em; }
.perks { display: grid; gap: .5rem; margin: .5rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid rgba(19, 38, 27, .15); font-size: .9rem; font-weight: 600; }
.perks li { display: flex; align-items: center; gap: .6rem; }
@media (min-width: 760px) {
  .tile--info { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2rem; }
  .tile--info .tile__sub { max-width: 30ch; }
  .tile--info .perks { margin: 0; padding: 0 0 0 2rem; border-top: 0; border-left: 1px solid rgba(19, 38, 27, .15); }
}

/* ---------- Variantes: muestras de color ---------- */
.swatches { border: 0; margin: 0; padding: 0; min-width: 0; }
.swatches legend { display: flex; align-items: baseline; gap: .55rem; width: 100%; padding: 0; margin-bottom: .75rem; }
.swatches__legend { font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--tinta-3); }
.swatches__value { margin-left: auto; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.15rem; color: var(--verde-700); }
.swatches__row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch__dot {
  display: block; width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .45), transparent 46%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 2px 4px rgba(0, 0, 0, .12);
  transition: transform .35s var(--spring), box-shadow .2s;
}
.swatch:hover .swatch__dot { transform: scale(1.12) translateY(-2px); }
.swatch input:checked + .swatch__dot { transform: scale(1.06); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 3px var(--papel), 0 0 0 5px var(--tinta); }
.swatch input:focus-visible + .swatch__dot { outline: 2px solid var(--oro); outline-offset: 6px; }
.swatches--lg .swatch__dot { width: 42px; height: 42px; }
.swatches--lg .swatches__row { gap: 12px; }
@media (max-width: 420px) { .swatches--lg .swatch__dot { width: 36px; height: 36px; } .swatches--lg .swatches__row { gap: 9px; } }

/* ---------- Nazarenito SVG ---------- */
.naz-stage {
  position: absolute; inset: 0; display: grid; place-items: center; container-type: size;
  background: radial-gradient(ellipse at 50% 36%, #fffdf8 0%, var(--crema) 72%);
  --naz-body: #17171b; --naz-hood: #3d7a2c;
}
.naz-stage::before { content: ''; position: absolute; inset: 0; background: var(--azulejo) center / 56px; opacity: .1; }
/* Cabe siempre: 82% del alto, pero nunca más ancho que el 72% del escenario (viewBox 220×360) */
.naz-stage .naz { position: relative; height: min(82cqh, 118cqw); width: auto; margin-top: 6cqh; }
.naz-body { fill: var(--naz-body); transition: fill .5s var(--ease); }
.naz-hood { fill: var(--naz-hood); transition: fill .5s var(--ease); }
.naz-smoke path { opacity: 0; stroke-dasharray: 140; stroke-dashoffset: 140; animation: wisp 5.5s ease-in-out infinite; filter: blur(.6px); }
.naz-smoke path:nth-child(2) { animation-delay: -2.7s; }
.naz-ember { transform-box: fill-box; transform-origin: center; animation: ember 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .naz-smoke path { animation: none !important; opacity: .45; stroke-dashoffset: 0; }
}
@keyframes wisp {
  0% { stroke-dashoffset: 140; opacity: 0; transform: translateY(0); }
  30% { opacity: .55; }
  100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-14px); }
}

/* ---------- Incienso en polvo: foto real con etiqueta ---------- */
/* El SVG va a sangre (como object-fit: cover); la etiqueta es SVG encima de la foto. */
.polvo-mock { position: absolute; inset: 0; overflow: hidden; background: #efebe4; }
.polvo-svg { display: block; width: 100%; height: 100%; }
.pm-brand { font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: .16em; fill: var(--verde-700); }
.pm-aroma { font-family: var(--display); font-weight: 700; font-style: italic; fill: var(--tone); transition: fill .4s; }
.pm-aroma.is-swapping { animation: ink .5s var(--ease); }
@keyframes ink { from { opacity: 0; } }
.pm-tone { transition: stroke .4s; }
.pm-meta { font-family: var(--sans); font-weight: 700; font-size: 9.5px; letter-spacing: .12em; fill: #4a3f2c; }

/* ---------- Cantidad ---------- */
.qty { display: inline-flex; align-items: center; height: 48px; border: 1.5px solid var(--linea); border-radius: 999px; background: var(--blanco); }
.qty button { width: 44px; height: 100%; border: 0; border-radius: 999px; background: none; font-size: 1.15rem; color: var(--tinta); transition: background .2s; }
.qty button:hover { background: var(--crema); }
.qty output { min-width: 1.8rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty--sm { height: 34px; }
.qty--sm button { width: 32px; font-size: 1rem; }
.qty--sm output { min-width: 1.2rem; font-size: .9rem; }

/* ---------- La tienda en Triana ---------- */
.templo__grid { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .templo__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); align-items: stretch; } }
.templo__map { position: relative; padding: 8px; border-radius: var(--r-xl); background: var(--papel); box-shadow: var(--shadow); min-height: 480px; display: flex; }
.map { flex: 1; min-height: 460px; border-radius: calc(var(--r-xl) - 8px); overflow: hidden; background: #ece6d6; z-index: 0; }
.map .leaflet-tile-pane { filter: grayscale(1) sepia(.45) hue-rotate(38deg) saturate(.55) contrast(.9) brightness(1.07); }
.map-fallback { display: grid; place-items: center; height: 100%; color: var(--verde-700); }
.map__legend {
  position: absolute; z-index: 1000; left: 22px; top: 22px; display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem; border-radius: 999px; background: rgba(251, 248, 242, .94); box-shadow: var(--shadow-sm);
  font-size: .8rem; font-weight: 600; color: var(--tinta);
}
@media (max-width: 560px) {
  .map__legend-extra, .map .leaflet-tooltip.tip span { display: none; }
  .map .leaflet-tooltip.tip { padding: .35rem .6rem; }
  .map .leaflet-tooltip.tip b { font-size: .86rem; }
  .map__legend { left: 16px; top: 16px; }
  .map__recenter { right: 16px; top: 16px; }
}
.map__legend-line { width: 24px; height: 4px; border-radius: 4px; background: var(--oro); box-shadow: 0 0 0 3px rgba(217, 189, 115, .35); }
.map__recenter {
  position: absolute; z-index: 1000; right: 22px; top: 22px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--papel); color: var(--tinta); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--spring), background .2s;
}
.map__recenter:hover { transform: rotate(90deg); background: var(--blanco); }

.street-glow { stroke: #d9bd73; stroke-opacity: .45; fill: none; }
.street-line { stroke: #b8923a; stroke-opacity: 1; fill: none; }
.street-walk { stroke: #0f3d20; stroke-opacity: .9; stroke-dasharray: 1 9; stroke-linecap: round; fill: none; animation: walk 1s linear infinite; }
@keyframes walk { to { stroke-dashoffset: -10; } }
.street-label { background: none; border: 0; }
.street-label span {
  display: block; transform: translate(-50%, -50%) rotate(17deg); white-space: nowrap;
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 15px; color: var(--verde-800);
  text-shadow: 0 0 3px #f5efe3, 0 0 6px #f5efe3, 0 0 10px #f5efe3;
}

.pin-store { background: none; border: 0; }
.pin-store__dot {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--blanco); border: 2px solid var(--oro); box-shadow: 0 8px 18px -6px rgba(8, 36, 26, .5);
}
.leaflet-marker-pane .pin-store__dot img { width: 34px !important; height: auto !important; }
.pin-store__dot::after {
  content: ''; position: absolute; bottom: -9px; left: 50%; width: 14px; height: 14px;
  background: var(--blanco); border-right: 2px solid var(--oro); border-bottom: 2px solid var(--oro);
  transform: translateX(-50%) rotate(45deg); z-index: -1;
}
.pin-store__dot::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--oro); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.pin-store__label {
  position: absolute; left: 50%; top: 64px; transform: translateX(-50%); white-space: nowrap;
  padding: .2rem .6rem; border-radius: 999px; background: var(--tinta); color: var(--crema);
  font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.pin-ref { background: none; border: 0; }
.pin-ref span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--verde-700); color: var(--crema); border: 2px solid var(--blanco);
  font-family: var(--sans); font-size: .72rem; font-weight: 700; box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.leaflet-tooltip.tip {
  padding: .45rem .75rem; border: 0; border-radius: 12px; background: rgba(255, 253, 249, .97);
  box-shadow: 0 8px 20px -8px rgba(8, 36, 26, .4); font-family: var(--sans); color: var(--tinta-2);
  display: grid; line-height: 1.25;
}
.leaflet-tooltip.tip::before { display: none; }
.leaflet-tooltip.tip b { font-family: var(--display); font-size: 1rem; color: var(--verde-800); }
.leaflet-tooltip.tip span { font-size: .72rem; }
.leaflet-popup-content-wrapper { border-radius: 16px; font-family: var(--sans); }
.leaflet-popup-content { line-height: 1.5; }
.leaflet-popup-content strong { font-family: var(--display); font-size: 1.2rem; color: var(--verde-800); }
.leaflet-popup-content a { color: var(--verde-600); font-weight: 600; }
.leaflet-container a.leaflet-popup-close-button { top: 6px; right: 6px; }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow-sm) !important; border-radius: 14px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 38px !important; color: var(--tinta) !important; background: var(--papel) !important; }
.leaflet-control-attribution { font-size: 10px; background: rgba(251, 248, 242, .8) !important; margin: 0 14px 6px 0 !important; border-radius: 6px; }

.templo__side { display: grid; gap: 1rem; align-content: start; }
.addr-card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--r-xl); background: var(--tinta); color: var(--crema);
}
.addr-card__num { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(4.5rem, 7vw, 6rem); line-height: .8; color: var(--oro-claro); letter-spacing: -.04em; }
.addr-card__street { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.addr-card__text p:not(.addr-card__street) { color: rgba(245, 239, 227, .7); font-size: .92rem; }
.addr-card .btn { grid-column: 1 / -1; margin-top: .75rem; }

.walks-card, .contact-card { padding: 1.2rem 1.4rem; border-radius: var(--r-xl); background: var(--papel); box-shadow: var(--shadow-sm); }
.card-title { font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--oro-tinta); margin-bottom: .4rem; }
.walks { margin: 0; padding: 0; list-style: none; }
.walks li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: .75rem 0; }
.walks li + li { border-top: 1px dashed var(--linea); }
.walks__pin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-700); color: var(--crema); font-size: .78rem; font-weight: 700; }
.walks__name { display: grid; line-height: 1.25; }
.walks__name b { font-family: var(--display); font-size: 1.12rem; color: var(--tinta); }
.walks__name small { font-size: .8rem; color: var(--tinta-3); }
.walks__time { text-align: right; font-size: .78rem; font-weight: 600; color: var(--tinta-3); }
.walks__time b { font-family: var(--display); font-size: 2rem; line-height: .9; color: var(--verde-700); margin-right: .15rem; font-variant-numeric: lining-nums; }

.hours { margin: .4rem 0 0; display: grid; gap: .45rem; font-size: .9rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; }
.hours dt { color: var(--tinta-3); }
.hours dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hours dd span { white-space: nowrap; } /* si no cabe, el turno de tarde baja entero */
.contact-list { display: grid; gap: .45rem; margin: 1rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px dashed var(--linea); font-size: .9rem; }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; }
.contact-list span { color: var(--tinta-3); }
.contact-list a { font-weight: 600; color: var(--verde-700); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cómo se ve (vídeo y fotos reales) ---------- */
.envivo__grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.envivo__card {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r-xl);
  background: var(--papel); box-shadow: var(--shadow);
}
.envivo__card img, .envivo__card video { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.envivo__card--video { grid-column: 1 / -1; background: var(--tinta); }
.envivo__card--video video { aspect-ratio: 9 / 14; max-height: 78vh; }
.envivo__card--white { background: #fff; }
.envivo__card--white img { object-fit: contain; padding: 3% 2% 14%; }
.envivo__steps { grid-column: 1 / -1; display: grid; align-content: start; }
.envivo__steps .walks li { grid-template-columns: auto 1fr auto; }
.envivo__steps .btn { justify-self: start; margin-top: .9rem; }

.envivo__live {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .75rem; border-radius: 999px; background: rgba(8, 36, 26, .72); color: var(--crema);
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.envivo__live i { width: 7px; height: 7px; border-radius: 50%; background: #e0552a; box-shadow: 0 0 0 3px rgba(224, 85, 42, .3); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.envivo__toggle {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(251, 248, 242, .92); color: var(--tinta); box-shadow: var(--shadow-sm); cursor: pointer;
}
.envivo__toggle .envivo__play, .is-paused .envivo__toggle .envivo__pause { display: none; }
.is-paused .envivo__toggle .envivo__play { display: block; }
.is-paused .envivo__live i { animation: none; opacity: .4; }

@media (min-width: 960px) {
  .envivo__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); }
  .envivo__card--video { grid-column: 1; grid-row: 1 / span 2; }
  .envivo__card--video video { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; }
  .envivo__steps { grid-column: 2 / 4; }
}
/* Tableta: vídeo junto a la foto real y «Cómo se usa» junto a las barritas, en vez de todo a ancho completo */
@media (min-width: 600px) and (max-width: 959px) {
  .envivo__card--video, .envivo__steps { grid-column: auto; }
  .envivo__card--video video { aspect-ratio: 4 / 5; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .envivo__live i { animation: none; } }
@media (max-width: 599px) { .envivo__card .hero__photo-tag span { display: none; } }
.envivo__buy { position: absolute; right: 10px; bottom: 10px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .55); }
@media (min-width: 600px) { .envivo__card--video .hero__photo-tag { bottom: 60px; } }

/* ---------- Pie ---------- */
.site-footer { margin-top: clamp(1rem, 3vw, 2rem); background: var(--verde-950); color: rgba(245, 239, 227, .72); padding: 3rem 0 1.5rem; font-size: .92rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }
.brand--light { color: var(--crema); }
.brand--light .brand__word b { color: var(--oro-claro); }
.footer__brand address { margin-top: .9rem; font-style: normal; line-height: 1.5; }
.footer__h { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--oro-claro); margin-bottom: .75rem; }
.site-footer a { text-decoration: none; }
.site-footer a:not(.btn):not(.brand):hover { color: var(--crema); text-decoration: underline; text-underline-offset: 3px; }
.footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.footer__partner {
  display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; padding: .9rem 1.2rem .9rem .9rem;
  border: 1px solid rgba(217, 189, 115, .22); border-radius: var(--r-lg); background: rgba(255, 253, 249, .03);
}
.footer__partner-logo { flex: none; display: grid; place-items: center; width: 64px; height: 64px; padding: 5px; border-radius: 16px; background: #fff; }
.footer__partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer__partner p { display: grid; gap: .15rem; line-height: 1.35; }
.footer__partner b { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--crema); }
.footer__partner span { font-size: .85rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(217, 189, 115, .18); font-size: .8rem; opacity: .75; }

/* ---------- Ficha (dialog) ---------- */
.pdialog {
  width: min(1000px, 100% - 24px); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--r-xl); background: var(--papel); color: var(--tinta);
  box-shadow: 0 40px 90px -20px rgba(8, 36, 26, .6); overflow: auto; overscroll-behavior: contain;
}
.pdialog[open] { animation: dialog-in .5s var(--spring); }
.pdialog::backdrop { background: rgba(8, 36, 26, .55); backdrop-filter: blur(4px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.pdialog__close { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(251, 248, 242, .9); }

.pd { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* La foto se centra en su columna sin recortarse ni pisar el texto */
.pd__media { position: relative; display: grid; place-items: center; min-width: 0; background: #efebe4; overflow: hidden; }
.pd__media .polvo-mock { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; }
.pd--barritas .pd__media { background: #fff; }
/* Polvo: la foto entera y, detrás, la misma foto difuminada rellenando la columna */
.pd--polvo .pd__media::before { content: ''; position: absolute; inset: -30px; background: url(../assets/img/incienso-polvo.jpg) center / cover; filter: blur(22px); opacity: .8; }
.pd__media .media-img { width: 100%; aspect-ratio: 1; object-fit: contain; }
/* Móvil: foto más baja y botón de compra siempre a mano */
@media (max-width: 819px) {
  .pd__media .media-img { aspect-ratio: auto; height: min(34vh, 300px); }
  .pd__media .polvo-mock { max-height: 34vh; }
  .pd .pd__buy {
    position: sticky; bottom: 0; z-index: 2; margin: 1.25rem -1.5rem -1.5rem; padding: .9rem 1.5rem calc(.9rem + env(safe-area-inset-bottom));
    background: var(--papel); border-top: 1px solid var(--linea); box-shadow: 0 -12px 20px -16px rgba(8, 36, 26, .35);
  }
}
@media (min-width: 820px) {
  .pd--barritas .pd__media .media-img { padding: 1.5rem; }
}
.pd__info { padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; gap: .2rem; }
.pd__title { margin-top: .5rem; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: .95; letter-spacing: -.02em; color: var(--tinta); }
.pd__subtitle { margin: .4rem 0 .9rem; color: var(--tinta-3); font-size: .92rem; }
.pd__desc { margin-top: 1rem; color: var(--tinta-2); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.chips li { padding: .3rem .8rem; border: 1px solid var(--linea); border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--tinta-2); background: var(--blanco); }
.pd__options { margin-top: .5rem; }
.pd__options .aroma__pill { background: var(--blanco); }
.pd__buy { display: grid; grid-template-columns: auto 1fr; gap: .6rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--linea); }

/* ---------- Bolsa (drawer) ---------- */
.drawer {
  inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; overflow: hidden;
}
.drawer::backdrop { background: rgba(8, 36, 26, 0); backdrop-filter: blur(0); transition: background .3s, backdrop-filter .3s; }
.drawer.is-open::backdrop { background: rgba(8, 36, 26, .45); backdrop-filter: blur(3px); }
.drawer__panel {
  position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(470px, 100% - 20px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 28px; background: var(--cera); box-shadow: -30px 0 80px -30px rgba(8, 36, 26, .6);
  transform: translateX(calc(100% + 20px)); transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { padding: 1.15rem 1.25rem 1rem; border-bottom: 1px solid var(--linea); }
.drawer__titlerow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.drawer__head h2 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; letter-spacing: -.02em; color: var(--tinta); }
.drawer__head h2 small { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--tinta-3); margin-left: .4rem; }
.stepper { display: flex; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.stepper li { flex: 1; display: flex; align-items: center; gap: .4rem; padding-top: .55rem; border-top: 3px solid var(--linea); font-size: .72rem; font-weight: 600; color: var(--tinta-3); white-space: nowrap; }
.stepper span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid currentColor; font-size: .66rem; }
.stepper .is-on { color: var(--tinta); border-top-color: var(--tinta); }
.stepper .is-on span { background: var(--tinta); border-color: var(--tinta); color: var(--crema); }
.stepper .is-done { color: var(--verde-600); border-top-color: var(--verde-600); }
.stepper .is-done span { background: var(--verde-600); border-color: var(--verde-600); color: #fff; }
@media (max-width: 400px) { .stepper li { font-size: .66rem; } }

.drawer__body, .checkout { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.25rem 1.5rem; }
.drawer__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--papel); }

.drawer__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: .7rem; padding: 2rem; text-align: center; color: var(--tinta-2); }
.drawer__empty-mark { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--papel); box-shadow: var(--shadow-sm); margin-bottom: .5rem; }
.drawer__empty-title { font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: 1.05; color: var(--tinta); max-width: 14ch; }
.drawer__empty p:not(.drawer__empty-title) { max-width: 30ch; }
.drawer__empty-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }

.freebar { margin-bottom: .9rem; padding: .85rem 1rem; border-radius: 18px; background: var(--papel); box-shadow: var(--shadow-sm); }
.freebar p { display: flex; align-items: center; gap: .55rem; font-size: .86rem; color: var(--tinta-2); }
.freebar p svg { flex: none; color: var(--verde-600); }
.freebar b { color: var(--tinta); }
.freebar__track { display: block; height: 8px; margin-top: .7rem; border-radius: 8px; background: var(--linea); overflow: hidden; }
.freebar__fill { position: relative; display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--oro-claro), var(--oro)); transition: width .6s var(--ease); }
.freebar.is-done .freebar__fill { background: linear-gradient(90deg, var(--verde-500), var(--verde-600)); }

.lines { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.line { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: .9rem; padding: .75rem; border-radius: 18px; background: var(--papel); box-shadow: var(--shadow-sm); animation: drop .4s var(--spring); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.line__thumb { position: relative; width: 68px; height: 68px; border-radius: 14px; overflow: hidden; background: var(--crema); display: grid; place-items: center; }
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__thumb--naz .naz { height: 88%; width: auto; }
.line__thumb--polvo .polvo-svg { width: 100%; height: 100%; }
.line__thumb--photo { background: #fff; }
.line__thumb--photo img { object-fit: contain; }
.line__thumb--naz { --naz-body: #17171b; --naz-hood: #3d7a2c; }
.line__name { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--tinta); line-height: 1.1; }
.line__variants { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .3rem; }
.variant { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--tinta-2); }
.variant i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.line__controls { display: flex; align-items: center; gap: .75rem; margin-top: .6rem; }
.line__remove { border: 0; background: none; padding: 0; font-size: .78rem; color: var(--tinta-3); text-decoration: underline; text-underline-offset: 3px; }
.line__remove:hover { color: var(--burdeos); }
.line__total { font-weight: 700; font-variant-numeric: tabular-nums; }
.line__qty { margin-top: .3rem; font-size: .78rem; color: var(--tinta-3); }
.lines--compact { gap: 0; }
.lines--compact .line { grid-template-columns: 48px minmax(0, 1fr) auto; padding: .6rem 0; box-shadow: none; border-radius: 0; background: none; border-bottom: 1px solid var(--linea); }
.lines--compact .line:last-child { border-bottom: 0; }
.lines--compact .line__thumb { width: 48px; height: 48px; border-radius: 10px; }
.lines--compact .line__name { font-size: 1.02rem; }

.ship { margin: 1.4rem 0 0; padding: 0; border: 0; display: grid; gap: .5rem; }
.ship legend { margin-bottom: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--tinta); }
.ship__opt {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .7rem;
  padding: .85rem 1rem; border: 1.5px solid transparent; border-radius: 16px; background: var(--papel);
  cursor: pointer; font-size: .88rem; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .3s var(--spring);
}
.ship__opt:hover { transform: translateY(-1px); }
.ship__opt:has(input:checked) { border-color: var(--tinta); }
.ship__opt input { accent-color: var(--tinta); margin: 0; }
.ship__icon { color: var(--verde-600); display: grid; }
.ship__opt b { font-weight: 700; font-size: .85rem; }

.totals { margin: 0 0 1rem; display: grid; gap: .35rem; font-size: .9rem; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; }
.totals dt { color: var(--tinta-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__grand { margin-top: .4rem; padding-top: .7rem; border-top: 1px dashed var(--linea); }
.totals__grand dt { color: var(--tinta); font-weight: 700; font-size: 1rem; }
.totals__grand dd { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; font-variant-numeric: lining-nums; }
.totals__grand small { font-weight: 400; font-size: .72rem; color: var(--tinta-3); margin-left: .3rem; }

.back { border: 0; background: none; padding: 0; font-size: .85rem; font-weight: 600; color: var(--verde-700); margin-bottom: 1rem; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-block { margin: 0 0 1.4rem; padding: 0; border: 0; display: grid; gap: .8rem; }
.form-block legend { margin-bottom: .8rem; font-family: var(--display); font-size: 1.45rem; font-weight: 700; color: var(--tinta); }
.form-note { font-size: .84rem; color: var(--tinta-2); background: var(--papel); padding: .7rem .9rem; border-radius: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: .8rem; }
.field { display: grid; gap: .3rem; }
.field__label { font-size: .78rem; font-weight: 600; color: var(--tinta-2); }
.field input {
  width: 100%; min-height: 50px; padding: .65rem 1rem;
  border: 1.5px solid var(--linea); border-radius: 14px; background: var(--blanco);
  font: inherit; font-size: 16px; color: var(--tinta); transition: border-color .2s, box-shadow .2s;
}
.field input:hover { border-color: #cfc2a6; }
.field input:focus { outline: 0; border-color: var(--verde-600); box-shadow: 0 0 0 4px rgba(27, 107, 53, .14); }
.field.is-invalid input { border-color: var(--burdeos); }
.field__error { font-size: .76rem; color: var(--burdeos); }
.field__error:empty { display: none; }

.summary { margin-top: .5rem; border-radius: 16px; background: var(--papel); padding: .2rem 1rem; box-shadow: var(--shadow-sm); }
.summary summary { cursor: pointer; padding: .8rem 0; font-size: .88rem; font-weight: 600; color: var(--verde-700); }

.form-error { margin-top: 1rem; padding: .85rem 1rem; border-radius: 14px; background: #f5e6e2; color: #5a1a1f; font-size: .86rem; }
.form-error.is-info { background: var(--crema); color: var(--tinta-2); border: 1px solid var(--linea); border-left: 4px solid var(--oro); line-height: 1.5; }
.form-error.is-info b { color: var(--verde-800); }
.stripe-note { margin-top: .8rem; text-align: center; font-size: .76rem; color: var(--tinta-3); }
.stripe-note b { color: #635bff; }
.paybadges { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.paybadges li { padding: .12rem .5rem; border: 1px solid var(--linea); border-radius: 6px; background: var(--blanco); font-size: .66rem; font-weight: 700; letter-spacing: .02em; color: var(--tinta-2); }

/* ---------- Avisos y vuelo al carrito ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; display: grid; gap: .5rem; width: min(460px, 100% - 32px); }
.toast {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem .75rem .75rem 1.2rem; border-radius: 999px;
  background: var(--tinta); color: var(--crema); font-size: .88rem;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .3s var(--ease), transform .45s var(--spring);
}
.toast.is-in { opacity: 1; transform: none; }
.toast b { color: var(--oro-claro); font-weight: 700; }
.toast__action { flex: none; border: 0; background: var(--oro-claro); color: var(--tinta); border-radius: 999px; padding: .45rem .9rem; font-size: .8rem; font-weight: 700; }
.toast__action:hover { background: #e4ca86; }
.fly-dot {
  position: fixed; z-index: 200; width: 18px; height: 18px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff3cf, var(--oro-claro) 45%, var(--oro));
  box-shadow: 0 0 0 4px rgba(217, 189, 115, .3), 0 6px 14px rgba(0, 0, 0, .25);
}

/* =========================================================
   Venta: aviso superior, compra rápida, barra fija, "Añadido"
   ========================================================= */

.announce { background: linear-gradient(90deg, var(--oro-claro), #ead394 50%, var(--oro-claro)); color: var(--tinta); text-align: center; }
.announce p { padding: .45rem 16px; font-size: .78rem; font-weight: 600; line-height: 1.35; }
.announce b { font-weight: 800; }
.announce i { font-style: normal; font-size: .72rem; color: var(--burdeos); margin: 0 .3rem; }
@media (max-width: 520px) { .announce__extra { display: none; } }
@media (max-width: 420px) { .hide-xs { display: none; } }

/* Botón recién pulsado: verde con "Añadido" */
.btn.is-added { position: relative; background: var(--verde-600) !important; border-color: var(--verde-600) !important; color: transparent !important; }
.btn.is-added::after { content: '✓ Añadido'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; }
.spark { position: fixed; z-index: 201; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 2px; background: var(--c); pointer-events: none; }
.spark--cross { width: auto; height: auto; margin: -8px 0 0 -6px; background: none; color: var(--c); font-size: 15px; line-height: 1; }

.toast span small { display: block; margin-top: .1rem; font-size: .76rem; color: rgba(245, 239, 227, .72); }
.has-buybar .toasts { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* Incensario: precio a la vista, pack destacado, detalles plegables */
.naz-panel__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin-top: .7rem; }
.naz-panel__deal { font-size: .86rem; color: var(--tinta-2); }
.naz-panel__deal b { color: var(--verde-700); }
.buyopt--deal { position: relative; border-color: var(--oro-claro); background: linear-gradient(180deg, #fffaf0, var(--blanco)); }
.buyopt--deal:has(input:checked) { border-color: var(--tinta); }
.buyopt__ribbon {
  position: absolute; top: -9px; left: 44px; padding: .1rem .55rem; border-radius: 999px;
  background: var(--burdeos); color: var(--crema); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.naz-panel__about summary {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
  font-size: .86rem; font-weight: 700; color: var(--verde-700);
}
.naz-panel__about summary::-webkit-details-marker { display: none; }
.naz-panel__about summary::after { content: '+'; font-size: 1.25rem; font-weight: 500; line-height: 1; }
.naz-panel__about[open] summary::after { content: '−'; }
.naz-panel__about[open] summary { margin-bottom: .7rem; }
@media (min-width: 860px) { .naz-panel__about > summary { display: none; } }

/* Compra rápida: solo en móvil, dentro de la portada */
.shelf { display: none; }
@media (max-width: 759px) {
  .hero { padding: 1.3rem 0 1.8rem; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__copy { min-width: 0; }
  .hero__media, .hero__cta { display: none; }
  .pill-eyebrow { padding: .38rem .85rem; font-size: .66rem; }
  .hero__title { margin-top: .9rem; font-size: clamp(2.5rem, 11.5vw, 3.1rem); }
  .hero__lead { margin-top: .75rem; font-size: .97rem; line-height: 1.5; }
  .hero__trust { margin-top: .9rem; gap: .25rem 1rem; font-size: .8rem; }

  .shelf { display: block; width: calc(100% + 32px); margin: 1.2rem -16px 0; }
  .shelf__head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px; margin-bottom: .55rem; }
  .shelf__title { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-tinta); }
  .shelf__hint { font-size: .78rem; color: var(--tinta-3); }
  .shelf__row {
    display: flex; gap: .7rem; margin: 0; padding: 4px 16px 12px; list-style: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .shelf__row::-webkit-scrollbar { display: none; }
  .shelf__card { flex: 0 0 156px; scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--papel); box-shadow: var(--shadow-sm); }
  .shelf__media { position: relative; display: block; width: 100%; height: 132px; padding: 0; border: 0; overflow: hidden; background: var(--crema); }
  .shelf__media .naz-stage .naz { height: min(86cqh, 118cqw); margin-top: 10cqh; }
  .shelf__media--pack .naz-stage .naz { margin-left: -34px; }
  .shelf__media--barritas { background: #fff; }
  .shelf__photo { width: 100%; height: 100%; object-fit: contain; padding: 10px 6px 4px; }
  .shelf__polvo { position: absolute; inset: 0; }
  .shelf__polvo .polvo-svg { width: 100%; height: 100%; }
  .shelf__extra { position: absolute; right: 7px; bottom: 7px; width: 64px; height: 48px; padding: 3px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
  .shelf__badge { position: absolute; left: 8px; top: 8px; padding: .2rem .55rem; border-radius: 999px; font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
  .shelf__badge--gold { background: var(--oro-claro); color: var(--tinta); }
  .shelf__badge--green { background: var(--verde-700); color: var(--crema); }
  .shelf__badge--kraft { background: var(--tinta); color: var(--kraft); }
  .shelf__badge--wine { background: var(--burdeos); color: var(--crema); }
  .shelf__body { flex: 1; display: flex; flex-direction: column; gap: .15rem; padding: .6rem .7rem .7rem; }
  .shelf__name { font-family: var(--sans); font-size: .84rem; font-weight: 700; line-height: 1.2; }
  .shelf__price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .45rem; }
  .shelf__price .price b { font-size: 1.45rem; }
  .shelf__price .price small { font-size: .72rem; }
  .shelf__price s { font-size: .74rem; color: var(--tinta-3); }
  .shelf__cta { width: 100%; min-height: 38px; margin-top: auto; padding: .4rem .6rem; font-size: .8rem; }}

/* Tienda en móvil: tarjetas más compactas y el precio siempre cerca del botón */
@media (max-width: 759px) {
  .section__head { gap: .6rem; margin-bottom: 1.4rem; }
  .section__title { font-size: clamp(2.1rem, 9.5vw, 2.5rem); }
  .section__lead { font-size: .95rem; }
  .tile--polvo, .tile--barritas, .tile--info { padding: 1rem; gap: .9rem; }
  .tile--polvo .tile__media, .tile--barritas .tile__media--photo { aspect-ratio: 16 / 11; }
  .tile--polvo .tile__title, .tile--barritas .tile__title { font-size: 1.9rem; }
  .tile__sub { font-size: .9rem; }
  .tile--barritas .stick { display: none; }
  .specs { margin-top: .9rem; }
  .specs dd { font-size: 1.6rem; }
  .aroma__pill { font-size: .78rem; }
  .aromas__notes { font-size: .98rem; }
  .tile__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-top: 1rem; }
  .tile--info { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .6rem 1rem; }
  .tile--info .bignum { font-size: 3.6rem; }
  .tile--info .perks { grid-column: 1 / -1; margin-top: .2rem; }
}
@media (max-width: 859px) {
  /* Figura más baja y sin fijar: con los colores justo debajo cabe todo en pantalla */
  .naz-view { position: relative; top: auto; height: clamp(210px, 29vh, 250px); }
  .naz-panel { gap: 1.15rem; }
  .naz-panel .swatches legend { margin-bottom: .55rem; }
  .naz-panel .swatches__row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
  .naz-panel .swatch__dot { width: 100%; max-width: 32px; height: auto; aspect-ratio: 1; margin-inline: auto; }
  .naz-panel .swatch input:checked + .swatch__dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 2px var(--papel), 0 0 0 3.5px var(--tinta); }
}

/* Barra de compra fija (móvil) */
.buybar { display: none; }
@media (max-width: 859px) {
  .buybar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: flex; align-items: center; gap: .7rem; overflow: hidden;
    padding: .5rem .5rem .5rem .8rem; border-radius: 22px; background: var(--tinta); color: var(--crema);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5), 0 0 0 1px rgba(217, 189, 115, .25);
    transform: translateY(calc(100% + 24px)); visibility: hidden;
    transition: transform .45s var(--spring), visibility 0s linear .45s;
  }
  .buybar.is-on { transform: none; visibility: visible; transition: transform .45s var(--spring); }
  .buybar::before {
    content: ''; position: absolute; left: 0; top: 0; height: 3px; width: var(--p, 0%); opacity: 0;
    background: linear-gradient(90deg, var(--oro-claro), var(--oro)); transition: width .6s var(--ease);
  }
  .buybar.has-progress::before { opacity: 1; }
  .buybar__info { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; }
  .buybar__txt { display: grid; min-width: 0; line-height: 1.25; }
  .buybar__txt b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__txt small { font-size: .74rem; color: rgba(245, 239, 227, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__dots { display: flex; flex: none; }
  .buybar__dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--tinta), inset 0 0 0 1px rgba(255, 255, 255, .25); }
  .buybar__dots i + i { margin-left: -7px; }
  .buybar__count { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--oro-claro); color: var(--tinta); font-size: .85rem; font-weight: 800; }
  .buybar__btn { flex: none; min-height: 44px; padding: .55rem 1rem; background: var(--oro-claro); color: var(--tinta); font-size: .88rem; }
  .has-buybar .site-footer { padding-bottom: calc(1.5rem + 76px); }
}

/* Carrito: añade también */
.upsell { margin-top: 1.2rem; }
.upsell__title { margin-bottom: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--tinta); }
.upsell__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.upsell__item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: .75rem;
  padding: .55rem .6rem .55rem .55rem; border: 1.5px dashed #d8c9a8; border-radius: 16px; background: rgba(255, 253, 249, .6);
}
.upsell__item .line__thumb { width: 52px; height: 52px; border-radius: 12px; }
.upsell__info { min-width: 0; }
.upsell__name { font-size: .9rem; font-weight: 700; line-height: 1.2; color: var(--tinta); }
.upsell__name b { display: block; margin-top: .1rem; font-size: .86rem; color: var(--verde-700); font-variant-numeric: tabular-nums; }
.upsell__meta { font-size: .76rem; color: var(--tinta-3); }
.upsell__free { display: inline-block; margin-top: .25rem; padding: .08rem .5rem; border-radius: 999px; background: var(--verde-600); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.upsell .btn--sm { min-height: 36px; padding: .4rem .8rem; font-size: .8rem; }
.drawer__scroll--empty { flex: none; padding-top: 0; }
.drawer__empty:has(+ .drawer__scroll--empty) { flex: none; padding: 1.6rem 2rem 1.4rem; gap: .4rem; }
.drawer__empty:has(+ .drawer__scroll--empty) .drawer__empty-mark { width: 72px; height: 72px; }
.drawer__empty:has(+ .drawer__scroll--empty) .drawer__empty-mark img { width: 44px; }
.drawer__empty:has(+ .drawer__scroll--empty) .drawer__empty-cta { margin-top: .5rem; }
.drawer__scroll--empty .upsell { margin-top: 0; }

/* ---------- Página legal ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal article { max-width: 46rem; }
.legal h1 { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--tinta); margin: .5rem 0 2rem; }
.legal h2 { font-family: var(--display); font-size: 1.8rem; color: var(--tinta); margin: 3rem 0 .75rem; scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--tinta-2); margin-bottom: .8rem; }
.legal .note { padding: .8rem 1rem; background: var(--papel); border-radius: 14px; font-size: .9rem; }

/* =========================================================
   Catálogo completo: filtros, buscador y tarjetas
   ========================================================= */
.catalogo { padding-top: clamp(2rem, 4vw, 3.5rem); }
.cat-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; }
.cat-tabs { display: flex; gap: .4rem; min-width: 0; }
.cat-tab {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1.05rem; border: 1px solid var(--linea); border-radius: 999px;
  background: var(--blanco); font-size: .9rem; font-weight: 600; white-space: nowrap; color: var(--tinta-2);
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--spring);
}
.cat-tab span { font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tinta-3); }
.cat-tab:hover { border-color: var(--tinta); color: var(--tinta); }
.cat-tab:active { transform: scale(.96); }
.cat-tab[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--crema); }
.cat-tab[aria-pressed="true"] span { color: var(--oro-claro); }

.cat-search {
  flex: 1 1 260px; max-width: 380px; display: flex; align-items: center; gap: .55rem; height: 46px; padding: 0 .4rem 0 1rem;
  border: 1px solid var(--linea); border-radius: 999px; background: var(--blanco); color: var(--tinta-3);
  transition: border-color .25s, box-shadow .25s;
}
.cat-search:focus-within { border-color: var(--oro); box-shadow: 0 0 0 4px rgba(217, 189, 115, .28); color: var(--tinta); }
.cat-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 16px; color: var(--tinta); outline: none; }
.cat-search input::placeholder { color: var(--tinta-3); }
.cat-search input::-webkit-search-cancel-button { display: none; }
.cat-search__clear { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--crema); font-size: .8rem; color: var(--tinta-2); }

.cat-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 1.1rem 0 1.25rem; }
.cat-count { font-size: .9rem; color: var(--tinta-3); }
.cat-count b { color: var(--tinta); }
.cat-note { padding: .4rem .9rem; border-radius: 999px; background: var(--oro-palido); font-size: .82rem; color: var(--tinta-2); }
.cat-note b { color: var(--verde-800); }

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.7rem, 1.8vw, 1.25rem); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pcard {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 20px; background: var(--blanco); box-shadow: var(--shadow-sm);
  animation: pcard-in .45s var(--ease) both;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
@keyframes pcard-in { from { opacity: 0; transform: translateY(10px); } }
@media (hover: hover) { .pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.pcard__media { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; background: #fff; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.pcard__media img.is-cover { object-fit: cover; }
@media (hover: hover) { .pcard:hover .pcard__media img { transform: scale(1.04); } }
.pcard__polvo { position: absolute; inset: 0; background: var(--kraft); }
.pcard__polvo .polvo-svg { width: 100%; height: 100%; }
.pcard__body { flex: 1; display: flex; flex-direction: column; gap: .2rem; padding: .85rem .95rem 1rem; border-top: 1px solid #f0e9dc; }
.pcard__cat { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-tinta); }
.pcard__tag { padding: .12rem .5rem; border-radius: 999px; background: var(--verde-800); font-size: .6rem; letter-spacing: .08em; color: var(--crema); white-space: nowrap; }
.pcard__name { font-family: var(--display); font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.12; letter-spacing: -.01em; }
.pcard__name button { padding: 0; border: 0; background: none; font: inherit; text-align: left; color: var(--tinta); }
.pcard__name button:hover { color: var(--verde-700); }
.pcard__sub { font-size: .8rem; line-height: 1.35; color: var(--tinta-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pselect { display: grid; gap: .2rem; margin-top: .45rem; }
.pselect__label { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-3); }
.pselect select {
  width: 100%; height: 40px; padding: 0 2rem 0 .75rem; border: 1px solid var(--linea); border-radius: 12px; appearance: none; -webkit-appearance: none;
  background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2313261b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .75rem center;
  font: inherit; font-size: .86rem; font-weight: 600; color: var(--tinta); text-overflow: ellipsis; cursor: pointer;
}
.pselect select:focus-visible { outline: 2px solid var(--oro); outline-offset: 1px; }

.pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .7rem; }
.pcard__price { display: flex; flex-direction: column; min-width: 0; }
.pcard__price .price b { font-size: 1.55rem; }
.pcard__price .price small { font-size: .78rem; }
.pcard__from { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); }
.pcard__deal { margin-top: .2rem; font-size: .72rem; font-weight: 600; color: var(--verde-600); white-space: nowrap; }
.pcard__add { flex: none; min-height: 40px; padding: .45rem 1rem; }
@media (max-width: 639px) {
  .pcard__body { padding: .7rem .75rem .8rem; }
  .pcard__foot { flex-direction: column; align-items: stretch; gap: .55rem; }
  .pcard__add { width: 100%; }
}

.cat-more { display: flex; justify-content: center; margin-top: 1.75rem; }
.cat-more span { font-weight: 500; opacity: .7; margin-left: .25rem; }
.cat-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: .5rem; padding: 3rem 1rem; border-radius: 20px; background: var(--papel); text-align: center; color: var(--tinta-2); }
.cat-empty .btn { margin-top: .5rem; }

/* Móvil: categorías en una fila que se desliza y buscador a lo ancho */
@media (max-width: 759px) {
  .cat-tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .cat-search { max-width: none; flex-basis: auto; }
  .cat-tabs {
    order: 2; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { min-height: 40px; padding: .4rem .9rem; font-size: .86rem; }
  .cat-meta { margin: .9rem 0 1rem; }
}

/* Ficha de un artículo del catálogo */
.pd--item .pd__media { background: #fff; }
.pd--item .pd__title { font-size: clamp(1.75rem, 3.2vw, 2.35rem); line-height: 1.02; }
.pd__pricerow { display: flex; align-items: center; gap: 1rem; }
.pd__deal { padding-left: 1rem; border-left: 1px dashed var(--linea); font-size: .8rem; font-weight: 600; line-height: 1.3; color: var(--verde-600); }
.pd--item .pselect select { height: 46px; font-size: .95rem; }
.pd__lead { margin-top: .9rem; padding: .55rem .85rem; border-radius: 12px; background: var(--crema); font-size: .85rem; color: var(--tinta-2); }
.pd__ship { margin-top: .9rem; font-size: .8rem; color: var(--tinta-3); }
.vpills { margin: .4rem 0 0; padding: 0; border: 0; }
.vpills__row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.vpill { position: relative; }
.vpill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vpill span { display: block; padding: .5rem .9rem; border: 1px solid var(--linea); border-radius: 999px; background: var(--blanco); font-size: .86rem; font-weight: 600; color: var(--tinta-2); transition: background .2s, color .2s, border-color .2s; }
.vpill input:checked + span { background: var(--tinta); border-color: var(--tinta); color: var(--crema); }
.vpill input:focus-visible + span { outline: 2px solid var(--oro); outline-offset: 2px; }

/* Carrito: precio por cantidad */
.line__total s { display: block; font-size: .76rem; font-weight: 500; color: var(--tinta-3); }
.totals__save dt, .totals__save dd { color: var(--verde-600); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== Versión sencilla: portada con producto destacado, categorías y tarjetas limpias ===== */
.section__head--simple { display: block; margin-bottom: 1.25rem; }
.section__head--simple .section__lead { margin-top: .5rem; font-size: 1.1rem; }

.hero__feature { display: block; max-width: 440px; width: 100%; margin-inline: auto; }
.feature { background: #fff; border: 1px solid var(--linea); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; text-align: center; }
.feature__media { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #fff; position: relative; cursor: pointer; }
.feature__media img { width: 100%; height: 100%; object-fit: contain; }
.feature__media .pcard__polvo { position: absolute; inset: 0; }
.feature__body { display: grid; justify-items: center; gap: .4rem; padding: 1rem 1.25rem .5rem; }
.feature__name, .feature__price { margin: 0; font-family: var(--sans); font-size: 1.15rem; line-height: 1.3; color: var(--tinta); }
.feature__name { font-weight: 600; }
.feature__price { font-weight: 700; }
.feature__btn { margin-top: .35rem; font-size: 1.05rem; }
.feature__nav { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .5rem 0 1rem; }
.feature__arrow { width: 44px; height: 44px; border: 1px solid var(--linea); border-radius: 50%; background: #fff; font-size: 1.6rem; line-height: 1; color: var(--tinta); }
.feature__dots { display: flex; gap: .4rem; }
.feature__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--linea); }
.feature__dots i.is-on { background: var(--tinta); }

.cat-tools { margin-bottom: 1rem; }
.cat-search { max-width: 520px; width: 100%; }
.cat-search input { font-size: 17px; }
.cat-meta { margin: 0 0 1rem; }
.cat-count { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; font-size: 1rem; }
.cat-title { font-family: var(--sans); font-size: 1.4rem; font-weight: 700; color: var(--tinta); }
.cat-back { font-size: 1rem; }

.cat-grid--cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .cat-grid--cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ccard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); border-radius: var(--r-md); overflow: hidden; }
.ccard__media { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #fff; cursor: pointer; }
.ccard__media img { width: 100%; height: 100%; object-fit: contain; }
.ccard__body { display: grid; gap: .6rem; padding: .9rem; border-top: 1px solid var(--linea); text-align: center; }
.ccard__name { margin: 0; font-family: var(--sans); font-size: 1.15rem; font-weight: 700; color: var(--tinta); }
.ccard__btn { width: 100%; justify-content: center; }

.pcard { background: #fff; }
.pcard__body { gap: .35rem; text-align: center; }
.pcard__name { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--tinta); }
.pcard__price { margin: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--tinta); }
.pcard__add { width: 100%; justify-content: center; margin-top: auto; }
.pcard__media img.is-cover { object-fit: contain; }

#product-dialog .tile--naz { box-shadow: none; border: 0; margin: 0; }
.ccard__media, .feature__media { overflow: hidden; }
.ccard__media img, .feature__media img { display: block; aspect-ratio: 1; height: auto; }
.pcard__naz, .feature__media .pcard__naz { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; }
.pcard__naz .naz { height: 80%; }

/* ===== Portada con vídeo de fondo ===== */
.vhero { position: relative; display: grid; place-items: center; min-height: min(86vh, 760px); overflow: hidden; color: #fff; text-align: center;
  background: var(--verde-900) var(--azulejo) center / 90px; }
.vhero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vhero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(8, 36, 26, .35), rgba(8, 36, 26, .65)); }
.vhero__content { position: relative; z-index: 1; display: grid; justify-items: center; gap: .9rem; padding: 3rem 16px; }
.vhero__logo { width: clamp(80px, 12vw, 120px); height: auto; filter: brightness(0) invert(1); }
.vhero__title { margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 700; letter-spacing: .06em; line-height: 1; color: #fff; }
.vhero__title b { color: var(--oro-claro); }
.vhero__sub { margin: 0 0 .6rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255, 255, 255, .9); }

/* ===== Pestañas de la tienda ===== */
#tienda { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.shop-tabs { display: flex; gap: .4rem 1.6rem; overflow-x: auto; padding-bottom: .4rem; border-bottom: 1px solid var(--linea); scrollbar-width: none; }
.shop-tab { flex: none; padding: .7rem 0; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--tinta-3); text-transform: uppercase; letter-spacing: .04em; }
.shop-tab:hover { color: var(--tinta); }
.shop-tab[aria-pressed="true"] { border-color: var(--tinta); color: var(--tinta); }
.cat-tools { margin-bottom: 1.25rem; }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===== 10 % en la primera compra ===== */
.promo { position: fixed; z-index: 60; left: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); padding: 1.5rem 1.25rem 1.25rem;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-md); box-shadow: var(--shadow-lg); text-align: center; }
.promo[hidden], .promo-tab[hidden] { display: none; }
.promo__close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--crema); font-size: 1rem; color: var(--tinta); }
.promo__logo { margin: 0 auto .5rem; }
.promo__title { margin: 0 0 .4rem; font-family: var(--sans); font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: var(--tinta); }
.promo__text, .promo__small { margin: 0 0 .8rem; font-size: 1rem; color: var(--tinta-2); }
.promo__small { font-size: .9rem; margin: .6rem 0 0; }
.promo__form { display: grid; gap: .6rem; }
.promo__form input { height: 50px; padding: 0 14px; border: 1px solid var(--linea); border-radius: 12px; font: inherit; font-size: 17px; }
.promo__code { margin: 0; padding: .7rem; border: 2px dashed var(--oro); border-radius: 12px; font-size: 1.4rem; font-weight: 800; letter-spacing: .08em; color: var(--verde-800); }
.promo-tab { position: fixed; z-index: 59; left: 16px; bottom: 16px; padding: .7rem 1rem; border: 0; border-radius: 12px; background: var(--tinta); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; box-shadow: var(--shadow); }
.contact-promo { margin-top: 1rem; }
.pcard__polvo { background: #fff; }

/* ===== Ordenador: página más ancha y filas de 5 productos ===== */
@media (min-width: 1100px) {
  .container { width: min(1640px, 100% - 64px); }
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ===== Cómo se usa: más compacto (vídeo y pasos lado a lado) ===== */
.envivo__grid { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.envivo__card:not(.envivo__card--video) { display: none; }
.envivo__card--video { grid-column: auto; }
.envivo__card--video video { aspect-ratio: 4 / 5; max-height: 460px; }
.envivo__steps { grid-column: auto; }
@media (min-width: 760px) {
  .envivo__grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; }
}

/* ===== Personalizados: subir foto ===== */
.mock { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: #fff; }
.mock__example { width: 100%; height: 100%; object-fit: contain; }
.mock__piece { position: relative; overflow: hidden; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .15); }
.mock__piece img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Tablilla: madera alargada, la foto "grabada" en un tono */
.mock--tablilla .mock__piece { width: 30%; aspect-ratio: 6 / 20; border-radius: 4px; background: #d9b98a linear-gradient(90deg, rgba(120, 80, 30, .12), transparent 30%, rgba(120, 80, 30, .1) 70%, transparent); padding: 8% 7%; }
.mock--tablilla .mock__piece img { filter: grayscale(1) sepia(1) contrast(1.35) brightness(.85); mix-blend-mode: multiply; border-radius: 2px; }
/* Calendario: panel con la foto y la base de madera */
.mock--calendario .mock__piece { width: 78%; aspect-ratio: 20 / 14.5; border-radius: 3px; background: #fff; padding: 3%; }
.mock--calendario .mock__piece::after { content: ''; position: absolute; left: -4%; right: -4%; bottom: -1px; height: 7%; background: #b98b55; }
.upload { margin: 1rem 0; }
.upload__step { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 .5rem; font-size: 1.05rem; font-weight: 700; color: var(--tinta); }
.upload__drop { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 1.25rem; border: 2px dashed var(--oro); border-radius: 14px; background: var(--crema); text-align: center; cursor: pointer; font-size: 1rem; }
.upload__drop.is-over, .upload__drop:hover { background: var(--oro-palido); }
.upload__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__icon { font-size: 1.6rem; line-height: 1; color: var(--oro-tinta); }
.upload__msg { margin: .5rem 0 0; font-size: .98rem; }
.upload__msg:empty { display: none; }
.upload__msg.is-ok { color: var(--verde-700); }
.upload__msg.is-warn { color: #8a5a00; }
.upload__msg.is-error { color: var(--burdeos); font-weight: 600; }
.upload__tips { margin-top: .75rem; font-size: .95rem; color: var(--tinta-2); }
.upload__tips summary { cursor: pointer; font-weight: 600; color: var(--tinta); }
.upload__tips ul { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ===== Baraja: elegir 4 hermandades ===== */
.pd--baraja { grid-template-columns: 1fr !important; }
.baraja__per { display: inline-block; margin-left: .5rem; font-size: .95rem; color: var(--tinta-2); }
.baraja__count { margin-left: auto; padding: .2rem .7rem; border-radius: 999px; background: var(--tinta); color: #fff; font-size: .9rem; }
.baraja__chosen { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 0; margin-bottom: .5rem; }
.chip-palo { padding: .3rem .7rem; border-radius: 999px; background: var(--oro-palido); font-size: .9rem; }
.baraja__group { margin: .9rem 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oro-tinta); }
.baraja__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.palo { display: grid; gap: .3rem; padding: .4rem; border: 2px solid var(--linea); border-radius: 12px; background: #fff; font: inherit; font-size: .9rem; font-weight: 600; color: var(--tinta); text-align: center; cursor: pointer; }
.palo img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.palo[aria-pressed="true"] { border-color: var(--verde-700); background: #eef6ef; box-shadow: 0 0 0 2px var(--verde-700); }
.palo:disabled { opacity: .4; cursor: not-allowed; }
.envivo__card--video video { height: auto; }
.envivo__card--video { grid-row: auto; }
.envivo__card--video video { position: static; inset: auto; aspect-ratio: 4 / 5; max-height: 460px; }

/* ===== Cabecera: logo + menú a la izquierda, buscador en el centro, carrito a la derecha ===== */
.site-header__inner { justify-content: flex-start; gap: 1.25rem; }
.nav { margin-right: auto; }
.hsearch { position: relative; flex: 1 1 380px; max-width: 520px; margin-right: auto; }
.hsearch input { width: 100%; height: 46px; padding: 0 1rem 0 2.6rem; border: 1px solid var(--linea); border-radius: 999px; background: #fff; font: inherit; font-size: 16px; color: var(--tinta); outline: none; }
.hsearch input:focus { border-color: var(--oro); box-shadow: 0 0 0 4px rgba(217, 189, 115, .28); }
.hsearch input::-webkit-search-cancel-button { cursor: pointer; }
.hsearch__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tinta-3); pointer-events: none; }
.hsearch__list { position: absolute; z-index: 70; top: calc(100% + 6px); left: 0; right: 0; max-height: min(70vh, 520px); overflow-y: auto; margin: 0; padding: .4rem; list-style: none;
  background: #fff; border: 1px solid var(--linea); border-radius: 16px; box-shadow: var(--shadow-lg); }
.hsearch__list[hidden] { display: none; }
.hs__item { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-radius: 10px; cursor: pointer; font-size: .98rem; color: var(--tinta); }
.hs__item:hover, .hs__item[aria-selected="true"] { background: var(--crema); }
.hs__item img { width: 46px; height: 46px; flex: none; object-fit: contain; background: #fff; border: 1px solid #f0e9dc; border-radius: 8px; }
.hs__item img.is-logo { padding: 8px; }
.hs__txt { flex: 1; min-width: 0; display: grid; }
.hs__txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs__txt small { font-size: .85rem; color: var(--tinta-3); }
.hs__price { flex: none; font-weight: 700; font-size: .95rem; }
.hs__item--cat { gap: .5rem; padding: .65rem .7rem; }
.hs__cat { padding: .15rem .55rem; border-radius: 999px; background: var(--tinta); color: #fff; font-size: .75rem; font-weight: 700; }
.hs__empty { padding: .9rem; font-size: .95rem; color: var(--tinta-2); }
/* Móvil: el buscador baja a una segunda fila, a todo el ancho */
@media (max-width: 920px) {
  .site-header__inner { flex-wrap: wrap; height: auto; padding: .6rem 0; row-gap: .6rem; }
  .site-header__actions { margin-left: auto; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
}

/* ===== Aviso de cookies ===== */
.cookies { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 980px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; padding: 1.25rem 1.4rem;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.cookies[hidden] { display: none; }
.cookies__main { flex: 1 1 420px; }
.cookies__title { margin: 0 0 .35rem; font-family: var(--sans); font-size: 1.15rem; font-weight: 700; color: var(--tinta); }
.cookies__text { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--tinta-2); }
.cookies__text a { color: var(--verde-700); font-weight: 600; }
.cookies__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookies__actions .btn { min-height: 46px; }
.cookies__config { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--tinta); font-weight: 600; padding: 0 .6rem; cursor: pointer; }
.cookies__panel { display: grid; gap: .6rem; margin-top: .9rem; }
.cookies__panel[hidden] { display: none; }
.cookies__opt { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--tinta-2); }
.cookies__opt input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--verde-700); flex: none; }
.cookies__panel .btn { justify-self: start; }
@media (max-width: 600px) { .cookies__actions { width: 100%; } .cookies__actions .btn { flex: 1; } }
/* Cabecera en pantallas medianas: que nada se parta en dos líneas */
.nav a, .brand__word { white-space: nowrap; }
.hsearch { min-width: 200px; }
@media (max-width: 1180px) { .nav a { padding: .5rem .6rem; } .site-header__inner { gap: .75rem; } }
@media (min-width: 921px) and (max-width: 1060px) { .brand__word { display: none; } }

.promo__legal { margin: .6rem 0 0; font-size: .75rem; line-height: 1.4; color: var(--tinta-3); }
.promo__legal a { color: inherit; }

/* ===== Menú desplegable de Tienda (al pasar el ratón) ===== */
.site-header { position: sticky; }
.nav__caret { font-size: .7em; margin-left: .15em; opacity: .6; }
.mega { position: absolute; z-index: 60; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); box-shadow: 0 24px 40px -28px rgba(19, 38, 27, .45); }
.mega[hidden] { display: none; }
.mega__inner { display: grid; grid-template-columns: 1fr repeat(4, 1.3fr); gap: 2rem; padding-block: 1.8rem 2.2rem; }
.mega__col { margin: 0; padding: 0; list-style: none; display: grid; align-content: start; gap: .15rem; }
.mega__col a { display: inline-block; padding: .25rem 0; color: var(--tinta-2); font-size: .98rem; text-decoration: none; }
.mega__col a:hover, .mega__col a:focus-visible { color: var(--verde-700); text-decoration: underline; text-underline-offset: 3px; }
.mega__col--main a { color: var(--tinta); font-weight: 600; }
.mega__head a { margin-bottom: .35rem; color: var(--tinta); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
.mega__all a { margin-top: .35rem; color: var(--verde-700); font-weight: 600; }
@media (max-width: 920px) { .mega, .nav__caret { display: none !important; } }

/* ===== Escaparate del Nazareno (antes «Cómo se usa») ===== */
.escaparate { display: grid; align-content: center; gap: .3rem; padding: 1rem 0; }
.escaparate__title { margin: 0 0 .5rem; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.12; color: var(--tinta); }
.escaparate__text { margin: 0 0 .6rem; max-width: 46ch; font-size: 1.05rem; line-height: 1.55; color: var(--tinta-2); }
.escaparate__price { margin: 0 0 .9rem; font-size: 1.5rem; font-weight: 800; color: var(--tinta); }
.escaparate__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.escaparate__btns .btn { min-height: 50px; }
/* «Cómo se enciende» dentro de la ficha */
.uso { margin-top: 1rem; border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
.uso summary { padding: .8rem 1rem; font-weight: 600; cursor: pointer; color: var(--tinta); }
.uso ol { margin: 0; padding: 0 1rem 1rem; list-style: none; display: grid; gap: .7rem; }
.uso li { display: flex; gap: .7rem; font-size: .95rem; line-height: 1.45; color: var(--tinta-2); }
.uso li b { color: var(--tinta); }
.uso__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--crema); font-weight: 700; color: var(--tinta); }

/* ===== Comprar ya (pago en un toque) ===== */
.buynow { margin-top: .6rem; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: .8rem; background: var(--oro); color: var(--tinta); border: 0; font-weight: 700; font-size: 1.05rem; }
.buynow:hover:not(:disabled) { filter: brightness(1.05); }
.buynow:disabled { opacity: .45; cursor: not-allowed; }
.buynow__pays { display: inline-flex; gap: .3rem; }
.buynow__pays span { padding: .1rem .4rem; border-radius: 5px; background: #fff; font-size: .72rem; font-weight: 700; color: #111; }

/* Pestaña «Todo»: títulos de categoría dentro de la rejilla */
.cat-grid__head { grid-column: 1 / -1; margin: 1.4rem 0 0; padding-bottom: .5rem; border-bottom: 1px solid var(--linea); font-family: var(--sans); font-size: 1.25rem; font-weight: 700; color: var(--tinta); }
.cat-grid__head:first-child { margin-top: 0; }
.cat-grid__head small { margin-left: .5rem; font-size: .85rem; font-weight: 500; color: var(--tinta-3); }

/* Pack Nazareno + incienso: la caja de barritas delante, abajo a la izquierda */
.pcard__naz--pack .naz { height: 74%; transform: translate(14%, -4%); }
.pcard__naz--pack .pcard__caja { position: absolute; left: 3%; bottom: 4%; width: 58%; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: none; }
@media (hover: hover) { .pcard:hover .pcard__media img.pcard__caja { transform: none; } }
