/* =========================================================
   PAGO LOS BICHOS · Sistema "Noir Terroir"
   Estética: premium editorial oscura · dorado sobre negro
   ========================================================= */

:root {
  /* Paleta noir */
  --bg:       #060606;
  --bg-2:     #0C0C0D;
  --bg-3:     #101012;
  --panel:    rgba(255,255,255,0.04);
  --panel-2:  rgba(255,255,255,0.06);
  --line:     rgba(255,255,255,0.10);
  --line-2:   rgba(255,255,255,0.06);
  --gold:     #CDA35C;
  --gold-2:   #F0CD8E;
  --gold-glow: rgba(240, 205, 142, 0.24);
  --text:     #F5EFE6;
  --text-2:   #E5DDCF;
  --muted:    #C2B7A8;
  --muted-2:  #8B8175;
  --danger:   #7B1812;
  --shadow:   0 24px 80px rgba(0,0,0,0.45);

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-s:  1rem;
  --space-m:  2rem;
  --space-l:  4rem;
  --space-xl: 6rem;
  --space-xxl: 10rem;

  --container: 1360px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(123, 24, 18, 0.20), transparent 25%),
    radial-gradient(circle at 90% 0%, rgba(205, 163, 92, 0.14), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 34%, var(--bg-3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'kern';
  min-height: 100vh;
}

/* Grano sutil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
/* Renderizado sutilmente nítido y consistente en todo el sitio */
img { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* ===================== TIPOGRAFÍA ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 500;
}

.eyebrow::before {
  content: '— ';
  color: var(--gold);
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.4;
  color: var(--text-2);
  font-style: italic;
  font-weight: 300;
}

em { color: var(--gold-2); font-style: italic; }

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 6, 6, 0.60);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 6, 6, 0.85);
  padding: 0.7rem var(--gutter);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
}

.nav-brand img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: height 0.4s ease;
}

.nav.scrolled .nav-brand img { height: 36px; }

.nav-brand-text {
  display: none;
}

@media (min-width: 1200px) {
  .nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
  }
  .nav-brand-text small {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 4px;
    opacity: 0.98;
  text-shadow: 0 3px 18px rgba(0,0,0,0.68);
  }
  .nav-brand-text strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--muted);
  transition: color 0.25s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.lang-switch button {
  background: none;
  border: none;
  padding: 0.2rem 0.4rem;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: inherit;
}

.lang-switch button.active {
  color: var(--gold-2);
  font-weight: 700;
}

.lang-switch .divider {
  color: var(--line);
}

/* BOTONES premium */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 999px;
  min-height: 52px;
  justify-content: center;
}

.btn-primary {
  color: #121212;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 36px rgba(205, 163, 92, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(205, 163, 92, 0.35);
}

.btn-outline, .btn.btn-outline {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  background: rgba(205, 163, 92, 0.06);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.7rem 1.2rem;
  font-size: 0.68rem;
  min-height: 44px;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Menú móvil */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(6,6,6,0.98);
    backdrop-filter: blur(20px);
    padding: 2rem var(--gutter);
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .lang-switch { display: flex; }
}

/* ===================== PAGE / SECTION ===================== */
.page { display: none; padding-top: 80px; }
.page.active { display: block; animation: fadeIn 0.6s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

section { position: relative; padding: var(--space-xxl) 0; z-index: 2; }

@media (max-width: 768px) {
  section { padding: var(--space-xl) 0; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: brightness(1.08) saturate(1.05);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,6,6,0.62) 0%, rgba(6,6,6,0.36) 34%, rgba(6,6,6,0.06) 60%, rgba(6,6,6,0.18) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(6,6,6,0.04) 0%, rgba(6,6,6,0.32) 62%, rgba(6,6,6,0.92) 100%),
    linear-gradient(180deg, rgba(6,6,6,0.44) 0%, rgba(6,6,6,0.10) 36%, rgba(6,6,6,0.58) 74%, rgba(6,6,6,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) var(--space-xl);
  width: 100%;
  color: var(--text);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: end;
}

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
}

.hero-content h1 {
  color: #fff;
  font-weight: 400;
  max-width: 14ch;
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(3rem, 7vw, 6rem);
  text-shadow: 0 2px 24px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.5);
}

.hero-content h1 em {
  font-style: italic;
  color: #FFD98A;
  font-weight: 500;
  text-shadow:
    0 2px 12px rgba(0,0,0,0.85),
    0 1px 3px rgba(0,0,0,0.75),
    0 0 32px rgba(255,180,90,0.35);
}

