/* ============================================================
   BODEGA ALTURA, hoja de estilos
   Paleta cinematográfica: negros profundos, ámbar y rubí
   ============================================================ */

:root {
  --negro: #0a0806;
  --negro-suave: #12100d;
  --carbon: #1a1713;
  --hueso: #ece5da;
  --hueso-70: rgba(236, 229, 218, 0.72);
  --hueso-50: rgba(236, 229, 218, 0.5);
  --ambar: #c89a5b;
  --ambar-claro: #e0b878;
  --rubi: #7e2432;
  --serif: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--negro);
  color: var(--hueso);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--hueso);
}

h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.55;
  color: var(--hueso);
}

/* etiquetas pequeñas en mayúsculas */
.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ambar);
  margin-bottom: 1.4rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ambar);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn--solid {
  background: var(--ambar);
  color: var(--negro);
}
.btn--solid:hover {
  background: var(--ambar-claro);
  border-color: var(--ambar-claro);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--hueso);
  border-color: var(--hueso-50);
}
.btn--ghost:hover {
  border-color: var(--hueso);
  background: rgba(236, 229, 218, 0.08);
}
.btn--lg { padding: 1.15rem 3.2rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3.5rem);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 8, 6, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-block: 0.85rem;
  box-shadow: 0 1px 0 rgba(236, 229, 218, 0.08);
}
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}
.nav__logo-mark {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--hueso-70);
}
.nav__logo-word {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  color: var(--hueso);
}
.nav__links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.8rem);
}
.nav__links a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hueso-70);
  padding-bottom: 0.3rem;
  position: relative;
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ambar);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--hueso); }
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,6,0.55) 0%, rgba(10,8,6,0.1) 35%, rgba(10,8,6,0.25) 62%, rgba(10,8,6,0.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin-inline: auto;
  padding-bottom: clamp(5rem, 12vh, 9rem);
}
.hero__title {
  font-size: clamp(3rem, 9vw, 7.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.45);
}
.hero__sub {
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--hueso-70);
  margin-bottom: 2.6rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 56px;
  overflow: hidden;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--ambar));
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   EL TERROIR
   ============================================================ */
.terroir { background: var(--negro); }

.terroir__band {
  position: relative;
  height: clamp(420px, 72vh, 700px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.terroir__band img {
  position: absolute;
  inset: -18% 0;
  width: 100%;
  height: 136%;
  object-fit: cover;
  will-change: transform;
}
.terroir__band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,0.72) 0%, rgba(10,8,6,0.12) 45%, rgba(10,8,6,0.85) 100%);
}
.terroir__band-caption {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.terroir__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 10vh, 8rem);
}
.terroir__copy p + p {
  margin-top: 1.6rem;
  color: var(--hueso-70);
}
.terroir__stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.4rem;
  border-left: 1px solid rgba(200, 154, 91, 0.28);
  padding-left: clamp(1.8rem, 4vw, 3.5rem);
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1;
  color: var(--ambar-claro);
  letter-spacing: -0.02em;
}
.stat__unit {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--hueso-50);
}

/* ============================================================
   LA COSECHA
   ============================================================ */
.cosecha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--negro-suave);
}
.cosecha__media {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}
.cosecha__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.cosecha__media:hover img { transform: scale(1.04); }
.cosecha__text {
  padding: clamp(3.5rem, 9vh, 7rem) clamp(1.8rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cosecha__text h2 { margin-bottom: 1.8rem; }
.cosecha__text p { color: var(--hueso-70); }
.cosecha__text p + p { margin-top: 1.4rem; }
.cosecha__quote {
  margin-top: 2.4rem !important;
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 154, 91, 0.28);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--hueso) !important;
}
.cosecha__quote span {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ambar);
}

/* ============================================================
   EL VINO
   ============================================================ */
