/* =============================================================
   Casa de Relatos — styles.css
   Archetype: Cinematic 3D Storytelling · Editorial Dark Warm
   Palette: borgoña #720706 · crema #E8D6C4 · negro/#0d0505 · oro #C9A84C
   ============================================================= */

/* 1. Tokens --------------------------------------------------- */
:root {
  /* Barra fija compacta (Bloque 7c-1b). --nav-h lo actualiza main.js con el alto de la barra fija. */
  --nav-logo-w-stuck: 88px;
  --nav-logo-w-stuck-m: 66px;
  --nav-pad-stuck: .4rem;
  --nav-h: 80px;
  --wine:      #720706;
  --wine-lt:   #9a2420;
  --wine-deep: #4d0504;
  --cream:     #E8D6C4;
  --cream-dim: rgba(232,214,196,0.66);
  --cream-mut: rgba(232,214,196,0.60);
  --black:     #000000;
  --bg:        #0d0505;
  --bg-2:      #1a0a0a;
  --bg-3:      #25100e;
  --gold:      #C9A84C;
  --gold-dim:  #a98a38;
  --ink:       #1a0a0a;   /* text on cream */
  --ink-soft:  #3a201c;
  --ink-mut:   #6e4a42;
  --line-light: rgba(232,214,196,0.16);
  --line-dark:  rgba(26,10,10,0.16);

  --serif: "Graditen", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.2rem, 5vw, 5rem);
  --maxw: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Vidrio líquido */
  --glass-blur: 8px;
  --glass-saturate: 1.35;
  --glass-brightness: 1;
  --glass-tint-top: rgba(255,255,255,.09);
  --glass-tint-bottom: rgba(255,255,255,.03);
  --glass-edge-strong: .55;
  --glass-edge-soft: .08;
  --glass-specular: .18;
}

/* 2. Reset & base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  color: var(--cream); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; overscroll-behavior-y: none;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
::selection { background: var(--wine); color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem;
  background: var(--wine); color: var(--cream); border-radius: 8px; }
.skip-link:focus { top: 1rem; }

/* 3. Bilingual ----------------------------------------------- */
html[data-lang="es"] [lang="en"] { display: none; }
html[data-lang="en"] [lang="es"] { display: none; }

/* 5. Progress ------------------------------------------------ */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 8000;
  background: linear-gradient(90deg, var(--wine), var(--gold)); transition: width .1s linear; }

/* 6. Splash -------------------------------------------------- */
.splash { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; background: var(--bg);
  animation: splashSafe .01s 4s forwards; }
.splash.is-out { opacity: 0; visibility: hidden; transform: translateY(-1.2%);
  transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out), visibility 0s 1.1s; }
@keyframes splashSafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-inner { display: grid; justify-items: center; gap: 1rem; animation: splashIn 1.1s var(--ease-out) both; }
.splash-logo { width: clamp(160px, 40vw, 230px); height: auto; animation: floaty 3.4s ease-in-out infinite; }
.splash-tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold); letter-spacing: .02em; }
@keyframes splashIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 7. Nav ----------------------------------------------------- */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 7000; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1rem var(--gutter);
  transition: background .4s var(--ease-out), padding .3s ease, box-shadow .4s; }
.nav.is-stuck { background: color-mix(in srgb, var(--bg-2) 95%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: var(--nav-pad-stuck); box-shadow: 0 1px 0 var(--line-light); }
.nav-brand { transition: opacity .35s ease, visibility .35s; }
.nav:not(.is-stuck):not(.is-open) .nav-brand { opacity: 0; visibility: hidden; pointer-events: none; }
.nav-logo { width: clamp(120px, 16vw, 156px); height: auto; transition: width .3s ease; }
.nav.is-stuck .nav-logo { width: var(--nav-logo-w-stuck); }
@media (max-width: 1369px) {
  :root { --nav-pad-stuck: .4rem; }
  .nav.is-stuck .nav-logo { width: var(--nav-logo-w-stuck-m); }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav-logo { transition: none; } }
.nav-links { display: none; gap: 2.2rem; }
.nav-links a { position: relative; font-size: .88rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 10px rgba(0,0,0,.45); padding: .2rem 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 0; background: var(--gold); transition: width .35s var(--ease-out); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-shop { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1.1rem; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, rgba(201,168,76,.68), rgba(201,168,76,.54));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5); backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12), 0 6px 24px rgba(0,0,0,.18);
  color: var(--bg); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: background .3s; }
.nav-shop > * { position: relative; z-index: 1; }
.nav-shop svg { width: 18px; height: 18px; flex: none; }
.nav-shop:hover { background: linear-gradient(180deg, rgba(214,186,108,.76), rgba(214,186,108,.62)); color: var(--bg); }
.nav.is-stuck .nav-shop { background: linear-gradient(180deg, rgba(201,168,76,.88), rgba(201,168,76,.74)); }
.nav.is-stuck .nav-shop:hover { background: linear-gradient(180deg, rgba(214,186,108,.94), rgba(214,186,108,.82)); }
.nav-shop:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.nav-cart-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--wine); color: var(--cream); border: 1px solid var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: 0; line-height: 1; }
.nav-cart-count[hidden] { display: none; }
.nav-shop-m { display: none; }
.lang-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 40px; padding: 0 .75rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; border-radius: 999px; transition: background .25s; }
.lang-toggle:hover { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); }
.lang-globe { position: relative; z-index: 1; width: 16px; height: 16px; flex: none; }
.lang-code { position: relative; z-index: 1; }
.nav-burger { display: inline-flex; flex-direction: column; gap: 5px; padding: .4rem; }
.nav-burger span { width: 22px; height: 1.6px; background: var(--cream); transition: transform .3s var(--ease-out), opacity .3s; }
.nav.is-open .nav-burger span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav.is-open .nav-burger span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
@media (max-width: 1369px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; display: flex;
    max-height: calc(100vh - 100%); max-height: calc(100dvh - 100%); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg-2);
    padding: .6rem var(--gutter) 1.4rem; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s; box-shadow: 0 18px 30px -18px rgba(0,0,0,.6); }
  .nav-links.is-mobile-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line-light); font-size: .9rem; }
  .nav-links .nav-shop-m { display: block; width: 100%; text-align: left; padding: .9rem 0; border-bottom: 1px solid var(--line-light);
    font-size: .9rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .nav-shop { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .nav-shop .nav-cart-count { position: absolute; z-index: 2; top: -5px; right: -5px; }
  .lang-toggle { height: 44px; }
  .nav-shop-label { display: none; }
}

/* 8. Buttons ------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding: .95rem 1.8rem; border-radius: 40px; overflow: hidden; isolation: isolate; transition: color .35s var(--ease-out), border-color .35s; }
.btn > * { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--wine); transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--ease-out); }
.btn:hover::before { transform: scaleX(1); }
.btn-primary { background: var(--wine); color: var(--cream); }
.btn-primary::before { background: var(--gold); }
.btn-primary:hover { color: var(--ink); }
.btn-outline { border: 1.5px solid var(--cream); color: var(--cream); }
.btn-outline:hover { color: var(--cream); border-color: var(--wine); }
.btn-block { width: 100%; }

/* 9. Reveals & split ---------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-split] { opacity: 1; }                       /* defensive */
.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word-in { display: inline-block; will-change: transform; }
.split-ready .word-in { transform: translateY(115%); transition: transform .7s var(--ease-out); }
.split-ready.is-in .word-in { transform: none; }

/* 10. Shared section bits ------------------------------------ */
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .72rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--wine); margin-bottom: 1.3rem; font-weight: 500; }
.eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--wine); opacity: .55; }
.eyebrow--light { color: var(--gold); }
.eyebrow--light::after { background: var(--gold); }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.04; max-width: 18ch; }
.section-title--dark { color: var(--ink); }
.section-title--light { color: var(--cream); }
.section-title--center { margin-inline: auto; text-align: center; max-width: 22ch; }
.section-title em { font-style: italic; color: var(--gold); }

/* 11. HERO --------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  padding: 6rem var(--gutter) 4rem; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,5,5,.55) 0%, rgba(13,5,5,.32) 38%, rgba(13,5,5,.78) 100%); }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; pointer-events: none; }
.hero-inner { position: relative; z-index: 3; display: grid; justify-items: center; gap: 0; max-width: 60rem; }
.hero-logo { width: clamp(220px, 38vw, 430px); height: auto; margin-bottom: 1.4rem;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.5)); }
.hero-tagline { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--cream);
  font-size: clamp(1.7rem, 4.4vw, 3.4rem); line-height: 1.1; max-width: 16ch; text-shadow: 0 2px 22px rgba(0,0,0,.6); }
.hero-sub { margin: 1.4rem 0 2rem; font-size: clamp(.8rem, 1.6vw, .98rem); letter-spacing: .2em;
  text-transform: uppercase; color: var(--cream-dim); }
.hero-scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 3; }
.scroll-line { display: block; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(.4); opacity: .4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; } }

/* 12. MANIFIESTO -------------------------------------------- */
.manifiesto { position: relative; background: var(--bg); padding: clamp(5rem, 16vh, 11rem) 0; overflow: hidden; }
.manifiesto-watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) perspective(800px) rotateX(16deg);
  font-family: var(--serif); font-weight: 600; font-size: clamp(5rem, 26vw, 22rem); color: var(--wine);
  opacity: .14; letter-spacing: .02em; white-space: nowrap; pointer-events: none; z-index: 0; line-height: 1; }
