/* =============================================================
   vinosjerez.es — estilo editorial "albariza & solera"
   1. Tokens
   ============================================================= */
:root {
  --bg: #f6f1e7;          /* albariza */
  --bg-2: #ece3d1;
  --bg-3: #e3d6bd;
  --ink: #1d1611;
  --ink-soft: #3d332a;
  --ink-mute: #6f6356;
  --accent: #8a3f17;      /* oloroso */
  --accent-2: #b8862f;    /* fino dorado */
  --px: #2e140c;          /* pedro ximénez */
  --line: rgba(29, 22, 17, .16);
  --line-strong: #1d1611;
  --serif: "Playfair Display", "Times New Roman", serif;
  --text: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 18px 50px -24px rgba(46, 20, 12, .45);
  /* colores de cada vino */
  --c-fino: #e8cf7a; --c-manzanilla: #efe0a0; --c-amontillado: #c98f3d;
  --c-oloroso: #8a4317; --c-palo: #a35b22; --c-px: #2e140c; --c-cream: #6b2f12;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--text); font-size: 18px; line-height: 1.65; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { 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-family: var(--serif); text-wrap: balance; line-height: 1.08; letter-spacing: -0.015em; font-weight: 700; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--bg); z-index: 9999; border-radius: 8px; font-family: var(--sans); font-size: 15px; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.mute { color: var(--ink-mute); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); }
.section-head p { color: var(--ink-soft); font-size: 19px; }
.rule { border: 0; border-top: 1px solid var(--line-strong); }

/* =============================================================
   4. Componentes
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55em; font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: .95em 1.5em; border-radius: 999px; transition: transform .5s var(--ease-out), background .3s, color .3s, box-shadow .5s var(--ease-out);
  border: 1px solid var(--ink);
}
.btn .arr { transition: transform .5s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-gold { background: var(--accent-2); border-color: var(--accent-2); color: var(--px); }
.btn-gold:hover { background: var(--bg); transform: translateY(-2px); }

.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.ulink:hover { background-size: 100% 1px; }
.more { font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--accent); display: inline-flex; gap: .4em; }
.more::after { content: "→"; transition: transform .45s var(--ease-out); }
a:hover .more::after, .more:hover::after { transform: translateX(4px); }

.tag { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .35em .8em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }

/* Barra aviso + cabecera */
.topbar { background: var(--px); color: #f3e6cf; font-family: var(--sans); font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 9px; }
.topbar a { color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.topbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .4s, box-shadow .4s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(0,0,0,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; transition: height .4s var(--ease-out); }
.is-scrolled .nav { height: 62px; }
.brand { font-family: var(--serif); font-size: 27px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 2px; }
.brand em { font-style: italic; font-weight: 600; color: var(--accent); }
.brand small { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--ink-mute); margin-left: 8px; text-transform: uppercase; display: none; }
.menu { display: flex; align-items: center; gap: 26px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.menu > a:not(.btn) { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease-out), color .3s; padding-block: 4px; }
.menu > a:not(.btn):hover, .menu > a[aria-current="page"] { background-size: 100% 2px; color: var(--accent); }
.menu .btn { padding: .7em 1.2em; font-size: 14.5px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); transition: transform .45s var(--ease-out), opacity .3s; }
.burger span { top: 21px; } .burger::before { top: 15px; } .burger::after { top: 27px; }
.nav-open .burger span { opacity: 0; }
.nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--c-fino), var(--accent), var(--px)); z-index: 60; }

/* =============================================================
   5. Portada
   ============================================================= */
.masthead { border-bottom: 1px solid var(--line-strong); font-family: var(--sans); font-size: 13px; color: var(--ink-mute); }
.masthead .wrap { display: flex; justify-content: space-between; gap: 10px; padding-block: 12px; flex-wrap: wrap; }

