@import url("fonts.css");

/* ============================================================
   AGUA MINERAL EDÉN — sistema de diseño
   ============================================================ */

:root {
  /* color */
  --ink: #101d33;
  --ink-soft: #46566f;
  /* tonos secundarios calibrados a >=4.5:1 sobre papel/blanco (WCAG AA) */
  --ink-faint: #64717f;
  --navy: #1c3563;
  --navy-deep: #0a1626;
  --navy-mid: #12253f;
  --brass: #8a6d3a;      /* sobre fondo claro */
  --brass-lt: #c9ad78;   /* sobre fondo oscuro */
  --paper: #fcfbf9;
  --white: #fff;
  --mist: #eef3f7;
  --mist-deep: #dee8f1;
  --line: rgba(16, 29, 51, 0.13);
  --line-soft: rgba(16, 29, 51, 0.07);
  --line-dark: rgba(222, 232, 241, 0.16);
  --on-dark: #d7e2ee;
  --on-dark-soft: #93a6bd;

  /* type */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --geo: "Jost", "Futura", "Avenir Next", sans-serif;

  /* layout */
  --gut: clamp(1.25rem, 5vw, 4.5rem);
  --max: 1320px;
  --sec: clamp(5.5rem, 11vw, 10rem);
  --r: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--navy); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ---------- primitivos tipográficos ---------- */
.eyebrow {
  font-family: var(--geo);
  font-size: clamp(0.625rem, 0.9vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}
.eyebrow--ink { color: var(--ink-faint); }
.on-dark .eyebrow { color: var(--brass-lt); }

.display {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
.d1 { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.07; }
.d2 { font-size: clamp(2.1rem, 3.9vw, 3.25rem); line-height: 1.08; }
.d3 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: 56ch;
}
.on-dark .lede { color: var(--on-dark-soft); }

.body-sm { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-soft); }
.on-dark .body-sm { color: var(--on-dark-soft); }

.num {
  font-family: var(--geo);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); position: relative; }
.on-dark { background: var(--navy-deep); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-mist { background: var(--mist); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-dark .rule { background: var(--line-dark); }

.sec-head { max-width: 62ch; }
.sec-head .eyebrow { margin-bottom: 1.5rem; }
.sec-head .display { margin-bottom: 1.5rem; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  font-family: var(--geo);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--ink); }

.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.on-dark .btn--ghost { border-color: var(--line-dark); color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }

.btn--brass { background: var(--brass); color: #fff; }
.btn--brass:hover { background: #96773f; }

.link-under {
  font-family: var(--geo);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.3s var(--ease);
}
.link-under:hover { opacity: 0.6; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__in {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  height: 5.25rem;
  transition: height 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(252, 251, 249, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav.is-stuck .nav__in { height: 4.25rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; }
.brand img { height: 2.5rem; width: auto; transition: height 0.4s var(--ease); }
.nav.is-stuck .brand img { height: 2.15rem; }
.brand__txt {
  font-family: var(--geo);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink);
}
.brand__txt b { display: block; font-weight: 600; letter-spacing: 0.26em; }
.brand__txt span { color: var(--ink-faint); font-size: 0.625rem; letter-spacing: 0.16em; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a {
  font-family: var(--geo);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__cta .btn { padding: 0.7rem 1.35rem; font-size: 0.75rem; }

.nav__burger { display: none; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 20px; height: 1px; background: var(--ink); position: relative; transition: background .2s; }
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1px; background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(8rem, 15vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 78% 8%, #e4eef6 0%, rgba(228, 238, 246, 0) 62%),
    radial-gradient(55% 70% at 8% 92%, #eaf1f6 0%, rgba(234, 241, 246, 0) 60%),
    var(--paper);
}
.hero__glow {
  position: absolute;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  right: -12vw;
  top: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 172, 208, 0.24) 0%, rgba(126, 172, 208, 0) 68%);
  filter: blur(20px);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 5%, 0) scale(1.09); }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy .eyebrow { margin-bottom: 1.75rem; }
.hero h1 { margin-bottom: 1.75rem; }
.hero h1 em { font-style: italic; color: var(--navy); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.5rem; }

.hero__fig { position: relative; justify-self: center; width: 100%; max-width: 370px; margin: 0; }
.hero__fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: 0 40px 80px -50px rgba(16, 29, 51, 0.55);
}

/* medalla sommelier */
.medal {
  position: absolute;
  right: -2.25rem;
  bottom: 2rem;
  width: clamp(8rem, 11vw, 9.75rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy-deep);
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 22px 50px -22px rgba(10, 22, 38, 0.6);
  animation: bob 7s ease-in-out infinite alternate;
}
.medal::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 173, 120, 0.4);
  border-radius: 50%;
}
.medal b {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.28em;
  font-family: var(--geo);
  font-weight: 300;
  font-size: clamp(1.9rem, 2.7vw, 2.4rem);
  line-height: 1;
  color: var(--brass-lt);
}
.medal b i { font-style: normal; font-size: 0.5em; opacity: 0.5; transform: translateY(-0.25em); }
.medal span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--geo);
  font-size: 0.5rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  line-height: 1.65;
}
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-9px); } }

