/* ==========================================================================
   ArteSano Carmenere — one-pager
   ========================================================================== */

:root {
  --burdeo: #4A1520;
  --burdeo-negro: #2A0C12;
  --crema: #F5EFE4;
  --crema-oscuro: #EAE0CE;
  --tierra: #9C6B4A;
  --dorado: #C2A878;
  --tinta: #2B2320;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --header-h: 92px;
  --announce-h: 34px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 20px);
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1.2rem; }

.container { width: min(1200px, 90vw); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2.6em;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
  background: transparent;
}

.btn-ghost { color: var(--crema); }
.btn-ghost:hover { background: var(--crema); color: var(--burdeo-negro); }

.btn-line { color: var(--burdeo); }
.btn-line:hover { background: var(--burdeo); color: var(--crema); }

.btn-gold { color: var(--dorado); border-color: var(--dorado); }
.btn-gold:hover { background: var(--dorado); color: var(--burdeo-negro); }

.btn-solid { background: var(--burdeo); border-color: var(--burdeo); color: var(--crema); }
.btn-solid:hover { background: var(--burdeo-negro); border-color: var(--burdeo-negro); }

/* --------------------------------------------------------------------------
   Kickers
   -------------------------------------------------------------------------- */
.kicker {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--tierra);
  margin-bottom: 1rem;
}
.kicker-light { color: var(--dorado); }

/* --------------------------------------------------------------------------
   Barra de anuncio + Header
   -------------------------------------------------------------------------- */
.announcement {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--announce-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--burdeo-negro);
  transition: transform .4s ease;
}
.announcement a {
  color: var(--dorado);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
}
.announcement.hidden { transform: translateY(-100%); }

.site-header {
  position: fixed;
  top: var(--announce-h); left: 0; right: 0;
  z-index: 50;
  transition: background .4s ease, box-shadow .4s ease, top .4s ease;
}
.site-header.scrolled {
  top: 0;
  background: rgba(245, 239, 228, .96);
  box-shadow: 0 1px 24px rgba(42, 12, 18, .12);
}

.nav-inner {
  width: min(1360px, 94vw);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px;
}

.nav-logo img {
  width: 150px; height: auto;
  filter: none;
  transition: width .4s ease;
}
.site-header.scrolled .nav-logo img { width: 116px; }

.nav-links {
  display: flex; align-items: center; gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--crema);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.site-header.scrolled .nav-links a { color: var(--burdeo); }
.nav-links a:hover, .nav-links a.active { border-bottom-color: currentColor; }
.nav-shop a { color: var(--dorado) !important; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 32px;
  position: relative;
  cursor: pointer;
  z-index: 70;
}
.nav-toggle span {
  position: absolute; left: 6px; right: 6px;
  height: 1.5px;
  background: var(--crema);
  transition: transform .35s ease, top .35s ease, background .35s ease;
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.site-header.scrolled .nav-toggle span { background: var(--burdeo); }
body.menu-open .nav-toggle span { background: var(--crema); }
body.menu-open .nav-toggle span:nth-child(1) { top: 15px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { top: 15px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  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(20, 8, 10, .42) 0%,
    rgba(20, 8, 10, .30) 45%,
    rgba(20, 8, 10, .62) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--crema);
  padding-inline: 6vw;
  animation: heroIn 1.6s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}
.hero-kicker {
  font-size: .74rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 2.8rem;
  opacity: .92;
}
.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 44px;
  border: 1px solid rgba(245, 239, 228, .6);
  border-radius: 14px;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%;
  width: 2px; height: 8px;
  margin-left: -1px;
  background: var(--crema);
  border-radius: 2px;
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }

/* ---- La Viña ---- */
.section-vina { background: var(--crema); padding-bottom: 0; }

.vina-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.vina-text p { margin-bottom: 1.3rem; max-width: 54ch; }
.vina-text .btn { margin-top: 1rem; }
.vina-photo { position: relative; }
.vina-photo img { box-shadow: 0 30px 80px rgba(42, 12, 18, .22); }

.band {
  position: relative;
  height: clamp(320px, 55vw, 560px);
  overflow: hidden;
}
.band-tall { height: clamp(300px, 45vw, 480px); }
.band-img {
  position: absolute;
  left: 0; top: -12%;
  width: 100%; height: 124%;
  object-fit: cover;
  will-change: transform;
}
.band-quote {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(42, 12, 18, .28);
}
.band-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--crema);
  text-align: center;
  padding-inline: 8vw;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}

.ficha {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}
.ficha li { border-top: 1px solid var(--dorado); padding-top: 1.2rem; }
.ficha strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 500;
  color: var(--burdeo);
  margin-bottom: .2rem;
}
.ficha span {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tierra);
}

