/* ===== Variables ===== */
:root {
  --bg: #0a0a0a;
  --cream: #e4e0d8;
  --cream-80: rgba(228, 224, 216, 0.8);
  --cream-70: rgba(228, 224, 216, 0.7);
  --cream-60: rgba(228, 224, 216, 0.6);
  --gold: #d4af37;
  --gold-dark: #b8860b;
  --gold-light: gold;
  --gold-20: rgba(212, 175, 55, 0.2);
  --gold-30: rgba(212, 175, 55, 0.3);
  --dark-purple: #231b32;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: min(1280px, 100% - 3rem);
  --header-h: 80px;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold); }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: var(--container); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.header--scrolled {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: var(--gold-20);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  min-height: var(--header-h);
}
.logo { display: inline-block; transition: transform 0.2s ease; }
.logo:hover { transform: scale(1.05); }
.logo-img { height: 4rem; width: auto; }

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
  font-weight: 500;
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a:hover { color: var(--gold); }
.icon-link { display: flex; align-items: center; transition: transform 0.2s ease; }
.icon-link:hover { transform: scale(1.1); color: var(--gold); }
.icon-link svg { width: 1.25rem; height: 1.25rem; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* Mobile menu open state */
.nav.open .nav-links {
  display: flex;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  gap: 1.5rem;
  font-size: 1.25rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: scale(1.05); }
.btn-primary {
  background: var(--gold);
  color: #000;
}
.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #000;
}
.btn-full { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
}
.stars {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--gold);
  animation: twinkle 3s ease-in-out infinite;
}
.star:nth-child(1) { left: 12%; top: 20%; animation-duration: 3.2s; animation-delay: 0.2s; }
.star:nth-child(2) { left: 28%; top: 40%; animation-duration: 2.6s; animation-delay: 0.8s; }
.star:nth-child(3) { left: 45%; top: 18%; animation-duration: 3.6s; animation-delay: 0.5s; }
.star:nth-child(4) { left: 62%; top: 32%; animation-duration: 2.8s; animation-delay: 1.1s; }
.star:nth-child(5) { left: 78%; top: 15%; animation-duration: 3.4s; animation-delay: 0.7s; }
.star:nth-child(6) { left: 88%; top: 55%; animation-duration: 2.9s; animation-delay: 1.4s; }
.star:nth-child(7) { left: 35%; top: 65%; animation-duration: 3.1s; animation-delay: 1.0s; }
.star:nth-child(8) { left: 70%; top: 75%; animation-duration: 3.8s; animation-delay: 0.3s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.6); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 0 4rem;
}
.hero-logo {
  height: 8rem;
  width: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.5));
}
@media (min-width: 768px) {
  .hero-logo { height: 12rem; }
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--cream);
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}
.hero-title-gold {
  display: block;
  margin-top: 0.5rem;
  color: var(--gold);
  animation: shimmer 3s ease-in-out infinite;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--cream-80);
  font-weight: 300;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}
@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.5rem; }
}
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.hero-divider::before {
  content: '';
  width: 4rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.hero-divider::after {
  content: '';
  width: 4rem;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--gold));
}
.hero-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--gold);
  font-size: 2rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Section common ===== */