.hero { padding-block: clamp(36px, 6vw, 84px) clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: .98; margin-block: 18px 22px; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--accent); }
.hero .lead { font-size: clamp(19px, 2vw, 22px); color: var(--ink-soft); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-family: var(--sans); font-size: 14px; color: var(--ink-mute); }
.hero-trust span::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.hero-figure { position: relative; }
.hero-figure .frame { border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--bg-3); }
.hero-figure img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.hero-figure figcaption { font-style: italic; font-size: 15px; color: var(--ink-mute); margin-top: 12px; text-align: center; }
.hero-badge { position: absolute; left: -18px; bottom: 56px; background: var(--px); color: #f3e6cf; border-radius: 50%; width: 118px; height: 118px; display: grid; place-content: center; text-align: center; font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.2; box-shadow: var(--shadow); animation: spinSlow 30s linear infinite; }
.hero-badge b { display: block; font-size: 30px; font-style: normal; color: var(--accent-2); }
@keyframes spinSlow { 50% { transform: rotate(8deg); } }

/* Escala de color — firma de la web */
.scale { background: var(--px); color: #f3e6cf; }
.scale .section-head h2 { color: #fbf3e2; }
.scale .section-head p { color: #d9c7a8; }
.scale .kicker { color: var(--accent-2); }
.glasses { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.glass { scroll-snap-align: start; text-align: center; padding: 22px 10px 20px; border-radius: var(--radius); border: 1px solid rgba(243,230,207,.14); transition: background .5s var(--ease-out), transform .6s var(--ease-out), border-color .4s; display: grid; justify-items: center; align-content: start; gap: 10px; }
.glass:hover { background: rgba(243,230,207,.06); transform: translateY(-6px); border-color: rgba(243,230,207,.35); }
.glass svg { width: 78px; height: 140px; }
.glass .wine { transform-origin: 50% 100%; transform: scaleY(.55); transition: transform .9s var(--ease-out); }
.glass:hover .wine, .glass.is-on .wine { transform: scaleY(1); }
.glass h3 { font-size: 20px; color: #fbf3e2; }
.glass p { font-family: var(--sans); font-size: 12.5px; color: #cdb995; line-height: 1.4; }
.scale-axis { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #a8957a; margin-top: 18px; border-top: 1px solid rgba(243,230,207,.18); padding-top: 12px; }

/* Selector "¿qué Jerez es para ti?" */
.finder { display: grid; gap: 28px; background: var(--bg-2); border-radius: calc(var(--radius) * 1.6); padding: clamp(26px, 5vw, 56px); }
.finder h2 { font-size: clamp(30px, 4vw, 46px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--sans); font-size: 15px; font-weight: 500; padding: .75em 1.2em; border: 1px solid var(--ink); border-radius: 999px; background: var(--bg); transition: background .3s, color .3s, transform .4s var(--ease-out); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.finder-result { min-height: 0; border-top: 1px solid var(--line); padding-top: 22px; display: none; }
.finder-result.is-on { display: grid; gap: 10px; animation: fadeUp .7s var(--ease-out); }
.finder-result h3 { font-size: 30px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* Dos caminos */
.paths { display: grid; gap: 18px; }
.path { position: relative; display: grid; align-content: end; min-height: 380px; border-radius: calc(var(--radius) * 1.4); overflow: hidden; color: #fbf3e2; padding: clamp(24px, 4vw, 40px); isolation: isolate; }
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29,22,17,.05) 20%, rgba(29,22,17,.86)); }
.path:hover img { transform: scale(1.05); }
.path.solid { background: var(--accent); }
.path.solid::before { background: radial-gradient(circle at 80% 10%, rgba(232,207,122,.35), transparent 55%); }
.path h3 { font-size: clamp(28px, 3.4vw, 40px); margin-block: 8px 10px; }
.path p { color: #ecdcc0; max-width: 40ch; }
.path .kicker { color: var(--c-fino); }
.path .btn { margin-top: 20px; justify-self: start; border-color: #fbf3e2; color: #fbf3e2; }
.path .btn:hover { background: #fbf3e2; color: var(--ink); }

/* Tarjetas */
.cards { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.card { display: grid; gap: 12px; align-content: start; }
.card .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-3); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); filter: sepia(.08); }
.card:hover .thumb img { transform: scale(1.05); }
.card h3 { font-size: 25px; transition: color .3s; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--ink-soft); font-size: 17px; }

.wine-card { border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); padding: 24px; display: grid; gap: 10px; align-content: start; background: color-mix(in srgb, var(--bg) 70%, white); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s; }
.wine-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.wine-card .dot { width: 46px; height: 46px; border-radius: 50%; background: var(--wc); box-shadow: inset 0 -8px 14px rgba(0,0,0,.18), 0 6px 18px -8px var(--wc); }
.wine-card h3 { font-size: 26px; }
.wine-card p { font-size: 16.5px; color: var(--ink-soft); }
.wine-card .meta { font-family: var(--sans); font-size: 13px; color: var(--ink-mute); }

/* Bloque experiencias (dinero) */
.exp { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.exp-figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.exp-figure img { width: 100%; height: 115%; object-fit: cover; }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; margin-block: 22px 28px; }
.checks li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-2); box-shadow: inset 0 0 0 4px var(--bg); outline: 1px solid var(--accent-2); }
.offer-list { display: grid; gap: 14px; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: color-mix(in srgb, var(--bg) 65%, white); transition: border-color .3s, transform .5s var(--ease-out); }
.offer:hover { border-color: var(--accent); transform: translateX(4px); }
.offer h3 { font-size: 20px; font-family: var(--serif); }
.offer p { grid-column: 1; font-family: var(--sans); font-size: 14px; color: var(--ink-mute); }
.offer .go { grid-row: 1 / span 2; grid-column: 2; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--accent); white-space: nowrap; }

/* Bloque compra (Amazon) */
.buy { border: 1px solid var(--line-strong); border-radius: calc(var(--radius) * 1.3); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; background: color-mix(in srgb, var(--bg) 60%, white); margin-block: 40px; }
.buy h2, .buy h3 { font-size: 28px; }
.buy-list { display: grid; gap: 12px; }
.buy-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.buy-item strong { font-family: var(--serif); font-size: 20px; }
.buy-item span { font-family: var(--sans); font-size: 14px; color: var(--ink-mute); grid-column: 1; }
.buy-item .btn { grid-row: 1 / span 2; grid-column: 2; padding: .7em 1.1em; font-size: 14px; }
.disclosure { font-family: var(--sans); font-size: 12.5px; color: var(--ink-mute); }

/* =============================================================
   6. Páginas interiores / artículos
   ============================================================= */
.page-hero { padding-block: clamp(40px, 7vw, 90px) clamp(26px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 82px); margin-block: 14px 18px; }
.page-hero h1 em { font-style: italic; font-weight: 600; color: var(--accent); }
.page-hero .lead { font-size: clamp(19px, 2vw, 23px); color: var(--ink-soft); max-width: 46ch; }
.crumbs { font-family: var(--sans); font-size: 13.5px; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }
.byline { font-family: var(--sans); font-size: 14px; color: var(--ink-mute); margin-top: 18px; }

.ficha-hero { display: grid; gap: 30px; align-items: center; }
.ficha-glass { justify-self: center; width: min(220px, 50vw); }
.ficha-glass .wine { transform-origin: 50% 100%; animation: pour 1.8s var(--ease-out) both .2s; }
@keyframes pour { from { transform: scaleY(0); } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
.facts div { background: var(--bg); padding: 16px 18px; }
.facts dt { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.facts dd { font-family: var(--serif); font-size: 19px; margin: 4px 0 0; }

.prose { padding-block: clamp(40px, 6vw, 72px); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 1.8em; }
.prose h3 { font-size: 24px; margin-top: 1.5em; }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose .dropcap::first-letter { font-family: var(--serif); font-style: italic; font-weight: 700; float: left; font-size: 4.6em; line-height: .82; padding: .06em .1em 0 0; color: var(--accent); }
.prose blockquote { border: 0; padding: 0; margin-block: 1.8em; font-family: var(--serif); font-style: italic; font-size: clamp(25px, 3vw, 32px); line-height: 1.3; color: var(--px); position: relative; padding-left: 1em; }
.prose blockquote::before { content: "“"; position: absolute; left: -.2em; top: -.35em; font-size: 2.4em; color: var(--accent-2); }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-style: italic; font-size: 15px; color: var(--ink-mute); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.table-wrap { overflow-x: auto; }
.note { background: var(--bg-2); border-radius: var(--radius); padding: 18px 22px; font-size: 17px; }
.toc { border-left: 2px solid var(--accent-2); padding-left: 18px; font-family: var(--sans); font-size: 15px; display: grid; gap: 6px; }
.toc a:hover { color: var(--accent); }

.related { background: var(--bg-2); }

.bodega { display: grid; gap: 8px; padding-block: 26px; border-top: 1px solid var(--line); }
.bodega h3 { font-size: 27px; }
.bodega .where { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.bodega p { color: var(--ink-soft); }
.bodega .links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

/* CTA final */
.cta-band { background: var(--accent); color: #fbf3e2; border-radius: calc(var(--radius) * 1.6); padding: clamp(30px, 6vw, 70px); display: grid; gap: 18px; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(232,207,122,.4), transparent 62%); z-index: -1; }
.cta-band h2 { font-size: clamp(32px, 5vw, 58px); max-width: 16ch; }
.cta-band p { color: #f2dfc4; max-width: 48ch; font-size: 19px; }
.cta-band .btn { justify-self: start; }

/* Pie */
.site-footer { background: var(--px); color: #d9c7a8; padding-block: 70px 30px; font-family: var(--sans); font-size: 14.5px; margin-top: clamp(60px, 8vw, 110px); }
.site-footer .brand { color: #fbf3e2; }
.site-footer .brand em { color: var(--accent-2); }
.foot-grid { display: grid; gap: 34px; }
.foot-grid h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #a8957a; margin-bottom: 14px; font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--accent-2); }
.foot-legal { border-top: 1px solid rgba(243,230,207,.16); margin-top: 46px; padding-top: 22px; display: grid; gap: 10px; font-size: 13px; color: #a8957a; }
.age { display: inline-flex; align-items: center; gap: 10px; }
.age b { border: 1.5px solid #a8957a; border-radius: 50%; width: 34px; height: 34px; display: grid; place-content: center; font-size: 12px; }

/* =============================================================
   7. Efectos
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .35s var(--ease-soft) both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 90px var(--gutter) 30px; font-size: 22px; font-family: var(--serif); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out); z-index: -1; box-shadow: var(--shadow); }
  .menu > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); background: none; }
  .menu .btn { margin-top: 20px; justify-content: center; font-family: var(--sans); font-size: 16px; }
  .nav-open .menu { clip-path: inset(0 0 0 0); }
}
@media (min-width: 540px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .paths { grid-template-columns: 1fr 1fr; }
  .brand small { display: inline; }
  .finder { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .finder-result { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .exp { grid-template-columns: 1fr 1fr; }
  .ficha-hero { grid-template-columns: 1.4fr .6fr; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* =============================================================
   9. Movimiento reducido (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: none; }
  html { scroll-behavior: auto; }
}
@media print { .site-header, .topbar, .site-footer, .progress { display: none; } }

/* =============================================================
   10. Escena "una copa, siete vinos" (scroll)
   ============================================================= */
.story { --sbg: #f6f1e7; --sink: #1d1611; background: var(--sbg); color: var(--sink); transition: color .6s var(--ease-out); position: relative; }
.story-sticky { padding-block: clamp(64px, 9vw, 110px); }
.story-grid { display: grid; gap: 34px; align-items: center; }
.story h2 { font-size: clamp(38px, 5.6vw, 72px); margin-block: 12px 26px; }
.story h2 em { font-style: italic; font-weight: 600; color: var(--accent); transition: color .6s; }
.story .kicker { transition: color .6s; }
.story-steps { list-style: none; padding: 0; display: grid; gap: 34px; }
.story-num { font-family: var(--sans); font-size: 12.5px; letter-spacing: .16em; color: var(--ink-mute); }
.story-step h3 { font-size: clamp(34px, 4.4vw, 56px); margin-block: 6px 10px; font-style: italic; font-weight: 600; }
.story-step p { font-size: clamp(18px, 1.6vw, 21px); max-width: 34ch; opacity: .85; }
.story-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 26px; margin: 20px 0 18px; }
.story-facts dt { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.story-facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 17px; }
.story .more { color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.story-stage { position: relative; display: grid; place-items: center; }
.story-glass { width: min(300px, 62vw); height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(46,20,12,.18)); }
.story-ghost { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(70px, 13vw, 190px); line-height: .9; text-align: center; opacity: .07; pointer-events: none; white-space: nowrap; }
.story-rail { display: none; }
.story.is-dark { --sink: #f6ead5; }
.story.is-dark h2 em, .story.is-dark .kicker { color: var(--accent-2); }
.story.is-dark .story-num { color: #c9b393; }

/* modo escena: solo con JS (sin JS se lee como lista) */
.js .story { height: calc(7 * 80svh + 100svh); }
.js .story-sticky { position: sticky; top: 0; height: 100svh; padding-block: 86px 24px; display: grid; align-items: center; overflow: hidden; }
.js .story-steps { display: grid; gap: 0; }
.js .story-step { grid-area: 1 / 1; opacity: 0; transform: translateY(26px); transition: opacity .55s var(--ease-out), transform .8s var(--ease-out); pointer-events: none; }
.js .story-step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.js .story-step.is-past { transform: translateY(-22px); }
.js .story-rail { display: flex; gap: 8px; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); }
.rail-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .25; transition: opacity .4s, transform .5s var(--ease-out); position: relative; }
.rail-dot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rail-dot.is-on { opacity: 1; transform: scale(1.5); }
.velo, .velo-dots { transition: opacity .6s; }

/* Cifras */
.stats { background: var(--accent); color: #fbf3e2; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding-block: clamp(40px, 6vw, 70px); }
.stats b { display: block; font-family: var(--serif); font-size: clamp(46px, 6vw, 78px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; font-family: var(--sans); font-size: 14.5px; color: #f2dfc4; max-width: 22ch; }

@media (max-width: 959px) {
  .js .story-grid { grid-template-rows: auto 1fr; gap: 6px; align-content: start; height: 100%; }
  .js .story-stage { order: -1; }
  .js .story-glass { width: auto; height: 34svh; }
  .js .story h2 { font-size: 30px; margin-block: 4px 12px; }
  .js .story-copy .kicker { display: none; }
  .js .story-step h3 { font-size: 34px; }
  .js .story-step p { font-size: 17px; }
  .story-facts { grid-template-columns: 1fr 1fr; }
  .story-facts div:last-child { grid-column: 1 / -1; }
  .js .story-rail { bottom: -14px; }
}
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   11. Portada "la bodega que se despierta" (scroll)
   ============================================================= */
.bhero { position: relative; background: #0f0b08; color: #fbf3e2; }
.bh-sticky { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.bh-media { position: absolute; inset: 0; z-index: -1; }
.bh-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% 50%; transform-origin: 54% 52%; }
.bh-layer:not([data-key="k4"]) { opacity: 0; }
.bh-layer.is-c { object-position: 50% 50%; }
.bh-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,8,5,.78) 0%, rgba(12,8,5,.45) 38%, rgba(12,8,5,0) 68%), linear-gradient(0deg, rgba(12,8,5,.7) 0%, rgba(12,8,5,0) 40%); }
.bh-dust { position: absolute; inset: -10%; opacity: .0; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff6dc 50%, transparent 51%), radial-gradient(1px 1px at 60% 70%, #fff6dc 50%, transparent 51%), radial-gradient(1.2px 1.2px at 80% 20%, #fff6dc 50%, transparent 51%), radial-gradient(1px 1px at 35% 80%, #fff6dc 50%, transparent 51%), radial-gradient(1.4px 1.4px at 70% 45%, #fff6dc 50%, transparent 51%); background-size: 340px 300px; animation: dust 26s linear infinite; mix-blend-mode: screen; }
@keyframes dust { to { transform: translate3d(-120px, -80px, 0); } }
.bh-copy { display: grid; padding-block: 120px clamp(70px, 10vh, 120px); }
.bh-phase { grid-area: 1 / 1; max-width: 620px; align-self: end; }
.bh-phase:not(.is-final) { display: none; }
.bh-title { font-family: var(--serif); font-weight: 700; font-size: clamp(42px, 6.6vw, 92px); line-height: 1; letter-spacing: -.02em; margin-block: 14px 18px; text-wrap: balance; color: #fbf3e2; }
.bh-title em { font-style: italic; font-weight: 600; color: var(--c-fino); }
.bh-lead { font-size: clamp(18px, 1.7vw, 21px); color: #eadcc2; max-width: 40ch; }
.bhero .kicker { color: var(--accent-2); }
.bh-ghost { border-color: #fbf3e2; color: #fbf3e2; }
.bh-ghost:hover { background: #fbf3e2; color: var(--ink); }
.bh-hint, .bh-steps { display: none; }

/* modo escena (con JS) */
.js .bhero { height: calc(12 * 70svh + 100svh); }
.js .bh-sticky { position: sticky; top: 0; height: 100svh; min-height: 0; }
.js .bh-layer { will-change: transform, opacity; }
.js .bh-phase { display: block !important; opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); pointer-events: none; }
.js .bh-phase.is-on { opacity: 1; transform: none; pointer-events: auto; }
.js .bh-phase.is-past { transform: translateY(-20px); }
.js .bh-hint { display: grid; justify-items: center; gap: 8px; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #eadcc2; transition: opacity .5s; }
.bh-hint i { width: 1px; height: 34px; background: linear-gradient(#eadcc2, transparent); animation: hint 1.8s var(--ease-out) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }
.js .bh-steps { display: flex; gap: 22px; position: absolute; right: var(--gutter); bottom: 32px; font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(251,243,226,.45); padding-bottom: 10px; }
.bh-steps span { transition: color .4s; }
.bh-steps span.is-on { color: #fbf3e2; }
.bh-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent-2); transform-origin: 0 50%; transform: scaleX(0); }
.bh-steps::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(251,243,226,.16); }
.bh-bar { z-index: 1; }
@media (max-width: 959px) {
  .bh-layer { object-position: 58% 50%; transform-origin: 66% 40%; }
  .bh-scrim { background: linear-gradient(0deg, rgba(12,8,5,.94) 0%, rgba(12,8,5,.82) 40%, rgba(12,8,5,.35) 58%, rgba(12,8,5,0) 72%); }
  .js .bh-steps { left: var(--gutter); right: auto; bottom: 18px; gap: 14px; font-size: 10px; }
  .js .bh-hint { display: none; }
  .bh-copy { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .bh-dust { animation: none; } }

/* fases de vino dentro de la portada */
.bh-wine .bh-title { font-size: clamp(54px, 8vw, 112px); }
.bh-wine .bh-title em { color: var(--c-fino); }
.bh-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; margin: 22px 0 20px; }
.bh-facts dt { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c9b393; }
.bh-facts dd { margin: 3px 0 0; font-family: var(--serif); font-size: 18px; color: #fbf3e2; }
.bh-link { font-family: var(--sans); font-weight: 600; font-size: 15px; color: #fbf3e2; border-bottom: 1px solid var(--accent-2); padding-bottom: 3px; display: inline-flex; gap: .4em; }
.bh-link:hover { color: var(--accent-2); }
.bh-link .arr { transition: transform .45s var(--ease-out); }
.bh-link:hover .arr { transform: translateX(4px); }
@media (max-width: 959px) {
  .bh-layer.is-c { object-position: 76% 50%; }
  .bh-facts { grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 14px 0; }
  .bh-facts div:last-child { grid-column: 1 / -1; }
  .bh-wine .bh-title { font-size: 52px; margin-block: 6px 10px; }
  .js .bh-steps span:nth-child(-n+3) { display: none; }
}

/* =============================================================
   12. Captación: lista de correo y grupos
   ============================================================= */
.lead-band { background: var(--px); color: #f3e6cf; border-radius: calc(var(--radius) * 1.6); padding: clamp(28px, 5vw, 56px); display: grid; gap: 26px; align-items: center; margin-top: clamp(50px, 7vw, 90px); position: relative; overflow: hidden; isolation: isolate; }
.lead-band::after { content: ""; position: absolute; width: 480px; height: 480px; left: -160px; bottom: -260px; background: radial-gradient(circle, rgba(232,207,122,.22), transparent 62%); z-index: -1; }
.lead-band h2 { font-size: clamp(30px, 4vw, 46px); color: #fbf3e2; margin-top: 8px; }
.lead-band h2 em { color: var(--c-fino); font-style: italic; font-weight: 600; }
.lead-band p { color: #d9c7a8; }
.lead-band .kicker { color: var(--accent-2); }
.lead-book { display: flex; gap: 18px; align-items: center; }
.lead-book .cover { flex: none; width: 92px; aspect-ratio: 210 / 297; border-radius: 4px 8px 8px 4px; background: #0f0b08 center / cover; box-shadow: 0 16px 30px -12px rgba(0,0,0,.7), inset 4px 0 0 rgba(255,255,255,.08); transform: rotate(-4deg); }
.lform { display: grid; gap: 12px; }
.lform .row { display: grid; gap: 10px; }
.lform input[type=text], .lform input[type=email], .lform input[type=tel], .lform input[type=date], .lform input[type=number], .lform select, .lform textarea { width: 100%; font: 16px var(--sans); padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(243,230,207,.25); background: rgba(255,255,255,.06); color: #fbf3e2; }
.lform textarea { min-height: 110px; resize: vertical; }
.lform select option { color: #1d1611; }
.lform input::placeholder, .lform textarea::placeholder { color: #a8957a; }
.lform input:focus, .lform select:focus, .lform textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.lform label.chk { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: #cdb995; }
.lform label.chk input { margin-top: 3px; accent-color: var(--accent-2); width: 16px; height: 16px; flex: none; }
.lform label.chk a { color: var(--c-fino); text-decoration: underline; }
.lform .btn { justify-self: start; border: 0; }
.lform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lform .msg { font-family: var(--sans); font-size: 15px; min-height: 1em; }
.lform .msg.ok { color: #c8e6a0; } .lform .msg.err { color: #ffb4a0; }
.lform .lbl { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #a8957a; margin-bottom: -4px; }
.lform.is-done .row, .lform.is-done label.chk, .lform.is-done button[type=submit] { display: none; }
.groups-cta { display: grid; gap: 12px; background: var(--bg-2); border-radius: calc(var(--radius) * 1.4); padding: clamp(24px, 4vw, 40px); margin-top: 40px; }
.groups-cta h2, .groups-cta h3 { font-size: clamp(26px, 3vw, 36px); }
.groups-cta .btn { justify-self: start; }
.perks { list-style: none; padding: 0; display: grid; gap: 14px; margin: 24px 0; }
.perks li { padding-left: 34px; position: relative; color: var(--ink-soft); }
.perks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 12px/22px var(--sans); text-align: center; }
.gform-wrap { background: var(--px); border-radius: calc(var(--radius) * 1.6); padding: clamp(24px, 4vw, 44px); }
@media (min-width: 720px) {
  .lform .row.two { grid-template-columns: 1fr 1fr; }
  .lform .row.three { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .lead-band { grid-template-columns: 1fr 1fr; }
  .grupos-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
}
