/* Primer Crack — demo DevEps. La página se tuesta al bajar: verde crudo, paja, canela, tostado y descarga. */

@font-face {
  font-family: 'Big Shoulders';
  src: url('fonts/big-shoulders.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* Colores del tueste */
  --verde: #C9CD9B;
  --paja: #EACB78;
  --canela: #D4924F;
  --tostado: #8A5130;
  --oscuro: #2B180F;
  /* Tintas */
  --tinta: #1D2340;
  --hueso: #F4E9D8;
  --kraft: #C9A272;
  --wa: #146C43;

  --display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --texto: 'Newsreader', Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --rebote: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 48px);

  /* La cabecera toma el color de la sección que tiene debajo (lo cambia script.js) */
  --hdr-bg: var(--verde);
  --hdr-ink: var(--tinta);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--verde);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 18px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .92; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(52px, 8vw, 112px); }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; max-width: 38ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: var(--hueso); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--tinta);
  background: var(--tinta); color: var(--hueso);
  font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: .01em; text-decoration: none;
  transition: transform .35s var(--rebote), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 18px; }
.btn-line { background: transparent; color: currentColor; border-color: currentColor; }
.btn-light { background: var(--hueso); color: var(--tinta); border-color: var(--hueso); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Cinta y cabecera ────────────────────────────────────────────────── */
.ribbon {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 8px var(--gutter);
  background: var(--tinta); color: var(--hueso); font-size: 15px; text-align: center;
}
.ribbon a { font-weight: 600; }
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--hdr-bg) 90%, transparent);
  color: var(--hdr-ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .5s, color .5s;
}
.nav .btn { margin-left: auto; background: var(--hdr-ink); border-color: var(--hdr-ink); color: var(--hdr-bg); transition: transform .35s var(--rebote), background-color .5s, color .5s; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; }
.logo-bean { width: 20px; height: 28px; rotate: 18deg; }
.logo-bean path:first-child { fill: currentColor; }
.logo-bean path:last-child { fill: currentColor; opacity: .7; }
.logo:hover .logo-bean { animation: tiembla .4s; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 17px; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; scale: 0 1; transform-origin: left; transition: scale .35s var(--ease); }
.nav-links a:hover::after { scale: 1 1; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ── Portada ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--verde); padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 110px); }
.hero-inner { position: relative; display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.35fr 1fr; min-height: calc(100svh - 230px); } }
.mark { font-size: clamp(120px, 33vw, 400px); font-weight: 900; line-height: .86; letter-spacing: -.01em; text-transform: uppercase; }
@media (min-width: 900px) { .mark { font-size: clamp(140px, 16.5vw, 290px); } }
.mark-1, .mark-2 { display: block; }
.mark-2 { position: relative; color: var(--tostado); }
.crack-a, .crack-b { display: block; }
.crack-a { clip-path: polygon(0 0, 100% 0, 100% 49%, 88% 57%, 76% 46%, 63% 58%, 50% 47%, 38% 57%, 25% 45%, 12% 55%, 0 49%); }
.crack-b { position: absolute; inset: 0; clip-path: polygon(0 49%, 12% 55%, 25% 45%, 38% 57%, 50% 47%, 63% 58%, 76% 46%, 88% 56%, 100% 49%, 100% 100%, 0 100%); }
.hero-copy { display: grid; gap: 22px; padding-bottom: .4em; }
.hero-note { font-size: 16px; opacity: .8; }