.vino {
  background:
    radial-gradient(ellipse 70% 55% at 30% 42%, rgba(126, 36, 50, 0.16), transparent 70%),
    var(--negro);
  padding-block: clamp(4.5rem, 12vh, 9rem);
}
.vino__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.vino__media {
  position: relative;
}
.vino__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.vino__still {
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: 40%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(200, 154, 91, 0.35);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}
.vino__copy h2 { margin-bottom: 0.8rem; }
.vino__origen {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--hueso-50);
  margin-bottom: 1.8rem;
}
.vino__copy > p:not(.label):not(.vino__origen) {
  color: var(--hueso-70);
  margin-bottom: 2.2rem;
}
.vino__notas {
  list-style: none;
  border-top: 1px solid rgba(236, 229, 218, 0.12);
}
.vino__notas li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(236, 229, 218, 0.12);
  font-size: 0.95rem;
  color: var(--hueso-70);
}
.vino__notas strong {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ambar);
  padding-top: 0.25rem;
}
.vino__ficha {
  display: flex;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  margin-top: 2.2rem;
}
.vino__ficha div {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--hueso);
}
.vino__ficha span {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--hueso-50);
  margin-bottom: 0.3rem;
}

/* ============================================================
   EL RITUAL
   ============================================================ */
.ritual {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ritual__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ritual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,8,6,0.88) 0%, rgba(10,8,6,0.55) 48%, rgba(10,8,6,0.18) 100%);
}
.ritual__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(5rem, 14vh, 9rem);
}
.ritual__content h2 { margin-bottom: 1.8rem; max-width: 15em; }
.ritual__content p:not(.label) {
  max-width: 32rem;
  color: var(--hueso-70);
}

/* ============================================================
   BANDA VIÑEDO (cita)
   ============================================================ */
.banda {
  position: relative;
  height: clamp(380px, 62vh, 620px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.banda__img {
  position: absolute;
  inset: -16% 0;
  width: 100%;
  height: 132%;
  object-fit: cover;
  /* la franja izquierda de la imagen tiene defectos: recortamos hacia la derecha */
  object-position: right center;
  will-change: transform;
}
.banda__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,8,6,0.92) 0%, rgba(10,8,6,0.65) 42%, rgba(10,8,6,0.15) 100%);
}
.banda__caption {
  position: relative;
  z-index: 2;
}
.banda__quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 22em;
  letter-spacing: -0.01em;
}

/* ============================================================
   LA CAVA
   ============================================================ */
.cava {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.cava__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cava__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, rgba(10,8,6,0.42) 0%, rgba(10,8,6,0.9) 100%);
}
.cava__content {
  position: relative;
  z-index: 2;
  width: min(760px, 92%);
  padding-block: clamp(5rem, 14vh, 9rem);
}
.cava__content h2 { margin-bottom: 1.8rem; }
.cava__content p:not(.label):not(.cava__nota) {
  color: var(--hueso-70);
  margin-bottom: 2.8rem;
}
.cava__nota {
  margin-top: 2.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hueso-50);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--carbon);
  border-top: 1px solid rgba(236, 229, 218, 0.08);
  padding-top: clamp(3.5rem, 8vh, 6rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3.5rem;
}
.footer__logo {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--hueso-70);
}
.footer__logo em {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.9rem;
  letter-spacing: 0.1em;
  color: var(--hueso);
  display: block;
  margin-top: 0.2rem;
}
.footer__tag {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--hueso-50);
}
.footer__col .label { margin-bottom: 1rem; }
.footer__col p {
  font-size: 0.92rem;
  color: var(--hueso-70);
}
.footer__col a {
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer__col a:hover { color: var(--ambar-claro); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(236, 229, 218, 0.08);
  font-size: 0.74rem;
  color: var(--hueso-50);
}

/* ============================================================
   REVEALS (IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal[data-delay="5"] { transition-delay: 0.6s; }
.reveal[data-delay="6"] { transition-delay: 0.72s; }
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .terroir__body { grid-template-columns: 1fr; }
  .terroir__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(200, 154, 91, 0.28);
    padding-top: 2.4rem;
  }
  .cosecha { grid-template-columns: 1fr; }
  .cosecha__media { min-height: 60vw; }
  .vino__grid { grid-template-columns: 1fr; }
  .vino__media { margin-bottom: 3.5rem; }
  .vino__still { right: 4%; bottom: -14%; width: 32%; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 560px) {
  .nav__links a:not(:last-child) { display: none; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .vino__ficha { flex-wrap: wrap; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__scroll { display: none; }
  .cosecha__media img { transition: none; }
  .terroir__band img,
  .banda__img {
    inset: 0;
    height: 100%;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
