/* Vinos Aranjuez — premium winery aesthetic */
:root {
  --burgundy-deep: #1e0f12;
  --burgundy: #3d1f28;
  --wine: #6b2d3c;
  --cream: #f4efe6;
  --cream-muted: #e8e0d4;
  --gold: #b8956b;
  --gold-light: #d4bc96;
  --charcoal: #2a2224;
  --text: #1a1416;
  --text-muted: #5c4f52;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lang-en [data-lang="es"],
html.lang-es [data-lang="en"] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.serif { font-family: var(--serif); }
.label {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 15, 18, 0.97);
  backdrop-filter: blur(8px);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.age-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.age-gate__panel {
  text-align: center;
  padding: 3rem 2.5rem;
  max-width: 420px;
}
.age-gate__logo {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.age-gate__text {
  color: var(--cream-muted);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}
.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.35s var(--ease);
}
.btn--primary {
  background: var(--gold);
  color: var(--burgundy-deep);
}
.btn--primary:hover { background: var(--gold-light); }
.btn--ghost {
  border: 1px solid rgba(244, 239, 230, 0.35);
  color: var(--cream-muted);
}
.btn--ghost:hover { border-color: var(--cream); color: var(--cream); }
.btn--outline-dark {
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
}
.btn--outline-dark:hover {
  background: var(--burgundy);
  color: var(--cream);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s;
}
.header--solid {
  background: rgba(244, 239, 230, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(30, 15, 18, 0.06);
}
.header--dark .nav-link { color: var(--cream); }
.header--dark .lang-toggle { color: var(--cream); border-color: rgba(244,239,230,0.4); }
.header--dark .menu-btn span { background: var(--cream); }
.header__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.header--dark .logo { color: var(--cream); }
.header--solid .logo { color: var(--burgundy-deep); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
}
.nav-link {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--burgundy-deep);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang-toggle {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(30, 15, 18, 0.25);
  color: var(--burgundy-deep);
  transition: all 0.3s;
}
.lang-toggle:hover { border-color: var(--burgundy); }

.menu-btn {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.menu-btn span {
  display: block;
  height: 1px;
  background: var(--burgundy-deep);
  transition: transform 0.3s;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--burgundy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav .nav-link {
  color: var(--cream);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero:hover .hero__bg { transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 15, 18, 0.85) 0%,
    rgba(30, 15, 18, 0.35) 45%,
    rgba(30, 15, 18, 0.2) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 4rem) clamp(1.25rem, 4vw, 3rem) 5rem;
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  max-width: 14ch;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}
.hero__sub {
  color: var(--cream-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.4; transform: scaleX(0.6); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}
.section--dark {
  background: var(--burgundy-deep);
  color: var(--cream);
}
.section--wine {
  background: var(--burgundy);
  color: var(--cream);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.container--wide { max-width: 1400px; margin: 0 auto; }

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center { text-align: center; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0.5rem 0 0;
  letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--gold); }
.section--dark .section-title em,
.section--wine .section-title em { color: var(--gold-light); }

/* Quote block */
.quote-block {
  text-align: center;
  padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--cream);
}
.quote-block__text {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.35;
  color: var(--burgundy-deep);
  max-width: 28ch;
  margin: 0 auto 2rem;
  font-weight: 400;
}
.quote-block__text strong { font-weight: 600; color: var(--wine); }
.quote-block__author {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.quote-block__author span { display: block; font-style: italic; margin-top: 0.25rem; }

/* Pillars */
.pillars {
  display: grid;
  gap: 1px;
  background: rgba(244, 239, 230, 0.1);
}
@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(4, 1fr); }
}
.pillar {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.pillar__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,15,18,0.9) 0%, transparent 60%);
  transition: background 0.5s;
}
.pillar:hover .pillar__overlay {
  background: linear-gradient(to top, rgba(30,15,18,0.95) 0%, rgba(30,15,18,0.3) 100%);
}
.pillar__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  width: 100%;
}
.pillar__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--cream);
  margin: 0 0 0.5rem;
}
.pillar__link {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease);
}
.pillar:hover .pillar__link { opacity: 1; transform: translateY(0); }

/* Split narrative */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split--reverse .split__media { order: 2; }
}
.split__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 149, 107, 0.3);
  margin: 1.25rem;
  pointer-events: none;
}
.split__body p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.split__body p:last-child { margin-bottom: 0; }
.section--dark .split__body p { color: var(--cream-muted); }