/* Granos que flotan detrás del nombre */
.hero-beans { position: absolute; inset: 0; pointer-events: none; }
.fly { position: absolute; width: var(--s); height: auto; }
.fly path:first-child { fill: var(--c1); }
.fly path:last-child { fill: var(--c2); }
.f1 { --s: clamp(54px, 8vw, 110px); --c1: #7E8A47; --c2: #9AA466; right: 8%; top: 8%; rotate: 24deg; }
.f2 { --s: clamp(36px, 5vw, 70px); --c1: #B58A35; --c2: #D3AC55; right: 34%; top: 22%; rotate: -40deg; }
.f3 { --s: clamp(70px, 11vw, 150px); --c1: #6C3A1F; --c2: #8A5130; right: -2%; top: 46%; rotate: 70deg; }
.f4 { --s: clamp(30px, 4vw, 54px); --c1: #A8662F; --c2: #C78445; right: 22%; top: 64%; rotate: 10deg; }
@media (max-width: 899px) {
  .f1 { top: 3%; right: 6%; }
  .f2 { top: 30%; right: 12%; }
  .f3 { top: 52%; right: -6%; }
  .f4 { top: 74%; right: 30%; }
}

/* ── El tueste (sección fija mientras se baja) ───────────────────────── */
.roast { --bg: var(--verde); --ink: var(--tinta); --bean-1: #7E8A47; --bean-2: #9AA466; --p: 0; height: 520vh; position: relative; background: var(--bg); }
.roast-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); color: var(--ink); }
.roast-grid {
  height: 100%; display: grid; gap: 12px 40px;
  padding-top: clamp(76px, 10vh, 110px); padding-bottom: 28px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "head bean" "read bean" "stages bean" "bar bar";
}
.roast-head { grid-area: head; }
.roast-head h2 { font-size: clamp(44px, 6vw, 88px); }
.roast-sub { margin-top: 10px; font-size: 18px; opacity: .85; }
.readout { grid-area: read; display: flex; align-items: baseline; gap: 18px; font-family: var(--display); font-variant-numeric: tabular-nums; }
.clock { font-size: clamp(84px, 12vw, 190px); font-weight: 900; line-height: .85; }
.temp { font-size: clamp(28px, 3vw, 44px); font-weight: 700; }
.roast-bean { grid-area: bean; position: relative; display: grid; place-items: center; min-height: 0; }
.bean {
  height: min(70svh, 100%); width: auto; overflow: visible;
  rotate: calc(var(--p) * 140deg - 20deg); scale: calc(.9 + var(--p) * .18);
}
.half path { transition: fill .2s; }
.half-l path { fill: var(--bean-1); }
.half-r path { fill: var(--bean-2); }
.half { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--rebote); }
.groove { fill: none; stroke: var(--bean-1); stroke-width: 5; stroke-linecap: round; filter: brightness(.7); transition: opacity .3s; }
.chaff { fill: var(--ink); opacity: 0; transform-box: view-box; transform-origin: 60px 84px; }
.pop { position: absolute; top: 12%; right: 6%; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 6vw, 88px); line-height: 1; opacity: 0; rotate: -8deg; }
.roast.crack .half-l { transform: translateX(-7px); }
.roast.crack .half-r { transform: translateX(7px); }
.roast.crack .groove { opacity: 0; }
.roast.crack .pop { opacity: 1; }
.stages { grid-area: stages; list-style: none; margin: 0; padding: 0; display: grid; align-content: end; gap: 6px; }
.stages li { display: grid; grid-template-columns: 4.2em 1fr; column-gap: 12px; opacity: .38; transition: opacity .3s; }
.stages time { font-family: var(--display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.stages strong { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.2; }
.stages span { grid-column: 2; display: none; font-size: 17px; line-height: 1.45; max-width: 40ch; }
.stages li.pasado { opacity: .62; }
.stages li.activo { opacity: 1; }
.stages li.activo span { display: block; }
.roast-bar { grid-area: bar; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; }
.roast-bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; scale: var(--p) 1; }

@media (max-width: 899px) {
  .roast { height: 460vh; }
  .roast-grid {
    grid-template-columns: 1fr; gap: 8px;
    grid-template-rows: auto auto 1fr auto auto;
    grid-template-areas: "head" "read" "bean" "stages" "bar";
    padding-top: 72px; padding-bottom: 20px;
  }
  .roast-head h2 { font-size: 44px; }
  .roast-sub { font-size: 16px; margin-top: 4px; }
  .clock { font-size: 76px; }
  .temp { font-size: 28px; }
  /* El grano se mide con su hueco (no con la pantalla): girado y crecido sigue cabiendo y no pisa los textos */
  .roast-bean { container-type: size; }
  .bean { height: min(44svh, 100cqh); }
  .stages { gap: 0; min-height: 7.2em; align-content: start; }
  .stages li { display: none; }
  .stages li.activo { display: grid; }
}
@media (max-width: 899px) and (max-height: 720px) {
  .roast-head h2 { font-size: 36px; }
  .clock { font-size: 60px; }
  .temp { font-size: 24px; }
}

/* ── Foto de la descarga ─────────────────────────────────────────────── */
.drop { margin: 0; background: var(--oscuro); color: var(--hueso); padding-bottom: clamp(40px, 6vw, 80px); }
.drop-frame { height: min(86svh, 820px); overflow: hidden; }
.drop-frame img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.drop figcaption { margin-top: 24px; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; max-width: 30ch; }

/* ── Cafés ───────────────────────────────────────────────────────────── */
.cafes { background: var(--oscuro); color: var(--hueso); padding-bottom: clamp(72px, 10vw, 140px); }
.notes-band { overflow: hidden; border-block: 1px solid color-mix(in srgb, var(--hueso) 22%, transparent); padding-block: 14px; margin-bottom: clamp(56px, 8vw, 110px); }
.notes-track { display: flex; width: max-content; animation: cinta 46s linear infinite; }
.notes-band:hover .notes-track { animation-play-state: paused; }
.notes-track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: 1.1; color: var(--canela); }
.notes-track svg { width: 18px; height: 26px; flex: none; rotate: 30deg; }
.notes-track svg path { fill: color-mix(in srgb, var(--hueso) 40%, transparent); }
@keyframes cinta { to { translate: -50% 0; } }

.cafes-head { display: grid; gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.cafes-head .lead { margin-top: 20px; }
@media (min-width: 900px) { .cafes-head { grid-template-columns: 1fr 340px; } }
.cafes-photo { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; max-width: 340px; }
.cafes-photo img { width: 100%; height: 116%; object-fit: cover; margin-top: -8%; }
@media (max-width: 899px) { .cafes-photo { max-width: none; aspect-ratio: 16 / 11; } }

.coffees { list-style: none; margin: 0; padding: 0; }
.coffee {
  --c: var(--canela);
  display: grid; gap: 18px 36px; padding-block: 34px;
  border-top: 1px solid color-mix(in srgb, var(--hueso) 22%, transparent);
  grid-template-columns: 72px 1.2fr 1fr auto; align-items: center;
}
.coffee:last-child { border-bottom: 1px solid color-mix(in srgb, var(--hueso) 22%, transparent); }
.coffee-bean { width: 52px; height: auto; rotate: 20deg; transition: rotate .6s var(--rebote); }
.coffee-bean path:first-child { fill: var(--c); }
.coffee-bean path:last-child { fill: color-mix(in srgb, var(--c) 75%, white); }
.coffee:hover .coffee-bean { rotate: 200deg; }
.coffee h3 { font-size: clamp(42px, 5vw, 68px); font-weight: 800; }
.coffee-origin { margin-top: 8px; font-size: 16px; opacity: .78; }
.coffee-notes { font-size: 20px; line-height: 1.4; margin-bottom: 14px; }
.flavor { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.flavor li { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; gap: 10px; font-size: 15px; }
.flavor i { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--hueso) 16%, transparent); overflow: hidden; }
.flavor i::before { content: ''; display: block; height: 100%; width: calc(var(--v) * 10%); background: var(--c); border-radius: 3px; }
.coffee-buy { display: grid; justify-items: end; gap: 10px; text-align: right; }
.coffee-price { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.coffee-price small { display: block; font-family: var(--texto); font-weight: 400; font-size: 15px; opacity: .75; margin-top: 4px; }
.coffee .btn { background: var(--hueso); color: var(--oscuro); border-color: var(--hueso); }
@media (max-width: 899px) {
  .coffee { grid-template-columns: 52px 1fr; padding-block: 28px; }
  .coffee-bean { width: 40px; }
  .coffee-taste, .coffee-buy { grid-column: 1 / -1; }
  .coffee-buy { grid-template-columns: 1fr auto; align-items: center; justify-items: start; text-align: left; }
}

/* ── Monta tu bolsa ─────────────────────────────────────────────────── */
.order { background: var(--paja); padding-block: clamp(72px, 10vw, 140px); }
.order-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
.order-form { display: grid; gap: 28px; }
.order-form h2 { margin-bottom: 8px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  min-height: 46px; padding: 6px 18px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--tinta); background: transparent; color: var(--tinta);
  font: inherit; font-size: 17px; line-height: 1.2; text-align: left;
  transition: background-color .2s, color .2s, transform .3s var(--rebote);
}
.seg button small { display: block; font-size: 13px; opacity: .75; }
.seg button:hover { transform: translateY(-2px); }
.seg button[aria-pressed="true"] { background: var(--tinta); color: var(--paja); }
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; font-size: 18px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { flex: none; width: 54px; height: 32px; border-radius: 999px; background: color-mix(in srgb, var(--tinta) 22%, transparent); position: relative; transition: background-color .25s; }
.track::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--hueso); transition: translate .35s var(--rebote); }
.switch input:checked + .track { background: var(--tinta); }
.switch input:checked + .track::after { translate: 22px 0; }
.switch input:focus-visible + .track { outline: 3px solid var(--tinta); outline-offset: 3px; }