.hero-content .eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 205, 142, 0.5);
  background: rgba(6, 6, 6, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-content .eyebrow::before { content: ''; }

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-style: italic;
  color: #f2ece0;
  opacity: 1;
  max-width: 44ch;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.45;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.55);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-badges span {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* Panel de botellas lateral */
.hero-bottles {
  display: grid;
  gap: 0.9rem;
  padding: 1.75rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-bottles .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.25rem;
}

.hero-bottle-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line-2);
  transition: all 0.3s;
  color: var(--text);
}

.hero-bottle-row:hover {
  background: rgba(205, 163, 92, 0.06);
  border-color: rgba(240, 205, 142, 0.24);
  transform: translateX(4px);
}

.hero-bottle-row img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: radial-gradient(ellipse at 50% 40%, #14100a 0%, #000 75%);
  border-radius: 12px;
  padding: 8px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.55));
}

.hero-bottle-row small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 4px;
}

.hero-bottle-row h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  font-style: italic;
}

.hero-bottle-row .price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-2);
  font-weight: 500;
}

/* Variación B */
.hero.variant-b .hero-content h1 { max-width: 16ch; }
.hero.variant-b .hero-media img {
  opacity: 0.9;
  filter: brightness(0.95) saturate(1.06) contrast(1.03);
  object-position: center 50%;
}
.hero.variant-b .hero-media::after {
  background:
    linear-gradient(90deg, rgba(6,6,6,0.82) 0%, rgba(6,6,6,0.52) 32%, rgba(6,6,6,0.18) 58%, rgba(6,6,6,0.48) 100%),
    linear-gradient(180deg, rgba(6,6,6,0.58) 0%, rgba(6,6,6,0.14) 28%, rgba(6,6,6,0.28) 55%, rgba(6,6,6,0.72) 78%, rgba(6,6,6,1) 100%);
}
.hero.variant-b .hero-media::after {
  background:
    linear-gradient(90deg, rgba(6,6,6,0.46) 0%, rgba(6,6,6,0.28) 30%, rgba(6,6,6,0.08) 56%, rgba(6,6,6,0.18) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(6,6,6,0.04) 0%, rgba(6,6,6,0.22) 58%, rgba(6,6,6,0.72) 100%),
    linear-gradient(180deg, rgba(6,6,6,0.34) 0%, rgba(6,6,6,0.10) 34%, rgba(6,6,6,0.44) 72%, rgba(6,6,6,0.76) 100%);
}
.hero.variant-b .hero-content h1,
.hero.variant-b .hero-sub {
  text-shadow: 0 3px 18px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.85);
}
.hero.variant-b .hero-sub {
  color: rgba(255,248,238,0.96);
}
.hero.variant-b .hero-content .eyebrow,
.hero.variant-b .hero-badges span {
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.hero.variant-b .hero-badges span {
  background: rgba(14,14,14,0.42);
  color: rgba(255,248,238,0.94);
}

.hero-toggle {
  position: absolute;
  top: 100px;
  right: var(--gutter);
  z-index: 3;
  display: flex;
  gap: 0;
  background: rgba(6,6,6,0.6);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  padding: 0.25rem;
  border-radius: 999px;
}

.hero-toggle button {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0.5rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 999px;
  font-weight: 600;
}

.hero-toggle button.active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #121212;
}

/* ===================== TICKER ===================== */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg,
      rgba(205, 163, 92, 0.10) 0%,
      rgba(0,0,0,0) 30%,
      rgba(0,0,0,0) 70%,
      rgba(123, 24, 18, 0.10) 100%);
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.ticker-track span::after {
  content: '◈';
  color: var(--gold);
  opacity: 0.6;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================== SECTION HEADER ===================== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-l);
  margin-bottom: var(--space-l);
  align-items: baseline;
}

@media (max-width: 768px) {
  .section-head { grid-template-columns: 1fr; gap: var(--space-m); }
}

.section-head .eyebrow-col .eyebrow {
  display: block;
  margin-bottom: 0.6rem;
}
.section-head .eyebrow-col .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
}

.section-head h2 {
  max-width: 22ch;
}

.section-head .desc {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.05rem;
}

/* ===================== COLECCIÓN ===================== */
.coleccion {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .productos-grid { grid-template-columns: 1fr; }
}

.producto-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(8px);
}

.producto-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 205, 142, 0.28);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6),
              0 0 0 1px rgba(240,205,142,0.1);
}

