/* =========================================================
   Café Don Fila — estilos
   Paleta tomada del empaque de referencia
   ========================================================= */
:root {
  --espresso: #3a1a0c;      /* franja oscura del empaque */
  --roast: #4a2414;
  --mocha: #6e3c22;
  --logo: #6b4a44;          /* tono del texto del logo */
  --caramel: #b8794f;
  --latte: #e7bf98;         /* degradado durazno */
  --cream: #f4dcc2;
  --foam: #fbf3ea;          /* fondo claro */
  --paper: #fffaf4;
  --ink: #2b170d;
  --muted: #7a5e50;
  --line: rgba(74, 36, 20, .12);
  --wa: #25d366;

  --radius: 22px;
  --shadow-sm: 0 4px 14px rgba(58, 26, 12, .08);
  --shadow: 0 18px 50px -18px rgba(58, 26, 12, .35);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 78px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--foam);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Evita que las animaciones de entrada (elementos desplazados a los lados)
   ensanchen la página en móviles */
main, .footer { overflow-x: hidden; overflow-x: clip; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .6em; color: var(--espresso); }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.ico { width: 18px; height: 18px; flex-shrink: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--latte); }

.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.section__lead--left { max-width: 420px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 .95rem/1 var(--sans);
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--roast); color: var(--cream); box-shadow: 0 10px 24px -10px rgba(74, 36, 20, .7); }
.btn--primary:hover { background: var(--espresso); box-shadow: 0 16px 32px -12px rgba(74, 36, 20, .8); }
.btn--ghost { border-color: var(--roast); color: var(--roast); background: transparent; }
.btn--ghost:hover { background: var(--roast); color: var(--cream); }
.btn--light { background: var(--paper); color: var(--roast); }
.btn--light:hover { background: var(--cream); }
.btn--wa .ico { color: var(--wa); }
.btn--block { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mocha); font-size: .92rem; }
.link .ico { transition: transform .3s var(--ease); }
.link:hover .ico { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s, box-shadow .4s, height .4s;
}
.header.is-scrolled {
  background: rgba(255, 250, 244, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  --header-h: 68px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 52px; height: 52px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--serif); font-size: 1.2rem; color: var(--espresso); }
.brand__text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--caramel); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; font-size: .9rem; font-weight: 500; color: var(--ink); padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--caramel); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--mocha); }
.nav__cta { padding: 12px 22px; }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--roast); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -.01em; }
.hero__title em { font-style: italic; color: var(--caramel); font-weight: 500; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 46px; }
.hero__actions .btn--ghost .ico { color: var(--wa); }
.hero__actions .btn--ghost:hover .ico { color: var(--wa); }

.hero__stats { display: flex; gap: 40px; list-style: none; padding: 26px 0 0; margin: 0; border-top: 1px solid var(--line); }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--serif); font-size: 2rem; color: var(--roast); line-height: 1.1; }
.hero__stats li > span { font-size: .82rem; color: var(--muted); }

.hero__visual { position: relative; justify-self: center; width: min(460px, 100%); }
.hero__frame {
  aspect-ratio: 4 / 5;
  border-radius: 240px 240px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 10px solid var(--paper);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero__visual:hover .hero__frame img { transform: scale(1.1); }
.hero__badge {
  position: absolute; width: 150px; left: -54px; bottom: 70px;
  border-radius: 50%; box-shadow: var(--shadow);
}
.hero__tag {
  position: absolute; right: -24px; top: 56px;
  display: flex; flex-direction: column;
  padding: 14px 20px; border-radius: 16px;
  background: rgba(255, 250, 244, .92); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); line-height: 1.2;
}
.hero__tag span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--caramel); font-weight: 600; }
.hero__tag strong { font-family: var(--serif); font-size: 1.6rem; color: var(--roast); }

