:root {
  --black: #0b0a08;
  --black-soft: #15120d;
  --ivory: #f2ebdc;
  --ivory-light: #faf5e9;
  --ink: #1a1712;
  --muted: #6c6459;
  --gold: #d0a34f;
  --gold-deep: #8a5f1e;
  --champagne: #efd79f;
  --accent: #0a502d;
  --accent-soft: #d9e5dc;
  --line: rgba(138, 95, 30, .28);
  --paper-shadow: 0 30px 70px rgba(45, 30, 10, .09);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", Arial, sans-serif;
  --page: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 82px; }
body { max-width: 100%; margin: 0; overflow-x: hidden; background: var(--black); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: 12px; z-index: 10000; transform: translateY(-150%); background: var(--ivory); color: var(--black); padding: 10px 16px; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.paper { background-color: var(--ivory); background-image: radial-gradient(circle at 15% 15%, rgba(255,255,255,.72), transparent 35%), linear-gradient(90deg, transparent 49.8%, rgba(138,95,30,.028) 50%, transparent 50.2%); }
.section { padding: 120px max(24px, calc((100vw - 1240px)/2)); }
.eyebrow { margin: 0 0 18px; color: var(--gold-deep); font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }
h2 { margin-bottom: 26px; font-size: clamp(48px, 6vw, 86px); line-height: .92; letter-spacing: -.035em; }
.section-number { width: 40px; padding-bottom: 8px; margin-bottom: 65px; border-bottom: 1px solid var(--gold-deep); color: var(--gold-deep); font-family: var(--font-display); font-size: 18px; }
.section-number.light { color: var(--champagne); border-color: var(--gold); }
.button { min-height: 48px; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 0; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; cursor: pointer; transition: .25s ease; }
.button-ink { background: var(--black); color: var(--ivory); }
.button-ink:hover { background: var(--accent); }
.button-outline { background: transparent; color: inherit; border-color: currentColor; }
.button-outline:hover { color: var(--gold); }
.button-accent { width: 100%; background: var(--accent); color: #fff; }
.button-accent:hover { filter: brightness(1.1); }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: inherit; text-underline-offset: 5px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.text-link span { color: var(--gold-deep); font-size: 18px; text-decoration: none; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: 82px; padding: 0 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; color: var(--ivory); border-bottom: 1px solid rgba(239,215,159,.16); background: rgba(11,10,8,.92); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; font-weight: 600; }
.brand small { margin-top: 5px; color: var(--gold); font-size: 8px; letter-spacing: .24em; }
.desktop-nav { justify-self: center; display: flex; gap: clamp(18px, 2.2vw, 36px); }
.desktop-nav a { position: relative; color: rgba(242,235,220,.78); text-decoration: none; font-size: 10px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 0; height: 1px; background: var(--gold); transition: width .25s; }
.desktop-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.edition-button { border: 0; background: transparent; color: var(--champagne); padding: 8px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.edition-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--gold); }
.header-cta { padding: 11px 16px; border: 1px solid rgba(208,163,79,.6); text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.menu-button { width: 42px; height: 42px; border: 0; background: transparent; display: none; place-items: center; cursor: pointer; }
.menu-button span { grid-area: 1/1; width: 24px; height: 1px; background: var(--ivory); transition: .2s; }
.menu-button span:first-child { transform: translateY(-4px); }
.menu-button span:last-child { transform: translateY(4px); }
.mobile-menu { position: fixed; inset: 82px 0 0; z-index: 90; padding: 48px 28px; background: var(--black); color: var(--ivory); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid rgba(239,215,159,.16); text-decoration: none; font-family: var(--font-display); font-size: 28px; }

/* Hero */
.hero { min-height: 860px; padding: 150px max(24px, calc((100vw - 1240px)/2)) 70px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(390px,.95fr); align-items: center; overflow: hidden; position: relative; }
.hero-copy { position: relative; z-index: 3; max-width: 700px; padding-left: 40px; }
.hero h1 { margin: 0 0 28px; font-size: clamp(84px, 10vw, 150px); line-height: .72; letter-spacing: -.018em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 span { color: var(--black); }
.hero h1 em { margin-left: 10%; color: var(--accent); font-weight: 400; }
.hero-lead { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }
.hero-body { max-width: 570px; color: var(--muted); }
.hero-links { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.hero-notes { margin-top: 70px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-notes span::before { content: "◆"; margin-right: 8px; color: var(--gold-deep); font-size: 7px; }
.hero-piece { position: relative; z-index: 2; height: 660px; display: grid; place-items: center; }
.hero-bottle { position: relative; z-index: 2; width: min(455px, 82%); max-height: 590px; object-fit: contain; filter: drop-shadow(0 30px 25px rgba(48,32,5,.22)); }
.bottle-halo { position: absolute; width: 420px; height: 560px; border: 1px solid var(--line); border-radius: 50%; }
.bottle-halo::before, .bottle-halo::after { content: ""; position: absolute; inset: 7%; border: 1px dashed var(--line); border-radius: inherit; transform: rotate(6deg); }
.bottle-halo::after { transform: rotate(-8deg); inset: 14%; }
.hero-seal { position: absolute; z-index: 3; right: 1%; bottom: 4%; width: 142px; height: 142px; object-fit: contain; }
.sketch-note { position: absolute; top: 4%; right: 0; font-size: 9px; font-weight: 700; letter-spacing: .18em; color: var(--gold-deep); transform: rotate(90deg) translateX(100%); transform-origin: top right; }
.piece-caption { position: absolute; left: -3%; bottom: 8%; padding-left: 34px; font-family: var(--font-display); font-size: 22px; line-height: 1.05; }
.piece-caption::before { content: ""; position: absolute; left: 0; top: 9px; width: 24px; border-top: 1px solid var(--gold-deep); }
.hero-agave { position: absolute; color: var(--accent); opacity: .36; }
.hero-agave-left { left: -80px; bottom: -10px; width: 360px; }

/* Manifesto */
.ink-section { background: var(--black); color: var(--ivory); }
.manifesto { padding: 105px max(24px, calc((100vw - 1240px)/2)); text-align: center; }
.manifesto > p { color: var(--gold); font-size: 10px; letter-spacing: .3em; }
.manifesto h2 { margin: 35px 0 58px; font-size: clamp(55px, 7vw, 100px); }
.manifesto-line { padding-top: 22px; border-top: 1px solid rgba(208,163,79,.24); display: flex; justify-content: space-around; gap: 18px; color: rgba(242,235,220,.55); text-transform: uppercase; font-size: 9px; letter-spacing: .18em; }

/* About */
.section-heading { max-width: 760px; }
.about-layout { margin-top: 80px; display: grid; grid-template-columns: .88fr 1.12fr; gap: 9vw; align-items: start; }
.founders-photo { margin: 0; position: relative; }
.founders-photo::before { content: ""; position: absolute; inset: -22px 22px 22px -22px; border: 1px solid var(--line); }
.founders-photo img { position: relative; aspect-ratio: 4/5; width: 100%; object-fit: cover; filter: sepia(.12) contrast(.96); }
.founders-photo figcaption { margin-top: 16px; color: var(--gold-deep); font-size: 9px; letter-spacing: .2em; }
.about-copy { padding-top: 35px; }
.about-copy .large-copy { font-family: var(--font-display); font-size: clamp(30px, 3vw, 46px); line-height: 1.12; }
.about-copy > p:not(.large-copy) { color: var(--muted); max-width: 620px; }
.about-copy blockquote { margin: 55px 0; padding: 24px 0 24px 40px; border-left: 1px solid var(--gold-deep); color: var(--accent); font-family: var(--font-display); font-size: 30px; font-style: italic; line-height: 1.2; }

/* Origin */
.origin { padding-top: 0; padding-bottom: 0; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--black-soft); color: var(--ivory); }
.origin-copy { padding: 120px 9vw 120px max(24px, calc((100vw - 1240px)/2)); }
.origin-copy p:not(.eyebrow) { max-width: 660px; color: rgba(242,235,220,.66); }
.origin-stats { margin-top: 65px; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.origin-stats div { padding-top: 18px; border-top: 1px solid rgba(208,163,79,.35); display: flex; flex-direction: column; }
.origin-stats strong { color: var(--champagne); font-family: var(--font-display); font-size: 38px; font-weight: 500; }
.origin-stats span { color: rgba(242,235,220,.5); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.origin-visual { min-height: 780px; position: relative; overflow: hidden; display: grid; place-items: end center; background: color-mix(in srgb, var(--accent-soft) 76%, var(--ivory)); }
.origin-visual img { position: relative; z-index: 2; height: 85%; max-width: 75%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 28px 24px rgba(0,0,0,.35)); }
.origin-visual img.origin-bottle-dark { height: 88%; max-width: 82%; }
.origin-visual svg { position: absolute; bottom: 0; width: 100%; color: var(--accent); }
.vertical-note { position: absolute; top: 80px; right: 32px; writing-mode: vertical-rl; color: color-mix(in srgb, var(--accent) 72%, var(--black)); font-size: 9px; letter-spacing: .24em; }

/* Franchise */
.franchise-layout { display: grid; grid-template-columns: .9fr 1fr 240px; gap: 7vw; align-items: center; }
.franchise-layout h2 { font-size: clamp(50px,5vw,78px); }
.franchise-copy > p { color: var(--muted); }
.proof-list { list-style: none; margin: 38px 0; padding: 0; border-top: 1px solid var(--line); }
.proof-list li { padding: 16px 0; display: flex; gap: 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
.proof-list span { color: var(--gold-deep); font-family: var(--font-display); font-size: 17px; }
.certificate-mark { text-align: center; }
.certificate-mark img { width: 210px; margin: auto; }
.certificate-mark span { display: block; margin-top: 20px; color: var(--gold-deep); font-size: 9px; letter-spacing: .25em; }

/* Ritual */
.ritual { padding-top: 90px; border-top: 1px solid var(--line); }
.centered { margin: auto; text-align: center; }
.centered > p:last-child { color: var(--muted); }
.ritual-steps { margin: 90px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--line); }
.ritual-steps li { min-height: 310px; padding: 28px 26px; border-right: 1px solid var(--line); }
.ritual-steps li:last-child { border-right: 0; }
.ritual-steps span { display: block; color: var(--gold-deep); font-family: var(--font-display); font-size: 18px; }
.ritual-steps h3 { margin: 70px 0 15px; font-size: 28px; line-height: 1.05; }
.ritual-steps p { color: var(--muted); font-size: 12px; }

/* Promotions */
.promotions { background: var(--accent); color: var(--ivory); }
.promotion-title { margin-bottom: 65px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.promotion-title .eyebrow { color: var(--champagne); }
.promotion-title img { width: 150px; height: 150px; object-fit: contain; }
.promotion-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.promotion-grid article { display: grid; grid-template-columns: 1fr; background: var(--ivory-light); color: var(--ink); }
.promotion-grid article > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--black); }
.promotion-grid article > div { padding: 28px; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px 24px; }
.promotion-grid article span { color: var(--accent); font-family: var(--font-display); font-size: 70px; line-height: .8; }
.promotion-grid article h3 { margin: 0; font-size: 34px; line-height: 1; }
.promotion-grid article p { grid-column: 2; margin: 0; color: var(--muted); font-size: 12px; }
.promotion-footer { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.26); display: flex; justify-content: space-between; gap: 20px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.promotion-countdown { margin: -20px 0 36px; padding: 24px 16px; border-block: 1px solid rgba(255,255,255,.3); text-align: center; }
.promotion-countdown p { margin: 8px 0; font-size: 12px; }
#promotionCountdown { font-size: clamp(18px, 3vw, 32px); font-weight: 600; font-variant-numeric: tabular-nums; }
.promotion-upcoming { min-height: 220px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); text-align: center; padding: 24px 12px; }
.promotion-upcoming h2 { margin: 0; font-size: clamp(34px, 8vw, 90px); }
.promotion-grid .promotion-coupon { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.promotion-grid .promotion-coupon > div { grid-template-columns: 1fr; gap: 24px; }
.promotion-grid .promotion-coupon p { grid-column: 1; font-size: 14px; }
@media (max-width: 700px) {
  .promotion-grid .promotion-coupon { grid-template-columns: 1fr; }
  #promociones .promotion-grid article > div { grid-template-columns: 1fr; }
  #promociones .promotion-grid article p { grid-column: 1; }
}

/* Catalog */
.catalog { position: relative; display: grid; grid-template-columns: .25fr 1fr .75fr; align-items: center; gap: 6vw; }
.catalog-mark { writing-mode: vertical-rl; color: var(--gold-deep); font-size: 9px; letter-spacing: .2em; }
.catalog p { color: var(--muted); }

/* Designer */
.designer { background: var(--black); color: var(--ivory); }
.designer-heading { max-width: 800px; margin-bottom: 80px; }
.designer-heading .eyebrow { color: var(--gold); }
.designer-app { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 690px; align-items: start; border: 1px solid rgba(208,163,79,.3); }
.designer-form { padding: clamp(28px,5vw,68px); }
.designer-form fieldset { margin: 0 0 36px; padding: 0; border: 0; }
.designer-form legend { width: 100%; margin-bottom: 16px; color: var(--champagne); font-family: var(--font-display); font-size: 24px; }
.designer-form legend span { margin-right: 13px; color: var(--gold); font-family: var(--font-body); font-size: 10px; letter-spacing: .12em; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { padding: 10px 14px; border: 1px solid rgba(242,235,220,.24); background: transparent; color: rgba(242,235,220,.7); font-size: 10px; cursor: pointer; }
.choice:hover, .choice.active { border-color: var(--gold); background: rgba(208,163,79,.11); color: var(--ivory); }
.quantity-control { display: flex; align-items: center; gap: 18px; }
.quantity-control button { width: 38px; height: 38px; border: 1px solid rgba(242,235,220,.28); background: transparent; color: var(--ivory); cursor: pointer; }
.quantity-control output { min-width: 25px; font-family: var(--font-display); font-size: 30px; text-align: center; }
.quantity-control small { color: rgba(242,235,220,.5); }
.estimate { margin: 42px 0 24px; padding-top: 24px; border-top: 1px solid rgba(208,163,79,.3); display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; }
.estimate span { color: rgba(242,235,220,.55); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.estimate strong { color: var(--champagne); font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.estimate small { grid-column: 1/-1; color: rgba(242,235,220,.38); }
.designer-preview { position: sticky; top: 98px; align-self: start; width: 100%; height: min(800px, calc(100vh - 118px)); min-height: 680px; display: grid; place-items: center; padding: 42px; background: var(--ivory); color: var(--ink); overflow: hidden; }
.designer-preview::before { content: ""; position: absolute; width: 460px; height: 560px; border: 1px solid var(--line); border-radius: 50%; }
.preview-visual { position: absolute; inset: 70px 42px 132px; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-width: 0; min-height: 0; }
.designer-preview img { position: relative; z-index: 2; width: 100%; height: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 26px 18px rgba(55,36,6,.2)); }
.preview-label { position: absolute; left: 25px; top: 28px; color: var(--gold-deep); font-size: 8px; letter-spacing: .2em; }
.preview-caption { position: absolute; z-index: 3; left: 30px; right: 30px; bottom: 26px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.preview-caption strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.preview-caption span { color: var(--muted); font-size: 10px; }
.preview-unavailable { position: relative; z-index: 2; text-align: center; font-family: var(--font-display); font-size: 30px; }

/* Match */
.match { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; align-items: start; }
.match > div > p:last-child { max-width: 500px; color: var(--muted); }
.match-form { display: grid; gap: 26px; }
.match-form label { display: grid; gap: 8px; color: var(--gold-deep); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.match-form select { width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--font-display); font-size: 24px; }
.match-result { padding: 22px; border-left: 2px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-size: 25px; line-height: 1.15; }

/* Gallery */
.gallery { background: var(--black-soft); color: var(--ivory); }
.gallery-heading { margin-bottom: 65px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.gallery-heading .eyebrow { color: var(--gold); }
.gallery-filters { display: flex; gap: 10px; }
.gallery-filters button { border: 0; border-bottom: 1px solid transparent; background: transparent; color: rgba(242,235,220,.5); padding: 8px; cursor: pointer; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.gallery-filters button.active { color: var(--champagne); border-color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.gallery-grid button { position: relative; height: 360px; padding: 0; border: 0; background: #111; overflow: hidden; cursor: zoom-in; }
.gallery-grid button:nth-child(2), .gallery-grid button:nth-child(5) { height: 460px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86); transition: transform .5s, filter .5s; }
.gallery-grid button:hover img { transform: scale(1.035); filter: saturate(1); }

/* Closing and footer */
.closing { text-align: center; }
.closing > img { width: 190px; margin: 0 auto 28px; }
.closing h2 { font-size: clamp(70px, 10vw, 130px); }
.social-links { margin-top: 80px; display: flex; justify-content: center; gap: 36px; }
.social-links a { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.footer { padding: 40px max(24px, calc((100vw - 1240px)/2)); display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; background: var(--black); color: rgba(242,235,220,.5); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.footer > div { display: flex; flex-wrap: wrap; gap: 20px; }
.footer > div:first-child { flex-direction: column; gap: 4px; }
.footer strong { color: var(--ivory); }
.footer p { margin: 0; text-align: right; }
.privacy-settings { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: underline; cursor: pointer; }

/* Preferencias de privacidad */
.privacy-banner { position: fixed; z-index: 10001; right: 24px; bottom: 24px; width: min(680px, calc(100% - 48px)); padding: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; border: 1px solid rgba(208,163,79,.55); background: rgba(11,10,8,.97); color: var(--ivory); box-shadow: 0 24px 80px rgba(0,0,0,.42); backdrop-filter: blur(16px); }
.privacy-copy > p:first-child { margin-bottom: 8px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.privacy-copy h2 { margin-bottom: 10px; font-size: 30px; line-height: 1; letter-spacing: -.015em; }
.privacy-copy > p:nth-of-type(2) { margin-bottom: 10px; color: rgba(242,235,220,.7); font-size: 11px; line-height: 1.55; }
.privacy-copy a { color: var(--champagne); font-size: 9px; letter-spacing: .08em; text-underline-offset: 4px; text-transform: uppercase; }
.privacy-actions { min-width: 210px; display: grid; gap: 8px; }
.privacy-actions .button { width: 100%; min-height: 42px; padding: 11px 14px; }
.privacy-accept { border-color: var(--gold); background: var(--gold); color: var(--black); }
.privacy-accept:hover { background: var(--champagne); }
.privacy-decline { border-color: rgba(242,235,220,.35); background: transparent; color: var(--ivory); }
.privacy-decline:hover { border-color: var(--ivory); }

/* Theme dialog */
.theme-dialog { width: min(980px, calc(100% - 32px)); max-height: 88vh; padding: 40px; border: 1px solid rgba(208,163,79,.45); background: var(--black); color: var(--ivory); }
.theme-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.theme-dialog-head { display: flex; justify-content: space-between; gap: 30px; }
.theme-dialog-head p { color: var(--gold); font-size: 9px; letter-spacing: .2em; }
.theme-dialog-head h2 { font-size: clamp(40px, 6vw, 68px); }
.theme-dialog-head button, .lightbox button { width: 42px; height: 42px; border: 1px solid rgba(242,235,220,.26); background: transparent; color: var(--ivory); font-size: 27px; cursor: pointer; }
.theme-intro { max-width: 680px; color: rgba(242,235,220,.55); }
.theme-grid { margin-top: 35px; display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.theme-option { padding: 12px; border: 1px solid rgba(208,163,79,.2); background: rgba(255,255,255,.025); color: var(--ivory); text-align: left; cursor: pointer; }
.theme-option[aria-pressed="true"] { border-color: var(--gold); background: rgba(208,163,79,.1); }
.theme-option img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.theme-option span, .theme-option strong { display: block; }
.theme-option span { margin-top: 8px; color: var(--gold); font-size: 8px; letter-spacing: .15em; }
.theme-option strong { margin-top: 3px; font-family: var(--font-display); font-size: 16px; font-weight: 500; }

.lightbox { position: fixed; inset: 0; z-index: 200; padding: 30px; display: grid; place-items: center; background: rgba(11,10,8,.93); }
.lightbox img { max-width: min(1000px, 90vw); max-height: 87vh; object-fit: contain; }
.lightbox button { position: fixed; right: 24px; top: 24px; }

/* Interacciones editoriales */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; will-change: transform; }
.doodle-icon { width: 30px; height: 30px; flex: 0 0 auto; }
.hero-bottle { transform: translate3d(var(--pointer-x, 0), var(--pointer-y, 0), 0); transition: transform .35s ease-out; }
.reveal-ready { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.25,1); }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
.gallery-pencil { position: absolute; inset: auto 12px 12px; padding: 9px 11px; background: rgba(11,10,8,.83); color: var(--champagne); font-size: 8px; font-weight: 700; letter-spacing: .14em; transform: translateY(calc(100% + 14px)); transition: transform .3s ease; }
.gallery-grid button:hover .gallery-pencil { transform: translateY(0); }

/* Visualizador completo */
.line-choices { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.line-choice { min-height: 104px; padding: 13px 10px; border: 1px solid rgba(242,235,220,.18); background: transparent; color: rgba(242,235,220,.62); display: grid; place-items: center; gap: 3px; cursor: pointer; transition: border-color .25s, background .25s, color .25s, transform .25s; }
.line-choice .doodle-icon { width: 27px; height: 27px; transition: transform .3s; }
.line-choice span { font-family: var(--font-display); font-size: 15px; line-height: 1; text-align: center; }
.line-choice small { font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.line-choice:hover { color: var(--ivory); border-color: rgba(208,163,79,.65); transform: translateY(-2px); }
.line-choice:hover .doodle-icon { transform: rotate(-7deg) scale(1.08); }
.line-choice.active { color: var(--champagne); border-color: var(--gold); background: linear-gradient(145deg, rgba(208,163,79,.17), rgba(208,163,79,.035)); box-shadow: inset 0 0 0 1px rgba(208,163,79,.12); }
.bottle-select-label { display: block; margin-bottom: 9px; color: rgba(242,235,220,.46); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.bottle-select { width: 100%; padding: 15px 42px 15px 14px; border: 1px solid rgba(242,235,220,.25); border-radius: 0; background: var(--black-soft); color: var(--ivory); font-family: var(--font-display); font-size: 18px; cursor: pointer; }
.bottle-detail { margin-top: 12px; padding: 14px 16px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.035); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.bottle-detail p { margin: 0; color: rgba(242,235,220,.58); font-size: 10px; }
.bottle-detail div { min-width: 130px; text-align: right; }
.bottle-detail span, .bottle-detail strong { display: block; }
.bottle-detail span { color: rgba(242,235,220,.42); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.bottle-detail strong { color: var(--champagne); font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.occasion-choices { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.occasion-choice { min-height: 76px; padding: 9px 6px; border: 1px dashed rgba(242,235,220,.21); background: transparent; color: rgba(242,235,220,.58); display: grid; place-items: center; gap: 4px; cursor: pointer; transition: .25s ease; }
.occasion-choice .doodle-icon { width: 24px; height: 24px; }
.occasion-choice span { font-size: 8px; font-weight: 600; text-align: center; }
.occasion-choice:hover, .occasion-choice.active { color: var(--ivory); border-color: var(--gold); background: rgba(208,163,79,.1); }
.occasion-choice.active .doodle-icon { animation: doodle-pop .45s ease; }
.box-note { min-height: 38px; margin-top: 12px; display: flex; justify-content: space-between; gap: 14px; color: rgba(242,235,220,.46); font-size: 8px; }
.box-note strong { color: var(--champagne); }
.box-note em { font-style: normal; }
.preview-spark { position: absolute; z-index: 1; top: 12%; right: 11%; color: var(--gold); font-size: 38px; animation: spark 3.2s ease-in-out infinite; }
@keyframes doodle-pop { 50% { transform: rotate(-8deg) scale(1.18); } }
@keyframes spark { 50% { transform: rotate(16deg) scale(1.25); opacity: .48; } }

/* Tequila Match visual */
.match-intro { position: sticky; top: 122px; }
.match-doodle { width: min(300px,85%); margin: 60px 0 0 auto; color: var(--accent); position: relative; }
.match-doodle span { position: absolute; left: 8%; top: -32px; font-family: var(--font-display); font-size: 90px; line-height: 1; transform: rotate(-9deg); }
.match-doodle svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 5 6; }
.match-experience { min-height: 590px; padding: clamp(24px,4vw,52px); border: 1px solid var(--line); background: rgba(255,255,255,.27); box-shadow: var(--paper-shadow); position: relative; }
.match-experience::after { content: ""; position: absolute; inset: 9px -9px -9px 9px; z-index: -1; border: 1px dashed var(--line); }
.match-progress > div:first-child { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.match-progress span { color: var(--gold-deep); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.match-progress strong { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.match-progress-track { height: 2px; margin-top: 14px; background: var(--line); overflow: hidden; }
.match-progress-track span { display: block; width: 33%; height: 100%; background: var(--accent); transition: width .45s ease; }
.match-stage { padding-top: 46px; }
.match-stage > h3 { margin-bottom: 34px; font-size: clamp(32px,3.2vw,47px); line-height: .98; }
.match-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match-options button { min-height: 150px; padding: 22px 20px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 4px 14px; align-items: center; text-align: left; cursor: pointer; transition: transform .25s, background .25s, border-color .25s; }
.match-options .doodle-icon { grid-row: 1/3; width: 38px; height: 38px; color: var(--accent); transition: transform .3s; }
.match-options strong { align-self: end; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1; }
.match-options span { align-self: start; color: var(--muted); font-size: 8px; }
.match-options i { grid-row: 1/3; font-style: normal; color: var(--gold-deep); }
.match-options button:hover { transform: translateY(-4px) rotate(-.3deg); border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.match-options button:hover .doodle-icon { transform: rotate(-9deg) scale(1.08); }
.match-options button.selected { background: var(--accent); color: #fff; }
.match-options button.selected span, .match-options button.selected .doodle-icon { color: #fff; }
.match-controls { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.match-controls button, .match-result-card button { padding: 10px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.match-controls button:disabled { opacity: .28; cursor: default; }
.match-result-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; }
.match-result-image { min-height: 350px; padding: 20px; position: relative; display: grid; place-items: center; border: 1px dashed var(--line); background: var(--ivory-light); }
.match-result-image img { max-height: 310px; object-fit: contain; filter: drop-shadow(0 18px 15px rgba(55,36,6,.18)); }
.match-result-image span { position: absolute; left: 12px; top: 12px; color: var(--gold-deep); font-size: 7px; letter-spacing: .13em; text-transform: uppercase; }
.match-result-card > div:last-child > p:first-child { margin-bottom: 12px; color: var(--gold-deep); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.match-result-card h3 { margin-bottom: 15px; font-size: 38px; line-height: .95; }
.match-result-card > div:last-child > p:not(:first-child) { color: var(--muted); font-size: 11px; }

/* El cambio de edición transforma composición, papel y lenguaje gráfico */
[data-theme="02"] .paper { background-color: #eee8da; background-image: linear-gradient(rgba(124,91,32,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(124,91,32,.1) 1px, transparent 1px); background-size: 28px 28px; }
[data-theme="02"] .hero { border: 14px solid #eee8da; outline: 1px dashed var(--gold-deep); outline-offset: -30px; }
[data-theme="02"] .bottle-halo { border-radius: 14px; transform: rotate(-2deg); }
[data-theme="02"] h2 { letter-spacing: -.02em; }
[data-theme="02"] .ritual-steps li { border-right-style: dashed; }

[data-theme="03"] .paper { background-color: #f4e9e3; background-image: radial-gradient(circle at 10% 20%, rgba(192,130,98,.13), transparent 24%), radial-gradient(circle at 92% 70%, rgba(138,77,59,.1), transparent 28%); }
[data-theme="03"] .hero::after { content: ""; position: absolute; inset: 105px 3% 45px 52%; border: 1px solid var(--line); border-radius: 50% 50% 12px 12px; pointer-events: none; }
[data-theme="03"] .bottle-halo { border-radius: 50% 50% 15% 15%; }
[data-theme="03"] .founders-photo img { border-radius: 48% 48% 2px 2px; }
[data-theme="03"] .about-copy blockquote { border-left: 0; border-block: 1px solid var(--line); text-align: center; }

[data-theme="04"] .paper { background-color: #eef0ef; background-image: linear-gradient(rgba(69,80,90,.095) 1px, transparent 1px), linear-gradient(90deg, rgba(69,80,90,.095) 1px, transparent 1px); background-size: 20px 20px; }
[data-theme="04"] .bottle-halo { border-radius: 0; transform: rotate(45deg) scale(.72); }
[data-theme="04"] .bottle-halo::before, [data-theme="04"] .bottle-halo::after { border-radius: 0; }
[data-theme="04"] .section-number { width: 100%; border-bottom-style: dashed; }

[data-theme="05"] .paper { background-color: #efe2d7; background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(107,52,33,.055) 18px 19px); }
[data-theme="05"] .bottle-halo { border-radius: 0; clip-path: polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%); border: 3px double var(--gold-deep); }
[data-theme="05"] .hero h1 em { font-style: normal; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 10px; }
[data-theme="05"] .ritual-steps { border-top: 3px double var(--line); }

[data-theme="06"] .paper { background-color: #ede7d9; background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(104,83,39,.09) 31px 32px), linear-gradient(90deg, transparent 7%, rgba(140,120,80,.15) 7% 7.12%, transparent 7.12%); }
[data-theme="06"] .hero { border-inline: 3px double var(--gold-deep); }
[data-theme="06"] .hero h1 { font-style: italic; }
[data-theme="06"] .bottle-halo { border: 4px double var(--gold-deep); border-radius: 4px; }
[data-theme="06"] .proof-list, [data-theme="06"] .ritual-steps { border-top-style: double; border-top-width: 3px; }

[data-theme="07"] .paper { background-color: #e7eee6; background-image: radial-gradient(ellipse at 0 100%, rgba(10,80,45,.18), transparent 32%), radial-gradient(ellipse at 100% 0, rgba(10,80,45,.13), transparent 30%); }
[data-theme="07"] .hero::after { content: "✦  HERBARIO DE LA CASA  ✦"; position: absolute; right: 5%; top: 130px; color: var(--accent); font-size: 8px; letter-spacing: .3em; writing-mode: vertical-rl; }
[data-theme="07"] .bottle-halo { border-radius: 100% 0 100% 0; transform: rotate(6deg); }
[data-theme="07"] .ritual-steps li:nth-child(odd) { background: rgba(10,80,45,.045); }

[data-theme="08"] .paper { background-color: #f0e4dd; background-image: radial-gradient(circle at 50% -20%, rgba(69,18,15,.19), transparent 43%); }
[data-theme="08"] .hero { border-bottom: 16px solid var(--accent); }
[data-theme="08"] .bottle-halo { border-radius: 52% 52% 6% 6%; border-width: 2px; box-shadow: 0 0 0 8px rgba(69,18,15,.06); }
[data-theme="08"] .hero h1 em { color: var(--accent); font-style: italic; }
[data-theme="08"] .about-copy blockquote { padding: 30px; border: 1px solid var(--accent); background: rgba(69,18,15,.045); }

[data-theme="09"] .paper { background-color: #e8e5dc; background-image: repeating-linear-gradient(0deg, transparent 0 35px, rgba(45,45,39,.07) 35px 36px); }
[data-theme="09"] .hero, [data-theme="09"] .match, [data-theme="09"] .closing { background-color: #25251f; background-image: linear-gradient(rgba(201,165,83,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(201,165,83,.06) 1px, transparent 1px); background-size: 32px 32px; color: var(--ivory); }
[data-theme="09"] .hero h1 span { color: var(--ivory); }
[data-theme="09"] .hero h1 em { color: var(--gold); }
[data-theme="09"] .hero-body, [data-theme="09"] .hero-notes, [data-theme="09"] .match > div > p:last-child { color: rgba(242,235,220,.6); }
[data-theme="09"] .bottle-halo { border-radius: 0; border-color: var(--gold); box-shadow: inset 0 0 45px rgba(201,165,83,.08); }
[data-theme="09"] .match-experience { background: rgba(242,235,220,.96); color: var(--ink); }
[data-theme="09"] .closing .social-links, [data-theme="09"] .closing h2 { color: var(--ivory); }

[data-theme="10"] .paper { background-color: #f3ead6; background-image: repeating-radial-gradient(ellipse at center, transparent 0 38px, rgba(144,110,43,.07) 39px 40px); }
[data-theme="10"] .hero h1 span, [data-theme="10"] .hero h1 em { color: transparent; -webkit-text-stroke: 1.2px var(--accent); text-shadow: 3px 3px 0 rgba(144,110,43,.1); }
[data-theme="10"] .bottle-halo { border-radius: 50%; border-width: 3px; border-style: double; }
[data-theme="10"] .section-number { border-bottom: 4px double var(--gold-deep); }
[data-theme="10"] .ritual-steps li { background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(144,110,43,.035) 10px 11px); }

.theme-option small { display: block; margin-top: 8px; min-height: 22px; color: rgba(242,235,220,.46); font-size: 7px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.theme-wipe { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none; background: var(--accent); color: var(--ivory); transform: translateX(-102%); }
.theme-wipe span { font-family: var(--font-display); font-size: clamp(28px,5vw,64px); letter-spacing: .05em; opacity: 0; }
.theme-wipe.active { animation: theme-wipe 1.05s cubic-bezier(.72,0,.2,1); }
.theme-wipe.active span { animation: theme-label 1.05s ease; }
@keyframes theme-wipe { 0% { transform: translateX(-102%); } 42%,58% { transform: translateX(0); } 100% { transform: translateX(102%); } }
@keyframes theme-label { 0%,30%,75%,100% { opacity: 0; transform: translateY(10px); } 45%,62% { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-button { display: grid; }
  .hero { grid-template-columns: 1fr .8fr; }
  .hero-copy { padding-left: 0; }
  .franchise-layout { grid-template-columns: 1fr 1fr; }
  .certificate-mark { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; gap: 20px; }
  .certificate-mark img { width: 140px; margin: 0; }
  .ritual-steps { grid-template-columns: repeat(2,1fr); }
  .ritual-steps li { border-bottom: 1px solid var(--line); }
  .ritual-steps li:last-child { grid-column: 1/-1; }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .line-choices { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 780px) {
  :root { --page: calc(100% - 32px); }
  .section { padding: 85px 20px; }
  .site-header { height: 72px; padding: 0 14px; }
  html { scroll-padding-top: 72px; }
  .brand img { width: 46px; height: 46px; }
  .brand span { display: none; }
  .edition-button span:last-child { display: none; }
  .header-cta { padding: 9px 12px; }
  .mobile-menu { inset: 72px 0 0; }
  .hero { min-height: 970px; padding: 118px 20px 60px; grid-template-columns: 1fr; align-content: start; }
  .hero h1 { font-size: clamp(70px, 24vw, 110px); }
  .hero h1 em { margin-left: 0; }
  .hero-piece { height: 420px; margin-top: 40px; }
  .hero-bottle { max-height: 390px; width: 82%; }
  .bottle-halo { width: 290px; height: 385px; }
  .hero-seal { width: 96px; height: 96px; right: 3%; }
  .piece-caption, .sketch-note { display: none; }
  .hero-agave-left { width: 250px; left: -100px; }
  .hero-notes { margin-top: 45px; gap: 14px; }
  .manifesto { padding: 85px 20px; }
  .manifesto-line { display: grid; grid-template-columns: 1fr 1fr; }
  .about-layout, .origin, .franchise-layout, .catalog, .designer-app, .match { grid-template-columns: 1fr; }
  .about-layout { gap: 65px; margin-top: 60px; }
  .origin-copy { padding: 85px 20px; }
  .origin-visual { min-height: 600px; }
  .franchise-layout { gap: 50px; }
  .catalog-mark { writing-mode: initial; }
  .ritual-steps { grid-template-columns: 1fr; }
  .ritual-steps li, .ritual-steps li:last-child { grid-column: auto; min-height: 230px; border-right: 0; }
  .ritual-steps h3 { margin-top: 45px; }
  .promotion-title { align-items: flex-start; flex-direction: column; }
  .promotion-title img { width: 105px; height: 105px; align-self: flex-end; margin-top: -30px; }
  .promotion-grid { grid-template-columns: 1fr; }
  .promotion-grid article > div { grid-template-columns: auto 1fr; }
  .promotion-footer { flex-direction: column; }
  .designer-preview { min-height: 600px; grid-row: 1; }
  .designer-preview { position: relative; top: auto; height: auto; }
  .designer-form { grid-row: 2; }
  .match { gap: 65px; }
  .match-intro { position: static; }
  .match-doodle { margin-top: 35px; }
  .match-experience { min-height: 0; }
  .gallery-heading { align-items: start; flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid button, .gallery-grid button:nth-child(2), .gallery-grid button:nth-child(5) { height: 290px; }
  .closing h2 { font-size: 68px; }
  .social-links { flex-direction: column; gap: 14px; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer > div { justify-content: center; }
  .footer p { text-align: center; }
  .privacy-banner { right: 14px; bottom: 14px; width: calc(100% - 28px); grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .privacy-actions { min-width: 0; }
  .theme-dialog { padding: 26px 18px; }
  .theme-grid { grid-template-columns: repeat(2,1fr); }
  [data-theme="02"] .hero, [data-theme="06"] .hero { border-inline: 0; }
  [data-theme="03"] .hero::after { inset: 48% 12px 32px; }
}

@media (max-width: 480px) {
  h2 { font-size: 50px; }
  .hero-links { align-items: stretch; flex-direction: column; }
  .hero-links .button { width: 100%; }
  .origin-stats { grid-template-columns: 1fr; }
  .promotion-grid article > div { padding: 26px 22px; }
  .designer-preview { min-height: 480px; padding: 30px; }
  .designer-preview img { max-height: 390px; }
  .preview-caption { flex-direction: column; gap: 2px; }
  .estimate { grid-template-columns: 1fr; }
  .line-choice { min-height: 92px; }
  .occasion-choices { grid-template-columns: repeat(2,1fr); }
  .bottle-detail { grid-template-columns: 1fr; }
  .bottle-detail div { text-align: left; }
  .box-note { flex-direction: column; }
  .match-options { grid-template-columns: 1fr; }
  .match-options button { min-height: 112px; }
  .match-result-card { grid-template-columns: 1fr; }
  .match-result-image { min-height: 300px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

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