.manifiesto-inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; }
.manifiesto-cita { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4.2vw, 3.1rem);
  line-height: 1.22; color: var(--cream); max-width: 20ch; }
.manifiesto-text { margin-top: 1.8rem; max-width: 56ch; font-size: 1.0625rem; color: var(--cream-dim); line-height: 1.85; }

/* 13. HISTORIA ----------------------------------------------- */
.historia { position: relative; background: var(--cream); color: var(--ink); padding: clamp(4rem, 12vh, 9rem) 0; }
.historia::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(114,7,6,.05) 1px, transparent 1px); background-size: 4px 4px; mix-blend-mode: multiply; }
.historia-grid { position: relative; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.historia-text { max-width: 40rem; }
.historia-body { display: grid; gap: 1.1rem; margin: 1.6rem 0 1.8rem; color: var(--ink-soft); font-size: 1.02rem; }
.historia-body strong { color: var(--wine); font-weight: 600; }
.historia-founders { display: flex; align-items: center; gap: .9rem; }
.founders-mark { width: 34px; flex: none; display: inline-flex; }
.founders-mark svg { width: 100%; height: auto; }
.historia-founders figcaption { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--wine); }
.historia-collage { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.collage { overflow: hidden; border-radius: 6px; box-shadow: 0 24px 50px -30px rgba(26,10,10,.6); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.collage:hover img { transform: scale(1.05); }
.collage--main { grid-column: span 3; aspect-ratio: 4/5; }
.collage--thumb { grid-column: span 2; aspect-ratio: 1; }
.proceso { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4rem); position: relative; }
.proceso-item { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 16/10; }
.proceso-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.proceso-item:hover img { transform: scale(1.06); }
.proceso-cap { position: absolute; left: 1rem; bottom: .9rem; font-family: var(--serif); font-style: italic; font-size: 1.4rem;
  color: var(--cream); z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.proceso-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(13,5,5,.6)); }

/* 14. TERROIR ------------------------------------------------ */
.terroir { position: relative; background: var(--bg-2); padding: clamp(4rem, 12vh, 9rem) 0; overflow: hidden; }
.terroir-head { text-align: center; display: grid; justify-items: center; margin-bottom: 2rem; }
.terroir-sub { color: var(--cream-dim); font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .8rem; }
.terroir-map-wrap { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; aspect-ratio: 16/9;
  border-radius: 12px; overflow: hidden; }
.terroir-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.terroir-pin { position: absolute; z-index: 3; transform: translate(-50%, -100%); }
.terroir-pin--a { left: 33%; top: 64%; }
.terroir-pin--b { left: 65%; top: 42%; }
.pin-dot { display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--wine);
  box-shadow: 0 0 0 4px rgba(114,7,6,.3), 0 0 20px 4px rgba(201,168,76,.55); animation: pinPulse 2.6s ease-in-out infinite; }
.pin-tip { position: absolute; left: 50%; bottom: 155%; transform: translateX(-50%) translateY(6px); white-space: nowrap;
  background: rgba(13,5,5,.9); color: var(--cream); border: 1px solid var(--line-light); padding: .5rem .8rem; border-radius: 8px;
  font-size: .78rem; line-height: 1.35; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s; box-shadow: 0 12px 30px -14px rgba(0,0,0,.85);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pin-tip strong { color: var(--gold); font-weight: 600; }
.terroir-pin:hover .pin-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
@keyframes pinPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(114,7,6,.28), 0 0 14px 2px rgba(201,168,76,.45); } 50% { box-shadow: 0 0 0 6px rgba(114,7,6,.16), 0 0 22px 4px rgba(201,168,76,.7); } }
.counters { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 1.6rem 1rem;
  max-width: 1000px; margin: clamp(2.4rem,6vw,3.6rem) auto; text-align: center; padding-inline: var(--gutter); }
.counter-num { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); color: var(--gold); line-height: 1; }
.counter-label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); }
.terroir-desc { display: grid; gap: 1.8rem; margin-bottom: clamp(2.4rem,6vw,3.6rem); }
.terroir-desc h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); margin-bottom: .5rem; }
.terroir-desc h3 em { font-style: italic; color: var(--gold); font-size: .9em; }
.terroir-desc p { color: var(--cream-dim); }
.terroir-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.terroir-gallery figure { position: relative; overflow: hidden; border-radius: 5px; aspect-ratio: 4/3; }
.terroir-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.terroir-gallery figure::after { content: ""; position: absolute; inset: 0; background: var(--wine); opacity: .12; transition: opacity .5s; }
.terroir-gallery figure:hover img { transform: scale(1.08); }
.terroir-gallery figure:hover::after { opacity: 0; }

/* 15. VINOS (snap carousel) --------------------------------- */
.vinos { position: relative; background-color: var(--cream); color: var(--ink); padding: clamp(4rem, 10vh, 7rem) 0 clamp(3rem,6vh,5rem); overflow: hidden; }
.vinos-head { text-align: center; display: grid; justify-items: center; margin-bottom: 2.4rem; }
.vinos-carousel { position: relative; max-width: 1240px; margin: 0 auto; padding-inline: clamp(2.6rem, 7vw, 5rem); }
.vinos-viewport { overflow-x: scroll; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 16px; }
.vinos-viewport::-webkit-scrollbar { display: none; }
.vinos-track { display: flex; gap: 0; }
.vino { scroll-snap-align: start; flex: 0 0 100%; width: 100%; box-sizing: border-box;
  display: grid; grid-template-columns: 1fr; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem);
  background: #f4ecdb; border: 1px solid rgba(201,168,76,.32); border-radius: 16px; padding: clamp(1.6rem, 4vw, 48px); min-height: 460px;
  box-shadow: 0 24px 60px -34px rgba(26,10,10,.5); }
.vino-media { display: grid; place-items: center;
  background: radial-gradient(56% 54% at 50% 42%, rgba(255,252,244,.85), rgba(244,236,219,0) 72%); }
.vino-media img { width: auto; max-width: 100%; height: auto; max-height: 340px; object-fit: contain; filter: drop-shadow(0 30px 26px rgba(26,10,10,.34)); }
.vino-info { display: grid; gap: .55rem; align-content: center; }
.vino-eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--wine); font-weight: 600; }
.vino-name { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 4.6vw, 3rem); color: var(--ink); line-height: 1; }
.vino-variety { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mut); }
.vino-badge { justify-self: start; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bg);
  background: var(--gold); padding: .34rem .8rem; border-radius: 30px; }
.vino-tech { font-size: .82rem; color: var(--ink-mut); }
.vino-medallas { display: flex; align-items: center; gap: 0; margin: .3rem 0; }
.medal-img { width: 72px; height: 72px; object-fit: contain; margin-right: 12px; }
.vino-notes { font-size: .94rem; color: #3a2a2a; }
.vino-relato { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--wine);
  padding-top: .8rem; border-top: 1px solid var(--line-dark); }
.vinos-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--wine); color: var(--wine); background: rgba(255,255,255,.7); display: grid; place-items: center;
  font-size: 1.2rem; line-height: 1; z-index: 4; transition: background .3s, color .3s; }
.vinos-arrow:hover { background: var(--wine); color: var(--cream); }
.vinos-arrow--prev { left: clamp(.1rem, 1.5vw, 1rem); }
.vinos-arrow--next { right: clamp(.1rem, 1.5vw, 1rem); }
.vinos-dots { display: flex; justify-content: center; gap: 10px; margin-top: 1.8rem; }
.vinos-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cream); border: 1px solid rgba(114,7,6,.45); cursor: pointer; padding: 0; transition: background .3s, transform .3s, border-color .3s; }
.vinos-dot.is-active { background: var(--wine); border-color: var(--wine); transform: scale(1.18); }

/* 16. PREMIOS ------------------------------------------------ */
.premios { background: var(--bg); padding: clamp(4rem, 12vh, 9rem) 0; }
.premios-inner { display: grid; justify-items: center; text-align: center; }
.premios-eyebrow { font-size: .82rem; letter-spacing: .12em; color: var(--cream-dim); margin-bottom: clamp(2.4rem,6vw,3.6rem); max-width: 40ch; }
.premios-vinos { display: grid; grid-template-columns: 1fr; gap: 1.6rem; width: 100%; max-width: 980px; }
.premio-vino { display: grid; justify-items: center; gap: 1.1rem; padding: 1.8rem 1rem; border-radius: 12px; transition: background .4s; }
.premio-vino:hover { background: rgba(232,214,196,0.04); }
.premio-vino-name { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }
.premio-vino-name span { color: var(--gold); font-style: italic; font-size: .82em; }
.premio-vino { align-content: start; }
.premio-medallas { display: flex; gap: 16px; align-items: center; justify-content: center; text-align: center; margin: 0 auto; }
.medal-frame { display: inline-flex; align-items: center; justify-content: center; padding: 6px;
  border: 1.5px solid #C9A84C; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  box-shadow: 0 0 10px rgba(201,168,76,0.18);
  transition: transform .4s var(--ease-out); }