.bean {
  position: absolute; width: 34px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a5232, #3a1a0c 70%);
  box-shadow: inset -3px -4px 8px rgba(0,0,0,.35);
}
.bean::after { content: ""; position: absolute; left: 50%; top: 12%; bottom: 12%; width: 3px; transform: translateX(-50%) rotate(8deg); background: #26100a; border-radius: 3px; }
.bean--1 { right: -40px; bottom: 120px; transform: rotate(30deg); }
.bean--2 { left: 20px; top: -20px; width: 24px; height: 32px; transform: rotate(-20deg); }
.bean--3 { right: 40px; bottom: -24px; width: 28px; height: 38px; transform: rotate(60deg); }

/* ---------- Cinta ---------- */
.ribbon { background: var(--roast); color: var(--cream); overflow: hidden; padding: 18px 0; }
.ribbon__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.ribbon span { font-family: var(--serif); font-size: 1.25rem; font-style: italic; white-space: nowrap; }
.ribbon svg { width: 22px; height: 22px; color: var(--latte); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Historia ---------- */
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.story__media { position: relative; padding: 0 60px 60px 0; }
.story__img { border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.story__img--main { width: 100%; aspect-ratio: 4 / 5; }
.story__img--small { position: absolute; width: 52%; aspect-ratio: 1; right: 0; bottom: 0; border: 8px solid var(--foam); }
.story__year {
  position: absolute; top: 30px; right: 20px;
  width: 112px; height: 112px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--caramel); color: var(--paper); box-shadow: var(--shadow);
  line-height: 1;
}
.story__year span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.story__year strong { font-family: var(--serif); font-size: 2rem; margin-top: 4px; }
.story__content p { color: var(--muted); }
.story__content p strong { color: var(--roast); }
.story__values { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 10px; }
.story__values li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--caramel); box-shadow: 0 0 0 5px rgba(184, 121, 79, .18); }
.story__quote {
  margin: 30px 0 0; padding: 22px 26px;
  border-left: 3px solid var(--caramel);
  background: var(--paper); border-radius: 0 16px 16px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--roast);
}
.story__quote cite { display: block; margin-top: 10px; font: 600 .82rem var(--sans); color: var(--caramel); font-style: normal; }

/* ---------- Producto ---------- */
.product { background: linear-gradient(180deg, var(--foam), #f5e2cd); }
.product__card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px;
  background: var(--paper); border-radius: 32px; overflow: hidden;
  box-shadow: var(--shadow);
}
.product__visual {
  position: relative; min-height: 520px; overflow: hidden;
  background: #f4f3f1;
}
.product__bag {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 60%;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease);
}
.product__card:hover .product__bag { transform: scale(1.07); }

.product__info { padding: 56px 56px 56px 10px; display: flex; flex-direction: column; justify-content: center; }
.pill { align-self: flex-start; background: rgba(184, 121, 79, .15); color: var(--mocha); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; margin-bottom: 16px; }
.product__name { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.product__desc { color: var(--muted); }
.product__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.product__specs div { background: var(--foam); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.product__specs dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--caramel); font-weight: 600; }
.product__specs dd { margin: 2px 0 0; font-weight: 600; color: var(--roast); }
.product__notes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: .9rem; }
.product__notes span { font-weight: 600; margin-right: 4px; }
.product__notes em { font-style: normal; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--mocha); }
.product__buy { display: flex; flex-wrap: wrap; gap: 14px; }
.qty { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty__btn { width: 46px; height: 48px; border: 0; background: transparent; font-size: 1.3rem; color: var(--roast); cursor: pointer; transition: background .2s; }
.qty__btn:hover { background: var(--foam); }
.qty input { width: 46px; border: 0; text-align: center; font: 600 1.05rem var(--sans); color: var(--ink); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.product__hint { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.offer { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.offer:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.offer__img { aspect-ratio: 16 / 10; overflow: hidden; }
.offer__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.offer:hover .offer__img img { transform: scale(1.08); }
.offer__body { padding: 24px 26px 28px; }
.offer__body h3 { font-size: 1.35rem; margin-bottom: .4em; }
.offer__body p { color: var(--muted); font-size: .94rem; }

/* ---------- Por qué ---------- */
.why { padding-top: 0; background: #f5e2cd; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why__item { padding: 34px 28px; border-radius: var(--radius); background: rgba(255, 250, 244, .7); border: 1px solid var(--line); transition: background .4s, transform .4s var(--ease); }
.why__item:hover { background: var(--paper); transform: translateY(-6px); }
.why__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--roast); color: var(--latte); margin-bottom: 20px; }
.why__icon svg { width: 28px; height: 28px; }
.why__item h3 { font-size: 1.25rem; }
.why__item p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step {
  position: relative; padding: 36px 30px 32px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.step::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--roast), var(--espresso));
  opacity: 0; transition: opacity .45s var(--ease);
}
.step > * { position: relative; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step:hover::before { opacity: 1; }
.step:hover h3 { color: var(--cream); }
.step:hover p { color: rgba(244, 220, 194, .8); }
.step:hover .step__num { color: var(--latte); -webkit-text-stroke-color: var(--latte); }
.step__num {
  display: block; font-family: var(--serif); font-size: 3.4rem; font-weight: 700; line-height: 1; margin-bottom: 18px;
  color: transparent; -webkit-text-stroke: 1.5px var(--caramel); transition: color .4s;
}
.step h3 { font-size: 1.35rem; transition: color .4s; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; transition: color .4s; }

/* ---------- Origen ---------- */
.origin { position: relative; padding: clamp(90px, 12vw, 150px) 0; color: var(--cream); overflow: hidden; isolation: isolate; }
.origin__bg {
  position: absolute; inset: -10% 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(58, 26, 12, .94) 0%, rgba(74, 36, 20, .8) 55%, rgba(74, 36, 20, .55)),
    url("../assets/img/saco-cafe.jpg") center / cover;
  will-change: transform;
}
.origin__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.origin__text h2 { color: var(--paper); font-size: clamp(2.4rem, 5vw, 3.8rem); }
.origin__text p { color: rgba(244, 220, 194, .85); font-size: 1.08rem; max-width: 480px; }
.origin__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.origin__stats li { padding: 26px; border-radius: var(--radius); background: rgba(255, 250, 244, .07); border: 1px solid rgba(244, 220, 194, .18); backdrop-filter: blur(6px); }
.origin__stats strong { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--latte); line-height: 1.1; }
.origin__stats span { font-size: .88rem; color: rgba(244, 220, 194, .8); }

