/* ==========================================================================
   Verde Menta — Tienda (estructura e-commerce, identidad propia)
   Se carga después de styles.css
   ========================================================================== */
.tienda {
  --menta: #DFFDF3;
  --menta-2: #BFEFDD;
  --cafe: #3B2A1E;
  --cream: #FBFAF6;
  background: var(--cream);
}
.tienda h1, .tienda h2, .tienda h3 { color: var(--ink); }

/* ---------- Barra de anuncios ---------- */
.announce { background: var(--forest); color: var(--menta); text-align: center; font: 600 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.announce-track { position: relative; height: 38px; overflow: hidden; }
.announce-track p { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 0 1rem; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease-out); }
.announce-track p.is-on { opacity: 1; transform: none; }
.no-js .announce-track p:first-child { opacity: 1; transform: none; }

/* ---------- Encabezado ---------- */
.shop-nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: .6rem var(--pad); background: rgba(251,250,246,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, padding .3s;
}
.shop-nav.is-scrolled { border-color: var(--line); }
.shop-links { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.shop-links a { text-decoration: none; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cafe); padding: .4rem 0; border-bottom: 1px solid transparent; }
.shop-links a:hover { border-color: currentColor; }
.shop-logo img { height: 76px; width: auto; transition: height .3s; }
.shop-nav.is-scrolled .shop-logo img { height: 58px; }
.shop-actions { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; }
.icon-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); transition: background .25s; }
.icon-link:hover { background: var(--menta); }
.icon-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.icon-link svg .fill { fill: currentColor; stroke: none; }

/* ---------- Héroe ---------- */
.shop-hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(3rem, 7vw, 6rem);
  background: var(--menta); border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px);
}
.shop-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.8rem); text-wrap: balance; }
.shop-hero .hero-lead { color: #3F5A50; }
.shop-hero .btn-ghost { border-color: rgba(35,70,58,.3); }
.shop-hero-gallery { position: relative; display: grid; grid-template-columns: .8fr 1.15fr .8fr; gap: .9rem; align-items: end; }
.hg { margin: 0; overflow: hidden; border-radius: 999px 999px 18px 18px; box-shadow: 0 30px 60px -35px rgba(35,70,58,.6); background: #fff; }
.hg img { width: 100%; height: 100%; object-fit: cover; }
.hg-1, .hg-3 { aspect-ratio: 3 / 4.4; }
.hg-1 { transform: translateY(-2.2rem); }
.hg-2 { aspect-ratio: 3 / 4.6; }
.hg-3 { transform: translateY(1.6rem); }
.hg-seal { position: absolute; width: clamp(80px, 9vw, 120px); left: 50%; top: -1.6rem; transform: translateX(-50%); background: var(--cream); border-radius: 50%; padding: 8px; box-shadow: 0 10px 30px -14px rgba(35,70,58,.5); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

/* ---------- Cabeceras de sección ---------- */
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.row-head h2, .center-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.center-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.2rem); }
.center-head h2 a { text-decoration: none; }
.center-head h2 a:hover { color: var(--forest-2); }

/* ---------- Más vendidos ---------- */
.products { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1.2rem; overflow-x: auto; padding: .4rem .2rem 1.2rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
@media (min-width: 1200px) { .products { grid-auto-columns: calc((100% - 4 * 1.2rem) / 5); } }
.product { scroll-snap-align: start; display: flex; flex-direction: column; }
.product-img { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.product:hover .product-img img { transform: scale(1.05); }
.tag { position: absolute; left: .7rem; top: .7rem; background: rgba(251,250,246,.92); color: var(--forest); font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .4rem .6rem; border-radius: 999px; }
.product h3 { font: 400 1.25rem/1.15 var(--serif); margin: .9rem 0 .2rem; }
.product-price { margin: 0 0 .8rem; font-weight: 600; color: var(--cafe); }
.product-price small { font-weight: 400; color: var(--muted); }
.product-cta { margin-top: auto; text-align: center; text-decoration: none; font-weight: 600; font-size: .86rem; color: var(--forest); border: 1px solid var(--forest); border-radius: 999px; padding: .65rem 1rem; transition: background .25s, color .25s; }
.product-cta:hover { background: var(--forest); color: var(--cream); }

/* ---------- Categorías ---------- */
.section-mint { background: var(--menta); border-radius: clamp(24px, 4vw, 48px); margin: 0 clamp(.5rem, 1.5vw, 1.2rem); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.cat { position: relative; display: block; aspect-ratio: 4 / 4.3; border-radius: 22px; overflow: hidden; text-decoration: none; isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); z-index: -2; }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,40,32,0) 40%, rgba(20,40,32,.62) 100%); }
.cat:hover img { transform: scale(1.06); }
.cat-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; display: flex; justify-content: space-between; align-items: end; color: #fff; gap: 1rem; }
.cat-label strong { font: italic 300 clamp(1.8rem, 3.2vw, 2.8rem)/1 var(--serif); letter-spacing: -.01em; }
.cat-label small { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; background: var(--menta); color: var(--forest); padding: .55rem .8rem; border-radius: 999px; white-space: nowrap; transition: background .25s; }
.cat:hover .cat-label small { background: #fff; }
.mini-title { text-align: center; font: italic 300 1.6rem/1 var(--serif); margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.4rem; }
.minis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.mini { text-decoration: none; text-align: center; display: grid; gap: .6rem; }
.mini img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 14px 30px -18px rgba(35,70,58,.6); transition: transform .5s var(--ease-out); }
.mini:hover img { transform: translateY(-4px); }
.mini span { font-weight: 600; font-size: .9rem; color: var(--forest); }

