:root {
  --bordeaux: #4a0e1f;
  --bordeaux-deep: #2d0813;
  --bordeaux-soft: #6b1a2d;
  --cream: #f4ede0;
  --cream-warm: #ebe0cc;
  --bone: #faf6ef;
  --gold: #b08d57;
  --gold-soft: #c9a870;
  --ink: #1a0f0a;
  --ink-soft: #3d2818;
  --shadow: rgba(45, 8, 19, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* ---------- FLASH ---------- */
.flash {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 1rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border: 1px solid;
  max-width: 500px;
  text-align: center;
}
.flash--notice {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--bordeaux-deep);
}
.flash--alert {
  background: #fff0f0;
  border-color: var(--bordeaux);
  color: var(--bordeaux-deep);
}

/* ---------- NAVEGACIÓN ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(176, 141, 87, 0.15);
  transition: padding 0.3s ease;
}
nav.scrolled { padding: 1rem 3rem; }

.nav-logo {
  font-family: 'Marcellus', serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--bordeaux-deep);
  text-transform: uppercase;
}
.nav-logo span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--bordeaux); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bordeaux-deep);
  font-size: 1.5rem;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 8rem 5rem 4rem;
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(74, 14, 31, 0.06), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(176, 141, 87, 0.08), transparent 60%),
    var(--bone);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.05 0 0 0 0 0.03 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; opacity: 0; animation: fadeUp 1.2s ease 0.3s forwards; }
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: 'Marcellus', serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.95;
  color: var(--bordeaux-deep);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--bordeaux-soft);
}
.hero-tagline {
  font-size: 1.35rem;
  color: var(--ink-soft);
  margin-bottom: 3rem;
  max-width: 480px;
  font-weight: 400;
  font-style: italic;
}
.hero-cta { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }

/* ---------- BOTONES ---------- */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 2.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-weight: 500;
}
.btn-primary { background: var(--bordeaux-deep); color: var(--cream); border: 1px solid var(--bordeaux-deep); }
.btn-primary:hover { background: var(--bordeaux); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(45, 8, 19, 0.25); }
.btn-ghost { background: transparent; color: var(--bordeaux-deep); border: 1px solid var(--bordeaux-deep); }
.btn-ghost:hover { background: var(--bordeaux-deep); color: var(--cream); }

/* ---------- BOTELLA ---------- */
.hero-visual {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
  height: 70vh;
  opacity: 0; animation: fadeIn 1.5s ease 0.6s forwards;
}
.bottle-stage { position: relative; width: 100%; max-width: 360px; aspect-ratio: 0.45; }
.bottle-stage svg { width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(45, 8, 19, 0.4)); }
.bottle-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(ellipse at center, rgba(176, 141, 87, 0.18), transparent 60%);
  z-index: -1;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ---------- HISTORIA ---------- */
.historia {
  padding: 10rem 3rem;
  background: var(--bordeaux-deep);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.historia::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.historia-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 6rem; align-items: start;
  position: relative; z-index: 1;
}
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.4em;
  color: var(--gold-soft); text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold-soft); }
.historia h2 {
  font-family: 'Marcellus', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05; color: var(--cream);
  font-weight: 400; letter-spacing: -0.01em;
}
.historia h2 em {
  font-style: italic; color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
}
.historia-text p {
  font-size: 1.2rem; line-height: 1.85;
  margin-bottom: 1.5rem; color: var(--cream-warm); font-weight: 400;
}
.historia-text p:first-letter {
  font-family: 'Marcellus', serif; font-size: 3.5rem;
  float: left; line-height: 1; margin: 0.1em 0.1em 0 0;
  color: var(--gold-soft);
}
.historia-text .signature {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.05rem; color: var(--gold-soft);
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(201, 168, 112, 0.3);
}