/* ---------- Preparación ---------- */
.brew__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.brew__tab {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font: 600 .9rem var(--sans); color: var(--mocha); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.brew__tab:hover { border-color: var(--caramel); }
.brew__tab.is-active { background: var(--roast); color: var(--cream); border-color: var(--roast); }
.brew__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: var(--paper); border-radius: 32px; padding: 26px; box-shadow: var(--shadow-sm); }
.brew__panel[hidden] { display: none; }
.brew__panel.is-active { animation: fadeUp .6s var(--ease); }
.brew__panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.brew__panel h3 { font-size: 2rem; }
.brew__panel ol { padding-left: 1.2em; margin: 0 0 20px; color: var(--muted); }
.brew__panel li { margin-bottom: 8px; padding-left: 6px; }
.brew__panel li::marker { color: var(--caramel); font-weight: 700; }
.brew__meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.brew__meta span { background: var(--foam); padding: 8px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600; color: var(--roast); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Galería ---------- */
.gallery { padding-top: 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 18px; }
.g { margin: 0; border-radius: var(--radius); overflow: hidden; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.95); }
.g:hover img { transform: scale(1.08); filter: saturate(1.1); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(72px, 10vw, 110px); }
.cta__inner {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  padding: 40px 50px; border-radius: 32px;
  background: linear-gradient(120deg, var(--espresso), var(--mocha) 60%, var(--caramel));
  color: var(--cream); box-shadow: var(--shadow);
}
.cta__inner > div { flex: 1; min-width: 240px; }
.cta__logo { width: 96px; border-radius: 50%; }
.cta h2 { color: var(--paper); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .2em; }
.cta p { margin: 0; color: rgba(244, 220, 194, .85); }
.cta .btn--light .ico { color: var(--wa); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.faq__list { display: grid; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--foam); padding: 0 24px; transition: background .3s; }
.faq details[open] { background: #fff; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--roast);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--caramel); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list li div { display: flex; flex-direction: column; font-weight: 500; }
.contact__list a:hover { color: var(--caramel); }
.contact__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--cream); color: var(--roast); display: grid; place-items: center; flex-shrink: 0; }
.contact__icon svg { width: 22px; height: 22px; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 260px; border: 6px solid var(--paper); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.35) saturate(.9); }

