*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --burgundy:      #661D2C;
  --burgundy-dark: #3D0F18;
  --burgundy-deep: #1A0508;
  --burgundy-mid:  #8B2E42;
  --pale:          #DEB8C0;
  --blush:         #F2E2E5;
  --blush-mid:     #EDD0D6;
  --cream:         #F9F4EE;
  --warm:          #FDFAF6;
  --gold:          #C4A265;
  --gold-light:    #E8D5B0;
  --ink:           #1C0A0D;
  --ink-mid:       #3D1A20;
  --muted:         #7A4A53;
  --muted-light:   #A67480;
}
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--warm); color: var(--ink); overflow-x: hidden; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── NAV ── */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 56px; height: 72px;
  background: var(--burgundy);
  transition: background 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  border-bottom: 0.5px solid rgba(222,184,192,0.12);
}
.main-nav.scrolled {
  background: rgba(253,250,246,0.97);
  border-bottom-color: var(--blush-mid);
  box-shadow: 0 1px 24px rgba(102,29,44,0.07);
  backdrop-filter: blur(12px);
}

/* Logo izquierda */
.nav-logo-link { display: flex; align-items: center; justify-self: start; }
.nav-logo {
  height: 40px; width: auto; display: block;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.8; }

/* Centro: links de secciones */
.nav-links {
  display: flex; gap: 40px; list-style: none; align-items: center;
  justify-self: center;
}
.nav-links a {
  font-size: 9px; font-weight: 500; letter-spacing: 5px; text-transform: uppercase;
  text-decoration: none; transition: color 0.3s, opacity 0.3s;
  color: var(--cream); opacity: 0.65;
}
.nav-links a:hover { opacity: 1; color: var(--gold-light); }
.main-nav.scrolled .nav-links a { color: var(--burgundy); opacity: 0.55; }
.main-nav.scrolled .nav-links a:hover { opacity: 1; color: var(--burgundy); }

/* Derecha: botón CTA + hamburger */
.nav-right {
  display: flex; align-items: center; gap: 16px;
  justify-self: end;
}

/* Botón "Hacé un pedido" */
.nav-cta {
  font-size: 9px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
  border: 0.5px solid rgba(222,184,192,0.4);
  padding: 9px 20px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  white-space: nowrap;
}
.nav-cta:hover {
  border-color: var(--gold);
  background: rgba(196,162,101,0.1);
  color: var(--gold-light);
}
.main-nav.scrolled .nav-cta { color: var(--burgundy); border-color: rgba(102,29,44,0.3); }
.main-nav.scrolled .nav-cta:hover { border-color: var(--burgundy); background: var(--blush); }

/* Hamburger (mobile) */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 32px; height: 32px; cursor: pointer;
  border: 0.5px solid rgba(222,184,192,0.25); background: none;
  padding: 7px 7px; transition: border-color 0.3s;
}
.main-nav.scrolled .hamburger { border-color: rgba(102,29,44,0.2); }
.hamburger:hover { border-color: var(--gold); }
.main-nav.scrolled .hamburger:hover { border-color: var(--burgundy); }

