/* Bell e Buòn · piel del sitio. El motor sólo lee estas variables. */
:root {
  --ink: #1b120c;
  --ink-2: #261910;
  --ink-3: #352418;
  --paper: #f6ecdf;
  --paper-2: #ecdcc6;
  --orange: #e0611c;
  --orange-2: #ff7a2f;
  --pine: #d9a066;
  --basil: #6f8a3a;
  --tomato: #c8321f;
  --line-dark: rgba(246, 236, 223, 0.12);
  --line-light: rgba(27, 18, 12, 0.12);
  --muted-dark: rgba(246, 236, 223, 0.62);
  --muted-light: rgba(27, 18, 12, 0.6);
  --radius: 18px;
  --radius-sm: 12px;
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }

/* grano de película sobre todo el sitio */
body::after {
  content: ''; position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 33% { transform: translate(-3%,2%) } 66% { transform: translate(2%,-3%) } }

.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; }
.display {
  margin: 0; font-family: var(--display); font-weight: 600; font-variation-settings: 'SOFT' 60, 'opsz' 144;
  font-size: clamp(40px, 6.4vw, 92px); line-height: .95; letter-spacing: -.025em;
}
.display em { font-style: italic; font-weight: 400; color: var(--orange-2); }

/* botones */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn--big { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn--small { --h: 42px; padding: 0 16px; font-size: 14px; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 10px 30px -10px rgba(224, 97, 28, .7); }
.btn--orange:hover { background: var(--orange-2); }
.btn--ghost { background: rgba(246, 236, 223, .1); color: var(--paper); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(246,236,223,.3); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--line { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* chips */
.chip {
  flex: none; height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-light); background: transparent;
  font-weight: 600; font-size: 14px; transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* loader */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--orange); display: grid; place-items: center;
  transition: clip-path 1s var(--ease) .1s; clip-path: inset(0 0 0 0);
  animation: loader-safety 1s var(--ease) 3.5s forwards; /* por si los scripts tardan */
}
@keyframes loader-safety { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__mark { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 9vw, 120px); color: var(--paper); display: flex; align-items: baseline; gap: .04em; overflow: hidden; }
.loader__mark > * { display: inline-block; animation: rise .9s var(--ease) both; }
.loader__mark em { font-weight: 400; font-size: .55em; color: var(--ink); animation-delay: .08s; }
.loader__mark span:last-child { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(110%); } }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter); transition: background-color .4s, backdrop-filter .4s, padding .4s; /* el transform lo anima GSAP */
}
.nav.is-solid { background: rgba(27, 18, 12, .78); backdrop-filter: blur(16px) saturate(1.3); padding-top: 10px; padding-bottom: 10px; box-shadow: 0 1px 0 var(--line-dark); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font-family: var(--display); font-weight: 700; font-size: 26px; text-decoration: none; letter-spacing: -.02em; }
.nav__logo em, .footer__mark em { font-weight: 400; color: var(--orange-2); font-size: .62em; margin: 0 .06em; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background-color .3s; }
.nav__links a:hover { background: rgba(246,236,223,.1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__count { background: var(--ink); color: var(--paper); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
.nav__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__logo { font-size: 22px; }
}

/* footer */
.footer { background: var(--orange); color: var(--ink); padding: 40px var(--gutter) 28px; overflow: hidden; }
.footer__mark { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 19vw, 300px); line-height: .85; letter-spacing: -.045em; white-space: nowrap; }
.footer__mark em { color: var(--paper); }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-size: 14px; font-weight: 500; }

/* toast */
.toast {
  position: fixed; left: 50%; top: calc(84px + env(safe-area-inset-top, 0px)); z-index: 80; transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.5); transition: opacity .3s, transform .5s var(--ease); white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
[hidden] { display: none !important; }