/* ---------- FICHA TÉCNICA ---------- */
.ficha { padding: 10rem 3rem; background: var(--cream); position: relative; }
.ficha-inner { max-width: 1200px; margin: 0 auto; }
.ficha-header { text-align: center; margin-bottom: 5rem; }
.ficha-header .section-eyebrow { justify-content: center; color: var(--gold); }
.ficha-header .section-eyebrow::before { background: var(--gold); }
.ficha-header .section-eyebrow::after { content: ''; width: 40px; height: 1px; background: var(--gold); }
.ficha-header h2 {
  font-family: 'Marcellus', serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: var(--bordeaux-deep); font-weight: 400; line-height: 1.1;
}
.ficha-header h2 em {
  font-style: italic; color: var(--bordeaux-soft);
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
}
.ficha-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(176, 141, 87, 0.3);
  border-left: 1px solid rgba(176, 141, 87, 0.3);
}
.ficha-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(176, 141, 87, 0.3);
  border-bottom: 1px solid rgba(176, 141, 87, 0.3);
  transition: background 0.3s ease;
}
.ficha-item:hover { background: rgba(176, 141, 87, 0.05); }
.ficha-label {
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.3em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1rem;
}
.ficha-value { font-family: 'Marcellus', serif; font-size: 1.5rem; color: var(--bordeaux-deep); line-height: 1.3; }
.ficha-detail { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem; color: var(--ink-soft); margin-top: 0.5rem; }
.notas {
  margin-top: 6rem;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem; padding: 4rem;
  background: var(--bone);
  border: 1px solid rgba(176, 141, 87, 0.25);
}
.nota-cata h3 {
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.nota-cata p {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  line-height: 1.7; color: var(--ink-soft); font-style: italic;
}

/* ---------- COMPRA ---------- */
.compra {
  padding: 10rem 3rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  position: relative;
}
.compra-inner {
  max-width: 900px; margin: 0 auto;
  background: var(--bone);
  padding: 5rem 4rem;
  box-shadow: 0 30px 80px rgba(45, 8, 19, 0.08);
  position: relative;
}
.compra-inner::before {
  content: '';
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft));
}
.compra-header { text-align: center; margin-bottom: 3rem; }
.compra-header h2 {
  font-family: 'Marcellus', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bordeaux-deep); margin-bottom: 1rem; font-weight: 400;
}
.compra-header p { font-size: 1.15rem; color: var(--ink-soft); font-style: italic; }
.precio-box {
  text-align: center; padding: 3rem 0;
  border-top: 1px solid rgba(176, 141, 87, 0.3);
  border-bottom: 1px solid rgba(176, 141, 87, 0.3);
  margin-bottom: 3rem;
}
.precio-label {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.3em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1rem;
}
.precio-amount {
  font-family: 'Marcellus', serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--bordeaux-deep); line-height: 1; margin-bottom: 0.5rem;
}
.precio-amount .currency {
  font-size: 0.5em; color: var(--gold);
  vertical-align: top; margin-right: 0.3rem;
}
.precio-detail { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- FORM COMPRA ---------- */
.form-field { margin-bottom: 1.5rem; }
.form-field label {
  display: block;
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(176, 141, 87, 0.4);
  background: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
  outline: none;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--gold); }
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field .field_with_errors input,
.form-field .field_with_errors textarea { border-color: var(--bordeaux); }
.form-errors {
  background: #fff0f0;
  border: 1px solid var(--bordeaux);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--bordeaux-deep);
}
.form-errors ul { padding-left: 1.2rem; }
.form-errors li { margin-bottom: 0.3rem; }

.cantidad-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; padding: 0 1rem;
}
.cantidad-row label {
  font-family: 'Inter', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 0;
}
.cantidad-control {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid rgba(176, 141, 87, 0.4);
}
.cantidad-control button {
  background: none; border: none;
  width: 44px; height: 44px;
  font-size: 1.2rem; color: var(--bordeaux-deep);
  cursor: pointer; transition: background 0.2s ease;
  font-family: 'Marcellus', serif;
}
.cantidad-control button:hover { background: rgba(176, 141, 87, 0.1); }
.cantidad-control input {
  width: 50px; text-align: center; border: none;
  font-family: 'Marcellus', serif; font-size: 1.2rem;
  color: var(--bordeaux-deep); background: transparent;
}
.cantidad-control input:focus { outline: none; }

.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.5rem 1rem; margin-bottom: 2.5rem;
  background: rgba(176, 141, 87, 0.06);
}
.total-label {
  font-family: 'Inter', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.total-amount { font-family: 'Marcellus', serif; font-size: 2rem; color: var(--bordeaux-deep); }

.compra-btn {
  width: 100%; padding: 1.4rem;
  font-size: 0.85rem;
  background: var(--bordeaux-deep); color: var(--cream);
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.25em; text-transform: uppercase;
  transition: all 0.4s ease; font-weight: 500;
}
.compra-btn:hover { background: var(--bordeaux); letter-spacing: 0.3em; }

.compra-disclaimer {
  text-align: center; margin-top: 2rem;
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  color: var(--ink-soft); line-height: 1.7; letter-spacing: 0.05em;
}
.compra-disclaimer strong { color: var(--bordeaux); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--bordeaux-deep);
  color: var(--cream-warm);
  padding: 5rem 3rem 2rem;
  position: relative;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem; margin-bottom: 4rem;
}
.footer-brand h3 {
  font-family: 'Marcellus', serif; font-size: 1.8rem;
  color: var(--cream); margin-bottom: 1rem; font-weight: 400; letter-spacing: 0.05em;
}
.footer-brand p { font-style: italic; color: var(--cream-warm); line-height: 1.7; max-width: 380px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.5rem; font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 300; }
.footer-col a { color: var(--cream-warm); text-decoration: none; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 168, 112, 0.2);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  color: rgba(244, 237, 224, 0.6); letter-spacing: 0.05em;
}

/* ---------- ANIMACIONES ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 80%; height: 100vh;
    background: var(--bordeaux-deep);
    flex-direction: column; justify-content: center;
    align-items: center; gap: 2.5rem;
    transition: right 0.4s ease;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--cream); font-size: 0.9rem; }
  .nav-toggle { display: block; z-index: 101; }
  .hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-eyebrow::before { display: none; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { height: 50vh; margin-top: 2rem; }
  .bottle-stage { max-width: 200px; }
  .historia { padding: 5rem 1.5rem; }
  .historia-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .ficha { padding: 5rem 1.5rem; }
  .ficha-grid { grid-template-columns: 1fr 1fr; }
  .ficha-item { padding: 1.8rem 1.2rem; }
  .ficha-value { font-size: 1.2rem; }
  .notas { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.5rem; margin-top: 3rem; }
  .compra { padding: 5rem 1rem; }
  .compra-inner { padding: 3rem 1.5rem; }
  footer { padding: 4rem 1.5rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .ficha-grid { grid-template-columns: 1fr; }
}

::selection { background: var(--bordeaux); color: var(--cream); }
