/* =============================================================
   SNK CBD — hoja de estilos única
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   9. Reduced-motion (solo efectos intrusivos)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Paleta: hueso + bosque + miel */
  --bone:        #F5F2E9;
  --linen:       #EBE6D8;
  --paper:       #FCFAF3;
  --forest:      #23382B;
  --forest-deep: #18271D;
  --moss:        #4A6B52;
  --sage:        #93A691;
  --ink:         #1C211D;
  --ink-soft:    #3A423C;
  --ink-mute:    #6E7770;
  --honey:       #B98A3E;
  --honey-soft:  #D7B27A;
  --line:        rgba(28, 33, 29, 0.16);
  --line-soft:   rgba(28, 33, 29, 0.09);
  --line-dark:   rgba(245, 242, 233, 0.18);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --nav-h: 74px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  overflow-x: clip;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grano cálido global — da textura de papel sin peso */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }

::selection { background: var(--forest); color: var(--bone); }

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

/* =============================================================
   3. Utilidades
   ============================================================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10000;
  padding: .7rem 1.1rem; border-radius: 8px;
  background: var(--forest); color: var(--bone); font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Tipografía
   ============================================================= */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h-display {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.h-display em { font-style: italic; color: var(--moss); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 4px rgba(185, 138, 62, .18);
  animation: pulseDot 3.2s var(--ease-soft) infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(185, 138, 62, .18); }
  50%      { box-shadow: 0 0 0 8px rgba(185, 138, 62, .05); }
}

.sec-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--honey);
  letter-spacing: .04em;
}
.sec-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- Botones --- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--bone);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), color .35s var(--ease-out);
  will-change: transform;
}
.btn-sm { padding: .62rem 1.15rem; font-size: .84rem; }

.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--moss);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(35, 56, 43, .65); }
.btn-primary:hover::before { transform: translateY(0); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}
.btn-ghost::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--linen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: transparent; }
.btn-ghost:hover::before { transform: scaleX(1); }

/* --- Navegación --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(245, 242, 233, .88);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line-soft);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-stuck { background: var(--bone); }
}

.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; }
.nav-brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
}
.mark-leaf { width: 22px; height: 22px; }
.mark-leaf-g {
  fill: none;
  stroke: var(--forest);
  stroke-width: 3.4;
  stroke-linejoin: round;
  transform-origin: center;
  transition: transform .6s var(--ease-out), stroke .4s var(--ease-out);
}
.nav-brand:hover .mark-leaf-g { transform: rotate(-8deg); stroke: var(--honey); }

.nav-brand-text {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.nav-brand-thin { color: var(--moss); margin-left: .3em; }

/* Sobre el hero oscuro (aún sin fondo sólido) la nav va en claro */
.nav:not(.is-stuck) .nav-brand-text { color: var(--bone); }
.nav:not(.is-stuck) .nav-brand-thin { color: var(--honey-soft); }
.nav:not(.is-stuck) .nav-brand-mark {
  background: rgba(245, 242, 233, .1);
  border-color: rgba(245, 242, 233, .28);
}
.nav:not(.is-stuck) .mark-leaf-g { stroke: var(--bone); }
.nav:not(.is-stuck) .nav-brand:hover .mark-leaf-g { stroke: var(--honey-soft); }
.nav:not(.is-stuck) .nav-link { color: rgba(245, 242, 233, .78); }
.nav:not(.is-stuck) .nav-link:hover,
.nav:not(.is-stuck) .nav-link.is-active { color: var(--bone); }
.nav:not(.is-stuck) .nav-link::after { background: var(--bone); }
.nav:not(.is-stuck) .nav-burger-bar { background: var(--bone); }
.nav:not(.is-stuck) .nav-cta { background: var(--bone); color: var(--forest); }
.nav:not(.is-stuck) .nav-cta::before { background: var(--honey-soft); }

.nav-links { display: none; gap: 1.7rem; }
.nav-link {
  position: relative;
  font-size: .9rem;
  color: var(--ink-soft);
  padding-block: .3rem;
  transition: color .35s var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--ink); }

.nav-cta { display: none; }

