/* La Barra del Bosque — estilos */

:root {
  --bg: #0E0F0C;
  --bg-2: #15160F;
  --wood: #2A1E14;
  --pine: #1F2B1F;
  --gold: #C9A46A;
  --gold-soft: #e0c493;
  --cream: #EDE6D8;
  --muted: #a69e8f;
  --line: rgba(201, 164, 106, .22);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 300 1rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grano de película */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 em, h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
p { margin: 0 0 1.2em; color: rgba(237, 230, 216, .82); }

.container { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; }

.eyebrow {
  font: 500 .72rem/1 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.9rem;
  background: var(--gold);
  color: var(--bg);
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: transparent; color: var(--gold); }
.btn svg { width: 22px; height: 22px; }
.btn--small { padding: .7rem 1.2rem; font-size: .7rem; }
.btn--large { padding: 1.3rem 2.4rem; font-size: .85rem; letter-spacing: .12em; }

.link-arrow {
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Navegación */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 15, 12, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-block: .9rem;
  border-color: var(--line);
}
.nav__logo { display: inline-flex; text-decoration: none; }
.nav__logo img { height: 64px; width: auto; transition: height .5s var(--ease); }
.nav.is-scrolled .nav__logo img { height: 48px; }
.footer__logo img { height: 90px; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  font: 400 .78rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(237, 230, 216, .8);
  transition: color .3s;
}
.nav__links a:not(.btn):hover { color: var(--gold); }
.nav__toggle { display: none; }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.hero__media { position: relative; overflow: hidden; order: 2; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  animation: slowZoom 18s var(--ease) forwards;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(14, 15, 12, 0) 35%);
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--gutter) 5rem;
  position: relative;
  z-index: 1;
}
.hero__title { font-size: clamp(2.8rem, 6.4vw, 5.6rem); font-weight: 500; margin-bottom: 1.6rem; }
.hero__title em { display: inline-block; margin-top: .1em; }
.hero__lead { font-size: 1.08rem; max-width: 30rem; margin-bottom: 2.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.2rem; }
.hero__note {
  margin: 3.5rem 0 0;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(201, 164, 106, .7);
  animation: flicker 3s ease-in-out infinite;
}

@keyframes slowZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .55; } 60% { opacity: .9; } }

/* El lugar */
.lugar { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.lugar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.lugar__img { margin: 0; position: relative; }
.lugar__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.lugar__img::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--line);
  z-index: -1;
}
.facts { list-style: none; padding: 2rem 0 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--line); }
.facts strong { display: block; font: 500 1.6rem/1.1 var(--serif); color: var(--gold); }
.facts span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

/* Cita */
.quote {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6rem var(--gutter);
  text-align: center;
}
.quote__bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(14, 15, 12, .45), rgba(14, 15, 12, .9)),
              linear-gradient(180deg, var(--bg-2), transparent 25%, transparent 75%, var(--bg));
}
.quote__text { position: relative; z-index: 1; margin: 0; max-width: 56rem; }
.quote__text p {
  font: italic 400 clamp(1.9rem, 4.4vw, 3.6rem)/1.25 var(--serif);
  color: var(--cream);
  margin: 0;
}