.producto-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(205,163,92,0.08) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.producto-card:hover::before { opacity: 1; }

.producto-visual {
  aspect-ratio: 1;
  background: radial-gradient(ellipse at 50% 30%, #16130d 0%, #050505 70%);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line-2);
}

.producto-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8% 12%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 30px 30px rgba(0,0,0,0.55));
  position: relative;
  z-index: 1;
}

.producto-visual::after {
  /* Suelo/reflejo cálido debajo de la botella */
  content: '';
  position: absolute;
  left: 15%; right: 15%; bottom: 8%;
  height: 14%;
  background: radial-gradient(ellipse at center, rgba(205,163,92,0.22) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.producto-card:hover .producto-visual img {
  transform: scale(1.06) translateY(-2%);
}

.producto-visual .tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(6,6,6,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 2;
}

.producto-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.9rem;
}

.producto-body .title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1rem;
  gap: 1rem;
}

.producto-body h3 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
}

.producto-body .price-tag {
  text-align: right;
  flex-shrink: 0;
}

.producto-body .price-tag small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.producto-body .price-tag strong {
  font-family: var(--font-display);
  color: var(--gold-2);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
}

.producto-body .subtitle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
}

.producto-body .notas {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-2);
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 400;
}

.producto-body .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.producto-body .chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.producto-body .btn {
  margin-top: auto;
  align-self: stretch;
}

/* ===================== ARRIBES ===================== */
.arribes {
  overflow: hidden;
  padding: 0;
}

.arribes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 700px;
}

@media (max-width: 1024px) {
  .arribes-grid { grid-template-columns: 1fr; min-height: auto; }
}

.arribes-media {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.arribes-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(1.04) saturate(1.06) contrast(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.arribes-media:hover img {
  transform: scale(1.03);
}

.arribes-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(240,205,142,0.05) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6,6,6,0.15) 0%, transparent 30%, transparent 70%, rgba(6,6,6,0.45) 100%);
  pointer-events: none;
}

.arribes-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6,6,6,0) 55%, rgba(6,6,6,0.85) 100%);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .arribes-media::after {
    background: linear-gradient(180deg, rgba(6,6,6,0) 60%, rgba(6,6,6,0.9) 100%);
  }
}

.arribes-text {
  padding: var(--space-xl) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  max-width: 640px;
}

.arribes-text .eyebrow {
  color: var(--gold-2);
  opacity: 1;
}

.arribes-text h2 {
  color: #FBF6EC;
}

.arribes-text p {
  color: #ECE4D5;
  font-size: 1.15rem;
  line-height: 1.75;
  font-weight: 400;
  max-width: 52ch;
}

.arribes-text p strong {
  color: #FBF6EC;
  font-weight: 600;
}

.arribes-coords {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 205, 142, 0.25);
  line-height: 2;
  opacity: 1;
}

/* ===================== PROCESO ===================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: var(--space-l);
}

@media (max-width: 1024px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; }
}

.timeline-step {
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  position: relative;
  transition: all 0.4s;
}

.timeline-step:hover {
  border-color: rgba(240, 205, 142, 0.24);
  background: rgba(205, 163, 92, 0.04);
  transform: translateY(-4px);
}

.timeline-step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  color: var(--gold-2);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-step h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.timeline-step p {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ===================== PREMIOS ===================== */
.premios {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}

.premios-list {
  margin-top: var(--space-m);
}

.premio-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: all 0.3s;
}

.premio-row:hover {
  padding-left: 1.5rem;
  background: linear-gradient(90deg, rgba(205,163,92,0.05), transparent);
}

.premio-row:last-child { border-bottom: 1px solid var(--line); }

.premio-year {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  color: var(--gold-2);
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premio-list {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.55;
}

.premio-list em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text);
  font-weight: 400;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.premio-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

@media (max-width: 768px) {
  .premio-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .premio-count { justify-self: start; }
}

/* ===================== CTA ===================== */
.cta {
  padding: var(--space-xl) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(205,163,92,0.12), transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(123,24,18,0.10), transparent 50%);
  pointer-events: none;
}

.cta > * { position: relative; z-index: 2; }

.cta h2 {
  color: var(--text);
  max-width: 20ch;
  margin: 1rem auto 2rem;
}

.cta h2 em { color: var(--gold-2); }

.cta p {
  color: var(--text-2);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  line-height: 1.65;
}