.premio-medallas img { width: 90px; height: 90px; display: block; }
.premio-vino:hover .medal-frame { transform: translateY(-5px); }
.premios-close { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--cream);
  margin-top: clamp(2.4rem,6vw,3.6rem); max-width: 24ch; }

/* 17. ENOTURISMO -------------------------------------------- */
.enoturismo { position: relative; overflow: hidden; color: var(--cream); padding: clamp(5rem,14vh,10rem) 0; }
.enoturismo-bg { position: absolute; inset: -10% 0; z-index: 0; }
.enoturismo-bg img { width: 100%; height: 100%; object-fit: cover; }
.enoturismo-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,5,5,.78), rgba(13,5,5,.6) 40%, rgba(13,5,5,.85)); }
.enoturismo-grid { position: relative; z-index: 2; display: grid; gap: clamp(2rem,5vw,4rem); align-items: center; }
.enoturismo-lead { color: var(--cream-dim); font-size: 1.02rem; max-width: 40ch; margin: 1.4rem 0 1.8rem; }
.enoturismo-list { list-style: none; display: grid; gap: .9rem; margin-bottom: 2rem; }
.enoturismo-list li { display: flex; align-items: center; gap: .9rem; font-size: 1rem; color: var(--cream); }
.li-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-light); color: var(--gold); }
.li-icon svg { width: 18px; height: 18px; }
.enoturismo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.enoturismo-wa { font-size: .86rem; letter-spacing: .04em; color: var(--gold); border-bottom: 1px solid transparent; transition: border-color .3s; }
.enoturismo-wa:hover { border-color: var(--gold); }
.cata-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .7rem; margin-bottom: .9rem; }
.cata-grid figure { overflow: hidden; border-radius: 8px; aspect-ratio: 1; }
.cata-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.cata-grid figure:hover img { transform: scale(1.07); }
.enoturismo-fachada { overflow: hidden; border-radius: 8px; position: relative; }
.enoturismo-fachada img { width: 100%; object-fit: cover; aspect-ratio: 16/9; }
.enoturismo-fachada figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .7rem; font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--cream-dim); background: linear-gradient(transparent, rgba(13,5,5,.85)); }

/* 18. CONTACTO + FOOTER ------------------------------------- */
.contacto { background: var(--bg); padding: clamp(4rem,12vh,8rem) 0 0; }
.contacto-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: clamp(3rem,8vh,5rem); }
.contacto-title { font-family: var(--serif); font-style: italic; font-size: clamp(2rem,4vw,2.8rem); color: var(--cream); margin-bottom: 1.4rem; }
.contacto-form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: .4rem; }
.field-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-mut); }
.field input, .field textarea { width: 100%; padding: .7rem .2rem; font: inherit; font-size: 1rem; color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-light); transition: border-color .3s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--cream-mut); }
.form-status { display: flex; gap: .9rem; align-items: center; margin-top: 1.2rem; padding: 1rem 1.25rem; border-radius: 14px;
  color: var(--cream); animation: fsIn .35s var(--ease-out) both; }
.form-status:empty { display: none; }
@keyframes fsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fs-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; line-height: 1; }
.fs-text { display: grid; gap: .15rem; }
.fs-text strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.15; color: var(--cream); }
.fs-text small { font-size: .95rem; line-height: 1.45; color: var(--cream-dim); }
.form-status.is-ok { background: rgba(201,168,76,.12); border: 1px solid var(--gold); }
.form-status.is-ok .fs-ico { background: var(--gold); color: var(--bg); }
.form-status.is-error { background: rgba(114,7,6,.28); border: 1px solid var(--wine); }
.form-status.is-error .fs-ico { background: var(--wine); color: var(--cream); }
.form-status.is-error a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .form-status { animation: none; } }
.contacto-datos { display: grid; gap: 1.1rem; align-content: start; }
.contacto-logo { width: 150px; height: auto; margin-bottom: .6rem; opacity: .92; }
.dato { display: grid; gap: .15rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-light); transition: padding-left .3s; }
a.dato:hover { padding-left: .4rem; }
.dato-k { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-mut); }
.dato-v { font-size: 1.02rem; color: var(--cream); }
.contacto-social { display: flex; gap: .7rem; margin-top: .4rem; }
.contacto-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-light); color: var(--cream); transition: background .3s, transform .3s, border-color .3s; }
.contacto-social a svg { width: 20px; height: 20px; }
.contacto-social a:hover { background: var(--wine); transform: translateY(-3px); border-color: transparent; }
.contacto-map { position: relative; border-radius: 10px; overflow: hidden; min-height: 250px; border: 1px solid var(--line-light); }
.contacto-map iframe { width: 100%; height: 100%; min-height: 250px; border: 0; filter: grayscale(.3) sepia(.25) brightness(.92); }

.footer-bottom { border-top: 1px solid var(--line-light); padding: 2rem var(--gutter); display: grid; justify-items: center; gap: .5rem; text-align: center; }
.footer-mark { width: 110px; height: auto; opacity: .85; margin-bottom: .4rem; }
.footer-bottom p { font-size: .8rem; color: var(--cream-mut); }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--gold) !important; font-size: 1rem !important; }

/* 19. Responsive -------------------------------------------- */
@media (min-width: 640px) {
  .counters { grid-template-columns: repeat(4,1fr); }
  .proceso { grid-template-columns: repeat(3,1fr); }
  .premios-vinos { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .terroir-gallery { grid-template-columns: repeat(3,1fr); }
  .vino { grid-template-columns: 1fr 1.6fr; min-height: 520px; }
  .vino-media img { max-height: 420px; }
}
@media (min-width: 1370px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}
@media (min-width: 960px) {
  .historia-grid { grid-template-columns: 1.02fr .98fr; }
  .historia-collage { gap: 1rem; }
  .terroir-desc { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .enoturismo-grid { grid-template-columns: 1.05fr .95fr; }
  .contacto-grid { grid-template-columns: 1fr .8fr 1.3fr; }
  .contacto-map { aspect-ratio: 1 / 1; min-height: 0; align-self: start; }
  .contacto-map iframe { width: 100%; height: 100%; min-height: 0; border: 0; }
}
@media (max-width: 959px) {
  .contacto-map { aspect-ratio: 4 / 3; min-height: 0; }
  .contacto-map iframe { min-height: 0; }
}

@media (max-width: 719px) {
  .terroir-map-wrap { aspect-ratio: 4/3; }
}

/* 20. Reduced motion (intrusive only) ----------------------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-line, .splash-logo, .pin-dot { animation: none; }
}

/* =============================================================
   21. Tienda (comprar) + Carrito + Club del Vino
   ============================================================= */
/* --- Botón "Comprar" en las fichas de vino --- */
.vino-info { align-self: stretch; display: flex; flex-direction: column; gap: .55rem; }
.vino-info > :first-child { margin-top: auto; }
.vino-badge { align-self: flex-start; }
.vino-actions { margin-top: auto; padding-top: .9rem; }
@media (max-width: 719px) { .vino-cta { width: 100%; } }

/* --- Club del Vino --- */
.club { background: var(--bg); padding: clamp(4rem, 12vh, 9rem) 0; }
.club-lead { max-width: 54ch; margin: 1.2rem auto 0; color: var(--cream-dim); text-align: center; }
.club-tiers { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin: clamp(2.6rem, 6vw, 4rem) 0 clamp(2.4rem, 5vw, 3.4rem); align-items: stretch; }
.club-tier { position: relative; background: var(--bg-2); border: 1px solid var(--line-light); border-radius: 16px; padding: 2.2rem 1.7rem; display: flex; flex-direction: column; gap: 1.05rem; transition: transform .4s var(--ease-out), box-shadow .4s; }
.club-tier:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -34px rgba(0,0,0,.7); }
.club-tier--featured { border-color: var(--gold); box-shadow: 0 26px 64px -34px rgba(201,168,76,.42); }
.tier-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink);
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: .32rem .85rem; border-radius: 30px; white-space: nowrap; }
.tier-name { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--cream); }
.tier-price { font-family: var(--serif); color: var(--gold); line-height: 1; }
.tier-cur { font-size: 1.1rem; vertical-align: .5em; }
.tier-amt { font-size: 2.6rem; }
.tier-per { font-size: .85rem; color: var(--cream-mut); font-family: var(--sans); }
.tier-list { list-style: none; display: grid; gap: .7rem; flex: 1; }
.tier-list li { position: relative; padding-left: 1.5rem; font-size: .93rem; color: var(--cream-dim); line-height: 1.4; }
.tier-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 3px rgba(114,7,6,.28); }
.club-tier--featured .tier-list li::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.28); }
.club-benefits { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; max-width: 900px; margin: 0 auto clamp(1.6rem, 4vw, 2.4rem); }
.club-benefits li { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--cream); }
.cb-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-light); color: var(--gold); }
.cb-ico svg { width: 18px; height: 18px; }
.club-note { text-align: center; color: var(--cream-mut); font-size: .85rem; font-style: italic; font-family: var(--serif); }

@media (min-width: 720px) {
  .club-tiers { grid-template-columns: repeat(3, 1fr); }
  .club-tier--featured { transform: translateY(-10px); }
  .club-tier--featured:hover { transform: translateY(-15px); }
  .club-benefits { grid-template-columns: repeat(4, 1fr); }
  .club-benefits li { flex-direction: column; text-align: center; gap: .5rem; }
}