/* franja de credenciales */
.creds {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.creds div {
  padding: 1.6rem clamp(0.75rem, 1.5vw, 1.5rem);
  border-left: 1px solid var(--line-soft);
}
.creds div:first-child { border-left: 0; padding-left: 0; }
.creds b {
  display: block;
  font-family: var(--geo);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.creds span {
  font-family: var(--geo);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.5;
  display: block;
}

/* ============================================================
   CATA / SOMMELIER
   ============================================================ */
.cata { position: relative; overflow: hidden; }
.cata__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 20% 0%, rgba(43, 82, 138, 0.4) 0%, transparent 65%);
  pointer-events: none;
}
.cata__head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.cata__cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.cata__card { background: var(--navy-deep); padding: clamp(2rem, 3.5vw, 3rem); display: flex; flex-direction: column; }
.cata__score { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.cata__score b {
  font-family: var(--geo);
  font-weight: 300;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 0.85;
  color: var(--brass-lt);
}
.cata__score i {
  font-style: normal;
  font-family: var(--geo);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.cata__card h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 1.15rem; }
.cata__notes { color: var(--on-dark-soft); font-size: 1.0125rem; line-height: 1.75; }
.cata__meta { display: grid; gap: 0.9rem; margin-top: auto; padding-top: 1.75rem; border-top: 1px solid var(--line-dark); }
.cata__notes { margin-bottom: 2rem; }
.cata__meta div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.cata__meta dt,
.cata__meta span:first-child {
  font-family: var(--geo);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.cata__meta span:last-child { color: #fff; font-size: 0.9375rem; text-align: right; }

.cata__proof {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.cata__proof img { border: 1px solid var(--line-dark); border-radius: var(--r); }

/* ============================================================
   ORIGEN
   ============================================================ */
.origen__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.origen__fig { position: relative; }
.origen__fig img { border-radius: var(--r); }
.origen__cap {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: rgba(252, 251, 249, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.1rem;
  border-radius: var(--r);
  font-family: var(--geo);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.spec div { background: var(--paper); padding: 1.5rem 1.35rem; }
.on-mist .spec div { background: var(--mist); }
.spec dt {
  font-family: var(--geo);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.55rem;
}
.spec dd {
  margin: 0;
  font-family: var(--geo);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  color: var(--navy);
  line-height: 1.2;
}
.spec dd small { display: block; font-family: var(--sans); font-size: 0.75rem; color: var(--ink-faint); letter-spacing: 0; margin-top: 0.35rem; }

/* ============================================================
   PLANTA — galería editorial
   ============================================================ */
.planta__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.planta__grid img { border-radius: var(--r); width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.planta__grid figure { margin: 0; overflow: hidden; border-radius: var(--r); }
.pg-a { grid-column: span 7; aspect-ratio: 16 / 11; }
.pg-b { grid-column: span 5; aspect-ratio: 4 / 5; align-self: end; }
.pg-c { grid-column: span 5; aspect-ratio: 4 / 3; }
.pg-d { grid-column: span 7; aspect-ratio: 16 / 9; }
.planta__grid img { transition: transform 1.2s var(--ease); }
.planta__grid figure:hover img { transform: scale(1.035); }

.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.badge {
  font-family: var(--geo);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.5rem 0.95rem;
  border-radius: 100px;
  color: var(--ink-soft);
}
.on-dark .badge { border-color: var(--line-dark); color: var(--on-dark-soft); }

/* ============================================================
   PRODUCTOS
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.filter {
  font-family: var(--geo);
  font-size: 0.78125rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Sin gap coloreado: las celdas vacías de la última fila quedarían visibles
   como bloques grises. Las separaciones van como borde de cada tarjeta. */
.grid-prod {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-top: 0;
}
.card {
  background: var(--white);
  padding: 1.5rem 1.4rem 1.65rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin: 0 -1px -1px 0;
  transition: background 0.35s var(--ease);
}
.card:hover { background: #fafcfe; }
.card { position: relative; }
/* el enlace del pie cubre toda la tarjeta: la tarjeta entera es clickeable
   sin anidar un <a> alrededor de encabezados y precios */
.card__buy::after { content: ""; position: absolute; inset: 0; }
.card:focus-within { background: #fafcfe; }
.card__img {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  overflow: hidden;
}
.card__img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__img img { transform: scale(1.05) translateY(-3px); }
.card__tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--geo);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}

/* estado agotado: lo añade el JS con datos en vivo de WooCommerce */
.card__stock {
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.15rem 0.5rem;
}
.card.is-out .card__img img { opacity: 0.42; filter: grayscale(0.55); }
.card.is-out .card__price { color: var(--ink-faint); }
.card.is-out:hover .card__img img { transform: none; }

/* mismo estado en la ficha de producto */
.pd__body .eyebrow { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.is-out .pd__price { color: var(--ink-faint); }
/* sigue siendo clickeable: el JS le cambia el texto a "Ver producto" */
.is-out .card__buy.btn--solid { background: var(--ink-soft); }
.card h3 {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin-bottom: 0.3rem;
}
.card__fmt { font-size: 0.8125rem; color: var(--ink-faint); margin-bottom: 1.15rem; }
.card__foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.card__price { font-family: var(--geo); font-weight: 400; font-size: 1.0625rem; color: var(--navy); }
.card__price small { font-family: var(--sans); font-size: 0.6875rem; color: var(--ink-faint); display: block; letter-spacing: 0; }
.card__buy {
  font-family: var(--geo);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover .card__buy { color: var(--navy); border-color: var(--navy); }

.grid-prod .card.is-hidden { display: none; }
.prod-empty { padding: 4rem 0; text-align: center; color: var(--ink-faint); }

/* destacado saborizadas */
.flavor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.flavor__txt { padding: clamp(2rem, 4vw, 3.5rem); }
.flavor__img { height: 100%; min-height: 18rem; }
.flavor__img img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--geo);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--brass));
}

/* ============================================================
   FICHA DE PRODUCTO  (producto/<slug>.html)
   ============================================================ */
.is-producto { background: var(--paper); }
.pd { padding-top: clamp(7rem, 11vw, 9rem); padding-bottom: var(--sec); }

.pd__crumbs {
  font-family: var(--geo);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.pd__crumbs a { border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.pd__crumbs a:hover { border-bottom-color: var(--ink-faint); }
.pd__crumbs span[aria-hidden] { margin: 0 0.4rem; opacity: 0.5; }

.pd__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.pd__fig {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  place-items: center;
  position: sticky;
  top: 6rem;
}
.pd__fig img { width: 100%; max-width: 330px; height: auto; mix-blend-mode: multiply; }

.pd__body .eyebrow { margin-bottom: 1.25rem; }
.pd__body h1 { margin-bottom: 0.6rem; }
.pd__fmt { font-size: 1.0625rem; color: var(--ink-faint); margin-bottom: 1.75rem; }
.pd__price {
  display: block;
  font-family: var(--geo);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  color: var(--navy);
  line-height: 1;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.pd__price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}
.pd__desc { max-width: 60ch; }
.pd__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

/* borde por celda y no gap coloreado: si la última fila queda incompleta,
   el hueco no se ve como un bloque gris */
.pd__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  border: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.pd__specs div {
  background: var(--paper);
  padding: 1.15rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -1px -1px 0;
}
.pd__specs dt {
  font-family: var(--geo);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.45rem;
}
.pd__specs dd { margin: 0; font-size: 0.875rem; color: var(--ink); line-height: 1.5; }

.pd__nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.pd__nav a { max-width: 22ch; font-size: 0.9375rem; color: var(--ink-soft); transition: color 0.3s var(--ease); }
.pd__nav a:hover { color: var(--navy); }
.pd__nav a span {
  display: block;
  font-family: var(--geo);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}
.pd__nav--next { text-align: right; margin-left: auto; }

@media (max-width: 860px) {
  .pd__grid { grid-template-columns: minmax(0, 1fr); }
  .pd__fig { position: static; }
  .pd__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ============================================================
   MAYORISTAS
   ============================================================ */
.mayor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.tbl-wrap { overflow-x: auto; min-width: 0; border: 1px solid var(--line-dark); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
.tbl { font-size: 0.875rem; min-width: 32rem; }
.tbl th, .tbl td { padding: 0.85rem 1rem; text-align: right; border-bottom: 1px solid var(--line-dark); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th {
  font-family: var(--geo);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  white-space: nowrap;
}
.tbl tbody tr { transition: background 0.25s var(--ease); cursor: pointer; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.045); }
.tbl tbody tr[aria-selected="true"] { background: rgba(169, 136, 80, 0.14); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td { color: var(--on-dark); }
.tbl td:first-child { color: #fff; }
.tbl .u { font-family: var(--geo); font-variant-numeric: tabular-nums; }

/* cotizador */
.quote {
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.035);
  position: sticky;
  top: 6.5rem;
}
.quote h3 { font-family: var(--display); font-size: 1.75rem; margin-bottom: 0.5rem; }
.field { margin-top: 1.5rem; }
.field label {
  display: block;
  font-family: var(--geo);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 0.6rem;
}
.field select, .field input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9375rem;
  appearance: none;
}
.field select option { background: var(--navy-deep); color: #fff; }
.field select:focus, .field input:focus { border-color: var(--brass); outline: none; }
.field--sel { position: relative; }
.field--sel::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1.15rem;
  width: 7px; height: 7px;
  border-right: 1px solid var(--on-dark-soft);
  border-bottom: 1px solid var(--on-dark-soft);
  transform: rotate(45deg);
  pointer-events: none;
}
.quote__out {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.quote__out span {
  font-family: var(--geo);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.quote__out b { font-family: var(--geo); font-weight: 300; font-size: 2rem; color: var(--brass-lt); line-height: 1; }
.quote .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }
.quote__note { font-size: 0.75rem; color: var(--on-dark-soft); margin-top: 1rem; line-height: 1.6; }

/* ============================================================
   SOSTENIBILIDAD
   ============================================================ */
.sost__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.sost__list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin-top: 2.5rem; }
.sost__list > div { background: var(--paper); padding: 1.5rem 0; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; }
.sost__list b { font-family: var(--geo); font-weight: 300; font-size: 1.75rem; color: var(--navy); line-height: 1; }
.sost__list b.tok { font-size: 1.05rem; letter-spacing: 0.13em; font-weight: 400; }
.sost__list p { font-size: 0.9375rem; color: var(--ink-soft); }
.sost__list strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   CONTACTO / FOOTER
   ============================================================ */
.cont__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.cont__cell { background: var(--navy-deep); padding: clamp(1.75rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
/* dos líneas reservadas para que los encabezados de las 4 celdas se alineen */
.cont__cell .eyebrow { margin-bottom: 1.1rem; min-height: 2.4em; }
/* los correos largos deben caber en una línea dentro de la celda */
.cont__cell a[href^="mailto"] { overflow-wrap: anywhere; font-size: 0.8125rem; letter-spacing: -0.005em; }
.cont__cell h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin-bottom: 0.6rem; }
.cont__cell p { font-size: 0.9375rem; color: var(--on-dark-soft); line-height: 1.7; }
.cont__cell a.line { display: block; color: #fff; transition: color 0.3s var(--ease); }
.cont__cell a.line:hover { color: var(--brass-lt); }
.cont__cell .link-under { margin-top: auto; padding-top: 1.5rem; align-self: start; color: var(--brass-lt); }

.foot { background: var(--navy-deep); color: var(--on-dark-soft); padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem; border-top: 1px solid var(--line-dark); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.foot__brand img { height: 3.75rem; width: auto; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 1.25rem; }
.foot h4 {
  font-family: var(--geo);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.15rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.foot a { font-size: 0.875rem; transition: color 0.3s var(--ease); }
.foot a:hover { color: #fff; }
.foot__social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.foot__social a {
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.3s var(--ease);
}
.foot__social a:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }
.foot__social svg { width: 1rem; height: 1rem; }
.foot__bot {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.75rem;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 90;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.6);
  transition: transform 0.35s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 1.6rem; height: 1.6rem; }

/* ============================================================
   REVEAL
   ============================================================ */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  /* minmax(0,…) y no 1fr: si no, la tabla con min-width estira la columna
     y arrastra todo el documento a scroll horizontal */
  .hero__grid, .origen__grid, .mayor__grid, .sost__grid, .cata__proof, .flavor { grid-template-columns: minmax(0, 1fr); }
  .hero__fig { max-width: 340px; order: -1; }
  .medal { right: -1rem; bottom: 1.25rem; }
  .quote { position: static; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .pg-a, .pg-d { grid-column: span 12; }
  .pg-b, .pg-c { grid-column: span 6; }
  .cata__head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 4.25rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gut) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    max-height: calc(100dvh - 4.25rem);
    overflow-y: auto;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: var(--paper); }
  .nav__links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav__links a::after { display: none; }
  .nav__burger { display: flex; }
  .nav__cta .btn--ghost { display: none; }
  .creds { grid-template-columns: repeat(2, 1fr); }
  .creds div { border-left: 1px solid var(--line-soft); padding-inline: 1rem; }
  .creds div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .creds div:nth-child(-n + 2) { border-top: 0; }
  .creds div:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .sost__list > div { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 560px) {
  .foot__top { grid-template-columns: 1fr; }
  .pg-b, .pg-c { grid-column: span 12; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

@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;
  }
  .rv { opacity: 1; transform: none; }
}

@media print {
  .nav, .wa-float, .hero__glow { display: none; }
  body { background: #fff; }
}