.nav-burger {
  width: 40px; height: 40px;
  display: grid; place-content: center; gap: 6px;
  margin-right: -8px;
}
.nav-burger-bar {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .45s var(--ease-out), opacity .3s;
}
.nav-burger[aria-expanded="true"] .nav-burger-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger-bar:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.nav-drawer {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .5rem var(--gutter) 1.6rem;
  background: rgba(245, 242, 233, .97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer[hidden] { display: none; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 1.6rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer-cta {
  font-family: var(--sans) !important;
  font-size: .95rem !important;
  font-weight: 500;
  margin-top: 1rem;
  padding: .9rem 1.4rem !important;
  border: 0 !important;
  border-radius: 999px;
  background: var(--forest);
  color: var(--bone);
  text-align: center;
}

/* --- Cursor --- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
.cursor-ring {
  position: absolute;
  top: -17px; left: -17px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(35, 56, 43, .55);
  transition: width .4s var(--ease-out), height .4s var(--ease-out),
              top .4s var(--ease-out), left .4s var(--ease-out),
              background .4s var(--ease-out), border-color .4s var(--ease-out);
}
.cursor.is-hover .cursor-ring {
  width: 58px; height: 58px; top: -29px; left: -29px;
  background: rgba(35, 56, 43, .1);
  border-color: rgba(35, 56, 43, .3);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =============================================================
   6. Secciones
   ============================================================= */
.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head-meta {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding-bottom: .9rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.sec-intro {
  margin-top: 1.4rem;
  max-width: 54ch;
  color: var(--ink-mute);
  font-size: 1.02rem;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 1.5rem);
  padding-bottom: 4.5rem;
  overflow: hidden;
  color: var(--bone);
  isolation: isolate;
}

/* Fotografía a sangre bajo el texto, con tinte verde profundo */
/* El zoom deja fuera de cuadro el rótulo del envase, que caía bajo el titular */
/* En móvil el recorte vertical ya amplía de sobra, así que el zoom extra
   solo se aplica en pantallas anchas (ver responsive), donde si no el
   rótulo del envase acaba justo debajo del titular. */
.hero-bg {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
  filter: saturate(.95) brightness(.9);
  will-change: transform;
}
.hero-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,  rgba(24, 39, 29, .93) 0%, rgba(24, 39, 29, .74) 46%, rgba(24, 39, 29, .42) 100%),
    linear-gradient(180deg, rgba(24, 39, 29, .78) 0%, rgba(24, 39, 29, .48) 42%, rgba(24, 39, 29, .88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 10vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 1.3rem 0 1.5rem;
  max-width: 17ch;
}
.hero-title em { font-style: italic; color: var(--honey-soft); }

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.62;
  color: rgba(245, 242, 233, .82);
}

/* Textos del hero sobre fondo oscuro */
.hero .kicker { color: rgba(245, 242, 233, .72); }
.hero .btn-ghost { color: var(--bone); border-color: rgba(245, 242, 233, .38); }
.hero .btn-ghost::before { background: rgba(245, 242, 233, .14); }
.hero .btn-ghost:hover { border-color: transparent; }
.hero .btn-primary { background: var(--bone); color: var(--forest); }
.hero .btn-primary::before { background: var(--honey-soft); }
.hero .btn-primary:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  max-width: 46ch;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245, 242, 233, .62);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  z-index: 3;
  transform: translateX(-50%);
  width: 34px; height: 46px;
  display: grid; place-items: center;
}
.hero-scroll-line {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, transparent, rgba(245, 242, 233, .75));
  transform-origin: top;
  animation: scrollHint 2.6s var(--ease-soft) infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(42px); opacity: 0; }
}

/* --- Marquesina --- */
.ticker {
  overflow: hidden;
  padding-block: 1.1rem;
  background: var(--forest);
  color: var(--bone);
  border-block: 1px solid var(--forest-deep);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerRun 38s linear infinite;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  letter-spacing: .01em;
  white-space: nowrap;
}
.ticker-group i { color: var(--honey-soft); font-style: normal; font-size: .62em; }
@keyframes tickerRun {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --- La tienda --- */
.tienda { background: var(--bone); }
.tienda-grid { display: grid; gap: 2.2rem; }
.tienda-head {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  height: fit-content;
}
.tienda-body > * + * { margin-top: 1.4rem; }
.tienda-body p { max-width: 60ch; color: var(--ink-soft); }

.tienda-figure { margin-top: 2.6rem !important; }
.tienda-figure img {
  width: 100%;
  height: auto;          /* proporción original: se ve entera, sin recortes */
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}
.tienda-figure figcaption {
  margin-top: .8rem;
  font-size: .84rem;
  font-style: italic;
  color: var(--ink-mute);
}

.pledge { margin-top: 2.6rem !important; border-top: 1px solid var(--line); }
.pledge li {
  display: grid;
  gap: .1rem .5rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.pledge-k {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--forest);
}
.pledge-v { color: var(--ink-mute); font-size: .96rem; }

/* --- Categorías --- */
.cats { background: var(--linen); }
.cat-grid { display: grid; gap: 1rem; }

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .5s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(74, 107, 82, .1), transparent 55%);
  opacity: 0;
  transition: opacity .55s var(--ease-out);
  pointer-events: none;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 107, 82, .35);
  box-shadow: 0 26px 50px -30px rgba(24, 39, 29, .55);
}
.cat-card:hover::before { opacity: 1; }