/* ---- Vinos ---- */
.section-vinos {
  background: var(--burdeo-negro);
  color: var(--crema);
  text-align: center;
}
.section-vinos h2 { color: var(--crema); }

.wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
}
.wine-card a { text-decoration: none; color: inherit; display: block; }
.wine-img {
  overflow: hidden;
  margin-bottom: 1.6rem;
  aspect-ratio: 3 / 4;
  background: #1d080d;
}
.wine-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.wine-card:hover .wine-img img { transform: scale(1.05); }
.wine-card h3 { font-size: 1.55rem; margin-bottom: .3rem; }
.wine-detail {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: .8rem;
}
.wine-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}
.wine-card .btn { pointer-events: none; }
.wine-card:hover .btn { background: var(--dorado); color: var(--burdeo-negro); }

.press-note {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  font-size: .8rem;
  letter-spacing: .12em;
  color: rgba(245, 239, 228, .55);
}
.press-note a { color: var(--dorado); text-decoration: none; }
.press-note a:hover { text-decoration: underline; }

/* ---- Experiencia ---- */
.section-experiencia { background: var(--crema-oscuro); padding-bottom: 0; }

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.exp-gallery { position: relative; }
.exp-gallery figure:first-child { width: 88%; }
.exp-photo-2 {
  width: 62%;
  margin-left: auto;
  margin-top: -22%;
  box-shadow: 0 26px 70px rgba(42, 12, 18, .3);
  position: relative;
}
.exp-gallery img { box-shadow: 0 20px 60px rgba(42, 12, 18, .18); }

.exp-text p { max-width: 50ch; margin-bottom: 1.6rem; }

.exp-precios {
  list-style: none;
  margin-bottom: 2.2rem;
  max-width: 30rem;
}
.exp-precios li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem;
  padding-block: .85rem;
  border-bottom: 1px solid rgba(156, 107, 74, .35);
  font-size: .95rem;
}
.exp-precios strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--burdeo);
  white-space: nowrap;
}

/* ---- Dónde Estamos ---- */
.section-donde { background: var(--crema); }
.donde-inner {
  max-width: 720px;
  text-align: center;
}
.donde-inner p { margin-bottom: 2rem; }
.donde-links { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

/* ---- Contacto ---- */
.section-contacto {
  background: var(--burdeo);
  color: var(--crema);
}
.contacto-inner { max-width: 680px; text-align: center; }
.section-contacto h2 { color: var(--crema); }

.contact-form { margin-top: 2.5rem; text-align: left; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.field { position: relative; margin-bottom: 2.2rem; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 239, 228, .4);
  color: var(--crema);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  padding: .7em 0;
  transition: border-color .3s ease;
  border-radius: 0;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--dorado);
}
.field label {
  position: absolute;
  left: 0; top: .7em;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, .65);
  pointer-events: none;
  transition: transform .3s ease, font-size .3s ease, color .3s ease;
  transform-origin: left top;
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.5em) scale(.8);
  color: var(--dorado);
}
.contact-form .btn { display: block; margin: 1rem auto 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--burdeo-negro);
  color: rgba(245, 239, 228, .7);
  padding-block: 3.5rem;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.social { list-style: none; display: flex; gap: 1.6rem; }
.social a {
  color: var(--dorado);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(194, 168, 120, .4);
  border-radius: 50%;
  transition: background .3s ease, color .3s ease;
}
.social a:hover { background: var(--dorado); color: var(--burdeo-negro); }
.footer-links { font-size: .8rem; }
.footer-links a { color: rgba(245, 239, 228, .7); text-decoration: none; }
.footer-links a:hover { color: var(--dorado); }
.copyright { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .5; }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease var(--delay, 0s),
              transform .9s cubic-bezier(.22, 1, .36, 1) var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content { animation: none; }
  .hero-scroll span { animation: none; }
  .band-img { top: 0; height: 100%; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .vina-grid, .exp-grid { gap: 3rem; }
  .ficha { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 65;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: var(--burdeo-negro);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
  }
  body.menu-open .nav-links { opacity: 1; visibility: visible; }
  .nav-links a {
    color: var(--crema) !important;
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: .18em;
    text-transform: none;
  }
  body.menu-open { overflow: hidden; }

  .vina-grid, .exp-grid { grid-template-columns: 1fr; }
  .vina-photo { order: -1; }
  .exp-photo-2 { margin-top: -14%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .ficha { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .ficha { gap: 1.1rem; }
  .btn { padding: .95em 2em; letter-spacing: .2em; }
  .donde-links { flex-direction: column; align-items: center; }
}