.bag-panel { display: grid; gap: 24px; }
@media (min-width: 900px) { .bag-panel { position: sticky; top: 96px; } }
.bag-stage { display: grid; place-items: center; padding-block: 24px 8px; }
.bag {
  --c: var(--canela);
  position: relative; width: min(300px, 78vw); aspect-ratio: 3 / 4;
  padding: 26% 12% 12%;
  background:
    repeating-linear-gradient(97deg, rgb(255 255 255 / .05) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(8deg, rgb(80 50 20 / .06) 0 1px, transparent 1px 5px),
    linear-gradient(100deg, #B8915F, var(--kraft) 30%, #D3B181 62%, #B48C5A);
  border-radius: 6px 6px 14px 14px;
  box-shadow: 0 30px 50px -20px rgb(60 30 10 / .45), inset 0 -10px 18px rgb(0 0 0 / .08);
  rotate: -3deg;
}
/* Cierre dentado de la bolsa */
.bag::before {
  content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 14px;
  background: linear-gradient(135deg, transparent 50%, #B8915F 50%) 0 0 / 14px 14px repeat-x,
              linear-gradient(225deg, transparent 50%, #B8915F 50%) 0 0 / 14px 14px repeat-x;
}
.bag::after { content: ''; position: absolute; left: 6%; right: 6%; top: 9%; height: 3px; border-radius: 2px; background: rgb(80 50 20 / .18); }
.bag-valve { position: absolute; top: 14%; right: 13%; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #8B6A40 30%, #A47F50 32%, #A47F50 60%, #8B6A40 62%); }
.bag-label {
  display: grid; gap: 4px; padding: 16px 16px 14px; background: #FBF5EA; color: var(--tinta);
  border-top: 10px solid var(--c); border-radius: 2px; box-shadow: 0 1px 2px rgb(0 0 0 / .15);
}
.bag-brand { font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: .02em; }
.bag-label strong { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: .95; }
.bag-notes { font-size: 15px; line-height: 1.35; }
.bag-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--tinta) 35%, transparent); }
.bag-meta dt { font-size: 12px; opacity: .7; }
.bag-meta dt, .bag-meta dd { white-space: nowrap; }
.bag-meta dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.1; }
.bag.salta { animation: bolsa .6s var(--ease); }
.bag.salta .bag-label { animation: sello .5s var(--rebote); }
@keyframes bolsa { 0% { translate: 0 0; } 30% { translate: 0 -18px; scale: 1.02 .98; } 60% { translate: 0 4px; scale: .98 1.02; } 100% { translate: 0 0; scale: 1; } }
@keyframes sello { 0% { scale: 1.08; rotate: -3deg; } 100% { scale: 1; rotate: 0deg; } }

.total { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 2px solid var(--tinta); }
.total-label { display: block; font-size: 16px; }
.price { display: block; font-family: var(--display); font-weight: 900; font-size: 60px; line-height: .9; font-variant-numeric: tabular-nums; }
.price-note { display: block; font-size: 15px; min-height: 1.4em; }
.fineprint { font-size: 15px; opacity: .8; }

.order-bar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--tinta); color: var(--hueso); box-shadow: 0 14px 30px -10px rgb(0 0 0 / .5);
  translate: 0 140%; transition: translate .45s var(--ease);
}
.order-bar.visible { translate: 0 0; }
.order-bar-sum { display: grid; line-height: 1.15; min-width: 0; }
.order-bar output { font-family: var(--display); font-weight: 900; font-size: 26px; }
.order-bar-sum span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-bar .btn { min-height: 46px; padding: 0 18px; font-size: 18px; }
@media (max-width: 899px) { .order-bar { display: flex; } }