.hamburger span {
  display: block; width: 100%; height: 1px; background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s;
}
.main-nav.scrolled .hamburger span { background: var(--burgundy); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.drawer {
  position: fixed; top: 0; right: -100%; width: 100%; max-width: 320px; height: 100vh;
  background: var(--burgundy-dark); z-index: 300;
  display: flex; flex-direction: column;
  padding: 88px 40px 48px;
  transition: right 0.4s cubic-bezier(0.77,0,0.18,1);
  border-left: 0.5px solid rgba(222,184,192,0.1);
}
.drawer.open { right: 0; }

.drawer-overlay {
  position: fixed; inset: 0; background: rgba(26,5,8,0.6);
  z-index: 250; opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer-nav {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 32px; border-top: 0.5px solid rgba(222,184,192,0.1);
}
.drawer-nav a {
  font-size: 11px; font-weight: 500; letter-spacing: 5px; text-transform: uppercase;
  color: var(--pale); text-decoration: none; padding: 18px 0;
  border-bottom: 0.5px solid rgba(222,184,192,0.1);
  opacity: 0.6; transition: opacity 0.3s, color 0.3s;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-nav a::after { content: '→'; font-size: 14px; opacity: 0.4; }
.drawer-nav a:hover { opacity: 1; color: var(--gold-light); }

/* CTA en drawer */
.drawer-cta {
  display: inline-block; margin-bottom: 32px;
  font-size: 10px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
  border: 0.5px solid rgba(222,184,192,0.3);
  padding: 13px 24px; text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.drawer-cta:hover { border-color: var(--gold); background: rgba(196,162,101,0.1); color: var(--gold-light); }

.drawer-contact {
  display: flex; flex-direction: column; gap: 10px;
}
.drawer-contact a {
  font-size: 11px; font-weight: 300; color: var(--pale); opacity: 0.5;
  text-decoration: none; letter-spacing: 1px; transition: opacity 0.3s;
}
.drawer-contact a:hover { opacity: 1; color: var(--gold-light); }

.drawer-brand {
  margin-top: auto;
  font-family: 'Pinyon Script', cursive;
  font-size: 36px; color: var(--pale); opacity: 0.15;
}

/* ── HERO CAROUSEL ── */
.hero { height: 100vh; min-height: 720px; position: relative; overflow: hidden; background: var(--burgundy); }
.slides-wrap { position: absolute; inset: 0; display: flex; }
.slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 9s ease; }
.slide.active .slide-bg { transform: scale(1.06); }

.slide-bg-1 { background-color: #661D2C; background-image: url('../assets/images/imagen-hero-finca.jpg'); }
.slide-bg-2 { background-color: #5a1826; background-image: url('../assets/images/imagen-hero-elaboracion.jpg'); }
.slide-bg-3 { background-color: #4e1320; background-image: url('../assets/images/imagen-hero-producto.jpg'); }

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(108deg, rgba(61,15,24,0.82) 0%, rgba(61,15,24,0.45) 52%, rgba(61,15,24,0.15) 100%);
}
.slide-content { position: relative; z-index: 2; max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 80px; }

.slide-eyebrow {
  font-size: 9px; font-weight: 500; letter-spacing: 7px; text-transform: uppercase;
  color: var(--gold); opacity: 0; transform: translateY(10px);
  transition: opacity 0.9s 0.2s, transform 0.9s 0.2s;
  margin-bottom: 22px; display: flex; align-items: center; gap: 16px;
}
.slide-eyebrow::before { content: ''; display: block; width: 32px; height: 0.5px; background: var(--gold); opacity: 0.6; }
.slide-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6.5vw, 86px); font-weight: 300; font-style: italic;
  color: var(--cream); line-height: 1.02; opacity: 0; transform: translateY(22px);
  transition: opacity 1.1s 0.45s, transform 1.1s 0.45s; margin-bottom: 28px;
}
.slide-sub {
  font-size: 14px; font-weight: 300; color: var(--pale); max-width: 420px; line-height: 1.85;
  opacity: 0; transform: translateY(10px); transition: opacity 0.9s 0.8s, transform 0.9s 0.8s;
}
.slide.active .slide-eyebrow,
.slide.active .slide-headline,
.slide.active .slide-sub { opacity: 1; transform: translateY(0); }

.carousel-dots { position: absolute; bottom: 44px; left: 80px; display: flex; gap: 10px; z-index: 10; }
.dot { height: 1.5px; width: 28px; background: var(--pale); opacity: 0.35; cursor: pointer; border: none; transition: width 0.4s, opacity 0.4s, background 0.4s; }
.dot.active { width: 52px; opacity: 1; background: var(--gold); }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: none; border: 0.5px solid rgba(222,184,192,0.22); color: var(--pale);
  width: 50px; height: 50px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 20px; transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.carousel-arrow:hover { border-color: var(--gold); color: var(--gold); background: rgba(196,162,101,0.1); }
.carousel-prev { left: 32px; }
.carousel-next { right: 32px; }

.scroll-hint { position: absolute; bottom: 44px; right: 80px; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.35; }
.scroll-hint span { font-size: 8px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--pale); writing-mode: vertical-rl; }
.scroll-line { width: 0.5px; height: 48px; background: var(--pale); animation: sp 2.2s ease infinite; }
@keyframes sp { 0%,100%{opacity:.4;} 50%{opacity:1;} }

/* ── SHARED ── */
.container { max-width: 1120px; margin: 0 auto; }
.eyebrow {
  font-size: 9px; font-weight: 500; letter-spacing: 6px; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.eyebrow::after { content: ''; height: 0.5px; width: 40px; display: block; }
.section-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.08; }
.section-title em { font-style: italic; }

/* ── HISTORIA ── */
.historia { padding: 128px 80px; background: var(--cream); position: relative; overflow: hidden; }
.historia::after {
  content: '90'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif; font-size: 380px; font-weight: 300; font-style: italic;
  color: var(--burgundy); opacity: 0.03; pointer-events: none; line-height: 1;
}
.historia-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 96px; align-items: start; }
.historia-left .eyebrow { color: var(--burgundy); opacity: 0.5; }
.historia-left .eyebrow::after { background: var(--pale); }
.historia-left .section-title { font-size: clamp(36px, 4vw, 58px); color: var(--ink-mid); margin-bottom: 36px; }
.historia-left .section-title em { color: var(--burgundy); }
.historia-quote {
  font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; font-weight: 300;
  color: var(--burgundy); line-height: 1.65; border-left: 2px solid var(--pale);
  padding-left: 22px; margin-bottom: 32px;
}
.historia-body { font-size: 15px; font-weight: 300; color: var(--ink-mid); line-height: 1.95; margin-bottom: 18px; opacity: 0.85; }
.facts { display: flex; flex-direction: column; gap: 1px; background: var(--blush-mid); }
.fact { background: var(--warm); padding: 26px 28px; border-left: 2px solid var(--burgundy); transition: background 0.3s; }
.fact:hover { background: var(--blush); }
.fact-label { font-size: 8px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--burgundy); opacity: 0.55; margin-bottom: 8px; display: block; }
.fact-text { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 400; color: var(--ink-mid); line-height: 1.5; }