/* ---------- Charm Bar ---------- */
.charm { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.charm-media { position: relative; }
.charm-media > img:first-child { width: 100%; max-width: 440px; border-radius: 26px; background: #fff; }
.charm-float { position: absolute; right: 2%; bottom: -6%; width: 44%; border-radius: 50%; border: 6px solid var(--cream); box-shadow: 0 20px 40px -20px rgba(35,70,58,.6); }
.charm h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.charm-steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
.charm-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.charm-steps span { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--menta); color: var(--forest); font: 400 1.2rem/1 var(--serif); }
.charm-steps p { margin: .15rem 0 0; color: var(--muted); }
.charm-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; margin-bottom: 1.6rem; }
.charm-prices h3 { font: 400 1.2rem/1 var(--serif); margin-bottom: .6rem; }
.charm-prices p { margin: .15rem 0; font-size: .88rem; color: var(--muted); }
.charm-prices b { color: var(--cafe); }

/* ---------- Asesora (ajustes) ---------- */
.demo-logo { width: 40px; height: 40px; border-radius: 50%; background: var(--menta); padding: 3px; }

/* ---------- Instagram ---------- */
.insta { padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.insta h2 { font-size: clamp(1.6rem, 3.6vw, 2.8rem); word-break: break-word; }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.insta-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), opacity .3s; }
.insta-grid a:hover img { transform: scale(1.07); opacity: .88; }