/* --- Club: filete e hilo dorado de entrada (tras El Origen, ambos oscuros) --- */
.club { position: relative; border-top: 1px solid var(--line-light); }
.club::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 1px; height: clamp(30px, 5vh, 54px); background: linear-gradient(var(--gold), transparent); opacity: .5; }
.contacto-or { display: flex; align-items: center; gap: 1rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); }
.contacto-or::before, .contacto-or::after { content: ""; flex: 1; height: 1px; background: var(--line-light); }
.btn-wa svg { width: 18px; height: 18px; flex: none; }
.historia :focus-visible, .vinos :focus-visible { outline-color: var(--wine); }
.vinos-dot { position: relative; }
.vinos-dot::after { content: ""; position: absolute; inset: -8px; }
.word { padding-bottom: .14em; margin-bottom: -.14em; }

/* Bloque 5 ------------------------------------------------------ */
/* "Descubrir" del hero: vidrio */
.hero .btn-outline { border: 0; transition: background .25s, transform .25s var(--ease-out), box-shadow .25s; }
.hero .btn-outline:hover { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); color: #fff; transform: translateY(-1px); }
.hero .btn-outline:hover::after { background: radial-gradient(120% 140% at 20% 0%, rgba(255,255,255,calc(var(--glass-specular) + .06)), transparent 60%); }
.hero .btn-outline:active { transform: scale(.98); }

/* Enlace "Cómo llegar" del mapa */
.map-link { position: absolute; z-index: 2; top: .75rem; right: .75rem; font-size: .78rem; letter-spacing: .04em; color: var(--gold);
  background: rgba(13,5,5,.78); padding: .4rem .8rem; border-radius: 30px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.map-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Botón Enviar: estados */
.btn-label { position: relative; }
.btn-state { display: none; align-items: center; gap: .5rem; }
.btn.is-sending .btn-label > [lang], .btn.is-sent .btn-label > [lang] { display: none; }
.btn.is-sending .btn-state--sending, .btn.is-sent .btn-state--sent { display: inline-flex; }
.btn-state--sending::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: btnDot 1s ease-in-out infinite; }
@keyframes btnDot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.btn.is-sent { background: var(--gold); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .btn-state--sending::after { animation: none; } }

/* Pie: Síguenos y aviso legal */
.footer-follow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.footer-follow-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-mut); }
.footer-follow .contacto-social { margin-top: 0; }
.footer-bottom .footer-legal { font-size: .72rem; color: var(--cream-mut); max-width: 60ch; margin: 1rem auto 0; text-align: center; line-height: 1.5; }

/* Bloque 6 · Vidrio líquido -------------------------------------
   Selector de idioma, "Descubrir" del hero y cápsula del menú de escritorio. */
.lang-toggle, .hero .btn-outline {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, var(--glass-tint-top), var(--glass-tint-bottom));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12), 0 6px 24px rgba(0,0,0,.18);
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35); }
/* Borde de luz */
.lang-toggle::before, .hero .btn-outline::before, .nav-shop::before {
  content: ""; position: absolute; inset: 0; z-index: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,var(--glass-edge-strong)), rgba(255,255,255,var(--glass-edge-soft)) 35%,
    rgba(255,255,255,var(--glass-edge-soft)) 65%, rgba(255,255,255,calc(var(--glass-edge-strong) * .72)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  transform: none; transition: none; }
/* Brillo especular */
.lang-toggle::after, .hero .btn-outline::after, .nav-shop::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 140% at 20% 0%, rgba(255,255,255,var(--glass-specular)), transparent 55%); }
.hero .btn-outline::before { display: block; }

@media (min-width: 1370px) {
  .nav-links { position: relative; isolation: isolate; gap: 0; padding: .3rem .4rem; border-radius: 999px;
    background: linear-gradient(180deg, var(--glass-tint-top), var(--glass-tint-bottom));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12), 0 6px 24px rgba(0,0,0,.18); }
  .nav-links::before {
    content: ""; position: absolute; inset: 0; z-index: 0; padding: 1px; border-radius: inherit; pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,var(--glass-edge-strong)), rgba(255,255,255,var(--glass-edge-soft)) 35%,
    rgba(255,255,255,var(--glass-edge-soft)) 65%, rgba(255,255,255,calc(var(--glass-edge-strong) * .72)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
  .nav-links::after {
    content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 140% at 20% 0%, rgba(255,255,255,var(--glass-specular)), transparent 55%); }
  .nav-links a { z-index: 1; padding: .5rem .95rem; border-radius: 999px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35); transition: background .25s, color .25s; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a:focus-visible { background: rgba(255,255,255,.16); color: #fff; }
}

/* Sin desenfoque disponible o con transparencia reducida: fondo sólido */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lang-toggle, .hero .btn-outline { background: rgba(40,28,28,.78); }
  .nav-shop, .nav.is-stuck .nav-shop { background: rgba(201,168,76,.9); }
  @media (min-width: 1370px) { .nav-links { background: rgba(40,28,28,.78); } }
}
@media (prefers-reduced-transparency: reduce) {
  .lang-toggle, .hero .btn-outline, .nav-links, .nav-shop { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .lang-toggle, .hero .btn-outline { background: rgba(40,28,28,.92); }
  .nav-shop, .nav.is-stuck .nav-shop { background: rgba(201,168,76,.9); }
}
@media (prefers-reduced-transparency: reduce) and (min-width: 1370px) {
  .nav-links { background: rgba(40,28,28,.92); }
}

/* Bloque 7a · Barra de escritorio: cápsula centrada y más arriba */
@media (min-width: 1370px) {
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .nav-brand { justify-self: start; }
  .nav-links { justify-self: center; }
  .nav-actions { justify-self: end; }
  .nav-links, .nav-actions { transition: transform .4s var(--ease-out); }
  .nav:not(.is-stuck) .nav-links, .nav:not(.is-stuck) .nav-actions { transform: translateY(-26px); }
}

/* =============================================================
   Bloque 7c-1 · Tienda (vista aparte en #tienda)
   ============================================================= */
body.is-shop #contenido { display: none; }
#tienda[hidden] { display: none; }
/* Sin JavaScript: #tienda solo muestra el aviso de WhatsApp (noscript) */
html:not(.js) #tienda:target { display: block; }
html:not(.js) body:has(#tienda:target) #contenido { display: none; }

.shop { min-height: 100vh; background: var(--cream); color: var(--ink); padding-top: calc(var(--nav-h) + 24px); }
/* Animación en los bloques internos y sin "fill" final: un transform en .shop rompería la barra fija */
.shop-head, .shop-layout, .shop-footer { animation: shopIn .3s var(--ease-out) backwards; }
@keyframes shopIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.shop :focus-visible { outline-color: var(--wine); }
.shop-wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.shop-noscript { max-width: 1200px; margin: 0 auto 1.5rem; padding: 1rem var(--gutter); font-size: 1rem; color: var(--ink); }
.shop-noscript a { color: var(--wine); text-decoration: underline; }

/* Franja superior */
.shop-head { padding-bottom: 1.8rem; }
.shop-back { display: inline-flex; align-items: center; min-height: 44px; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500; color: var(--wine); }
.shop-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-title { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--ink); margin: .4rem 0 .6rem; }
.shop-title:focus { outline: none; }
.shop-sub { font-size: 1.05rem; color: var(--ink-soft); }
.shop-facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem 1.6rem;
  margin-top: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.shop-facts li { display: flex; align-items: center; gap: .65rem; font-size: .86rem; line-height: 1.4; color: var(--ink-soft); }
.shop-facts svg { flex: none; width: 22px; height: 22px; color: var(--wine); }

/* Distribución: productos + pedido */
.shop-layout { display: grid; gap: 1.8rem; padding-bottom: 3.5rem; }
.shop-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-content: start; }
@media (min-width: 720px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-grid > .shop-card--pack { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .shop-order { position: sticky; top: calc(var(--nav-h) + 16px); }
}

/* Tarjetas */
.shop-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 18px;
  box-shadow: 0 2px 6px rgba(26,10,10,.05), 0 18px 40px -24px rgba(26,10,10,.35); transition: box-shadow .3s, opacity .3s; }
