/* ===========================================================
   Bodegas Valero Torres — Vino Hervato
   Hoja de estilos · Dirección: Tradicional premium
   =========================================================== */

/* ---------- Tipografías ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500&display=swap');

/* ---------- Variables ---------- */
:root {
  --burdeos:       #6b1f2a;
  --burdeos-osc:   #4a141d;
  --crema:         #f7f1e7;
  --crema-prof:    #efe6d6;
  --tierra:        #8a6b4f;
  --oliva:         #6f7449;
  --dorado:        #b08d4f;
  --tinta:         #2a2422;
  --gris:          #5c544e;
  --rosado:        #c98b86;
  --blanco-vino:   #d9c27a;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .01em;
}

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 1rem;
}

.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--crema-prof { background: var(--crema-prof); }
.section--tinta { background: var(--tinta); color: var(--crema); }

.divider {
  width: 56px; height: 1px;
  background: var(--dorado);
  margin: 1.4rem auto;
  border: none;
}
.divider--left { margin-inline: 0; }

/* ---------- Barra de progreso de scroll ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--burdeos), var(--dorado));
  z-index: 1000;
  transition: width .1s linear;
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav--solid {
  background: rgba(247, 241, 231, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(106, 31, 42, .08);
  padding-block: .7rem;
}

.nav__brand {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crema);
  transition: color .4s var(--ease);
}
.nav--solid .nav__brand { color: var(--burdeos); }
.nav__brand img { height: 38px; width: auto; }
.nav--solid .nav__brand img { filter: none; }
.nav__brand-mark { filter: brightness(0) invert(1); transition: filter .4s var(--ease); }
.nav--solid .nav__brand-mark { filter: none; }

.nav__links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crema);
  position: relative;
  padding-block: .3rem;
  transition: color .3s var(--ease);
}
.nav--solid .nav__links a { color: var(--gris); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--dorado);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav--solid .nav__links a:hover,
.nav__links a:hover { color: var(--dorado); }
.nav__links a.is-active { color: var(--dorado); }

/* Dropdown Vinos */
.nav__drop { position: relative; }
.nav__drop-toggle { cursor: pointer; }
.nav__drop-toggle::before { content: none; }
.nav__drop-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--crema);
  box-shadow: 0 14px 40px rgba(42, 36, 34, .16);
  border-radius: 2px;
  padding: .6rem 0;
  min-width: 170px;
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.nav__drop:hover .nav__drop-menu,
.nav__drop:focus-within .nav__drop-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(2px);
}
.nav__drop-menu a {
  display: block;
  padding: .55rem 1.4rem;
  color: var(--gris) !important;
  font-size: .8rem;
  letter-spacing: .12em;
}
.nav__drop-menu a::after { content: none; }
.nav__drop-menu a:hover { background: var(--crema-prof); color: var(--burdeos) !important; }

/* Hamburguesa móvil */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.nav__toggle span {
  width: 26px; height: 2px; background: var(--crema);
  transition: background .4s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.nav--solid .nav__toggle span { background: var(--burdeos); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--crema);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,36,34,.55) 0%, rgba(42,36,34,.35) 45%, rgba(42,36,34,.7) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 6rem 1.5rem; max-width: 760px; }
.hero__logo {
  width: clamp(150px, 22vw, 230px);
  margin: 0 auto 1.8rem;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) .2s forwards;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) .5s forwards;
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: .02em;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) .8s forwards;
}
.hero__cta { opacity: 0; animation: fadeUp 1.2s var(--ease) 1.1s forwards; }

