/* =========================================================
   Brote · Café y matcha
   ========================================================= */

:root {
  /* Paleta */
  --bg: #B6CBA5;        /* salvia, fondo principal */
  --pale: #E8EFE4;      /* salvia muy claro */
  --leaf: #90B96D;
  --green: #335C30;
  --deep: #1E3D1B;      /* tinta principal */
  --cream: #F5F0E6;
  --muted: #2F4C2C;

  /* Tipografía */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;

  /* Layout */
  --gut: clamp(16px, 4vw, 64px);
  --max: 1360px;
  --nav-h: 76px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--deep);
  font: 400 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }

/* Textura de grano sutil sobre los fondos salvia */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .24 0 0 0 0 .1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Barra de progreso de lectura */
.progress {
  position: fixed; inset: 0 0 auto; z-index: 70; height: 3px;
  background: var(--deep); transform-origin: 0 50%; transform: scaleX(0);
}
.section { padding-block: clamp(96px, 14vw, 180px); }
.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 {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--deep); color: var(--cream); text-decoration: none;
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

/* ---------- Tipografía ---------- */
.display-h2 {
  font: 600 clamp(56px, 8.4vw, 132px)/.86 var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.eyebrow {
  font: 500 14px/1 var(--font-text);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.muted { color: var(--muted); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .12em; margin-block: -.12em; }
.char { display: inline-block; }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.link:hover { background-size: 100% 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font: 600 18px/1 var(--font-display);
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {   /* relleno que sube al pasar el mouse */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--leaf); transform: translateY(101%);
  transition: transform .4s var(--ease);
}
.btn:hover::before { transform: none; }
.btn span { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--dark { background: var(--deep); color: var(--cream); }
.btn--dark:hover { color: var(--deep); }
.btn--light { background: var(--cream); color: var(--deep); }
.btn--light:hover { color: var(--deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: transform .45s var(--ease), background-color .3s, box-shadow .3s;
}
.nav.is-scrolled { background: var(--bg); box-shadow: 0 1px 0 rgb(30 61 27 / .1); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 30px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none;
}
.brand img { transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-14deg); }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a {
  font: 500 19px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 12px 0;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.nav__links a:hover { background-size: 100% 2px; }
.nav__cta { min-height: 46px; padding: 0 22px; font-size: 17px; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 16px) var(--gut) 40px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
/* Composición en diagonal: CAFÉ arriba a la izquierda, la foto al centro,
   & MATCHA abajo a la derecha. */
.hero__stage {
  align-self: center;
  width: min(100%, var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: auto auto auto; justify-content: space-between;
  column-gap: 24px;
}
.hero__title {
  display: contents;
  font: 600 clamp(80px, 13vw, 220px)/.8 var(--font-display);
  text-transform: uppercase; letter-spacing: -.02em;
  color: var(--deep);
}
.hero__line {
  display: block; overflow: hidden; padding-block: .04em;
  grid-column: 1; grid-row: 1; align-self: start;
  position: relative; z-index: 2;
}
.hero__line--end { grid-column: 3; grid-row: 2; align-self: end; color: var(--green); }

.hero__media {
  position: relative; z-index: 1;
  grid-column: 2; grid-row: 1 / 3;
  width: clamp(190px, 21vw, 320px); aspect-ratio: 2 / 3;
}
.hero__photo {
  position: relative; height: 100%;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgb(30 61 27 / .45);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__ring {   /* el anillo blanco que gira detrás del vaso */
  position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 175%; aspect-ratio: 1; translate: -50% -50%;
  overflow: visible;
}
.badge {   /* sello circular con texto que gira */
  position: absolute; left: -22%; bottom: 8%;
  width: clamp(92px, 8.4vw, 128px);
}

.hero__foot {
  width: min(100%, var(--max)); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.hero__stats { display: flex; gap: clamp(20px, 3vw, 48px); }
.hero__stats li { max-width: 190px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.hero__stats strong {
  display: block; margin-bottom: 6px;
  font: 600 44px/.9 var(--font-display); text-transform: uppercase; color: var(--deep);
}
.hero__aside { max-width: 380px; display: grid; gap: 20px; justify-items: start; }
.hero__aside p { font-size: 17px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--deep); color: var(--cream);
  padding-block: 22px;
  font: 600 clamp(32px, 4.4vw, 64px)/1 var(--font-display); text-transform: uppercase;
}
.marquee--light { background: var(--leaf); color: var(--deep); }
.marquee__track { display: flex; width: max-content; }
.marquee__track span, .marquee__track i { padding-right: .55em; white-space: nowrap; font-style: normal; }
.marquee__track i { color: var(--leaf); }
.marquee--light .marquee__track i { color: var(--cream); }

/* ---------- Manifiesto ---------- */
.manifesto { background: var(--cream); }
.manifesto__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.manifesto__big {
  font: 500 clamp(34px, 4vw, 60px)/1.05 var(--font-display);
  letter-spacing: -.005em;
}
.manifesto__big .word { display: inline-block; }
.manifesto__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.manifesto__photos .photo:last-child { margin-top: 30%; }

.photo { overflow: hidden; border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 2 / 3; }

/* ---------- Diferencias ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { display: grid; align-content: start; gap: 14px; }
.card__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); margin-bottom: 8px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card h3 { font: 600 30px/1 var(--font-display); text-transform: uppercase; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- Carta ---------- */
.menu { background: var(--deep); color: var(--cream); }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.menu .display-h2 { margin-bottom: 36px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tab {
  min-height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgb(245 240 230 / .4); background: transparent; color: var(--cream);
  font: 600 18px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.tab:hover { border-color: var(--cream); transform: translateY(-2px); }
.tab[aria-selected="true"] { background: var(--leaf); border-color: var(--leaf); color: var(--deep); }
.rows li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid rgb(245 240 230 / .18);
}
.rows span { font: 500 26px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.rows em { display: block; margin-top: 6px; font: 400 15px/1.4 var(--font-text); text-transform: none; color: rgb(245 240 230 / .65); }
.rows b { font: 600 24px/1 var(--font-display); color: var(--leaf); font-variant-numeric: tabular-nums; transition: transform .3s var(--ease), color .3s; }
.rows span { transition: transform .35s var(--ease); }
.rows li:hover span { transform: translateX(10px); }
.rows li:hover b { color: var(--cream); transform: scale(1.08); }
.menu__media { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; }
.menu__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease);
}
.menu__media img.is-active { opacity: 1; }

/* ---------- Proceso ---------- */
.process { background: var(--pale); overflow: hidden; }
.process__track {
  display: flex; align-items: center; gap: clamp(24px, 3vw, 48px);
  height: 100svh; padding: calc(var(--nav-h) + 24px) var(--gut) 48px;
  width: max-content;
}
.process__intro { width: min(34vw, 460px); display: grid; gap: 24px; }
.process__intro p { max-width: 300px; }
.step { width: min(34vw, 470px); display: grid; gap: 12px; }
.step figure { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.step img { width: 100%; height: 100%; object-fit: cover; }
.step__n { font: 600 18px/1 var(--font-display); letter-spacing: .1em; color: var(--green); }
.step h3 { font: 600 clamp(40px, 4vw, 64px)/.9 var(--font-display); text-transform: uppercase; }
.step p { max-width: 400px; font-size: 16px; }

/* ---------- Granos ---------- */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(48px, 6vw, 88px); }
.head-row p { max-width: 360px; }
.beans__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bean {
  position: relative;
  min-height: 420px; padding: 28px;
  display: flex; flex-direction: column;
  background: var(--c); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.bean:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgb(30 61 27 / .5); }
.bean__icon {   /* grano dibujado */
  position: absolute; right: 24px; top: 24px;
  width: 44px; height: 56px; rotate: 20deg;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 56'%3E%3Cellipse cx='22' cy='28' rx='20' ry='26' fill='%231E3D1B'/%3E%3Cpath d='M25 5c-11 9 6 21-6 46' fill='none' stroke='%23F5F0E6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;

}
.bean__origin { font: 500 14px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.bean h3 { margin-top: auto; font: 600 clamp(48px, 4.4vw, 72px)/.85 var(--font-display); text-transform: uppercase; }
.bean__notes { margin-top: 14px; font-size: 16px; }
.bean__price { margin-top: 20px; padding-top: 16px; border-top: 1.5px solid rgb(30 61 27 / .25); font: 600 26px/1 var(--font-display); }

/* ---------- Visita ---------- */
.visit { background: var(--cream); }
.visit__street { margin-bottom: clamp(48px, 6vw, 80px); }
.visit__street a {
  font: 600 clamp(64px, 10vw, 170px)/.82 var(--font-display); text-transform: uppercase; letter-spacing: -.02em;
  text-decoration: none;
  background: linear-gradient(var(--leaf), var(--leaf)) 0 92% / 0 .08em no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.visit__street a:hover { background-size: 100% .08em; color: var(--green); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.visit__info { max-width: 520px; }
.visit__info h3 { font: 600 28px/1 var(--font-display); text-transform: uppercase; margin-bottom: 16px; }
.visit__info h3:not(:first-child) { margin-top: 40px; }
.visit__info p + p { margin-top: 12px; }
.hours div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgb(30 61 27 / .15); }
.hours dt, .hours dd { margin: 0; }
.hours dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.visit__photo { min-height: 480px; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--cream); }
.footer__inner { padding-block: clamp(80px, 10vw, 140px) 32px; }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__word {
  margin-block: clamp(48px, 8vw, 120px) 24px;
  font: 600 clamp(120px, 40vw, 600px)/.86 var(--font-display); text-transform: uppercase; letter-spacing: -.03em;
  color: var(--leaf); text-align: center; overflow: hidden; padding-top: .04em;
}
.footer__word .char { transition: color .3s; }
.footer__word .char:hover { color: var(--cream); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid rgb(245 240 230 / .2);
  font-size: 14px; color: rgb(245 240 230 / .75);
}
.footer__bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom a { text-decoration: none; padding-block: 12px; }
.footer__bottom a:hover { color: var(--cream); text-decoration: underline; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .cards, .beans__grid { grid-template-columns: repeat(2, 1fr); }
  .card__img { aspect-ratio: 4 / 3; }
}

@media (max-width: 899px) {
  /* Proceso: scroll horizontal nativo en pantallas chicas */
  .process__track {
    height: auto; width: auto; padding: 96px var(--gut);
    overflow-x: auto; scroll-snap-type: x mandatory; align-items: start;
    scrollbar-width: none;
  }
  .process__track::-webkit-scrollbar { display: none; }
  .process__intro, .step { flex: 0 0 82vw; width: 82vw; scroll-snap-align: start; }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }

  .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: var(--deep); cursor: pointer;
  }
  .nav__burger, .nav__burger::before, .nav__burger::after {
    display: block; width: 20px; height: 2px; background: var(--cream); border-radius: 2px;
    transition: transform .3s var(--ease), background-color .3s;
  }
  .nav__burger { position: relative; }
  .nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
  .nav__burger::before { top: -6px; }
  .nav__burger::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__burger { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__burger::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0; z-index: -1;
    flex-direction: column; gap: 0; padding: 32px var(--gut);
    background: var(--bg);
    transform: translateY(-110%); visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s .5s;
  }
  .nav__links a { font-size: 48px; padding: 10px 0; }
  .nav.is-open .nav__links { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .nav.is-open { background: var(--bg); }

  .hero { grid-template-rows: auto auto; gap: 24px; padding-bottom: 24px; }
  .hero__stage { display: flex; flex-direction: column; gap: 20px; align-self: start; }
  .hero__title { display: flex; flex-direction: column; font-size: 22vw; }
  .hero__line--end { align-self: flex-end; }
  .hero__media { width: auto; height: 26svh; align-self: center; }
  .hero__ring { width: 165%; }
  .badge { width: 76px; left: -30%; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero__stats { justify-content: space-between; gap: 12px; }
  .hero__stats strong { font-size: 24px; white-space: nowrap; }
  .hero__stats li { font-size: 13px; }
  .hero__aside { gap: 16px; }
  .hero__aside p { font-size: 15px; }
  .hero__aside .btn { width: 100%; justify-content: center; }

  .manifesto__grid, .menu__grid, .visit__grid { grid-template-columns: 1fr; }
  .menu__media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .rows span { font-size: 22px; }

  .cards { grid-template-columns: 1fr; gap: 40px; }
  .head-row { flex-direction: column; align-items: start; }
  .beans__grid { grid-template-columns: 1fr; }
  .bean { min-height: 240px; }

  .footer__cta .btn { width: 100%; justify-content: center; }
}


/* ---------- Créditos ---------- */
.credits__list li { padding: 14px 0; border-bottom: 1px solid rgb(30 61 27 / .15); font-size: 15px; overflow-wrap: anywhere; }
.credits__list a { text-underline-offset: 3px; }