.shop-card.is-out { opacity: .55; }
.shop-card--pack { border: 1.5px solid var(--gold); }
.shop-card.is-highlight { box-shadow: 0 0 0 3px var(--gold), 0 0 0 10px rgba(201,168,76,.3), 0 18px 40px -24px rgba(26,10,10,.35); }
/* Las imágenes de botella tienen fondo transparente: la zona usa el crema de las fichas de Los Vinos */
.shop-media { position: relative; display: grid; place-items: center; height: 270px; padding: 1rem;
  background: radial-gradient(56% 54% at 50% 42%, rgba(255,252,244,.9), rgba(244,236,219,0) 72%), #f4ecdb; }
.shop-media img { height: 236px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(26,10,10,.28)); }
.shop-medals { position: absolute; right: .8rem; bottom: .8rem; display: flex; gap: .3rem; }
.shop-medals img { width: 60px; height: 60px; filter: drop-shadow(0 4px 8px rgba(26,10,10,.25)); }
/* Con 2 medallas: botella centrada a la izquierda (62%) y medallas apiladas a la derecha (38%) */
.shop-media--medals { grid-template-columns: 62fr 38fr; column-gap: .5rem; }
.shop-media--medals .shop-medals { position: static; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; }
@media (max-width: 399px) { .shop-medals img { width: 52px; height: 52px; } }
.shop-media--pack { display: flex; justify-content: center; align-items: center; min-height: 270px; height: 100%; }
.shop-media--pack img { height: 230px; margin-inline: -16px; }
.shop-media--pack img:nth-child(2) { position: relative; z-index: 1; height: 248px; }
.shop-body { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem 1.3rem 1.3rem; }
.shop-card--pack .shop-body { justify-content: center; padding: 1.6rem; }
.shop-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.shop-badge, .shop-flag, .shop-save { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  padding: .32rem .75rem; border-radius: 30px; }
.shop-badge { background: var(--gold); color: var(--bg); }
.shop-flag { border: 1px solid var(--wine); color: var(--wine); }
.shop-flag--out { background: var(--wine); color: var(--cream); }
.shop-save { background: var(--wine); color: var(--cream); }
.shop-name { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.shop-variety { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mut); }
.shop-tech { font-size: .8rem; color: var(--ink-mut); }
.shop-notes, .shop-desc { font-size: .92rem; color: #3a2a2a; }
.shop-buy { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding-top: .9rem; border-top: 1px solid var(--line-dark); }
.shop-price { margin-right: auto; font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--wine); }
.shop-qty { display: inline-flex; align-items: center; border: 1px solid rgba(26,10,10,.18); border-radius: 999px; }
.shop-qty button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 1.15rem; color: var(--wine); transition: background .2s; }
.shop-qty button:hover:not(:disabled) { background: rgba(114,7,6,.08); }
.shop-qty button:disabled { color: rgba(26,10,10,.28); cursor: not-allowed; }
.shop-qty-n { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink); }
.shop-add { min-height: 44px; padding: .8rem 1.3rem; }
.shop .btn:disabled { opacity: .45; cursor: not-allowed; }
.shop .btn:disabled::before { display: none; }
.shop-max { min-height: 1.1em; font-size: .76rem; color: var(--wine); }

/* Panel del pedido */
.shop-order { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; background: #fff; border-radius: 18px;
  box-shadow: 0 2px 6px rgba(26,10,10,.05), 0 22px 46px -28px rgba(26,10,10,.45); }
.shop-order-title { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.shop-line { padding: .7rem 0; border-bottom: 1px solid var(--line-dark); }
.shop-line-text { font-size: .95rem; color: var(--ink); }
.shop-line-ctrl { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .35rem; }
.shop-remove { min-height: 44px; padding: 0 .4rem; font-size: .82rem; color: var(--ink-mut); text-decoration: underline; text-underline-offset: 2px; }
.shop-remove:hover { color: var(--wine); }
.shop-empty { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-mut); }
.shop-delivery { display: grid; gap: .3rem; margin: 0; padding: 0; border: 0; }
.shop-delivery legend { margin-bottom: .3rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mut); }
.shop-radio { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-size: .92rem; color: var(--ink); cursor: pointer; }
.shop-radio input { width: 18px; height: 18px; flex: none; accent-color: var(--wine); }
.shop-sums { display: grid; gap: .35rem; padding-top: .7rem; border-top: 1px solid var(--line-dark); }
.shop-sum { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: var(--ink-soft); }
.shop-sum--total { margin-top: .2rem; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.shop-free { font-size: .84rem; color: var(--wine); }

/* Bloque 7c-2 · Formulario del pedido */
.shop-form { display: flex; flex-direction: column; gap: 1rem; }
.shop-form[hidden], .shop-lines[hidden] { display: none; }
.shop-fields { display: grid; padding-top: 1rem; border-top: 1px solid var(--line-dark); }
/* Separación con márgenes (no gap) para que la dirección plegada no deje hueco */
.shop-fields > * + * { margin-top: 1rem; }
.shop-field .field-label, .shop-pay legend { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mut); }
.shop-field input, .shop-field textarea { min-height: 46px; padding: .7rem .85rem; color: var(--ink); background: #faf6ef;
  border: 1px solid rgba(26,10,10,.24); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.shop-field textarea { min-height: 0; }
.shop-field input:focus, .shop-field textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(114,7,6,.18); }
.shop-field input[aria-invalid="true"], .shop-field textarea[aria-invalid="true"] { border-color: var(--wine); background: #fdf3f1; }
.shop-hint { font-size: .8rem; line-height: 1.4; color: var(--ink-mut); }
.shop-err { display: flex; align-items: flex-start; gap: .4rem; font-size: .84rem; line-height: 1.35; font-weight: 500; color: var(--wine); }
.shop-err[hidden] { display: none; }
.shop-err svg { flex: none; width: 16px; height: 16px; margin-top: .05rem; }
.shop-pay { gap: .15rem; }
.shop-pay .shop-hint { margin-top: .2rem; }
.shop-pay .shop-err { margin-top: .3rem; }
.shop-form .shop-radio input, .shop-check input { width: 22px; height: 22px; flex: none; accent-color: var(--wine); }
.shop-form .shop-radio input:focus-visible, .shop-check input:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.shop-check { display: flex; align-items: center; gap: .7rem; min-height: 44px; font-size: .95rem; color: var(--ink); cursor: pointer; }
.shop-check-wrap { display: grid; gap: .25rem; }
/* Dirección: se pliega con recojo en la bodega */
.shop-collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease, opacity .3s ease, margin .3s ease, visibility .3s; }
.shop-collapse-in { min-height: 0; overflow: hidden; padding: 3px; margin: -3px; }
.shop-fields > .shop-collapse.is-collapsed { grid-template-rows: 0fr; opacity: 0; visibility: hidden; margin-top: 0; }
/* Anti-spam: fuera de pantalla */
.shop-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shop-send { padding-inline: 1rem; letter-spacing: .1em; white-space: nowrap; }
.shop-send svg { width: 18px; height: 18px; flex: none; }
.shop-send:focus-visible, .shop-done .btn:focus-visible, .shop-done-link:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
/* Confirmación (mismo aviso que el formulario de contacto, con texto oscuro sobre el panel blanco) */
.shop-done { display: grid; gap: .9rem; }
.shop-done[hidden] { display: none; }
.shop-done:focus { outline: none; }
.shop-done-box { margin-top: 0; align-items: flex-start; color: var(--ink); }
.shop-done-box .fs-text strong { font-size: 1.6rem; color: var(--ink); }
.shop-done-box .fs-text small { color: var(--ink-soft); }
.shop-done-code { font-size: .95rem; color: var(--ink); }
.shop-done-code b { white-space: nowrap; font-weight: 700; letter-spacing: .04em; color: var(--wine); }
.shop-done-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.btn-line { border: 1.5px solid var(--wine); color: var(--wine); }
.btn-line:hover { color: var(--cream); }
/* Escritorio: el panel fijo se desplaza por dentro si no cabe en la pantalla */
@media (min-width: 960px) {
  .shop-order { max-height: calc(100vh - var(--nav-h) - 32px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (prefers-reduced-motion: reduce) { .shop-collapse, .shop-field input, .shop-field textarea { transition: none; } }

/* Bloque 7c-3 · Celular, departamento, mapa de entrega y pago */
.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; }
.shop-tel { display: flex; align-items: stretch; }
.shop-tel-prefix { display: inline-flex; align-items: center; padding: 0 .8rem; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--ink-soft);
  background: #efe6d6; border: 1px solid rgba(26,10,10,.24); border-right: 0; border-radius: 10px 0 0 10px; user-select: none; }
.shop-tel input { flex: 1; min-width: 0; border-radius: 0 10px 10px 0; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.shop-numhint { min-height: 0; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.shop-numhint:empty { display: none; }
.shop-field select { width: 100%; min-height: 48px; padding: .6rem 2.4rem .6rem .85rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #faf6ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23720706' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 18px;
  border: 1px solid rgba(26,10,10,.24); border-radius: 10px; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.shop-field select:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(114,7,6,.18); }
.shop-field select[aria-invalid="true"] { border-color: var(--wine); background-color: #fdf3f1; }
.shop-field select:invalid { color: var(--ink-mut); }
.shop-field select option { color: var(--ink); }
/* Mapa */
.shop-geo { display: grid; gap: .55rem; }
.shop-geo-title { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mut); }
.shop-touch-only { display: none; }
@media (pointer: coarse) { .shop-touch-only { display: inline; } }
.shop-map-wrap { position: relative; }
.shop-map { position: relative; z-index: 0; isolation: isolate; height: 260px; border-radius: 14px; overflow: hidden; background: #efe6d6;
  border: 1px solid rgba(26,10,10,.18); }
.shop-map[aria-invalid="true"] { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(114,7,6,.25); }
.shop-map.leaflet-container { font: inherit; font-size: .8rem; }
.shop-map.leaflet-container:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.shop-map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 34px; color: var(--ink); }
.shop-map .leaflet-control-zoom a:focus-visible { outline: 2px solid var(--wine); outline-offset: -2px; }
.shop-map .leaflet-control-attribution { font-size: .68rem; }
.shop-map-note, .shop-map-hint { position: absolute; z-index: 1; left: 50%; transform: translateX(-50%); margin: 0; pointer-events: none;
  padding: .45rem .85rem; border-radius: 999px; font-size: .8rem; line-height: 1.3; text-align: center; width: max-content; max-width: calc(100% - 24px); }
.shop-map-note { top: 10px; left: 56px; right: 10px; width: auto; max-width: none; transform: none; border-radius: 12px; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 4px 14px rgba(26,10,10,.18); }
.shop-map-note[hidden] { display: none; }
.shop-map-hint { top: 50%; transform: translate(-50%, -50%); background: rgba(13,5,5,.78); color: var(--cream); opacity: 0; transition: opacity .25s; }
.shop-map-hint.is-on { opacity: 1; }
/* Pin: gota borgoña con punto crema */
.shop-pin { touch-action: none; }
.shop-pin span { position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: var(--wine); border: 2px solid #fff;
  border-radius: 50% 50% 50% 0; transform: translate(0, 0) rotate(-45deg); box-shadow: -2px 3px 8px rgba(26,10,10,.35); }
.shop-pin span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--cream); }
.shop-pin:focus-visible { outline: none; }
.shop-pin:focus-visible span { box-shadow: 0 0 0 3px var(--gold); }
.shop-geo-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-geo-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--wine); border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--wine); background: #fff; transition: background .2s, color .2s; }
.shop-geo-btn:hover { background: var(--wine); color: var(--cream); }
.shop-geo-btn:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.shop-geo-btn svg { width: 18px; height: 18px; flex: none; }
.shop-geo-btn[hidden] { display: none; }
.shop-geo-btn--ghost { border-color: rgba(26,10,10,.24); color: var(--ink-soft); }
.shop-geo-btn.is-busy { opacity: .6; cursor: progress; }
.shop-geo-status { font-size: .86rem; font-weight: 600; color: #2f5d34; }
.shop-geo-status[hidden] { display: none; }
.shop-geo-coords { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink-mut); }
.shop-geo-msg { font-size: .84rem; color: var(--wine); }
.shop-geo-msg:empty { display: none; }
.shop-refs { margin-top: 1rem; }
.shop-field textarea::placeholder { color: #8a7068; opacity: 1; }
.shop-count { justify-self: end; font-size: .74rem; font-variant-numeric: tabular-nums; color: var(--ink-mut); }
@media (min-width: 960px) { .shop-map { height: 320px; } }
/* Pago: etiquetas y ayuda según entrega y forma de pago */
.shop-form:not(.is-recojo) .when-recojo, .shop-form.is-recojo .when-envio { display: none; }
.shop-form[data-pago="cash"] .hint-other, .shop-form:not([data-pago="cash"]) .hint-cash { display: none; }
.shop-privacy { font-size: .76rem; line-height: 1.45; text-align: center; color: var(--ink-mut); }
.shop-done-warn { padding: .55rem .7rem; border-left: 3px solid var(--wine); background: rgba(114,7,6,.06); border-radius: 0 8px 8px 0; color: var(--ink) !important; }
.shop-done-warn b { color: var(--wine); }
.shop-done:not([data-pago="pay"]) .done-pay, .shop-done:not([data-pago="cash-envio"]) .done-cash-envio,
.shop-done:not([data-pago="cash-recojo"]) .done-cash-recojo { display: none; }
@media (prefers-reduced-motion: reduce) { .shop-map-hint { transition: none; } }

/* Pie de la tienda (mismas clases que el pie del sitio, sobre fondo oscuro) */
.shop-footer { background: var(--bg); }

/* Barra inferior móvil */
.shop-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6500; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom, 0px)); background: var(--bg-2); color: var(--cream);
  box-shadow: 0 -12px 30px -14px rgba(0,0,0,.6); }