/* Wines grid */
.wines-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.wines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem 2rem;
}
.wine-card {
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s, transform 0.4s;
}
.wine-card.hidden { display: none; }
.wine-card__img-wrap {
  position: relative;
  height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, transparent 60%, rgba(30,15,18,0.04) 100%);
}
.wine-card__img-wrap img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(30,15,18,0.15));
  transition: transform 0.5s var(--ease);
}
.wine-card:hover .wine-card__img-wrap img { transform: translateY(-12px); }
.wine-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--burgundy-deep);
  padding: 0.35rem 0.65rem;
}
.wine-card__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  color: var(--burgundy-deep);
}
.wine-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.wine-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28ch;
  margin: 0 auto;
}

/* Featured wine hero */
.featured-wine {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(244,239,230,0.12);
  margin-top: 3rem;
}
@media (min-width: 900px) {
  .featured-wine { grid-template-columns: 1fr 1.2fr; padding: 5rem 0; }
}
.featured-wine__bottle {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}
.featured-wine__bottle img {
  max-height: 520px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));
}
.featured-wine__medal {
  max-width: 180px;
  margin-bottom: 1.5rem;
}
.featured-wine h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
  font-weight: 400;
}
.featured-wine p { color: var(--cream-muted); margin: 0 0 1rem; }

/* Timeline */
.timeline-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.timeline {
  display: flex;
  gap: 0;
  min-width: max-content;
  padding: 2rem 0;
}
.timeline__item {
  flex: 0 0 220px;
  padding: 0 1.5rem;
  border-left: 1px solid rgba(184, 149, 107, 0.35);
  cursor: pointer;
  transition: opacity 0.3s;
}
.timeline__item:first-child { border-left: none; }
.timeline__year {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.timeline__item.active .timeline__year,
.timeline__item:hover .timeline__year { color: var(--cream); }
.timeline__title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 0.25rem;
}
.timeline-detail {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(244,239,230,0.1);
}
@media (min-width: 768px) {
  .timeline-detail { grid-template-columns: 1fr 1.2fr; align-items: start; }
}
.timeline-detail__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}
.timeline-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.timeline-detail h4 {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin: 0 0 1rem;
  font-weight: 400;
}
.timeline-detail p { color: var(--cream-muted); margin: 0; }

/* Tourism */
.tourism-cards {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .tourism-cards { grid-template-columns: 1fr 1fr; }
}
.tourism-card {
  background: var(--cream);
  color: var(--text);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.tourism-card--featured {
  background: var(--burgundy-deep);
  color: var(--cream);
}
.tourism-card--featured .tourism-card__price,
.tourism-card--featured li { color: var(--cream-muted); }
.tourism-card__tier {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.tourism-card h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 0.5rem;
  font-weight: 400;
}
.tourism-card__duration {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.tourism-card--featured .tourism-card__duration { color: var(--cream-muted); }
.tourism-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}
.tourism-card li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(30,15,18,0.06);
  padding-left: 1rem;
  position: relative;
}
.tourism-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.tourism-card__price {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--burgundy);
}
.tourism-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .tourism-gallery { grid-template-columns: repeat(4, 1fr); }
}
.tourism-gallery a {
  aspect-ratio: 1;
  overflow: hidden;
}
.tourism-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tourism-gallery a:hover img { transform: scale(1.06); }

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}
.contact-card {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(30,15,18,0.12);
}
.contact-card h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  font-weight: 500;
}
.contact-card p,
.contact-card a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: block;
}
.contact-card a:hover { color: var(--wine); }

.contact-cta {
  margin-top: 3rem;
  padding: 3rem;
  background: var(--burgundy-deep);
  color: var(--cream);
  text-align: center;
}
.contact-cta h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 1rem;
  font-weight: 400;
}
.contact-cta p { color: var(--cream-muted); margin-bottom: 1.5rem; }

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--cream-muted);
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 2rem;
}
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer .logo { color: var(--cream); margin-bottom: 0.5rem; }
.footer__legal {
  font-size: 0.75rem;
  opacity: 0.6;
  max-width: 32rem;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer__nav a {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.footer__nav a:hover { color: var(--gold); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Experience strip (Heitz-style) */
.experience-strip {
  display: grid;
  gap: 1px;
  background: rgba(30,15,18,0.08);
}
@media (min-width: 900px) {
  .experience-strip { grid-template-columns: repeat(3, 1fr); }
}
.experience-item {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  background-size: cover;
  background-position: center;
}
.experience-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,15,18,0.88), transparent 55%);
}
.experience-item > * { position: relative; z-index: 1; }
.experience-item h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--cream);
  margin: 0 0 0.75rem;
  font-weight: 400;
}
.experience-item p {
  color: var(--cream-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  max-width: 28ch;
}
.experience-item .btn--ghost {
  align-self: flex-start;
  font-size: 0.625rem;
}