/* ===================== FOOTER ===================== */
.footer {
  padding: var(--space-l) var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.4);
  font-size: 0.9rem;
  position: relative;
  z-index: 3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: var(--space-m);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand-block img {
  height: 64px;
  width: auto;
  align-self: flex-start;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.footer-tagline {
  max-width: 34ch;
  color: var(--text-2);
  line-height: 1.65;
  opacity: 0.9;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-2);
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}
.footer-col a { opacity: 0.85; }
.footer-col a:hover { color: var(--gold-2); }

/* Redes sociales */
.footer-social {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.footer-social-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-social-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
}

.footer-social-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.footer-social-links a:hover {
  border-color: rgba(240, 205, 142, 0.35);
  color: var(--gold-2);
  transform: translateY(-2px);
  background: rgba(205, 163, 92, 0.06);
}

.footer-social-links a svg {
  flex-shrink: 0;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .footer-social-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-social-links a span { font-size: 0.72rem; }
}

.footer-bottom {
  max-width: var(--container);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  flex-wrap: wrap;
}

/* ===================== PÁGINAS INTERIORES ===================== */
.page-hero {
  padding: 10rem var(--gutter) var(--space-l);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(205,163,92,0.10), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(123,24,18,0.08), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Variante con imagen de fondo (p.ej. Olivar) */
.page-hero--with-image { padding-top: 12rem; padding-bottom: var(--space-xl); }
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: brightness(1.05) saturate(1.05);
  z-index: 0;
}
.page-hero--with-image::before {
  background:
    linear-gradient(90deg, rgba(6,6,6,0.68) 0%, rgba(6,6,6,0.36) 42%, rgba(6,6,6,0.22) 100%),
    linear-gradient(180deg, rgba(6,6,6,0.68) 0%, rgba(6,6,6,0.42) 38%, rgba(6,6,6,0.88) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(205,163,92,0.10), transparent 55%);
  z-index: 1;
}
.page-hero--with-image .page-hero-inner { z-index: 2; }
.page-hero--with-image h1,
.page-hero--with-image .page-hero-desc {
  text-shadow: 0 4px 34px rgba(0,0,0,0.72);
}

.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
  align-items: end;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 300;
  max-width: 12ch;
}

.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 2rem;
}

.page-hero .breadcrumb a { color: var(--gold-2); opacity: 0.7; }
.page-hero .breadcrumb a:hover { opacity: 1; }
.page-hero .breadcrumb .sep { color: var(--line); margin: 0 0.5rem; }

.page-hero-desc {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 50ch;
  line-height: 1.6;
}

/* PRODUCTO DETALLE */
.producto-detalle {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.producto-detalle-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 900px) {
  .producto-detalle-inner { grid-template-columns: 1fr; }
}

.producto-detalle:nth-child(even) .producto-detalle-inner {
  direction: rtl;
}
.producto-detalle:nth-child(even) .producto-detalle-inner > * {
  direction: ltr;
}

.producto-visual-big {
  aspect-ratio: 4/5;
  background: linear-gradient(180deg, #000 0%, #060606 100%);
  overflow: hidden;
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8),
              inset 0 0 60px rgba(205, 163, 92, 0.05);
}

.producto-visual-big::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(205,163,92,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.producto-visual-big img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6));
}

.producto-info h2 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text);
}

.producto-info h2 em {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.producto-info .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(240, 205, 142, 0.28);
  background: rgba(205, 163, 92, 0.06);
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.producto-info .descripcion {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 46ch;
}

.cata {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.cata div h5 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cata div p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.producto-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.producto-price-row .price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--gold-2);
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.producto-price-row .price small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 0.5rem;
  -webkit-text-fill-color: var(--muted);
}

/* ===================== SOSTENIBILIDAD ===================== */
.principios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-l);
}

@media (max-width: 900px) {
  .principios { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .principios { grid-template-columns: 1fr; }
}

.principio {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s;
}

.principio:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 205, 142, 0.24);
  background: rgba(205, 163, 92, 0.04);
}

.principio .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(205,163,92,0.18), rgba(205,163,92,0.06));
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(240,205,142,0.24);
}

.principio h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.principio p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===================== TIENDA ===================== */
.tienda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding: var(--space-l) 0;
}

@media (max-width: 900px) {
  .tienda-grid { grid-template-columns: 1fr; }
}