.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(247,241,231,.8);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hero__scroll::after {
  content: ''; width: 1px; height: 38px;
  background: rgba(247,241,231,.6);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine { 0%,100%{ opacity:.3; transform: scaleY(.4); transform-origin: top;} 50%{ opacity:1; transform: scaleY(1);} }

/* Hero secundario (páginas internas) */
.hero--page { min-height: 64vh; }
.hero--page .hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .95rem 2.2rem;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn--light { color: var(--crema); border-color: rgba(247,241,231,.7); }
.btn--light:hover { background: var(--crema); color: var(--tinta); }
.btn--dark { color: var(--burdeos); border-color: var(--burdeos); }
.btn--dark:hover { background: var(--burdeos); color: var(--crema); }
.btn--solid { background: var(--burdeos); color: var(--crema); border-color: var(--burdeos); }
.btn--solid:hover { background: var(--burdeos-osc); border-color: var(--burdeos-osc); }

/* ---------- Intro ---------- */
.intro { text-align: center; }
.intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 18ch; margin-inline: auto;
}
.intro p {
  max-width: 60ch; margin: 1.6rem auto 0;
  color: var(--gris); font-size: 1.08rem;
}

/* ---------- Capsulas "Descubre la bodega" ---------- */
.capsules {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; margin-top: 3.5rem;
}
.capsule {
  text-align: center; padding: 1.6rem 1rem;
  border-top: 1px solid rgba(176,141,79,.4);
}
.capsule__num {
  font-family: var(--serif); font-style: italic;
  color: var(--dorado); font-size: 1.1rem; display: block; margin-bottom: .4rem;
}
.capsule h4 { font-size: 1.25rem; color: var(--burdeos); margin-bottom: .3rem; }
.capsule p { font-size: .9rem; color: var(--gris); }

/* ---------- Cards de vinos ---------- */
.wines-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem; margin-top: 3rem;
}
.wine-card {
  position: relative; overflow: hidden;
  border-radius: 2px;
  background: var(--tinta);
  min-height: 460px;
  display: flex; align-items: flex-end;
  isolation: isolate;
  box-shadow: 0 10px 30px rgba(42,36,34,.12);
}
.wine-card__img {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform 1.1s var(--ease);
}
.wine-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(42,36,34,.05) 0%, rgba(42,36,34,.78) 100%);
  transition: background .6s var(--ease);
}
.wine-card:hover .wine-card__img { transform: scale(1.08); }
.wine-card--tinto:hover::before  { background: linear-gradient(180deg, rgba(74,20,29,.15) 0%, rgba(74,20,29,.85) 100%); }
.wine-card--blanco:hover::before { background: linear-gradient(180deg, rgba(120,98,33,.12) 0%, rgba(86,71,28,.85) 100%); }
.wine-card--rosado:hover::before { background: linear-gradient(180deg, rgba(160,90,86,.12) 0%, rgba(120,55,52,.85) 100%); }

.wine-card__body {
  position: relative; z-index: 1;
  padding: 2rem; color: var(--crema); width: 100%;
}
.wine-card__type {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--dorado); margin-bottom: .5rem;
}
.wine-card__name { font-size: 1.9rem; margin-bottom: .4rem; }
.wine-card__desc {
  font-size: .92rem; color: rgba(247,241,231,.85);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease), opacity .5s var(--ease), margin .5s var(--ease);
}
.wine-card:hover .wine-card__desc { max-height: 80px; opacity: 1; margin-top: .4rem; }
.wine-card__link {
  display: inline-block; margin-top: 1.2rem;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--dorado); padding-bottom: 3px;
}