.shop-bar[hidden] { display: none; }
.shop-bar-info { font-size: .9rem; }
.shop-bar-btn { flex: none; min-height: 44px; padding: .7rem 1.1rem; }
@media (max-width: 959px) { body.is-shop .shop { padding-bottom: 76px; } }
@media (min-width: 960px) { .shop-bar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .shop-head, .shop-layout, .shop-footer { animation: none; } .shop-card { transition: none; } }

/* Bloque B · Distinción Concours Mondial de Bruxelles (píldora crema con el sello) */
.distincion { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: #f4ecdb; }
.distincion img { display: block; height: 26px; width: auto; mix-blend-mode: multiply; }
.distincion-text { font-size: .72rem; line-height: 1.25; font-weight: 500; letter-spacing: .02em; color: var(--bg); }
.vino-distincion { margin-top: -.1rem; }
.vino-distincion .distincion { border: 1px solid rgba(201,168,76,.7); box-shadow: 0 1px 4px rgba(0,0,0,.08); padding-block: calc(.35rem - 1px); }
.shop-body > .distincion { align-self: flex-start; }
@media (max-width: 719px) { .distincion img { height: 24px; } }
/* Tienda en móvil: si no cabe en una línea, el sello va encima del texto */
@media (max-width: 479px) {
  .shop-body > .distincion { flex-direction: column; align-items: flex-start; gap: .3rem; padding: .5rem .9rem; border-radius: 16px; }
}

/* =============================================================
   Bloque 7d · Panel "Tu pedido" destacado y fichas de biblioteca
   ============================================================= */
/* ---------- Panel: contenedor con dos zonas ---------- */
.shop-order { gap: 0; padding: 0; background: #f4ecdb; border: 1px solid rgba(201,168,76,.55); border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(26,10,10,.08), 0 26px 50px -30px rgba(26,10,10,.55); }
@media (min-width: 960px) { .shop-order { overflow-y: auto; } }
.shop-order-top { position: relative; display: grid; gap: .9rem; padding: 1.5rem 1.4rem 1.4rem; color: var(--cream);
  background: radial-gradient(120% 70% at 50% 0%, #2a1412 0%, rgba(42,20,18,0) 70%), var(--bg-2); }
.shop-order-top::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,168,76,.2); border-radius: 12px; pointer-events: none; }
.shop-order-top > * { position: relative; }
.shop-order-top .shop-order-title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; color: var(--cream);
  padding-bottom: .55rem; border-bottom: 1px solid rgba(201,168,76,.45); }
.shop-order-top :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.shop-summary { display: grid; gap: .9rem; }
.shop-summary[hidden] { display: none; }
/* Líneas */
.shop-lines { display: grid; }
.shop-order-top .shop-line { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: .85rem; align-items: start;
  margin-inline: -.6rem; padding: .85rem .6rem; border-bottom: 1px solid rgba(201,168,76,.25); border-radius: 8px; }
.shop-line.is-flash { animation: lineFlash 1.2s ease-out; }
@keyframes lineFlash { from { background: rgba(201,168,76,.25); } to { background: rgba(201,168,76,0); } }
.shop-line-thumb { display: flex; align-items: center; justify-content: center; width: 52px; height: 66px; background: #f4ecdb; border-radius: 8px; }
.shop-line-thumb img { height: 56px; width: auto; }
.shop-line-thumb--pack img { height: 46px; margin-inline: -1px; }
.shop-line-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.shop-line-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; line-height: 1.25; color: var(--cream); }
.shop-line-price { flex: none; font-size: 1rem; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.shop-line-unit { font-size: .95rem; color: var(--cream-dim); }
.shop-order-top .shop-line-ctrl { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .3rem; }
.shop-order-top .shop-qty { border-color: rgba(201,168,76,.7); }
.shop-order-top .shop-qty button { color: var(--cream); }
.shop-order-top .shop-qty button:hover:not(:disabled) { background: rgba(201,168,76,.16); }
.shop-order-top .shop-qty button:disabled { color: rgba(232,214,196,.3); }
.shop-order-top .shop-qty-n { color: var(--cream); font-size: 1rem; }
.shop-order-top .shop-remove { font-size: .95rem; color: var(--cream-dim); }
.shop-order-top .shop-remove:hover { color: var(--cream); }
.shop-order-top .shop-max { font-size: .95rem; color: var(--gold); }
/* Vacío */
.shop-order-top .shop-empty { display: grid; justify-items: center; gap: .5rem; padding: .6rem 0 .2rem; text-align: center; }
.shop-order-top .shop-empty[hidden] { display: none; }
.shop-empty-ico { width: 40px; height: 40px; color: var(--gold); }
.shop-order-top .shop-empty p { font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.4; color: var(--cream-dim); }
/* Entrega */
.shop-order-top .shop-delivery legend { margin-bottom: .2rem; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.shop-order-top .shop-radio { font-size: .98rem; font-weight: 500; color: var(--cream); }
.shop-order-top .shop-radio input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border-radius: 50%;
  border: 2px solid var(--gold); background: transparent; display: grid; place-content: center; cursor: pointer; }
.shop-order-top .shop-radio input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .15s; }
.shop-order-top .shop-radio input:checked::before { transform: scale(1); }
/* Totales */
.shop-order-top .shop-sums { gap: .45rem; padding-top: .8rem; border-top: 1px solid rgba(201,168,76,.25); }
.shop-order-top .shop-sum { font-size: .98rem; color: var(--cream-dim); }
.shop-order-top .shop-sum > span:last-child { color: var(--cream); font-variant-numeric: tabular-nums; }
.shop-order-top .shop-sum--total { margin-top: .3rem; align-items: baseline; font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.shop-order-top .shop-sum--total > span:last-child { color: var(--gold); }
.shop-freebar { display: grid; gap: .4rem; padding: .2rem 0 .3rem; }
.shop-freebar[hidden] { display: none; }
.shop-order-top .shop-free { display: flex; align-items: center; gap: .4rem; font-size: .95rem; color: var(--cream-dim); }
.shop-freebar.is-free .shop-free { color: var(--gold); font-weight: 600; }
.shop-free svg { width: 18px; height: 18px; flex: none; }
.shop-progress { height: 6px; border-radius: 999px; background: rgba(232,214,196,.14); overflow: hidden; }
.shop-progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #b8922f, var(--gold)); transition: width .4s var(--ease-out); }
/* Zona clara: datos y confirmación */
.shop-order-data { padding: 1.4rem; background: #f4ecdb; border-top: 1px solid rgba(201,168,76,.55); }
.shop-data-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--bg); }
.shop-order-data .shop-fields { border-top-color: rgba(201,168,76,.45); }
.shop-order-data.shop-done { gap: .9rem; }
/* Barra móvil: pulso al añadir */
.shop-bar.is-pulse { animation: barPulse .7s ease-out; }
@keyframes barPulse { 0% { box-shadow: 0 -12px 30px -14px rgba(0,0,0,.6), 0 0 0 0 rgba(201,168,76,.6); } 60% { box-shadow: 0 -12px 30px -14px rgba(0,0,0,.6), 0 0 0 6px rgba(201,168,76,0); } 100% { box-shadow: 0 -12px 30px -14px rgba(0,0,0,.6); } }

/* ---------- Fichas: escenario pergamino + placa oscura ---------- */
@media (min-width: 720px) {
  /* Cada ficha crece por su cuenta al abrir la ficha de cata; main.js iguala escenario y textos por fila */
  .shop-grid { align-items: start; }
}
.shop-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid rgba(201,168,76,.6); border-radius: 16px;
  box-shadow: 0 2px 8px rgba(26,10,10,.08), 0 22px 44px -28px rgba(26,10,10,.55); transition: transform .35s var(--ease-out), box-shadow .35s; }