.form { background: var(--paper); padding: 40px; border-radius: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form h3 { font-size: 1.7rem; margin: 0; }
.form__sub { color: var(--muted); font-size: .9rem; margin: -6px 0 6px; }
.form label { display: grid; gap: 6px; }
.form label span { font-size: .82rem; font-weight: 600; color: var(--mocha); }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--foam); font: 400 .95rem var(--sans); color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--caramel); background: #fff; box-shadow: 0 0 0 4px rgba(184, 121, 79, .15); }
.form .is-invalid { border-color: #c0392b; }
.form__error { color: #b03a2e; font-size: .85rem; margin: 0; min-height: 1em; }
.form .btn .ico { color: var(--wa); }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: rgba(244, 220, 194, .75); padding: 70px 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__brand { display: flex; gap: 16px; align-items: center; }
.footer__brand img { border-radius: 50%; }
.footer__brand strong { font-family: var(--serif); font-size: 1.3rem; color: var(--paper); }
.footer h4 { color: var(--latte); font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--paper); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; border-top: 1px solid rgba(244, 220, 194, .14); font-size: .82rem; }
.footer__bottom p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .6);
  transition: transform .35s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); z-index: -1; animation: pulse 2.4s ease-out infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__label {
  position: absolute; right: 74px; white-space: nowrap;
  background: var(--paper); color: var(--roast); font-weight: 600; font-size: .85rem;
  padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.wa-float:hover .wa-float__label, .wa-float.is-hinting .wa-float__label { opacity: 1; transform: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Animación de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease), clip-path 1.3s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* Variantes de entrada (asignadas en main.js) */
.reveal[data-anim="left"]  { transform: translateX(-70px); }
.reveal[data-anim="right"] { transform: translateX(70px); }
.reveal[data-anim="zoom"]  { transform: scale(.9); }
.reveal[data-anim="flip"]  { transform: perspective(1000px) rotateX(22deg) translateY(50px); transform-origin: 50% 0; }
.reveal[data-anim="blur"]  { transform: translateY(24px); filter: blur(14px); }
.reveal[data-anim="clip"]  { opacity: 1; transform: none; }
.reveal[data-anim="clip"] img { clip-path: inset(100% 0 0 0); transform: scale(1.3); transition: clip-path 1.3s var(--ease), transform 1.8s var(--ease), filter .6s; }
.reveal.is-visible[data-anim] { transform: none; filter: none; }
.reveal.is-visible[data-anim="clip"] img { clip-path: inset(0 0 0 0); transform: none; }
.g.is-visible:hover img { transform: scale(1.08); }

/* Títulos que aparecen palabra por palabra */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--ease); }
.reveal.split { opacity: 1; transform: none; }
.is-visible .split .w > span,
.split.is-visible .w > span { transform: none; }

/* Línea del eyebrow que se dibuja */
.eyebrow::before, .section__head .eyebrow::after { transform: scaleX(0); transition: transform .9s .25s var(--ease); }
.eyebrow::before { transform-origin: right; }
.section__head .eyebrow::after { transform-origin: left; }
.is-visible .eyebrow::before, .eyebrow.is-visible::before,
.is-visible .eyebrow::after { transform: scaleX(1); }

/* Entrada del hero: la foto se descubre de abajo hacia arriba */
.hero__visual.reveal { transform: none; }
.hero__frame { clip-path: inset(100% 0 0 0 round 240px 240px 22px 22px); transition: clip-path 1.5s .2s var(--ease); }
.hero__visual.is-visible .hero__frame { clip-path: inset(0 0 0 0 round 240px 240px 22px 22px); }

/* Historia: las dos fotos se revelan en secuencia */
.story__media .story__img { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease); }
.story__media .story__img--small { transition-delay: .45s; }
.story__media.is-visible .story__img { clip-path: inset(0 0 0 0); }
.story__year { transform: scale(0); transition: transform .9s .9s cubic-bezier(.34, 1.56, .64, 1); }
.story__media.is-visible .story__year { transform: none; }