/* ===================== CONTACTO ===================== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
  padding-top: var(--space-l);
}

@media (max-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr; }
}

.contacto-info h3 {
  margin-bottom: 2rem;
  font-style: italic;
}

.contacto-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.contacto-item:last-child { border-bottom: 1px solid var(--line); }

.contacto-item h5 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contacto-item p, .contacto-item a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.4;
}

.contacto-item a:hover { color: var(--gold-2); }

.contacto-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(8px);
}

.contacto-form h3 {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.form-row { margin-bottom: 1.25rem; }

.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: all 0.2s;
  border-radius: 14px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0,0,0,0.6);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

/* ===================== VARIEDAD (Olivar) ===================== */
.variedad {
  padding: var(--space-xl) 0;
}

.variedad-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-l);
  align-items: center;
}

@media (max-width: 900px) {
  .variedad-grid { grid-template-columns: 1fr; }
}

.variedad-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  position: relative;
  box-shadow:
    0 40px 100px -30px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0,0,0,0.35);
  background: #060606;
}
.variedad-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.06) saturate(1.1) contrast(1.05);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.variedad-image:hover img {
  transform: scale(1.04);
}
.variedad-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, transparent 40%, rgba(6,6,6,0.55) 100%),
    linear-gradient(180deg, rgba(6,6,6,0.10) 0%, transparent 25%, transparent 75%, rgba(6,6,6,0.35) 100%);
  pointer-events: none;
}

.variedad-text h2 em {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.variedad-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.variedad-facts .fact h5 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.variedad-facts .fact p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  font-style: italic;
  font-weight: 300;
}

/* ===================== ES/EN toggle ===================== */
[lang-content="en"] { display: none !important; }
html[data-lang="en"] [lang-content="es"] { display: none !important; }
html[data-lang="en"] [lang-content="en"] { display: revert !important; }

/* Selection */
::selection {
  background: var(--gold);
  color: #121212;
}

/* =========================================================
   FOOTER · Enlaces legales
   ========================================================= */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-legal .legal-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color .18s ease;
  cursor: pointer;
}
.footer-legal .legal-link:hover {
  color: var(--gold-2);
}
.footer-legal .legal-sep {
  color: var(--muted-2);
  opacity: .6;
}

/* =========================================================
   MODAL LEGAL
   ========================================================= */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  opacity: 0;
  transition: opacity .26s ease;
}
.legal-modal.is-open { opacity: 1; }
.legal-modal[hidden] { display: none; }

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.legal-modal__panel {
  position: relative;
  background: linear-gradient(180deg, #0f0f11 0%, #0a0a0b 100%);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(205, 163, 92, 0.08);
  width: 100%;
  max-width: 820px;
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  color: var(--text);
  transform: translateY(12px);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  border-radius: 2px;
}
.legal-modal.is-open .legal-modal__panel { transform: translateY(0); }

.legal-modal__header {
  position: relative;
  padding: 1.75rem 3.5rem 1.5rem 2.25rem;
  border-bottom: 1px solid var(--line-2);
  flex-shrink: 0;
}
.legal-modal__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.legal-modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.005em;
}
.legal-modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: all .18s ease;
}
.legal-modal__close:hover {
  color: var(--gold-2);
  border-color: var(--gold);
  background: rgba(205, 163, 92, 0.08);
}

.legal-modal__body {
  padding: 1.75rem 2.25rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.75;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.legal-modal__body::-webkit-scrollbar { width: 8px; }
.legal-modal__body::-webkit-scrollbar-track { background: transparent; }
.legal-modal__body::-webkit-scrollbar-thumb {
  background: rgba(205, 163, 92, 0.35);
  border-radius: 4px;
}
.legal-modal__body::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.legal-modal__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--text);
  margin: 1.8rem 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-2);
  letter-spacing: -0.005em;
}
.legal-modal__body h3:first-child { margin-top: 0; }
.legal-modal__body p { margin: 0 0 0.9rem; }
.legal-modal__body .legal-intro {
  font-size: 1.02rem;
  color: var(--text);
  padding: 1rem 1.15rem;
  background: rgba(205, 163, 92, 0.05);
  border-left: 2px solid var(--gold);
  margin-bottom: 1.4rem;
}
.legal-modal__body .legal-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.legal-modal__body a {
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 205, 142, 0.3);
  transition: border-color .18s ease;
}
.legal-modal__body a:hover { border-bottom-color: var(--gold-2); }
.legal-modal__body strong { color: var(--text); font-weight: 600; }
.legal-modal__body .legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.legal-modal__body .legal-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}
.legal-modal__body .legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* Tabla de cookies */
.legal-modal__body .cookie-table-wrap {
  overflow-x: auto;
  margin: 0.6rem 0 1.4rem;
  border: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.legal-modal__body .cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 640px;
}
.legal-modal__body .cookie-table thead {
  background: rgba(205, 163, 92, 0.08);
}
.legal-modal__body .cookie-table th {
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
}
.legal-modal__body .cookie-table td {
  padding: 0.85rem 0.9rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line-2);
  color: var(--text-2);
  line-height: 1.55;
}
.legal-modal__body .cookie-table tr:last-child td { border-bottom: none; }
.legal-modal__body .cookie-table code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-2);
  background: rgba(205, 163, 92, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  white-space: nowrap;
}