.section {
  position: relative;
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}
@media (min-width: 768px) {
  .section-title { font-size: 3.75rem; }
}
.section-subtitle {
  font-size: 1.25rem;
  color: var(--cream-80);
  margin: 0 0 1rem;
}
.section-line {
  width: 6rem;
  height: 1px;
  background: var(--gold-30);
  margin: 0 auto;
}
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
  padding: 3rem 0 0;
}
.section-divider::before,
.section-divider::after {
  content: '';
  width: 6rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.section-divider::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

/* ===== Historia ===== */
.historia {
  background: linear-gradient(to bottom, #000, var(--dark-purple), #000);
}
.historia-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.historia .container { position: relative; z-index: 1; }
.historia-intro {
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .historia-intro { font-size: 1.875rem; }
}
.historia-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .historia-grid { grid-template-columns: 1fr 1fr; }
}
.historia-block {
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, var(--gold), transparent) 1;
}
.historia-block p {
  font-size: 1.125rem;
  color: var(--cream-80);
  line-height: 1.7;
  margin: 0;
}
.historia-quote {
  margin: 3rem 0;
  padding: 2rem 1.5rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--gold-30);
  position: relative;
}
.historia-quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--gold);
  color: #000;
  font-family: var(--font-serif);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
}
.historia-quote p {
  font-size: 1.25rem;
  font-style: italic;
  text-align: center;
  margin: 0;
  padding-top: 1rem;
}
@media (min-width: 768px) {
  .historia-quote p { font-size: 1.5rem; }
}
.historia-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .historia-values { grid-template-columns: repeat(4, 1fr); }
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.value-item:hover { transform: scale(1.1); }
.value-icon {
  font-size: 1.5rem;
  color: var(--gold);
}

/* ===== Vinos ===== */
.vinos {
  background: linear-gradient(to bottom, #000, rgba(35,27,50,0.5), #000);
}
.vinos-grid {
  display: grid;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto 3rem;
}
@media (min-width: 768px) {
  .vinos-grid { grid-template-columns: repeat(3, 1fr); }
}
.vino-card {
  background: rgba(0,0,0,0.6);
  border: 2px solid var(--gold-20);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.vino-card:hover {
  transform: scale(1.03);
  border-color: rgba(212,175,55,0.6);
  box-shadow: 0 25px 50px rgba(212,175,55,0.15);
}
.vino-image {
  position: relative;
  height: 16rem;
  overflow: hidden;
}
.vino-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.vino-card:hover .vino-image img { transform: scale(1.08); }
.vino-year {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
}
.vino-body {
  padding: 1.5rem;
}
.vino-body h3 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--gold);
  margin: 0 0 0.25rem;
  letter-spacing: 0.05em;
}
.vino-type {
  font-size: 0.875rem;
  color: var(--cream-70);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}
.vino-desc {
  color: var(--cream-80);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.vino-meta {
  font-size: 0.875rem;
  color: var(--cream-70);
  margin: 0;
}
.vinos-footer {
  text-align: center;
  font-size: 1.25rem;
  color: var(--cream-80);
  max-width: 42rem;
  margin: 0 auto;
}

/* ===== Contacto ===== */
.contacto {
  background: linear-gradient(to bottom, #000, var(--dark-purple), #000);
}
.contacto-grid {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contacto-grid { grid-template-columns: 1fr 1fr; }
}
.contacto-info h3 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--gold);
  margin: 0 0 1rem;
}
.contacto-info > p {
  color: var(--cream-80);
  margin-bottom: 2rem;
}
.contacto-item {
  margin-bottom: 1rem;
}
.contacto-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cream-70);
  margin-bottom: 0.25rem;
}
.contacto-item a {
  font-size: 1.125rem;
}
.contacto-quote {
  margin-top: 2rem;
  padding: 1rem 0 0 1rem;
  border-left: 4px solid var(--gold);
  font-style: italic;
  color: var(--cream-80);
}
.contacto-form-wrap {
  background: rgba(0,0,0,0.6);
  border: 2px solid var(--gold-20);
  padding: 2rem;
}
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contacto-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold);
}
.contacto-form input,
.contacto-form textarea {
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--gold-30);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: var(--cream-60);
}
.contacto-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== Footer ===== */
.footer {
  background: #000;
  border-top: 1px solid var(--gold-20);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.footer-logo {
  height: 5rem;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--cream-70);
  max-width: 18rem;
  line-height: 1.6;
  margin: 0;
}
.footer-nav h3,
.footer-contact h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a,
.footer-contact a {
  font-size: 0.875rem;
  color: var(--cream-70);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--gold-20);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--cream-60);
}
.footer-brindis {
  text-align: center;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--gold-80, rgba(212,175,55,0.8));
  margin: 2rem 0 0;
}