/* ── PRODUCTOS ── */
.productos { padding: 128px 80px; background: var(--warm); }
.productos-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 72px; }
.productos-header .eyebrow { color: var(--burgundy); opacity: 0.5; }
.productos-header .eyebrow::after { background: var(--pale); }
.productos-header .section-title { font-size: clamp(34px, 4vw, 54px); color: var(--ink-mid); }
.productos-header .section-title em { color: var(--burgundy); }
.productos-intro { max-width: 300px; font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.85; text-align: right; }
.productos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--blush-mid); border: 1px solid var(--blush-mid); }
.pcard { background: var(--warm); overflow: hidden; display: flex; flex-direction: column; transition: background 0.35s; }
.pcard:hover { background: var(--cream); }
.pimg-wrap { overflow: hidden; position: relative; }
.pimg { width: 100%; aspect-ratio: 3/4; background-size: cover; background-position: center; transition: transform 0.65s ease; }
.pcard:hover .pimg { transform: scale(1.04); }

.pimg-1 { background-color: #661D2C; background-image: url('../assets/images/producto-alfajores.jpg'); }
.pimg-2 { background-color: #5a2210; background-image: url('../assets/images/producto-licores.jpg'); }
.pimg-3 { background-color: #2a2410; background-image: url('../assets/images/producto-nueces.jpg'); }
.pimg-4 { background-color: #3a1a14; background-image: url('../assets/images/producto-dulces.jpg'); }

.pbadge {
  position: absolute; top: 14px; right: 14px;
  background: var(--burgundy-dark); color: var(--gold);
  font-size: 7px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase;
  padding: 5px 11px; border: 0.5px solid rgba(196,162,101,0.3);
}
.pinfo { padding: 22px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.pcat { font-size: 8px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--burgundy); opacity: 0.55; margin-bottom: 7px; display: block; }
.pname { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--ink-mid); line-height: 1.15; margin-bottom: 10px; }
.pdesc { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.8; flex: 1; margin-bottom: 20px; }
.pcta {
  font-size: 8px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: var(--burgundy); text-decoration: none; display: inline-flex; align-items: center;
  gap: 10px; transition: gap 0.3s;
}
.pcta::after { content: ''; display: block; width: 20px; height: 0.5px; background: var(--burgundy); transition: width 0.3s; }
.pcta:hover { gap: 14px; }
.pcta:hover::after { width: 32px; }

/* ── CONTACTO ── */
.contacto { padding: 128px 80px; background: var(--cream); }
.historia, .productos, .contacto, footer { content-visibility: auto; contain-intrinsic-size: 700px; }
.contacto .eyebrow { color: var(--burgundy); opacity: 0.5; }
.contacto .eyebrow::after { background: var(--pale); }
.contacto .section-title { font-size: clamp(34px, 4vw, 54px); color: var(--ink-mid); margin-bottom: 72px; }
.contacto .section-title em { color: var(--burgundy); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: start; }
.channels { display: flex; flex-direction: column; gap: 1px; background: var(--blush-mid); }
.channel { display: flex; align-items: center; gap: 20px; padding: 20px 22px; background: var(--warm); text-decoration: none; border-left: 2px solid var(--burgundy); transition: background 0.3s; }
.channel:hover { background: var(--blush); }
.ch-icon { width: 38px; height: 38px; background: var(--burgundy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ch-icon svg { width: 15px; height: 15px; fill: var(--cream); }
.ch-label { font-size: 8px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--muted-light); display: block; margin-bottom: 3px; }
.ch-val { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 400; color: var(--ink-mid); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fgroup { display: flex; flex-direction: column; gap: 8px; }
.fgroup label { font-size: 8px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); }
.fgroup input, .fgroup textarea, .fgroup select {
  background: var(--warm); border: none; border-bottom: 1px solid var(--blush-mid);
  padding: 12px 0; font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 300;
  color: var(--ink); outline: none; transition: border-color 0.3s;
  -webkit-appearance: none; border-radius: 0;
}
.fgroup input:focus, .fgroup textarea:focus, .fgroup select:focus { border-bottom-color: var(--burgundy); }
.fgroup textarea { resize: vertical; min-height: 110px; }
.fsub {
  align-self: flex-start; margin-top: 8px; background: var(--burgundy); color: var(--cream);
  border: none; padding: 15px 44px; font-family: 'Jost', sans-serif;
  font-size: 9px; font-weight: 500; letter-spacing: 5px; text-transform: uppercase;
  cursor: pointer; transition: background 0.3s, transform 0.15s;
}
.fsub:hover:not(:disabled) { background: var(--burgundy-dark); }
.fsub:active:not(:disabled) { transform: scale(0.98); }
.fsub:disabled { opacity: 0.6; cursor: default; }

.form-msg {
  font-size: 12px; font-weight: 300; letter-spacing: 1px;
  padding: 10px 0; display: none;
}
.form-msg.success { color: var(--burgundy); display: block; }
.form-msg.error { color: #c0392b; display: block; }

/* ── FOOTER ── */
footer {
  background: var(--burgundy-dark); padding: 72px 80px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  border-top: 0.5px solid rgba(222,184,192,0.1);
}
.ft-logo { height: 64px; width: auto; margin-bottom: 32px; opacity: 0.4; }
.ft-orn { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.ft-orn-line { width: 48px; height: 0.5px; background: var(--pale); opacity: 0.12; }
.ft-orn-dsm { width: 3px; height: 3px; border-radius: 50%; background: var(--pale); opacity: 0.18; }
.ft-orn-dlg { width: 6px; height: 6px; border-radius: 50%; background: var(--pale); opacity: 0.22; }
.ft-nav { display: flex; gap: 44px; list-style: none; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }
.ft-nav a { font-size: 8px; font-weight: 400; letter-spacing: 4px; text-transform: uppercase; color: var(--pale); opacity: 0.28; text-decoration: none; transition: opacity 0.3s; }
.ft-nav a:hover { opacity: 0.65; }

.ft-social { display: flex; gap: 12px; margin-bottom: 32px; }
.ft-social a {
  width: 38px; height: 38px; border: 0.5px solid rgba(222,184,192,0.15);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: border-color 0.3s, background 0.3s;
}
.ft-social a:hover { border-color: var(--gold); background: rgba(196,162,101,0.1); }
.ft-social svg { width: 14px; height: 14px; fill: var(--pale); opacity: 0.5; transition: opacity 0.3s; }
.ft-social a:hover svg { opacity: 1; }

.ft-contact { display: flex; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.ft-contact a { font-size: 10px; font-weight: 300; color: var(--pale); opacity: 0.3; text-decoration: none; letter-spacing: 1px; transition: opacity 0.3s; }
.ft-contact a:hover { opacity: 0.7; }

.ft-copy { font-size: 9px; font-weight: 300; color: var(--pale); opacity: 0.16; letter-spacing: 2px; }

/* ── WHATSAPP FLOATING BUTTON ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35), 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 4px 10px rgba(0,0,0,0.2);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.15s; }
.d2 { transition-delay: 0.3s; }
.d3 { transition-delay: 0.45s; }
.d4 { transition-delay: 0.6s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .productos-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 860px) {
  .main-nav {
    padding: 0 24px;
    grid-template-columns: auto 1fr auto;
  }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .slide-content { padding: 0 28px; }
  .historia, .productos, .contacto { padding-left: 28px; padding-right: 28px; }
  footer { padding-left: 28px; padding-right: 28px; }
  .historia-grid, .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .productos-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .productos-intro { text-align: left; max-width: 100%; }
  .carousel-dots { left: 28px; bottom: 28px; }
  .scroll-hint { display: none; }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }
  .ft-nav { gap: 20px; }
  .ft-contact { gap: 16px; }
}

@media (max-width: 580px) {
  .productos-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
