/* =================================================================
   Viña Las Parritas — Hoja de estilos
   Paleta: vino burdeos + dorado + crema (patrimonial / editorial)
   Tipografía: Airbnb Cereal
   ================================================================= */

/* ---------- Tipografía: Airbnb Cereal ---------- */
@font-face {
  font-family: "Airbnb Cereal";
  src: url("fonts/AirbnbCereal_W_Lt.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal";
  src: url("fonts/AirbnbCereal_W_Bk.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal";
  src: url("fonts/AirbnbCereal_W_Md.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal";
  src: url("fonts/AirbnbCereal_W_Bd.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal";
  src: url("fonts/AirbnbCereal_W_XBd.otf") format("opentype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal";
  src: url("fonts/AirbnbCereal_W_Blk.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --wine: #5e1622;
  --wine-deep: #43101a;
  --wine-soft: #7c2231;
  --gold: #c2992f;
  --gold-soft: #d9b85f;
  --cream: #f8f1e7;
  --cream-2: #f1e6d6;
  --ink: #24181a;
  --ink-soft: #5b4f4d;
  --line: rgba(94, 22, 34, .14);
  --white: #ffffff;
  --wa: #25d366;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(67, 16, 26, .45);
  --shadow-sm: 0 8px 24px -12px rgba(67, 16, 26, .35);
  --container: 1180px;
  --ff-display: "Airbnb Cereal", system-ui, -apple-system, sans-serif;
  --ff-sans: "Airbnb Cereal", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--cream-2); }
.section--dark { background: var(--wine-deep); color: var(--cream); }
.section--dark h2 { color: var(--white); }

.section__head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section__title { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section__lead { margin-top: 16px; color: var(--ink-soft); font-size: 1.075rem; }

.eyebrow {
  display: inline-block; font-family: var(--ff-sans); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; font-size: .76rem;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow--dark { color: var(--wine); }
.eyebrow--light { color: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--wine);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--ff-sans); font-weight: 600; font-size: .98rem;
  padding: .85em 1.6em; border-radius: 100px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--wine); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--wine-soft); box-shadow: var(--shadow); }
.btn--ghost { border-color: currentColor; color: var(--cream); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--whatsapp { background: var(--wa); color: #ffffff; box-shadow: 0 8px 22px -10px rgba(37,211,102,.8); }
.btn--whatsapp:hover { background: #1fbd5b; color: #ffffff; }
.btn--lg { padding: 1.05em 2em; font-size: 1.05rem; }

.link-cta {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600;
  color: var(--wine); font-size: .95rem;
}
.link-cta i { transition: transform .3s var(--ease); }
.link-cta:hover i { transform: translateX(5px); }

/* "Pedir" dentro de las tarjetas de producto: botón llamativo */
.product-card .link-cta {
  margin-top: 4px; justify-content: center; width: 100%;
  background: var(--wine); color: var(--cream);
  padding: .8em 1.2em; border-radius: 100px; font-size: .98rem;
  box-shadow: 0 10px 22px -12px rgba(67,16,26,.6);
  transition: background .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card .link-cta:hover {
  background: var(--gold); color: var(--wine-deep);
  transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(194,153,47,.65);
}
.product-card .link-cta:hover i { transform: translateX(5px); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  padding: .5em 1em; border-radius: 100px;
  background: rgba(248,241,231,.14); border: 1px solid rgba(217,184,95,.5);
  color: var(--cream); backdrop-filter: blur(6px);
}
.badge--award i { color: var(--gold-soft); }

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 10px 0;
}
.site-header.scrolled {
  background: rgba(248,241,231,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -16px rgba(67,16,26,.5);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: .65em; }
.brand__icon { font-size: 1.85rem; color: var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--ff-display); font-weight: 600; font-size: 1.18rem; color: var(--cream); }
.brand__text em { font-style: normal; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); }
.scrolled .brand__text strong { color: var(--wine); }
.scrolled .brand__text em { color: var(--wine-soft); }
.scrolled .brand__icon { color: var(--wine); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-weight: 500; font-size: .96rem; color: var(--cream); position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.scrolled .nav__link { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; z-index: 110;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); border-radius: 2px; transition: .3s var(--ease); }
.scrolled .nav-toggle span { background: var(--wine); }

/* =================================================================
   HERO
   ================================================================= */
.hero { position: relative; min-height: 82svh; display: flex; align-items: center; color: var(--cream); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(40,10,16,.85) 0%, rgba(67,16,26,.62) 45%, rgba(40,10,16,.35) 100%);
}
.hero__content {
  max-width: 820px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 90px; padding-bottom: 60px;
}
.hero__title {
  font-size: clamp(2.7rem, 7vw, 5rem); margin: 22px 0 20px; line-height: 1.02;
}
.hero__title span { color: var(--gold-soft); font-style: italic; }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 640px; color: rgba(248,241,231,.92); }
.hero__subtitle strong { color: var(--gold-soft); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; justify-content: center; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 1.4rem; color: var(--cream); opacity: .8; animation: bob 2.2s var(--ease) infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,10px);} }

/* =================================================================
   TRUST
   ================================================================= */
.trust { background: var(--wine); color: var(--cream); }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding-block: 30px;
}
.trust__item { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
.trust__item i { font-size: 1.9rem; color: var(--gold-soft); }
.trust__item strong { display: block; font-size: 1rem; }
.trust__item span { font-size: .85rem; color: rgba(248,241,231,.75); }

/* =================================================================
   PRODUCTOS
   ================================================================= */
.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  border: 1px solid var(--line);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__tag {
  position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; padding: .4em .85em; border-radius: 100px;
  background: rgba(94,22,34,.92); color: var(--cream); backdrop-filter: blur(4px);
}
.product-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-card__body h3 { font-size: 1.5rem; }
.product-card__body p { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.formats { display: flex; flex-wrap: wrap; gap: 6px; }
.formats li {
  font-size: .8rem; font-weight: 600; color: var(--wine);
  border: 1px solid var(--line); border-radius: 8px; padding: .25em .6em;
  background: var(--cream);
}
.products__note { text-align: center; margin-top: 34px; color: var(--ink-soft); font-size: .92rem; }

/* =================================================================
   SPLIT (cepas / nosotros / entregas)
   ================================================================= */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px);
  align-items: center; margin-block: clamp(30px, 5vw, 56px);
}
.split--center { align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; max-height: 540px; object-fit: cover; transition: transform .8s var(--ease); }
.split__media:hover img { transform: scale(1.04); }
.split__text h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.split__text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.split__text p { color: var(--ink-soft); margin-bottom: 14px; }
.section--dark .split__text p { color: rgba(248,241,231,.82); }
.split--reverse .split__media { order: 2; }