/* ---------- Bloque dividido (imagen + texto) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(2rem, 6vw, 5rem);
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 2px; min-height: 360px;
  box-shadow: 0 16px 40px rgba(42,36,34,.16);
}
.split__body h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--burdeos); }
.split__body p { margin-top: 1.2rem; color: var(--gris); }

/* ---------- Galería ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: .8rem;
}
.gallery__item { overflow: hidden; border-radius: 2px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-info h3 { color: var(--burdeos); font-size: 1.5rem; margin-bottom: 1.4rem; }
.contact-info__row { display: flex; gap: 1rem; margin-bottom: 1.3rem; align-items: flex-start; }
.contact-info__row .label {
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--dorado); display: block; margin-bottom: .15rem;
}
.contact-info__row .value { font-size: 1.05rem; color: var(--tinta); }

.contact-map { margin-top: 2rem; border-radius: 2px; overflow: hidden; box-shadow: 0 12px 30px rgba(42,36,34,.14); }
.contact-map iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(.25) sepia(.08); }

.form { display: grid; gap: 1.2rem; }
.form label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gris); }
.form input, .form textarea {
  width: 100%; margin-top: .4rem;
  font-family: var(--sans); font-size: 1rem; color: var(--tinta);
  background: var(--crema); border: 1px solid rgba(138,107,79,.35);
  padding: .85rem 1rem; border-radius: 2px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.section--tinta .form input, .section--tinta .form textarea {
  background: rgba(247,241,231,.06); border-color: rgba(247,241,231,.22); color: var(--crema);
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(176,141,79,.15);
}
.form textarea { resize: vertical; min-height: 130px; }

/* ---------- Página de vino ---------- */
.wine-hero {
  display: grid; grid-template-columns: .9fr 1.1fr;
  align-items: center; gap: clamp(2rem, 5vw, 4rem);
  padding-top: 8rem;
}
.wine-hero__photo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 480px;
  border-radius: 2px;
}
/* Placeholder de botella */
.bottle-placeholder {
  width: 220px; max-width: 80%;
  aspect-ratio: 1 / 3;
  border-radius: 80px 80px 14px 14px / 120px 120px 14px 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), rgba(0,0,0,.12));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: rgba(255,255,255,.85);
  border: 1px dashed rgba(255,255,255,.5);
  position: relative;
}
.bottle-placeholder span {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 0 1rem;
}
.bottle-placeholder small { display:block; margin-top:.5rem; opacity:.7; letter-spacing:.1em; }

.wine-hero__body .eyebrow { color: var(--dorado); }
.wine-hero__body h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--burdeos); }
.wine-hero__body .sub {
  font-family: var(--serif); font-style: italic;
  font-size: 1.3rem; color: var(--gris); margin-top: .6rem;
}
.wine-hero__body .lead { margin-top: 1.6rem; max-width: 46ch; color: var(--gris); }