/* Banda fotográfica superior (4:3) */
.cat-photo {
  position: relative;
  overflow: hidden;
  background: var(--linen);
}
.cat-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 55%;
  transition: transform .9s var(--ease-out), filter .7s var(--ease-out);
}
.cat-card:hover .cat-photo img { transform: scale(1.05); filter: saturate(1.08); }

/* Sello con la ilustración de línea, montado sobre la foto */
.cat-art {
  position: relative;
  z-index: 2;
  margin: -28px 0 0 1.3rem;
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: 0 10px 22px -14px rgba(24, 39, 29, .8);
  transition: background .55s var(--ease-out), transform .55s var(--ease-out);
}
.cat-card:hover .cat-art { transform: translateY(-3px); }
.cat-svg { width: 30px; height: 30px; }
.cat-strokes {
  fill: none;
  stroke: var(--forest);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .5s var(--ease-out);
}
.cat-card:hover .cat-strokes { stroke: var(--honey); }

.cat-body { padding: 1.1rem 1.4rem 3.2rem; }

.cat-num {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--honey);
  margin-bottom: .35rem;
}
.cat-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  margin-bottom: .55rem;
}
.cat-text { color: var(--ink-mute); font-size: .95rem; max-width: 40ch; }

.cat-arrow {
  position: absolute;
  right: 1.4rem; bottom: 1.4rem;
  font-size: 1.15rem;
  color: var(--moss);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

.cat-card-cta {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--bone);
  justify-content: center;
}
.cat-card-cta .cat-body { padding: 2rem 1.6rem; }
.cat-card-cta .cat-title { color: var(--bone); }
.cat-card-cta .cat-text { color: rgba(245, 242, 233, .72); margin-bottom: 1.5rem; }
.cat-card-cta .btn-primary { background: var(--bone); color: var(--forest); align-self: flex-start; }
.cat-card-cta .btn-primary::before { background: var(--honey-soft); }
.cat-card-cta:hover { transform: none; box-shadow: none; }

/* --- Por qué elegirnos --- */
.porque {
  position: relative;
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}
.porque-bg { position: absolute; inset: -12% 0 -12% 0; z-index: -1; }
.porque-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.72) brightness(.5);
  will-change: transform;
}
.porque-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 39, 29, .96) 0%, rgba(24, 39, 29, .82) 40%, rgba(24, 39, 29, .96) 100%);
}
.porque-inner { position: relative; }
.sec-head-dark .sec-head-meta { border-bottom-color: var(--line-dark); }
.sec-head-dark .sec-label { color: rgba(245, 242, 233, .6); }
.sec-head-dark .sec-num { color: var(--honey-soft); }
.sec-head-dark .h-display em { color: var(--honey-soft); }

.why-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.why-item {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.why-num {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--honey-soft);
  letter-spacing: .06em;
  padding-top: .18rem;
}
.why-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  margin-bottom: .5rem;
}
.why-text { color: rgba(245, 242, 233, .74); max-width: 58ch; }

.porque-close {
  margin-top: 2.8rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.3;
  max-width: 26ch;
  color: var(--bone);
}

/* --- Preguntas frecuentes --- */
.faq { background: var(--linen); }
.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink);
  transition: color .4s var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--moss); }

/* Signo + que gira a − al abrir */
.faq-mark {
  position: relative;
  flex: 0 0 auto;
  width: 22px; height: 22px;
}
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 15px; height: 1.5px;
  background: var(--moss);
  transform: translate(-50%, -50%);
  transition: transform .45s var(--ease-out), background .4s var(--ease-out);
}
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] .faq-mark::before,
.faq-item[open] .faq-mark::after { background: var(--honey); }