/* Producto: la bolsa entra con un leve zoom */
.product__bag { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.product__card.is-visible .product__bag { transform: scale(1.02); }
.product__card.is-visible:hover .product__bag { transform: scale(1.07); }

/* Barra de progreso de lectura */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130;
  background: linear-gradient(90deg, var(--caramel), var(--roast));
  transform: scaleX(0); transform-origin: left;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list { gap: 18px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .product__info { padding: 44px 40px 44px 0; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 34px;
    background: var(--paper);
    clip-path: circle(0 at calc(100% - 43px) 35px);
    transition: clip-path .7s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 43px) 35px); visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 18px; }
  .nav__link { font-family: var(--serif); font-size: 1.7rem; }

  .hero__grid, .story__grid, .origin__inner, .faq__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .hero { min-height: auto; }
  .hero__content { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__content .eyebrow { letter-spacing: .14em; }
  .hero__content .eyebrow::before { display: none; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__badge { width: 120px; left: -20px; }
  .hero__tag { right: -10px; }

  .story__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .product__card { grid-template-columns: 1fr; }
  .product__visual { min-height: 440px; }
  .product__info { padding: 10px 32px 40px; }
  .offers, .steps { grid-template-columns: repeat(2, 1fr); }
  .brew__panel { grid-template-columns: 1fr; gap: 26px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .brand__text small { display: none; }
  .brand__logo { width: 44px; height: 44px; }
  .hero__stats { gap: 22px; }
  .hero__stats strong { font-size: 1.6rem; }
  .hero__actions .btn { width: 100%; }
  .hero__badge { width: 96px; left: -6px; bottom: 40px; }
  .hero__tag { right: 0; top: 30px; padding: 10px 14px; }
  .bean--1 { right: -6px; }
  .story__media { padding: 0 30px 40px 0; }
  .story__year { width: 90px; height: 90px; top: 16px; right: 0; }
  .story__year strong { font-size: 1.6rem; }
  .why__grid, .origin__stats { grid-template-columns: 1fr; }

  /* Nuestro café y Proceso: 2 columnas compactas */
  .offers, .steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .offers { margin-top: 32px; }
  .offer:last-child:nth-child(odd) { grid-column: span 2; }
  .offer:last-child:nth-child(odd) .offer__img { aspect-ratio: 16 / 7; }
  .offer__img { aspect-ratio: 1; }
  .offer__body { padding: 14px 14px 18px; }
  .offer__body h3 { font-size: 1.05rem; }
  .offer__body p { font-size: .8rem; line-height: 1.5; margin-bottom: .8em; }
  .offer .link { font-size: .8rem; }
  .step { padding: 20px 14px 18px; border-radius: 16px; }
  .step__num { font-size: 2.2rem; margin-bottom: 10px; }
  .step h3 { font-size: 1.02rem; }
  .step p { font-size: .8rem; line-height: 1.5; }
  .product__specs { grid-template-columns: 1fr 1fr; }
  .product__info { padding: 6px 22px 32px; }
  .product__buy .btn { flex: 1; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 12px; }
  .g--wide { grid-column: span 2; }
  .cta__inner { padding: 32px 24px; text-align: center; justify-content: center; }
  .cta__inner .btn { width: 100%; }
  .form { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .brew__panel { padding: 16px; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal[data-anim], .reveal[data-anim="clip"] img, .split .w > span, .hero__frame, .story__media .story__img, .story__year { opacity: 1; transform: none; filter: none; clip-path: none; }
}

/* =========================================================
   Presentaciones (Nuestro café)
   ========================================================= */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 14px; }
.pcard {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pcard__img { position: relative; aspect-ratio: 3 / 4; background: #f3f2f0; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--roast); color: var(--cream);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 99px;
}
.pcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pcard__type { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--caramel); }
.pcard__body h3 { font-size: 1.45rem; margin: 6px 0 2px; }
.pcard__weight { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.pcard__weight strong { color: var(--roast); white-space: nowrap; }
.pcard__buy { margin-top: auto; display: flex; gap: 10px; align-items: center; }
.qty--sm .qty__btn { width: 36px; height: 44px; }
.qty--sm input { width: 34px; }
.pcard__btn { flex: 1; padding: 13px 16px; }
.products__hint { text-align: center; font-size: .85rem; color: var(--muted); margin: 0; }
.product__buy .btn--ghost .ico { color: var(--wa); }

/* Historia: foto vertical completa */
.story__img--main { aspect-ratio: 900 / 1612; object-position: top; }
.story__media { padding-bottom: 0; }
.story__img--small { width: 44%; bottom: 18%; }

/* =========================================================
   Exposiciones
   ========================================================= */
.expo { background: var(--paper); }
.expo__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.expo__media { position: relative; margin: 0; }
.expo__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.expo__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border: 2px solid var(--caramel); border-radius: var(--radius); opacity: .5;
}
.expo__media figcaption {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(255, 250, 244, .92); color: var(--roast);
  font-weight: 600; font-size: .82rem; padding: 8px 14px; border-radius: 10px;
}
.expo { isolation: isolate; }
.expo__content p { color: var(--muted); }
.expo__content p strong { color: var(--roast); }
.expo__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.expo__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }

@media (max-width: 960px) {
  .expo__grid { grid-template-columns: 1fr; gap: 50px; }
  .products { gap: 18px; }
  .pcard__buy { flex-direction: column; align-items: stretch; }
  .pcard__buy .qty { justify-content: space-between; }
  .pcard__buy .qty input { flex: 1; }
}

@media (max-width: 640px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .pcard:last-child:nth-child(odd) .pcard__img { width: 46%; flex-shrink: 0; }
  .pcard__body { padding: 14px 12px 16px; }
  .pcard__body h3 { font-size: 1.1rem; }
  .pcard__type { font-size: .62rem; letter-spacing: .1em; }
  .pcard__weight { font-size: .8rem; margin-bottom: 12px; }
  .pcard__tag { top: 8px; left: 8px; font-size: .6rem; padding: 4px 9px; }
  .pcard__btn { padding: 11px 10px; font-size: .85rem; }
  .qty--sm .qty__btn { width: 34px; height: 38px; }

  .expo__media::before { inset: 12px -8px -12px 12px; }
  .story__img--small { width: 42%; }
}