.legal-modal__footer {
  padding: 1.1rem 2.25rem;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  background: rgba(0,0,0,0.3);
}
.legal-modal__footer small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.legal-modal__cta {
  background: var(--gold);
  color: #121212;
  border: none;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
}
.legal-modal__cta:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

/* =========================================================
   BANNER DE COOKIES
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 9000;
  background: linear-gradient(180deg, #101012 0%, #08080a 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(205, 163, 92, 0.06);
  padding: 1.15rem 1.4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
  max-width: 960px;
  margin: 0 auto;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1 1 340px;
}
.cookie-banner__text strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.cookie-banner__text p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.cookie-banner__text a {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-color: rgba(240, 205, 142, 0.3);
  text-underline-offset: 3px;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 0.65rem 1.3rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all .18s ease;
  white-space: nowrap;
}
.cookie-btn--ghost {
  background: transparent;
  color: var(--muted);
}
.cookie-btn--ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}
.cookie-btn--primary {
  background: var(--gold);
  color: #121212;
  border-color: var(--gold);
}
.cookie-btn--primary:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  box-shadow: 0 6px 18px var(--gold-glow);
}

/* Responsive modal */
@media (max-width: 640px) {
  .legal-modal { padding: 0; align-items: stretch; }
  .legal-modal__panel {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .legal-modal__header { padding: 1.4rem 3.2rem 1.2rem 1.4rem; }
  .legal-modal__body { padding: 1.4rem 1.4rem 1.8rem; }
  .legal-modal__footer { padding: 1rem 1.4rem; }
  .cookie-banner { padding: 1rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ===================== MOBILE LEGIBILITY OPTIMIZATION PASS ===================== */
@media (max-width: 768px) {
  .nav-links {
    font-size: 0.80rem;
    letter-spacing: 0.12em;
    gap: 1rem;
  }

  .nav-links a {
    color: var(--text-2);
    padding: 0.58rem 0;
  }

  .lang-switch {
    font-size: 0.76rem;
    letter-spacing: 0.10em;
    padding: 0.38rem 0.72rem;
    background: rgba(6,6,6,0.78);
  }

  .lang-switch button { padding: 0.24rem 0.46rem; }

  .btn,
  .btn-small {
    font-size: 0.80rem;
    letter-spacing: 0.14em;
  }

  .eyebrow,
  .hero-bottle-row small,
  .hero-toggle button,
  .producto-visual .tag,
  .producto-body .price-tag small,
  .producto-body .subtitle,
  .producto-body .chip,
  .arribes-coords,
  .premio-count,
  .producto-info .badge,
  .producto-price-row .price small,
  .contacto-item h5,
  .form-row label,
  .variedad-facts .fact h5,
  .legal-modal__eyebrow,
  .legal-modal__body .legal-copy,
  .legal-modal__body .cookie-table th,
  .legal-modal__footer small,
  .cookie-banner__text strong {
    font-size: 0.78rem;
    letter-spacing: 0.11em;
  }

  .page-hero .breadcrumb,
  .footer-col h5,
  .footer-social-label,
  .footer-bottom {
    font-size: 0.76rem;
    letter-spacing: 0.11em;
  }

  .page-hero .breadcrumb a { opacity: 0.86; }

  .footer-col,
  .footer-col li,
  .footer-col a,
  .footer-social-links a,
  .footer-social-links a span {
    color: var(--text-2);
  }

  .footer-social-links a { gap: 0.65rem; }
  .footer-social-links a span { font-size: 0.76rem; }

  .footer-bottom {
    color: var(--muted);
    line-height: 1.55;
  }

  .legal-modal__body p,
  .legal-modal__body li,
  .cookie-banner__text p {
    font-size: 0.90rem;
    line-height: 1.62;
  }

  .legal-modal__body .cookie-table {
    font-size: 0.84rem;
    min-width: 580px;
  }
}

@media (max-width: 520px) {
  .eyebrow,
  .hero-bottle-row small,
  .hero-toggle button,
  .producto-visual .tag,
  .producto-body .price-tag small,
  .producto-body .subtitle,
  .producto-body .chip,
  .arribes-coords,
  .premio-count,
  .producto-info .badge,
  .producto-price-row .price small,
  .contacto-item h5,
  .form-row label,
  .variedad-facts .fact h5,
  .legal-modal__eyebrow,
  .legal-modal__body .legal-copy,
  .legal-modal__body .cookie-table th,
  .legal-modal__footer small,
  .cookie-banner__text strong,
  .page-hero .breadcrumb,
  .footer-col h5,
  .footer-social-label,
  .footer-bottom,
  .footer-social-links a span,
  .lang-switch,
  .btn,
  .btn-small {
    letter-spacing: 0.09em;
  }

  .nav-links {
    font-size: 0.79rem;
    gap: 0.88rem;
  }
}


/* ===================== MOBILE SIZING PASS ===================== */
/* Tablet / phablet (<=768px) */
@media (max-width: 768px) {
  /* Titulares grandes: bajar el mínimo del clamp */
  h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); }
  h2 { font-size: clamp(1.75rem, 6.5vw, 2.6rem); }
  h3 { font-size: clamp(1.3rem, 4vw, 1.7rem); }

  /* Nav toggle (hamburguesa) — tap target accesible */
  .nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
  }
  @media (max-width: 1024px) { .nav-toggle { display: flex; } }

  /* Section-head: menos aire entre eyebrow y descripción */
  .section-head { margin-bottom: 2.5rem; gap: 1.5rem; }
  .section-head h2 { max-width: 100%; }
  .section-head .desc { font-size: 1rem; margin-top: 0.75rem; line-height: 1.65; }
  .section-head .eyebrow-col .num { font-size: 1.2rem; }

  /* Chips en cards de producto — accesibilidad legible */
  .producto-body .chip {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    letter-spacing: 0.02em;
  }

  /* Page-hero (páginas internas: producto, olivar, etc.) */
  .page-hero { padding: 6rem 0 3rem; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 var(--gutter); }
  .page-hero h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
  .page-hero-desc { font-size: 1.05rem; max-width: 100%; }
  .page-hero--with-image { padding-top: 8rem; padding-bottom: 3.5rem; }

  /* Formulario de contacto: inputs cómodos */
  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row input, .form-row textarea {
    font-size: 16px; /* evita zoom automático de iOS */
    padding: 0.85rem 1rem;
    min-height: 48px;
  }
  .form-row textarea { min-height: 120px; }
  .contacto-item p, .contacto-item a { font-size: 1rem; }

  /* Espacio entre secciones: reducir */
  section { padding: var(--space-l) 0; }

  /* Hero */
  .hero { min-height: 88vh; }
  .hero-content { padding: 0 var(--gutter) 3rem; gap: 2rem; }
  .hero-content h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 1rem 0 1.25rem; max-width: 100%; }
  .hero-sub { font-size: 1.05rem; margin-bottom: 1.75rem; max-width: 100%; }
  .hero-actions { gap: 0.6rem; margin-bottom: 1.5rem; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 0; }
  .hero-badges { gap: 0.4rem; }
  .hero-badges span { font-size: 0.66rem; padding: 0.4rem 0.7rem; }

  /* Toggle Olivo/Arribes: separar del nav y del contenido */
  .hero-toggle {
    top: calc(76px + 0.75rem);
    right: 1rem;
    padding: 0.22rem;
    background: rgba(6,6,6,0.78);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  }
  .hero-toggle button { padding: 0.44rem 0.95rem; font-size: 0.62rem; min-height: 32px; }

  /* Panel lateral botellas en el hero */
  .hero-bottles { padding: 1.25rem; border-radius: 22px; }
  .hero-bottle-row { padding: 0.6rem; gap: 0.75rem; }
  .hero-bottle-row img { width: 44px; height: 60px; }
  .hero-bottle-row h4 { font-size: 1.15rem; }
  .hero-bottle-row .price { font-size: 1rem; }

  /* Ticker más legible */
  .ticker-track span { font-size: 0.82rem; letter-spacing: 0.14em; }

  /* Colección · productos apilados */
  .producto-card { border-radius: 22px; }
  .producto-visual { aspect-ratio: 4 / 3; }
  .producto-body { padding: 1.4rem; gap: 0.8rem; }
  .producto-body h3 { font-size: 2rem; }
  .producto-body .price-tag strong { font-size: 1.4rem; }
  .producto-body .notas { font-size: 1.05rem; line-height: 1.5; }
  .producto-body .title-row { padding-bottom: 0.8rem; }

  /* Sección Arribes (imagen + texto apilados) */
  .arribes-media { min-height: 340px; }
  .arribes-text { padding: 3rem var(--gutter); gap: 1.25rem; }
  .arribes-text p { font-size: 1.05rem; line-height: 1.7; }
  .arribes-coords { font-size: 0.72rem; letter-spacing: 0.12em; margin-top: 1rem; padding-top: 1rem; }

  /* Timeline (proceso) */
  .timeline { gap: 0.85rem; }
  .timeline-step { padding: 1.35rem; border-radius: 18px; }
  .timeline-step .num { font-size: 2.4rem; margin-bottom: 0.6rem; }
  .timeline-step h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
  .timeline-step p { font-size: 0.95rem; line-height: 1.6; }

  /* Premios: apilar y espaciar */
  .premio-row { padding: 1.5rem 0; gap: 0.6rem; }
  .premio-year { font-size: 2rem; }
  .premio-list { font-size: 1rem; line-height: 1.55; }
  .premio-row:hover { padding-left: 0; }

  /* CTA final */
  .cta { padding: var(--space-l) var(--gutter); }
  .cta h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .cta p { font-size: 1rem; margin-bottom: 1.75rem; }

  /* Footer: menos aire */
  .footer { padding: var(--space-m) var(--gutter) 1.5rem; }
  .footer-grid { gap: 2rem; padding-bottom: 1.5rem; }
  .footer-brand-block img { height: 52px; }
  .footer-tagline { font-size: 0.92rem; max-width: 100%; }
  .footer-col ul { gap: 0.45rem; }
  .footer-col a { font-size: 0.92rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.25rem;
    text-align: left;
  }

  /* Sección SEO local */
  .seo-local { padding: 3rem 1.25rem 2.5rem !important; }
  .seo-local > div > div { gap: 2.25rem 2rem !important; }
  .seo-local h2 { font-size: 1.6rem !important; line-height: 1.2 !important; }
  .seo-local h3 { font-size: 1.2rem !important; }
  .seo-local address { font-size: 0.98rem !important; line-height: 1.75 !important; }
}