.checklist { display: grid; gap: 10px; margin-top: 18px; }
.checklist li { display: flex; align-items: center; gap: .65em; font-weight: 500; }
.checklist i { color: var(--gold); background: rgba(194,153,47,.12); width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; font-size: .8rem; }

.stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 28px; }
.stat strong { font-family: var(--ff-display); font-size: 2.2rem; color: var(--gold-soft); display: block; line-height: 1; }
.stat span { font-size: .85rem; color: rgba(248,241,231,.72); }

/* =================================================================
   BENEFICIOS
   ================================================================= */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.benefit i { font-size: 2.4rem; color: var(--wine); margin-bottom: 16px; }
.benefit h3 { font-size: 1.2rem; margin-bottom: 8px; }
.benefit p { color: var(--ink-soft); font-size: .92rem; }

/* =================================================================
   ENTREGAS
   ================================================================= */
.delivery { display: grid; gap: 22px; margin: 24px 0 30px; }
.delivery__item { display: flex; gap: 16px; align-items: flex-start; }
.delivery__item i { font-size: 1.7rem; color: var(--gold); margin-top: 4px; }
.delivery__item strong { display: block; font-size: 1.1rem; margin-bottom: 4px; font-family: var(--ff-display); }
.delivery__item p { color: var(--ink-soft); margin: 0; }