.shop-card::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,168,76,.25); border-radius: 11px; pointer-events: none; z-index: 3; }
.shop-card.is-out { opacity: 1; }
.shop-card.is-out .shop-stage { opacity: .5; filter: grayscale(.5); }
.shop-card--pack { border: 1px solid rgba(201,168,76,.6); }
.shop-stage { position: relative; display: grid; grid-template-columns: 58fr 42fr; align-items: center; min-height: 340px; padding: 1.4rem .9rem 1.2rem 1rem; overflow: hidden;
  background:
    radial-gradient(rgba(90,60,20,.07) .6px, transparent .9px) 0 0 / 4px 4px,
    radial-gradient(rgba(255,255,255,.28) .6px, transparent .9px) 2px 1px / 5px 5px,
    radial-gradient(120% 95% at 45% 42%, #f6efe0 0%, #efe3cb 58%, #e9dcc3 100%);
  box-shadow: inset 0 0 70px rgba(122,86,32,.2); }
.shop-numeral { position: absolute; left: 6%; top: 50%; transform: translateY(-52%); font-family: var(--serif); font-size: 15rem; line-height: 1;
  color: rgba(201,168,76,.11); pointer-events: none; user-select: none; }
.shop-bottle { position: relative; display: flex; justify-content: center; align-items: center; }
.shop-bottle img { height: 290px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 20px 18px rgba(26,10,10,.3)); transition: transform .35s var(--ease-out); }
.shop-awards { position: relative; display: flex; flex-direction: column; align-items: center; gap: .7rem; padding-top: 3.6rem; }
.shop-medal { width: 96px; height: 96px; filter: drop-shadow(0 0 9px rgba(201,168,76,.45)) drop-shadow(0 4px 8px rgba(26,10,10,.22)); transition: filter .35s; }
.shop-awards .distincion { flex-direction: column; gap: .2rem; padding: .35rem .6rem; border-radius: 12px; text-align: center; border: 1px solid rgba(201,168,76,.55); }
.shop-awards .distincion img { height: 18px; }
.shop-awards .distincion-text { font-size: .66rem; }
/* Listón marcapáginas */
.shop-ribbon { position: absolute; top: 0; right: 1.1rem; z-index: 2; display: grid; justify-items: center; width: 66px; padding: .55rem .2rem 1.15rem;
  color: var(--cream); text-align: center; background: linear-gradient(180deg, #8c0d0b, var(--wine) 70%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 12px), 0 100%); }
.shop-stage .shop-badge { position: absolute; top: .9rem; right: .9rem; z-index: 2; }
/* Placa oscura */
.shop-plate { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.4rem 1.2rem; color: var(--cream);
  background: linear-gradient(180deg, #221010, var(--bg-2) 40%); }
.shop-plate :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.shop-eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.shop-plate .shop-name { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1.05; color: var(--cream); }
.shop-plate .shop-variety { font-size: .9rem; letter-spacing: .02em; text-transform: none; color: var(--cream-dim); }
.shop-relato, .shop-plate .shop-desc { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.45; color: var(--cream-dim); }
.shop-plate .shop-desc { font-family: inherit; font-style: normal; font-size: .95rem; -webkit-line-clamp: unset; }
.shop-plate .shop-flag { align-self: flex-start; margin-top: .2rem; padding: .3rem .7rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); background: none; }
.shop-plate .shop-flag--out { border-color: var(--wine); background: var(--wine); color: var(--cream); }
.shop-plate .shop-buy { margin-top: auto; padding-top: .95rem; border-top: 1px solid rgba(201,168,76,.4); }
.shop-plate .shop-price { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); }
.shop-plate .shop-qty { border-color: rgba(201,168,76,.7); }
.shop-plate .shop-qty button { color: var(--cream); }
.shop-plate .shop-qty button:hover:not(:disabled) { background: rgba(201,168,76,.16); }
.shop-plate .shop-qty button:disabled { color: rgba(232,214,196,.3); }
.shop-plate .shop-qty-n { color: var(--cream); }
.shop-add { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.2rem; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, rgba(201,168,76,.95), rgba(201,168,76,.8)); color: var(--bg); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 18px rgba(0,0,0,.25); cursor: pointer; transition: background .25s; }
.shop-add:hover:not(:disabled) { background: linear-gradient(180deg, #dcbd6a, #cfae58); }
.shop-add.is-added { background: linear-gradient(180deg, #e3c77c, #d4b25e); }
.shop-add:disabled { opacity: .45; cursor: not-allowed; }
.shop-plate .shop-max { color: var(--gold); }
/* Ficha de cata */
.shop-tasting { position: relative; background: #140707; border-top: 1px solid rgba(201,168,76,.25); color: var(--cream); }
.shop-tasting summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 1.4rem; list-style: none; cursor: pointer;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.shop-tasting summary::-webkit-details-marker { display: none; }
.shop-tasting summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
.shop-tasting[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.shop-tasting summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 8px; }
.shop-tasting-in { display: grid; gap: .5rem; padding: 0 1.4rem 1.2rem; }
.shop-tasting .shop-notes { font-size: .95rem; line-height: 1.5; color: var(--cream-dim); }
.shop-tasting .shop-tech { font-size: .86rem; color: var(--cream-dim); }
/* Pack */
.shop-stage--pack { display: flex; justify-content: center; }
.shop-bottles { display: flex; justify-content: center; align-items: center; }
.shop-bottles img { height: 240px; width: auto; margin-inline: -16px; filter: drop-shadow(0 18px 16px rgba(26,10,10,.3)); }
.shop-bottles img:nth-child(2) { position: relative; z-index: 1; height: 262px; }
.shop-card--pack .shop-plate { justify-content: center; padding: 1.8rem 1.8rem 1.6rem; }
@media (min-width: 720px) { .shop-grid > .shop-card--pack .shop-stage { min-height: 100%; } }
/* Hover (escritorio) */
@media (hover: hover) and (pointer: fine) {
  .shop-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(201,168,76,.35), 0 0 28px rgba(201,168,76,.22), 0 26px 48px -26px rgba(26,10,10,.6); }
  .shop-card:hover .shop-bottle img { transform: scale(1.02); }
  .shop-card:hover .shop-medal { filter: drop-shadow(0 0 14px rgba(201,168,76,.65)) drop-shadow(0 4px 8px rgba(26,10,10,.22)); }
}
.shop-card.is-highlight { box-shadow: 0 0 0 3px var(--gold), 0 0 0 10px rgba(201,168,76,.3), 0 18px 40px -24px rgba(26,10,10,.35); }
@media (max-width: 719px) {
  .shop-stage { min-height: 300px; }
  .shop-bottle img { height: 250px; }
  .shop-medal { width: 80px; height: 80px; }
  .shop-numeral { font-size: 12rem; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-card, .shop-bottle img, .shop-medal, .shop-progress > span, .shop-tasting summary::after { transition: none; }
  .shop-card:hover { transform: none; }
  .shop-card:hover .shop-bottle img { transform: none; }
  .shop-line.is-flash, .shop-bar.is-pulse { animation: none; }
}

/* Bloque 7d-b · "Tus datos": letra mínima de 14px y campos a 16px; efectivo no disponible */
.shop-order-data .field-label, .shop-order-data .shop-pay legend, .shop-order-data .shop-geo-title,
.shop-order-data .shop-hint, .shop-order-data .shop-numhint, .shop-order-data .shop-err, .shop-order-data .shop-geo-msg,
.shop-order-data .shop-geo-status, .shop-order-data .shop-count, .shop-order-data .shop-privacy, .shop-order-data .shop-pay-note,
.shop-order-data .shop-map-note, .shop-order-data .shop-map-hint, .shop-order-data .shop-geo-btn { font-size: .875rem; }
.shop-order-data .shop-field input, .shop-order-data .shop-field textarea, .shop-order-data .shop-field select,
.shop-order-data .shop-tel-prefix { font-size: 1rem; }
.shop-order-data .shop-radio { font-size: .95rem; }
.shop-radio.is-disabled { opacity: .5; cursor: not-allowed; }
.shop-pay-note { margin: -.1rem 0 .2rem 2.1rem; font-weight: 500; color: var(--ink-soft); }
.shop-pay-note[hidden] { display: none; }
@media (max-width: 400px) {
  .shop-order-data { padding-inline: 1.1rem; }
  .shop-order-data .shop-send { padding-inline: .8rem; letter-spacing: .06em; gap: .4rem; }
}

/* Bloque 7d-c · Tienda: plato superior, Punto Aparte centrado, listón dorado */
.shop-plate-top { display: flex; flex-direction: column; gap: .35rem; }
.shop-stage--solo { grid-template-columns: 1fr; }
.shop-stage--solo .shop-numeral { left: 50%; transform: translate(-50%, -52%); }
.shop-tasting[open] .shop-tasting-in { animation: tastingIn .28s ease-out; }
@keyframes tastingIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Listón dorado con muesca en V */
.shop-ribbon { right: 1rem; width: auto; min-width: 104px; padding: 12px 16px 26px; gap: 2px; color: var(--bg);
  background: linear-gradient(180deg, var(--gold), #b19443); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 14px), 0 100%);
  transform-origin: top right; }
.shop-ribbon-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.shop-ribbon-num { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.05; white-space: nowrap; }
.shop-ribbon-unit { font-size: 12px; font-weight: 600; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.shop-awards { padding-top: 7.4rem; }
@media (max-width: 719px) {
  .shop-awards { padding-top: 6.9rem; }
}
@media (prefers-reduced-motion: reduce) { .shop-tasting[open] .shop-tasting-in { animation: none; } }
/* El listón no tapa la botella: Punto Aparte (centrada) baja bajo el listón; el pack deja libre la franja del listón */
.shop-stage--solo { align-items: end; padding-top: 112px; }
.shop-stage--pack { padding-right: 132px; }
@media (max-width: 719px) {
  .shop-stage--solo { padding-top: 100px; }
  .shop-stage--pack { padding-right: 118px; }
}

/* Bloque 7d-d · Listón compacto (LIMITADA / cifra / BOTELLAS) que se ensancha al pasar el ratón */
.shop-ribbon { min-width: 0; width: 100px; padding: 12px 10px 24px; gap: 1px; }
.shop-ribbon-label, .shop-ribbon-unit { font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.25; text-transform: uppercase; white-space: nowrap; }
.shop-ribbon-num { font-size: 1.3rem; }
.shop-ribbon-label { display: grid; justify-items: center; }
.shop-ribbon-short, .shop-ribbon-long { grid-area: 1 / 1; transition: opacity .25s; }
.shop-ribbon-long { opacity: 0; }
@media (max-width: 719px) { .shop-ribbon { width: 88px; } }
@media (hover: hover) and (pointer: fine) {
  .shop-ribbon--grow { transition: width .45s cubic-bezier(.2,.8,.2,1); }
  .shop-card:hover .shop-ribbon--grow, .shop-card:has(.shop-add:focus-visible) .shop-ribbon--grow { width: var(--ribbon-wide, 160px); }
  .shop-card:hover .shop-ribbon--grow.no-long .shop-ribbon-short, .shop-card:has(.shop-add:focus-visible) .shop-ribbon--grow.no-long .shop-ribbon-short { opacity: 1; }
  .shop-card:hover .shop-ribbon--grow.no-long .shop-ribbon-long, .shop-card:has(.shop-add:focus-visible) .shop-ribbon--grow.no-long .shop-ribbon-long { opacity: 0; }
  .shop-card:hover .shop-ribbon--grow .shop-ribbon-short, .shop-card:has(.shop-add:focus-visible) .shop-ribbon--grow .shop-ribbon-short { opacity: 0; }
  .shop-card:hover .shop-ribbon--grow .shop-ribbon-long, .shop-card:has(.shop-add:focus-visible) .shop-ribbon--grow .shop-ribbon-long { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .shop-ribbon--grow, .shop-ribbon-short, .shop-ribbon-long { transition: none; } }
/* La frase larga del listón no ocupa espacio hasta que se ensancha */
.shop-ribbon-label { position: relative; display: block; }
.shop-ribbon-long { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }

/* Bloque 7e · Pastilla de vidrio que se desliza entre los enlaces del menú (escritorio con ratón) */
.nav-pill { display: none; }
@media (min-width: 1370px) and (hover: hover) and (pointer: fine) {
  .nav-links.has-pill-js .nav-pill { display: block; position: absolute; top: .3rem; bottom: .3rem; left: 0; z-index: 0; pointer-events: none;
    width: var(--pill-w, 0px); transform: translateX(var(--pill-x, 0px)); border-radius: 999px; opacity: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.1));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(255,255,255,.08), 0 2px 10px rgba(0,0,0,.12);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), width .4s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
  .nav-links.has-pill-js.has-pill .nav-pill { opacity: 1; }
  /* Con la pastilla activa, los enlaces ya no pintan su propio fondo */
  .nav-links.has-pill-js a:hover, .nav-links.has-pill-js a:focus-visible { background: transparent; }
}
@media (min-width: 1370px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .nav-links.has-pill-js .nav-pill { transition: opacity .2s ease; }
}

/* Bloque 7e · Listón de satén dorado con volumen, colgado sobre el borde superior de la tarjeta */
/* La tarjeta ya no recorta (overflow visible): cada zona redondea sus propias esquinas */
.shop-card { overflow: visible; }
.shop-card > .shop-stage { border-radius: 15px 15px 0 0; }
.shop-card > .shop-tasting { border-radius: 0 0 15px 15px; }
.shop-card--pack > .shop-stage { border-radius: 15px 15px 0 0; }
.shop-card--pack > .shop-plate { border-radius: 0 0 15px 15px; }
@media (min-width: 720px) {
  .shop-grid > .shop-card--pack > .shop-stage { border-radius: 15px 0 0 15px; }
  .shop-grid > .shop-card--pack > .shop-plate { border-radius: 0 15px 15px 0; }
}
/* Contenedor: lleva la sombra (nunca el elemento con clip-path) */
.shop-ribbon-wrap { position: absolute; top: -10px; right: 1rem; z-index: 4; display: block; width: 100px;
  filter: drop-shadow(0 8px 6px rgba(0,0,0,.45)) drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
@media (min-width: 720px) { .shop-grid > .shop-card--pack > .shop-ribbon-wrap { right: calc(50% + 1rem); } }
@media (max-width: 719px) { .shop-ribbon-wrap { width: 88px; } }
/* Solapa doblada sobre el borde (10 px por encima de la tarjeta) y triángulos del doblez a cada lado */
.shop-ribbon-flap { display: block; height: 10px; background: linear-gradient(180deg, #7a5c1c, #a78530);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 100%, 0 100%); }
.shop-ribbon-wrap::before, .shop-ribbon-wrap::after { content: ""; position: absolute; top: 3px; width: 7px; height: 7px; background: #6e5c2a; }
.shop-ribbon-wrap::before { left: -7px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.shop-ribbon-wrap::after { right: -7px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
/* Cuerpo: capas de satén */
.shop-ribbon-wrap .shop-ribbon { position: relative; top: auto; right: auto; z-index: auto; width: 100%; min-width: 0; transform: none;
  display: grid; justify-items: center; gap: 1px; padding: 12px 10px 24px; color: var(--bg); text-shadow: 0 1px 0 rgba(255,255,255,.4);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 14px), 0 100%);
  background:
    linear-gradient(90deg, rgba(255,255,255,.5) 0 1px, transparent 1px calc(100% - 1px), rgba(0,0,0,.35) calc(100% - 1px)),
    linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(255,255,255,0) 12%, rgba(255,255,255,.55) 30%, rgba(255,255,255,0) 50%, rgba(0,0,0,.10) 78%, rgba(0,0,0,.30) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,.22), rgba(0,0,0,0) 30%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #e0c36a, #b8923a); }
/* Costura punteada: arriba y a los lados (abajo chocaría con la muesca en V) */
.shop-ribbon-wrap .shop-ribbon::before { content: ""; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 16px;
  border: 1px dashed rgba(60,40,10,.5); border-bottom: 0; pointer-events: none; }