.faq-answer { padding: 0 0 1.6rem; }
.faq-answer p {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: .99rem;
}
.faq-item[open] .faq-answer { animation: faqIn .45s var(--ease-out); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (min-width: 960px) {
  .faq-item summary { padding-right: 2rem; }
  .faq-answer { padding-right: 4rem; }
}

/* --- Contacto --- */
.contacto { background: var(--bone); }
.contacto-grid { display: grid; gap: 2.4rem; }

.contacto-info { border-top: 1px solid var(--line); }
.ci {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .15rem 1rem;
  padding: 1.2rem .2rem;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left .5s var(--ease-out), background .5s var(--ease-out);
}
.ci-k {
  grid-column: 1;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ci-v {
  grid-column: 1;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.24;
  color: var(--ink);
  word-break: break-word;
}
.ci-a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--moss);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.ci:hover { padding-left: 1rem; background: rgba(74, 107, 82, .06); }
.ci:hover .ci-a { opacity: 1; transform: translateX(0); }

.contacto-map {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--linen);
  min-height: 320px;
}
.map-link {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--forest);
  font-size: .82rem;
  font-weight: 500;
  box-shadow: 0 8px 22px -12px rgba(24, 39, 29, .6);
  transition: transform .4s var(--ease-out), background .4s var(--ease-out);
}
.map-link:hover { transform: translateY(-2px); background: var(--bone); }
.contacto-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: saturate(.78) contrast(1.02);
}

/* --- Footer --- */
.footer {
  background: var(--forest-deep);
  color: var(--bone);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; align-items: center; gap: 1.1rem; }
.footer-logo {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-dark);
}
.footer-tag {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.2;
  color: rgba(245, 242, 233, .88);
}

.footer-nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a, .footer-contact a, .footer-contact span {
  font-size: .93rem;
  color: rgba(245, 242, 233, .7);
  transition: color .35s var(--ease-out);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--honey-soft); }
.footer-contact { display: flex; flex-direction: column; gap: .55rem; }

.legal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line-dark);
}
.legal-badge {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--honey-soft);
  color: var(--honey-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.legal-text {
  font-size: .84rem;
  line-height: 1.62;
  color: rgba(245, 242, 233, .58);
  max-width: 78ch;
}
.legal-text strong { color: rgba(245, 242, 233, .82); font-weight: 500; }

.footer-legal-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; order: 3; width: 100%; }
.footer-legal-nav a { color: rgba(245, 242, 233, .5); transition: color .35s var(--ease-out); }
.footer-legal-nav a:hover { color: var(--honey-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: .78rem;
  color: rgba(245, 242, 233, .45);
}

/* --- Verificación de edad (inyectada por JS) --- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(24, 39, 29, .97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: gateIn .5s var(--ease-out) forwards;
}
@keyframes gateIn { to { opacity: 1; } }
.gate.is-out { animation: gateOut .5s var(--ease-out) forwards; }
@keyframes gateOut { to { opacity: 0; visibility: hidden; } }

.gate-box {
  width: min(100%, 460px);
  text-align: center;
  color: var(--bone);
}
.gate-mark {
  width: 74px; height: 74px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-dark);
}
.gate-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  margin-bottom: .8rem;
}
.gate-text {
  font-size: .95rem;
  color: rgba(245, 242, 233, .68);
  margin-bottom: 1.8rem;
}
.gate-actions { display: flex; flex-direction: column; gap: .6rem; }
.gate-actions .btn-primary { background: var(--bone); color: var(--forest); }
.gate-actions .btn-primary::before { background: var(--honey-soft); }
.gate-actions .btn-ghost { color: rgba(245, 242, 233, .7); border-color: var(--line-dark); }
.gate-actions .btn-ghost::before { background: rgba(245, 242, 233, .1); }
.gate-legal {
  margin-top: 1.5rem;
  font-size: .74rem;
  line-height: 1.6;
  color: rgba(245, 242, 233, .4);
}

/* =============================================================
   7. Efectos
   ============================================================= */

/* Reveal por scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* DEFENSIVO — un elemento con .reveal Y data-split nunca puede quedar invisible.
   Declarado después de .reveal, así que gana siempre (gotcha A.4.5). */
.reveal[data-split] { opacity: 1; transform: none; }

/* Split por palabras */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em) rotate(1.2deg);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--wd, 0s);
}
.is-split-in .split-word { opacity: 1; transform: none; }