/* Variantes de color de fondo del hero de vino */
.wine-hero__photo--tinto  { background: radial-gradient(circle at 50% 30%, #7a2230, #3a1018); }
.wine-hero__photo--blanco { background: radial-gradient(circle at 50% 30%, #c9ac5a, #7a6420); }
.wine-hero__photo--rosado { background: radial-gradient(circle at 50% 30%, #cf8f8a, #8a4a47); }

/* Ficha técnica */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.spec-table tr { border-bottom: 1px solid rgba(138,107,79,.22); }
.spec-table td { padding: .85rem .2rem; }
.spec-table td:first-child {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); width: 45%;
}
.spec-table td:last-child { font-family: var(--serif); font-size: 1.15rem; color: var(--tinta); }

/* Tabla nutricional */
.nutri {
  background: var(--crema); border-radius: 2px; overflow: hidden;
  box-shadow: 0 12px 34px rgba(42,36,34,.1);
  border: 1px solid rgba(138,107,79,.18);
}
.nutri caption {
  font-family: var(--serif); font-size: 1.4rem; color: var(--burdeos);
  padding: 1.4rem 1.6rem .4rem; text-align: left;
}
.nutri table { width: 100%; border-collapse: collapse; }
.nutri th, .nutri td { padding: .8rem 1.6rem; text-align: right; font-size: .95rem; }
.nutri th:first-child, .nutri td:first-child { text-align: left; }
.nutri thead th {
  font-family: var(--sans); font-weight: 400; font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dorado);
  border-bottom: 1px solid rgba(176,141,79,.4);
}
.nutri tbody tr:nth-child(even) { background: var(--crema-prof); }
.nutri tbody td { color: var(--gris); font-family: var(--serif); font-size: 1.05rem; }
.nutri tbody td:first-child { font-family: var(--sans); font-size: .9rem; color: var(--tinta); }
.nutri tbody tr.sub td:first-child { padding-left: 2.6rem; font-style: italic; color: var(--gris); font-size: .85rem; }
.nutri__note { font-size: .8rem; color: var(--gris); margin-top: 1rem; }

/* Tabla nutricional comparativa (los tres vinos). */
.nutri-compare { table-layout: fixed; }
.nutri-compare thead th:not(:first-child) {
  color: var(--burdeos);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .01em;
  text-transform: none;
}
.nutri-compare th:not(:first-child),
.nutri-compare td:not(:first-child) { width: 22%; }
.nutri-compare tbody td:not(:first-child) { font-size: .98rem; white-space: nowrap; }
/* En móvil permitimos scroll horizontal si no cabe. */
@media (max-width: 560px) {
  .nutri-compare { display: block; overflow-x: auto; white-space: nowrap; }
  .nutri-compare th, .nutri-compare td { padding: .65rem .9rem; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--burdeos-osc); color: var(--crema);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247,241,231,.14);
}
.footer__brand img { width: 150px; filter: brightness(0) invert(1); margin-bottom: 1rem; opacity:.92; }
.footer__brand p { font-size: .92rem; color: rgba(247,241,231,.7); max-width: 34ch; }
.footer h5 {
  font-family: var(--sans); font-weight: 400; font-size: .7rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--dorado); margin-bottom: 1.1rem;
}
.footer ul { list-style: none; display: grid; gap: .6rem; }
.footer a { font-size: .92rem; color: rgba(247,241,231,.78); transition: color .3s var(--ease); }
.footer a:hover { color: var(--dorado); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.6rem; font-size: .78rem; color: rgba(247,241,231,.55);
}

/* ---------- Reveal al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__media { animation: none; transform: none; }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 920px) {
  /* CLAVE: en móvil el panel lateral es position:fixed y debe cubrir
     toda la pantalla. `backdrop-filter` en .nav--solid crea un contexto
     de apilamiento que atrapa al panel dentro del nav (se ve recortado y
     no se puede cerrar). Lo quitamos en móvil; el blur solo importa en
     desktop. Mantenemos el fondo sólido para legibilidad. */
  .nav--solid { backdrop-filter: none; }

  /* El nav (y por tanto su panel lateral) debe quedar por ENCIMA del velo.
     El velo está en body::before en el contexto raíz; si el nav valiera
     menos, el velo cubriría el panel y bloquearía sus clics. */
  .nav { z-index: 950; }

  .nav__toggle { display: flex; }
  /* El botón hamburguesa debe quedar por encima del panel para poder
     cerrarlo (se transforma en X). */
  .nav__toggle { position: relative; z-index: 960; }

  /* Velo oscuro detrás del panel. Va en el body (no en .nav__links) para
     que NO quede por encima del fondo del panel y le dé un tinte gris.
     Se activa con la clase .menu-open que añade el JS al abrir. */
  body.menu-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(42, 36, 34, .45);
    z-index: 920; /* bajo el nav/panel (950), sobre el contenido */
    animation: veilIn .4s var(--ease) forwards;
  }
  @keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }

  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    width: min(82vw, 300px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: .35rem;
    background: #fffdf9; /* casi blanco, más claro que el crema general */
    /* Hueco superior para no chocar con el botón X de la esquina. */
    padding: 5.5rem 2rem 2.5rem;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    box-shadow: -20px 0 50px rgba(42, 36, 34, .25);
    overflow-y: auto;
    z-index: 940;
  }
  .nav__links.is-open { transform: translateX(0); }

  /* Cada item ocupa el ancho completo, con separadores sutiles. */
  .nav__links > li { width: 100%; }
  .nav__links a {
    color: var(--gris); font-size: .95rem;
    display: block; width: 100%;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(138, 107, 79, .16);
  }
  .nav--solid .nav__links a { color: var(--gris); }
  .nav__links a::after { content: none; } /* sin subrayado animado en móvil */
  .nav__links a.is-active { color: var(--burdeos); }

  /* Submenú "Vinos": el toggle hace de cabecera y debajo se indentan
     Tinto/Blanco/Rosado, siempre visibles dentro del panel. */
  .nav__drop { width: 100%; }
  .nav__drop-toggle { font-weight: 500; color: var(--burdeos) !important; }
  .nav__drop-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; padding: 0; min-width: 0;
    background: transparent;
    border-left: 2px solid rgba(176, 141, 79, .35);
    margin: .2rem 0 .2rem .25rem;
  }
  .nav__drop-menu a {
    padding: .7rem 0 .7rem 1.1rem;
    color: var(--gris) !important;
    border-bottom: none;
    font-size: .9rem;
  }
  .nav__drop-menu a:hover { background: transparent; color: var(--burdeos) !important; }

  .nav__toggle.is-open span { background: var(--burdeos); }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Bloquear el scroll del fondo mientras el panel está abierto. */
  body.menu-open { overflow: hidden; }

  .wines-grid { grid-template-columns: 1fr; }
  .capsules { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .wine-hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .wine-hero__photo { min-height: 380px; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .capsules { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .nutri th, .nutri td { padding: .7rem 1rem; }
}

/* ===========================================================
   Páginas legales (política de privacidad, aviso legal…)
   =========================================================== */
.legal { max-width: 800px; }
.legal h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--burdeos);
  margin: 2.8rem 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(176, 141, 79, .35);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--tinta);
  margin: 2rem 0 .7rem;
}
.legal p { color: var(--gris); margin-bottom: 1rem; }
.legal ul { color: var(--gris); margin: 0 0 1.2rem 1.2rem; display: grid; gap: .55rem; }
.legal li { padding-left: .3rem; }
.legal a { color: var(--burdeos); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--dorado); }
.legal strong { color: var(--tinta); font-weight: 500; }