/* ── Visítanos ───────────────────────────────────────────────────────── */
.visit { background: var(--verde); padding-block: clamp(72px, 10vw, 140px); }
.visit-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.visit-photo { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; }
.visit-photo img { width: 100%; height: 116%; object-fit: cover; margin-top: -8%; }
.visit-copy { display: grid; gap: 20px; }
address { font-style: normal; font-size: 20px; }
.open { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.open::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #B33A1E; }
.open.abierto::before { background: var(--wa); box-shadow: 0 0 0 0 rgb(20 108 67 / .5); animation: latido 2s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px rgb(20 108 67 / 0); } 100% { box-shadow: 0 0 0 0 rgb(20 108 67 / 0); } }
.hours-title { font-size: 28px; margin-top: 8px; }
.hours { list-style: none; margin: 0; padding: 0; max-width: 360px; }
.hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--tinta) 18%, transparent); font-variant-numeric: tabular-nums; }
.hours li[aria-current] { font-weight: 600; }

/* ── DevEps ──────────────────────────────────────────────────────────── */
.devs { background: var(--tinta); color: var(--hueso); padding-block: clamp(72px, 10vw, 140px); }
.devs-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .devs-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; } }
.devs .lead { margin-block: 20px 28px; }
.feats { margin: 0; display: grid; gap: 24px; }
.feats dt { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.feats dd { margin: 4px 0 0; opacity: .82; }
.footer { background: #151A31; color: color-mix(in srgb, var(--hueso) 75%, transparent); padding-block: 28px 96px; font-size: 15px; }
@media (min-width: 900px) { .footer { padding-bottom: 28px; } }

/* ── Movimiento (solo si la persona no ha pedido reducirlo) ──────────── */
@keyframes tiembla { 25% { rotate: 8deg; } 50% { rotate: 28deg; } 75% { rotate: 12deg; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Portada: el nombre entra y la palabra «crack» se agrieta */
  .mark-1 { animation: entra-letra .9s var(--ease) backwards; }
  .mark-2 { animation: entra-letra .9s .12s var(--ease) backwards; }
  .crack-a { animation: grieta-a .7s 1.05s var(--rebote) both; }
  .crack-b { animation: grieta-b .7s 1.05s var(--rebote) both; }
  .hero-copy > * { animation: entra .8s var(--ease) backwards; }
  .hero-copy > :nth-child(1) { animation-delay: .35s; }
  .hero-copy > :nth-child(2) { animation-delay: .5s; }
  .hero-copy > :nth-child(3) { animation-delay: .65s; }
  .fly { animation: flota 9s ease-in-out infinite alternate; }
  .f2 { animation-duration: 7s; animation-delay: -2s; }
  .f3 { animation-duration: 11s; animation-delay: -5s; }
  .f4 { animation-duration: 6s; animation-delay: -1s; }

  /* Tueste: el grano tiembla antes de crujir y suelta la cascarilla */
  .roast.casi .bean { animation: vibra .12s linear infinite; }
  .roast.crack .chaff { animation: cascarilla .9s var(--ease); }
  .roast.crack .pop { animation: crac .7s var(--rebote); }

  /* Al aparecer en pantalla (la clase la pone script.js) */
  .anim [data-reveal="sube"] { opacity: 0; translate: 0 32px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .anim [data-reveal="cortina"] { clip-path: inset(0 0 100% 0); translate: 0 .25em; transition: clip-path .9s var(--ease), translate .9s var(--ease); }
  .anim [data-reveal].visto { opacity: 1; translate: 0 0; clip-path: inset(0 0 -10% 0); }
  .anim .coffee .flavor i::before { scale: 0 1; transform-origin: left; transition: scale 1.1s .25s var(--ease); }
  .anim .coffee.visto .flavor i::before { scale: 1 1; }
}
@keyframes entra-letra { from { translate: 0 .5em; opacity: 0; } }
@keyframes entra { from { translate: 0 24px; opacity: 0; } }
@keyframes grieta-a { 0% { translate: 0 0; } 40% { translate: -.012em -.018em; } 100% { translate: -.004em -.006em; } }
@keyframes grieta-b { 0% { translate: 0 0; rotate: 0deg; } 40% { translate: .02em .035em; rotate: 1.4deg; } 100% { translate: .008em .014em; rotate: .5deg; } }
@keyframes flota { from { transform: translateY(-10px) rotate(-8deg); } to { transform: translateY(14px) rotate(10deg); } }
@keyframes vibra { 0% { translate: 0 0; } 25% { translate: 1.5px -1px; } 50% { translate: -1px 1.5px; } 75% { translate: 1px 1px; } }
@keyframes cascarilla { 0% { opacity: 1; scale: .7; } 100% { opacity: 0; scale: 1.5; } }
@keyframes crac { 0% { scale: .3; opacity: 0; } 60% { scale: 1.15; opacity: 1; } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  .notes-track { animation: none; flex-wrap: wrap; width: auto; }
  .notes-track span:nth-child(2) { display: none; }
  .crack-b { translate: .008em .014em; rotate: .5deg; }
}