/* Móvil pequeño (<=480px) — iPhone SE, Android compactos */
@media (max-width: 480px) {
  /* Contenedor con menos padding */
  :root { --gutter: 1.1rem; }

  /* Nav */
  .nav { padding: 0.75rem 1.1rem; }
  .nav-brand img { height: 38px; }
  .nav.scrolled .nav-brand img { height: 32px; }

  /* Hero */
  .hero .hero-content h1 { font-size: 2.3rem; line-height: 1.08; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  /* Botones más compactos */
  .btn { padding: 0.85rem 1.4rem; min-height: 48px; font-size: 0.78rem; }

  /* Hero-toggle en el borde superior del hero */
  .hero-toggle { top: 84px; right: 0.8rem; }
  .hero-toggle button { padding: 0.35rem 0.75rem; font-size: 0.60rem; letter-spacing: 0.10em; }

  /* Colección */
  .producto-body h3 { font-size: 1.7rem; }
  .producto-body .price-tag strong { font-size: 1.25rem; }
  .producto-body .notas { font-size: 1rem; }
  .producto-body .chip { font-size: 0.72rem; padding: 0.32rem 0.6rem; }

  /* Arribes */
  .arribes-media { min-height: 260px; }
  .arribes-text { padding: 2.25rem 1.1rem; }
  .arribes-text p { font-size: 1rem; }

  /* Timeline */
  .timeline-step .num { font-size: 2.1rem; }
  .timeline-step h4 { font-size: 1.1rem; }
  .timeline-step p { font-size: 0.92rem; }

  /* Premios */
  .premio-year { font-size: 1.75rem; }
  .premio-list { font-size: 0.95rem; }

  /* SEO local: 1 sola columna para los enlaces regionales */
  .seo-local ul { grid-template-columns: 1fr !important; }
  .seo-local { padding: 2.5rem 1.1rem 2rem !important; }
  .seo-local h2 { font-size: 1.45rem !important; }

  /* Footer aún más compacto */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-social-inner { gap: 0.85rem; }
  .footer-social-links { gap: 0.5rem; }
  .footer-social-links a { padding: 0.45rem 0.8rem; font-size: 0.75rem; }

  /* Legal footer bottom */
  .footer-legal { flex-wrap: wrap; row-gap: 0.35rem; }
}