/* Enlace de la política en el pie. */
.footer__bottom a { color: var(--dorado); }
.footer__bottom a:hover { color: var(--crema); }

/* ===========================================================
   Verificación de edad (age gate)
   Modal de bienvenida que pregunta si el visitante es mayor de
   edad. Se inyecta desde main.js solo en la primera visita.
   =========================================================== */
.age-gate {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(42, 36, 34, .82), rgba(42, 36, 34, .82)),
    url('../assets/photos/photo2.jpg') center/cover no-repeat;
  opacity: 0;
  animation: ageFade .5s var(--ease) forwards;
}
@keyframes ageFade { to { opacity: 1; } }

/* Bloquea el scroll del fondo mientras la modal está activa. */
body.age-locked { overflow: hidden; }

.age-gate__card {
  background: var(--crema);
  max-width: 460px; width: 100%;
  padding: clamp(2.2rem, 5vw, 3.2rem) clamp(1.6rem, 5vw, 2.8rem);
  text-align: center;
  border-radius: 3px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  border-top: 3px solid var(--dorado);
  transform: translateY(18px);
  animation: ageRise .6s var(--ease) .1s forwards;
}
@keyframes ageRise { to { transform: translateY(0); } }

.age-gate__logo {
  width: 130px; margin: 0 auto 1.4rem;
}
.age-gate__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--burdeos);
  margin-bottom: .4rem;
}
.age-gate__text {
  color: var(--gris);
  font-size: 1rem;
  max-width: 34ch; margin: 0 auto 1.8rem;
}
.age-gate__actions {
  display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap;
}
.age-gate__actions .btn { min-width: 130px; }

.age-gate__legal {
  margin-top: 1.8rem;
  font-size: .74rem; line-height: 1.5;
  color: var(--tierra);
  letter-spacing: .02em;
}

/* Estado "denegado": ocultamos las acciones y mostramos despedida. */
.age-gate__denied { display: none; }
.age-gate.is-denied .age-gate__prompt { display: none; }
.age-gate.is-denied .age-gate__denied { display: block; }
.age-gate.is-denied .age-gate__denied {
  animation: ageFade .4s var(--ease) forwards;
}