/* Trazado botánico — estado por defecto VISIBLE; la animación solo lo dibuja */
.leaflet, .cat-p { stroke-dasharray: 1; stroke-dashoffset: 0; }

.cat-svg[data-draw].is-drawn .cat-p {
  animation: drawStroke 1.15s var(--ease-out) backwards;
  animation-delay: var(--d, 0s);
}
@keyframes drawStroke {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .gate-actions { flex-direction: row; justify-content: center; }
  .cat-body { padding: 1.3rem 1.7rem 3.4rem; }
}

@media (min-width: 720px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1.2fr; align-items: start; }
  .why-item { grid-template-columns: 4.5rem 1fr; gap: 1.6rem; }
  .hero-bg { transform: scale(1.35); transform-origin: 80% 52%; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-drawer { display: none !important; }

  .tienda-grid { grid-template-columns: 220px 1fr; gap: 3.5rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
  .contacto-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
  .contacto-map, .contacto-map iframe { min-height: 440px; }

  .hero-inner { padding-right: max(var(--gutter), 34vw); }
  .hero-bg { transform: scale(1.62); transform-origin: 84% 55%; }
  .hero-bg img { object-position: 72% 45%; }
  .pledge li { grid-template-columns: 160px 1fr; align-items: baseline; }
}

@media (min-width: 1280px) {
  .cat-body { padding: 1.4rem 1.8rem 3.5rem; }
}

/* --- Aviso de cookies (inyectado por JS) --- */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 9996;
  display: flex;
  justify-content: center;
  transform: translateY(140%);
  transition: transform .55s var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-box {
  width: min(100%, 640px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-radius: 16px;
  background: var(--forest-deep);
  color: var(--bone);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
}
.cookie-banner-text {
  font-size: .86rem;
  line-height: 1.6;
  color: rgba(245, 242, 233, .78);
}
.cookie-banner-text a { color: var(--honey-soft); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cookie-banner-actions .btn-primary { background: var(--bone); color: var(--forest); }
.cookie-banner-actions .btn-primary::before { background: var(--honey-soft); }
.cookie-banner-actions .btn-ghost { color: rgba(245, 242, 233, .75); border-color: var(--line-dark); }
.cookie-banner-actions .btn-ghost::before { background: rgba(245, 242, 233, .1); }

@media (min-width: 640px) {
  .cookie-banner-box { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-banner-text { flex: 1; }
  .cookie-banner-actions { flex-shrink: 0; }
}

/* --- Mapa con consentimiento previo (evita cookies de Google sin permiso) --- */
.map-consent {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background: var(--linen);
  border: 1px dashed var(--line);
  border-radius: inherit;
}
.map-consent p {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 32ch;
}

/* --- Páginas legales --- */
.legal-page { padding-block: clamp(6.5rem, 12vw, 9.5rem) clamp(4rem, 8vw, 6rem); }
.legal-page .wrap { max-width: 820px; }
.legal-page-head { margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.legal-page-head .h-display { max-width: none; margin-top: .6rem; }
.legal-page-updated { margin-top: .9rem; font-size: .82rem; color: var(--ink-mute); }
.legal-body { color: var(--ink-soft); }
.legal-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--forest);
  margin: 2.6rem 0 .9rem;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 1rem; font-size: .98rem; line-height: 1.72; }
.legal-body ul { margin: 0 0 1.2rem; padding-left: 1.3rem; list-style: disc; }
.legal-body li { margin-bottom: .5rem; font-size: .98rem; line-height: 1.65; }
.legal-body a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; font-size: .92rem; }
.legal-body th, .legal-body td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.legal-body th { font-weight: 500; color: var(--ink); }
.legal-page-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.6rem;
  font-size: .84rem;
  color: var(--ink-mute);
}
.legal-page-back:hover { color: var(--forest); }
.legal-placeholder { background: rgba(185, 138, 62, .16); padding: .05em .35em; border-radius: 4px; color: var(--honey); font-weight: 500; }

/* =============================================================
   9. Reduced-motion — SOLO efectos intrusivos.
   Windows lo trae activado de fábrica en muchos equipos: si aquí
   apagáramos hovers, fades o el trazado, la web se vería muerta.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll-line { animation: none; opacity: .6; }
  .kicker-dot { animation: none; }
  .ticker-track { animation-duration: 90s; }
  .porque-bg img { transform: none !important; }
  .cookie-banner { transition: none; }
}