/* ---------- Pie de página ---------- */
.shop-footer { background: var(--forest); color: rgba(251,250,246,.82); padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; }
.sf-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.sf-brand img { width: 120px; height: auto; }
.sf-brand p { font: italic 300 1.15rem/1.3 var(--serif); color: var(--menta); margin: 1rem 0 0; }
.shop-footer h4 { margin: 0 0 1rem; font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--menta); }
.sf-grid > div:not(.sf-brand) { display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; }
.shop-footer a { text-decoration: none; overflow-wrap: anywhere; }
.shop-footer a:hover { color: #fff; text-decoration: underline; }
.sf-link { background: none; border: 0; padding: 0; text-align: left; color: var(--menta); font-weight: 600; text-decoration: underline; }
.shop-footer .fineprint { color: rgba(251,250,246,.6); }

/* ---------- Botones flotantes ---------- */
.wa-fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 61; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 16px 34px -14px rgba(0,0,0,.45); transition: transform .3s var(--ease-out); }
.wa-fab:hover { transform: translateY(-3px) scale(1.04); }
.wa-fab svg { width: 32px; height: 32px; }
.tienda .chat-fab { right: auto; left: 1.2rem; }
.chat-open .wa-fab { opacity: 0; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .shop-nav { grid-template-columns: auto 1fr; }
  .shop-links { display: none; }
  .shop-logo img { height: 58px; }
  .shop-actions .btn { display: none; }
  .shop-hero { grid-template-columns: 1fr; }
  .shop-hero-gallery { max-width: 520px; margin: 1.5rem auto 0; width: 100%; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .minis { grid-template-columns: repeat(3, 1fr); }
  .charm { grid-template-columns: 1fr; }
  .charm-media { max-width: 440px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .sf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .announce { font-size: .66rem; letter-spacing: .08em; }
  .cats { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .cat { aspect-ratio: 3 / 4; border-radius: 16px; }
  .cat-label { flex-direction: column; align-items: flex-start; padding: .9rem; gap: .5rem; }
  .cat-label strong { font-size: 1.6rem; }
  .cat-label small { font-size: .62rem; padding: .45rem .6rem; }
  .charm-prices { grid-template-columns: 1fr 1fr; }
  .sf-grid { grid-template-columns: 1fr; }
  .products { grid-auto-columns: 68%; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-seal { animation: none; }
}

/* ---------- Logo junto al botón del héroe ---------- */
.shop-hero .hero-ctas { align-items: center; }
.hero-seal { width: 76px; height: 76px; margin-left: .6rem; background: var(--cream); border-radius: 50%; padding: 6px; box-shadow: 0 10px 26px -14px rgba(35,70,58,.5); animation: spin-plain 40s linear infinite; }
@keyframes spin-plain { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-seal { animation: none; } }

/* ---------- Página de colecciones ---------- */
.col-hero { padding: clamp(2rem, 5vw, 3.5rem) var(--pad) 1.5rem; background: var(--menta); border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); text-align: center; }
.col-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.col-hero p { color: #3F5A50; margin: .8rem auto 0; max-width: 52ch; }
.col-tabs { position: sticky; top: 92px; z-index: 40; display: flex; gap: .5rem; overflow-x: auto; padding: 1rem var(--pad); background: rgba(251,250,246,.95); backdrop-filter: blur(8px); scrollbar-width: none; }
.col-tabs::-webkit-scrollbar { display: none; }
.col-tabs a { flex: none; text-decoration: none; font-weight: 600; font-size: .88rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--forest); background: #fff; transition: background .2s, color .2s; }
.col-tabs a:hover { background: var(--menta); }
.col-tabs a[aria-current="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.col-tabs a span { opacity: .6; font-weight: 500; margin-left: .25rem; }
.col-body { padding: 1rem var(--pad) clamp(3rem, 7vw, 6rem); }
.col-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 1.6rem; }
.col-title h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.col-title p { margin: 0; color: var(--muted); }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.cp { display: flex; flex-direction: column; background: #fff; border-radius: 20px; padding: .7rem .7rem 1rem; box-shadow: 0 18px 40px -32px rgba(35,70,58,.6); }
.cp-img { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #f3f1ec; }
.cp-img img { width: 100%; height: 100%; object-fit: cover; }
.cp-thumbs { display: flex; gap: .35rem; margin-top: .5rem; }
.cp-thumbs button { width: 44px; height: 44px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; }
.cp-thumbs button[aria-pressed="true"] { border-color: var(--forest); }
.cp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cp h3 { font: 400 1.25rem/1.15 var(--serif); margin: .8rem .2rem .15rem; }
.cp .cp-mat { margin: 0 .2rem .5rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.cp ul { list-style: none; margin: 0 .2rem .4rem; padding: 0; font-weight: 600; color: var(--cafe); font-size: .92rem; display: grid; gap: .15rem; }
.cp .cp-note { margin: 0 .2rem .6rem; font-size: .82rem; color: var(--muted); }
.cp .product-cta { margin: auto .2rem 0; }
.col-empty { color: var(--muted); }
@media (max-width: 680px) {
  .col-tabs { top: 74px; }
  .col-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .cp { padding: .45rem .45rem .8rem; border-radius: 14px; }
  .cp h3 { font-size: 1.05rem; }
  .cp ul { font-size: .82rem; }
  .cp .product-cta { font-size: .78rem; padding: .55rem .5rem; }
  .hero-seal { width: 60px; height: 60px; }
}

/* Ajustes v20261015 */
.shop-links { gap: clamp(.9rem, 1.6vw, 1.8rem); }
.shop-links a { white-space: nowrap; letter-spacing: .1em; }
@media (max-width: 1240px) { .shop-links a[href$="#comprar"] { display: none; } }
@media (max-width: 680px) {
  .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-thumbs { flex-wrap: wrap; }
  .cp-thumbs button { width: 34px; height: 34px; }
}


/* ---------- Ajustes 15-oct: héroe con una foto, título en dos niveles, barra menta ---------- */
.announce { background: var(--menta); color: var(--forest); border-bottom: 1px solid rgba(35,70,58,.12); }
.shop-hero-gallery { display: flex; justify-content: center; align-items: center; }
.hg-solo { width: min(100%, 420px); aspect-ratio: 567 / 1000; max-height: 640px; transform: none; }
.hg-solo img { object-position: center; }
.hero-title2 { display: flex; flex-direction: column; gap: .4rem; }
.hero-title2 .ht-big { font-size: clamp(3.2rem, 8vw, 7rem); letter-spacing: .06em; text-transform: uppercase; font-weight: 300; line-height: 1; }
.hero-title2 .ht-small { font-size: clamp(1.4rem, 2.8vw, 2.4rem); font-weight: 300; letter-spacing: .01em; line-height: 1.15; }
@media (max-width: 1000px) { .hg-solo { width: min(100%, 340px); } }


/* ---------- Portada con foto de fondo (chocolate) ---------- */
.hero-bg { position: relative; min-height: clamp(520px, 82vh, 820px); display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; padding: 4rem var(--pad); border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); background: #b9b2ad; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; z-index: -2; }
.hero-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(20,30,25,.55) 0%, rgba(20,30,25,.35) 60%, rgba(20,30,25,.2) 100%); }
.hero-bg-copy { max-width: 900px; color: #fff; display: flex; flex-direction: column; align-items: center; }
.hero-bg .hero-title2 { color: #fff; align-items: center; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero-bg .hero-title2 em { color: var(--menta); }
.hero-bg .ht-big { font-size: clamp(3rem, 10vw, 8rem); }
.hero-bg-lead { margin: 1.2rem auto 1.8rem; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255,255,255,.92); text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero-bg-ctas { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.hero-bg-btn { background: transparent; color: #fff; border: 1.5px solid #fff; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; backdrop-filter: blur(2px); }
.hero-bg-btn:hover { background: #fff; color: var(--forest); }
@media (max-width: 680px) { .hero-bg { min-height: 78vh; padding: 3rem 1rem; } .hero-bg .ht-big { letter-spacing: .04em; } }


/* Franja de categorías: fondo claro, letra negra */
.marquee { background: var(--menta); color: #111; border-top: 1px solid rgba(35,70,58,.12); border-bottom: 1px solid rgba(35,70,58,.12); }
.marquee span { color: #111; }
.marquee i { color: var(--forest); }


/* Portada más nítida: ancho máximo para no estirar la foto */
.hero-bg { max-width: 1240px; margin: 1.2rem auto 0; border-radius: clamp(20px, 3vw, 36px); }
@media (max-width: 1280px) { .hero-bg { margin: 1rem clamp(.5rem, 1.5vw, 1.2rem) 0; } }
.hero-bg-btn { backdrop-filter: none; }