/* =================================================================
   FAQ
   ================================================================= */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 24px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.12rem; font-weight: 600; }
.faq__item summary i { color: var(--wine); font-size: 1.05rem; transition: transform .3s var(--ease); flex-shrink: 0; }
.faq__item[open] summary i { transform: rotate(45deg); }
.faq__item > p { padding: 0 0 20px; color: var(--ink-soft); margin: 0; }

/* =================================================================
   TESTIMONIOS
   ================================================================= */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.testimonial__stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial blockquote { font-family: var(--ff-display); font-size: 1.18rem; line-height: 1.5; font-style: italic; margin-bottom: 20px; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { font-size: .85rem; color: var(--ink-soft); }

/* =================================================================
   CTA FINAL
   ================================================================= */
.cta-final { position: relative; padding: clamp(80px, 12vw, 150px) 0; color: var(--cream); text-align: center; }
.cta-final__media { position: absolute; inset: 0; z-index: -2; }
.cta-final__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-final__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(40,10,16,.82), rgba(67,16,26,.88)); }
.cta-final__content { max-width: 720px; margin: 0 auto; }
.cta-final__content h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.cta-final__content p { font-size: 1.1rem; color: rgba(248,241,231,.9); margin-bottom: 30px; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--wine-deep); color: rgba(248,241,231,.82); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.brand--footer .brand__text strong { color: var(--cream); }
.footer__brand p { margin: 16px 0; font-size: .92rem; max-width: 320px; }
.footer__award { display: inline-flex; align-items: center; gap: .5em; font-size: .82rem; color: var(--gold-soft); }
.footer__col h4 { font-family: var(--ff-sans); font-weight: 600; color: var(--cream); margin-bottom: 16px; font-size: .95rem; letter-spacing: .04em; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a, .footer__contact li { font-size: .92rem; transition: color .25s; display: inline-flex; align-items: center; gap: .55em; }
.footer__col a:hover { color: var(--gold-soft); }
.footer__contact i { color: var(--gold); width: 1.2em; }

.footer__bottom { border-top: 1px solid rgba(248,241,231,.12); padding: 22px 0 30px; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.footer__credit a { color: var(--gold-soft); font-weight: 600; }
.footer__credit a:hover { text-decoration: underline; }
.footer__legal { text-align: center; font-size: .8rem; color: rgba(248,241,231,.5); margin-top: 14px; }

/* =================================================================
   WhatsApp flotante
   ================================================================= */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,.7); transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.1) rotate(6deg); }

/* =================================================================
   Reveal on scroll
   ================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .testimonials { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Nav mobile */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); height: 100svh; z-index: 105;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: var(--wine-deep); padding: 40px; transform: translateX(105%);
    transition: transform .45s var(--ease); box-shadow: -20px 0 60px -20px rgba(0,0,0,.5);
  }
  /* El backdrop-filter del header lo convierte en contenedor de los fixed:
     se anula mientras el menú está abierto para que el drawer cubra toda la pantalla. */
  body.nav-open .site-header.scrolled {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  body.nav-open { overflow: hidden; }
  .nav.open { transform: translateX(0); }
  .nav__link { color: var(--cream); font-size: 1.15rem; }
  .scrolled .nav__link { color: var(--cream); }
  .nav__cta { margin-top: 6px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--cream); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--cream); }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img { max-height: 420px; }

  .benefits, .products { grid-template-columns: 1fr; }
  .product-card { max-width: 420px; margin-inline: auto; width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta-final__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 420px) {
  .trust__grid { grid-template-columns: 1fr; }
}

/* Accesibilidad: respeta reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