/* Cabeceras de sección */
.section__head { max-width: 40rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .eyebrow::after { content: ""; width: 32px; height: 1px; background: var(--gold); }

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: dense; /* la cantidad de fotos cambia desde el panel: sin huecos */
  gap: 1.2rem;
}
.gallery__item { margin: 0; position: relative; overflow: hidden; background: var(--wood); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform 1.4s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--tall img { aspect-ratio: auto; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { aspect-ratio: 2/1; object-position: 50% 55%; }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1.4rem 1.2rem;
  font: italic 400 1.2rem/1.2 var(--serif);
  background: linear-gradient(transparent, rgba(14, 15, 12, .85));
}

/* Carta */
.menu {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.menu h3 { font-size: 2rem; color: var(--gold); margin-bottom: 1.4rem; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { padding: 1rem 0; border-bottom: 1px dashed rgba(201, 164, 106, .16); }
.menu li span { display: block; font: 500 1.3rem/1.3 var(--serif); }
.menu li small { color: var(--muted); font-size: .88rem; }
.menu__by { font-size: .85rem; color: var(--muted); margin-top: -.8rem; }
.menu__by a { color: var(--gold); text-decoration: none; }
.menu__note { margin-top: 2rem; font: italic 1.1rem/1.5 var(--serif); color: var(--muted); }
.menu__cta { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }

/* La barra */
.barra { background: linear-gradient(180deg, var(--bg) 0%, var(--wood) 140%); }
.barra__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.barra__img { margin: 0; }
.barra__img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.wineries {
  list-style: none;
  margin: 2.4rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.wineries li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font: 500 1.35rem/1.2 var(--serif);
}
.wineries li:nth-child(odd) { padding-right: 1rem; }
.wineries small { font: 400 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-left: .4rem; }
.promo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 1.5rem;
  background: rgba(201, 164, 106, .08);
  border: 1px solid var(--line);
}
.promo p { margin: 0; }
.promo strong { color: var(--cream); font-weight: 500; }
.promo__tag {
  flex: none;
  font: 600 .66rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: .5rem .7rem;
}

/* Experiencias */
.experiencias { background: var(--pine); position: relative; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--pine);
  padding: clamp(2rem, 4vw, 3rem);
  transition: background .5s var(--ease);
}
.card:hover { background: #253325; }
.card__num { font: italic 400 1rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: 2.2rem; }
.card h3 { font-size: 1.75rem; margin-bottom: .8rem; }
.card p { margin: 0; font-size: .95rem; }

/* Visitanos */
.visitanos__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(3rem, 7vw, 7rem); align-items: stretch; }
.hours { margin: 2rem 0 1rem; }
.hours div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.hours dt { font: 500 1.2rem/1.3 var(--serif); color: var(--gold); }
.hours dd { margin: 0; font-size: .95rem; }
.hours small { color: var(--muted); }
.hours__note { font-size: .85rem; color: var(--muted); }
.address { font-style: normal; margin: 2rem 0 1.2rem; line-height: 1.7; }
.address strong { font: 500 1.3rem/1.4 var(--serif); }
.map { min-height: 420px; border: 1px solid var(--line); overflow: hidden; }
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: grayscale(1) invert(.92) sepia(.25) contrast(.9);
}

/* Reservas */
.reservas {
  position: relative;
  padding: clamp(120px, 18vw, 220px) var(--gutter);
  text-align: center;
  overflow: hidden;
}
.reservas__bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; will-change: transform; }
.reservas::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(14, 15, 12, .78) 30%, rgba(14, 15, 12, .78) 70%, var(--bg) 100%);
}
.reservas__content { position: relative; z-index: 1; max-width: 44rem; margin: 0 auto; }
.reservas .eyebrow { justify-content: center; }
.reservas h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.reservas p { margin-bottom: 2.6rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 4.5rem 0 2rem; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer h4 { font: 500 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: .4rem 0 1rem; }
.footer p { font-size: .92rem; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--gold); }
.footer__tag { margin-top: .8rem; color: var(--muted); }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(201, 164, 106, .1); font-size: .75rem; color: var(--muted); letter-spacing: .06em; }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 0 rgba(201, 164, 106, .5);
  animation: pulse 3.5s ease-out infinite;
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 0 rgba(201, 164, 106, .45); }
  70%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 18px rgba(201, 164, 106, 0); }
}

/* Animaciones de entrada */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 1.4rem; }
}

@media (max-width: 900px) {
  .nav__toggle {
    display: grid;
    gap: 7px;
    background: none;
    border: 0;
    padding: 10px;
    margin-right: -10px;
    cursor: pointer;
    z-index: 2;
  }
  .nav__toggle span { width: 26px; height: 1px; background: var(--cream); transition: transform .4s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  /* backdrop-filter crea un contenedor para fixed: se quita con el menú abierto */
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links a:not(.btn) { font: 400 2rem/1 var(--serif); letter-spacing: .02em; text-transform: none; }
  .nav__logo { z-index: 2; }
  .nav__logo img { height: 52px; }
  .nav.is-scrolled .nav__logo img { height: 42px; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { order: 0; position: absolute; inset: 0; }
  .hero__media::after { background: linear-gradient(180deg, rgba(14, 15, 12, .35) 0%, rgba(14, 15, 12, .55) 45%, var(--bg) 100%); }
  .hero__content { min-height: 100svh; justify-content: flex-end; padding-bottom: 4rem; }

  .lugar__grid, .barra__grid, .visitanos__grid, .menu { grid-template-columns: 1fr; }
  .lugar__img::before { inset: 1rem -.6rem -1rem .6rem; }
  .barra__img img { aspect-ratio: 4/5; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item--tall { grid-row: auto; grid-column: span 2; }
  .gallery__item--tall img { aspect-ratio: 4/3; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts strong { font-size: 1.25rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--tall, .gallery__item--wide { grid-column: auto; }
  .gallery__item--wide img { aspect-ratio: 1; }
  .wineries { grid-template-columns: 1fr; }
  .hours div { grid-template-columns: 1fr; gap: .3rem; }
  .promo { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .btn--large { padding: 1.1rem 1.4rem; font-size: .78rem; }
}
