/* Farmasi × Monetichain. Primero el teléfono. */
:root {
  --paper: #fbf3ee; --ink: #24121c; --muted: #7a5a68; --pink: #e0367f; --rose: #f7c9d9; --gold: #c9a45c;
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(18px, 4vw, 44px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 Figtree, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: 76px; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; color: var(--pink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 12px; }

.fx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px dashed var(--ink); background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .3s, color .3s, transform .45s var(--spring); }
.fx-btn:hover { background: var(--ink); color: #fff; border-style: solid; }
.fx-btn:active { transform: scale(.96); }
.fx-btn.dark { background: var(--ink); color: #fff; border-style: solid; }
.fx-btn.dark:hover { background: var(--pink); border-color: var(--pink); }
.fx-btn.big { min-height: 54px; padding: 0 26px; font-size: 16px; }
.fx-cap { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fx-fine { margin-top: 14px; font-size: 13px; color: var(--muted); }
.fx-center { text-align: center; margin-top: 28px; }
.fx-lead { max-width: 46ch; font-size: clamp(17px, 2.2vw, 21px); color: #4c3340; }

.fx-rv { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.fx-rv.in { opacity: 1; transform: none; filter: none; }

/* Navegación */
.fx-nav { position: fixed; z-index: 50; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; border-radius: 999px; background: rgba(251, 243, 238, .6); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(36, 18, 28, .08); transition: box-shadow .4s, background-color .4s; }
.fx-scrolled .fx-nav { background: rgba(255, 255, 255, .82); box-shadow: 0 12px 30px -16px rgba(36, 18, 28, .4); }
.fx-home { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-right: auto; }
.fx-home img { border-radius: 10px; }
.fx-nav nav { display: none; gap: 4px; }
.fx-nav nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; }
.fx-nav nav a:hover { background: rgba(36, 18, 28, .08); }

/* Inicio */
.fx-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 120px var(--pad) 64px; overflow: hidden; background: radial-gradient(90% 60% at 80% 12%, #ffd3e2 0%, rgba(255, 211, 226, 0) 60%), radial-gradient(70% 50% at 0% 40%, #fde7c8 0%, rgba(253, 231, 200, 0) 60%); }
.fx-hero h1 { font: 400 clamp(52px, 13.5vw, 150px)/.92 var(--serif); letter-spacing: -.025em; max-width: 11ch; text-wrap: balance; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
section[id] { scroll-margin-top: 84px; }
.fx-mid { justify-content: center; margin-top: 28px; }
.fx-scroll { position: absolute; right: var(--pad); bottom: 22px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(8px); } }
.fx-float { --sy: 0; position: absolute; inset: 0; pointer-events: none; }
.fx-float span { position: absolute; width: clamp(64px, 17vw, 150px); aspect-ratio: 100 / 160; filter: drop-shadow(0 26px 22px rgba(120, 40, 80, .28)); animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
.fx-float svg { width: 100%; height: 100%; transform: translateY(calc(var(--sy) * (var(--i) + 2) * -46px)) rotate(calc(var(--r, 0deg) + var(--sy) * 24deg)); }
.fx-float span:nth-child(1) { right: 6%; top: 15%; --r: 14deg; }
.fx-float span:nth-child(2) { right: 38%; top: 9%; --r: -10deg; width: clamp(56px, 13vw, 120px); }
.fx-float span:nth-child(3) { right: 22%; top: 30%; --r: -22deg; }
.fx-float span:nth-child(4) { left: 4%; top: 12%; --r: 8deg; width: clamp(50px, 11vw, 104px); }
.fx-float span:nth-child(5) { left: 30%; top: 24%; --r: 18deg; width: clamp(46px, 10vw, 96px); opacity: .9; }
.fx-float span:nth-child(6) { right: 2%; top: 42%; --r: -8deg; width: clamp(44px, 9vw, 90px); }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* Historia fijada */
.fx-story { --p: 0; --tone: #cf5378; position: relative; height: 320vh; }
.fx-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--ink); color: #fff; }
.fx-orb { position: absolute; width: 120vmax; height: 120vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--tone), rgba(36, 18, 28, 0) 70%); opacity: .55; transform: scale(calc(.5 + var(--p) * .7)); transition: background 1s; }
.fx-tube { position: relative; height: min(52svh, 460px); aspect-ratio: 100 / 160; margin-top: -16svh; transform: rotate(calc(-18deg + var(--p) * 36deg)) scale(calc(.86 + var(--p) * .3)); filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .5)); }
.fx-tube svg { width: 100%; height: 100%; }
.fx-steps { position: absolute; left: var(--pad); right: var(--pad); bottom: 12svh; }
.fx-steps article { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.fx-steps article.on { opacity: 1; transform: none; filter: none; }
.fx-steps span { font-size: 12px; letter-spacing: .2em; color: var(--rose); }
.fx-steps h2 { margin: 6px 0 8px; font: 400 clamp(46px, 11vw, 96px)/.95 var(--serif); }
.fx-steps p { color: rgba(255, 255, 255, .78); max-width: 40ch; }
.fx-dots { position: absolute; right: var(--pad); top: 50%; display: grid; gap: 8px; }
.fx-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .35); transition: height .5s var(--ease), background .4s; }
.fx-dots i.on { height: 26px; background: #fff; }

/* Secciones */
.fx-sec { padding: clamp(72px, 12vw, 150px) var(--pad) 0; max-width: 1240px; margin: 0 auto; }
.fx-h { margin: 10px 0 0; font: 400 clamp(42px, 9vw, 96px)/.95 var(--serif); letter-spacing: -.02em; max-width: 14ch; text-wrap: balance; }

.fx-game { display: grid; gap: 28px; margin-top: 34px; align-items: center; }
.fx-phone { justify-self: center; width: min(250px, 66vw); aspect-ratio: 9 / 18.5; padding: 9px; border-radius: 40px; background: #1c0f17; box-shadow: 0 50px 80px -34px rgba(120, 40, 80, .7), inset 0 0 0 2px #4a2c3c; transform: rotate(-5deg); }
.fx-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 12px; background: radial-gradient(90% 60% at 50% 30%, #f7b7c9, #d77a9d 45%, #5a2748); color: #fff; }
.fx-screen b { font: italic 400 30px/1 var(--serif); }
.fx-face { position: relative; width: 78%; aspect-ratio: 4 / 5; border-radius: 50% 50% 16px 16px / 34% 34% 16px 16px; border: 2px solid #f1d9a0; background: #fbe6e0; overflow: hidden; }
.fx-face i { position: absolute; display: block; }
.fx-face .h { left: 12%; right: 12%; top: 8%; bottom: -10%; border-radius: 46% 46% 30% 30%; background: #2a1c18; }
.fx-face .f { left: 24%; right: 24%; top: 22%; height: 62%; border-radius: 46% 46% 48% 48% / 42% 42% 58% 58%; background: #d6a273; }
.fx-face .e { top: 46%; width: 11%; height: 4%; border-radius: 50%; background: #1a1012; }
.fx-face .e.l { left: 33%; } .fx-face .e.r { right: 33%; }
.fx-face .c { top: 56%; width: 13%; height: 8%; border-radius: 50%; background: #ee7f9c; opacity: .7; filter: blur(3px); }
.fx-face .c.l { left: 28%; } .fx-face .c.r { right: 28%; }
.fx-face .m { left: 42%; right: 42%; top: 68%; height: 5%; border-radius: 40% 40% 60% 60%; background: #b1112c; animation: tones 6s steps(1) infinite; }
@keyframes tones { 0% { background: #b1112c; } 25% { background: #cf5378; } 50% { background: #6a1230; } 75% { background: #de523d; } }
.fx-scan { position: absolute; left: 0; right: 0; height: 2px; background: #fff; box-shadow: 0 0 18px 5px rgba(255, 255, 255, .7); animation: sweep 1.5s cubic-bezier(.7, 0, .25, 1) infinite; }
@keyframes sweep { from { top: 0; opacity: 1; } 80% { opacity: 1; } to { top: 100%; opacity: 0; } }
.fx-sw { display: flex; gap: 7px; }
.fx-sw i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); }
.fx-sw i:nth-child(1) { background: #b0685a; } .fx-sw i:nth-child(2) { background: #cf5378; } .fx-sw i:nth-child(3) { background: #b1112c; box-shadow: 0 0 0 2px #fff; } .fx-sw i:nth-child(4) { background: #bf1777; } .fx-sw i:nth-child(5) { background: #6a1230; }
.fx-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fx-feats li { padding: 18px 0; border-top: 1px dashed var(--ink); }
.fx-feats li:last-child { border-bottom: 1px dashed var(--ink); }
.fx-feats b { display: block; font: 400 30px/1.05 var(--serif); margin-bottom: 4px; }
.fx-feats span { color: #4c3340; }

/* Anillo */
.fx-ringsec { margin-top: clamp(72px, 12vw, 150px); padding-top: 40px; background: #ececec; }
.fx-ringsec > .fx-cap { text-align: center; }
.fx-ring { position: relative; height: min(78svh, 640px); min-height: 440px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.fx-ring.drag { cursor: grabbing; }
.fx-ring:focus-visible { box-shadow: inset 0 0 0 2px #000; }
.fx-ell { position: absolute; left: 50%; top: var(--cy, 50%); width: var(--rx); height: var(--ry); border: 1px dashed rgba(0, 0, 0, .2); border-radius: 50%; transform: translate(-50%, -50%); }
.fx-title { position: absolute; left: 50%; top: var(--ty, 40%); transform: translate(-50%, -50%); text-align: center; pointer-events: none; width: 90%; }
.fx-title p { font: 400 clamp(34px, 5.4vw, 74px)/.98 var(--serif); letter-spacing: -.01em; }
.fx-title small { display: block; margin-top: 12px; font-size: 13px; color: #6f6f6f; }
.fx-crowd { position: absolute; inset: 0; }
.fx-model { position: absolute; left: 0; bottom: 0; height: var(--mh, 200px); aspect-ratio: 100 / 160; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; will-change: transform; }
.fx-model svg { width: 100%; height: 100%; pointer-events: none; }
.fx-model span { position: absolute; left: -10%; right: -10%; bottom: -2%; height: 12%; background: radial-gradient(closest-side, rgba(0, 0, 0, .34), transparent); filter: blur(3px); }
.fx-dock { display: grid; gap: 14px; padding: 6px var(--pad) 40px; max-width: 1240px; margin: 0 auto; }
.fx-dock h3 { font-size: clamp(28px, 4vw, 40px); font-weight: 400; letter-spacing: -.04em; text-transform: uppercase; line-height: 1.05; }
.fx-dock p { max-width: 46ch; color: #444; font-size: 15px; }
.fx-dock ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fx-dock li { padding: 8px 14px; border: 1px dashed #000; border-radius: 999px; background: #fff; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.fx-dock .fx-btn { justify-self: start; }
.fx-dock.swap > div, .fx-dock.swap ul { animation: swap .8s var(--ease); }
@keyframes swap { from { opacity: 0; filter: blur(5px); transform: translateY(16px); } }

/* Carril */
.fx-rail { display: flex; gap: 14px; margin: 30px calc(var(--pad) * -1) 0; padding: 8px var(--pad) 26px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fx-rail::-webkit-scrollbar { display: none; }
.fx-card { flex: 0 0 min(72vw, 270px); scroll-snap-align: center; display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 28px; background: #fff; border: 1px solid rgba(36, 18, 28, .08); box-shadow: 0 24px 40px -30px rgba(120, 40, 80, .5); transition: transform .6s var(--ease), box-shadow .6s; }
.fx-card:hover { transform: translateY(-8px); box-shadow: 0 40px 60px -30px rgba(120, 40, 80, .7); }
.fx-card .art { justify-self: center; height: 170px; aspect-ratio: 100 / 160; margin-bottom: 8px; transition: transform .8s var(--ease); filter: drop-shadow(0 16px 14px rgba(120, 40, 80, .25)); }
.fx-card:hover .art { transform: rotate(-8deg) scale(1.06); }
.fx-card .art svg { width: 100%; height: 100%; }
.fx-card .art.photo { aspect-ratio: 1; height: 190px; }
.fx-card .art img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.fx-card .stars { font-size: 13px; font-weight: 600; color: #9a6a16; }
.fx-card small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fx-card b { font: 400 28px/1.02 var(--serif); }
.fx-card em { font-size: 14px; font-style: normal; color: var(--muted); }
.fx-card .dots { display: flex; gap: 5px; margin: 8px 0; }
.fx-card .dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.fx-card p { font-size: 14px; color: #4c3340; }

.fx-earn { display: grid; gap: 28px; align-items: center; }
.fx-earn .fx-lead { margin: 16px 0 20px; }
.fx-clip { position: relative; justify-self: center; width: min(250px, 66vw); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; transform: rotate(4deg); box-shadow: 0 40px 70px -30px rgba(36, 18, 28, .7); transition: transform .7s var(--ease); }
.fx-clip:hover { transform: rotate(0) scale(1.03); }
.fx-clip img { width: 100%; height: 100%; object-fit: cover; }
.fx-clip span { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1.5px #fff; }
.fx-clip span::after { content: ""; position: absolute; left: 26px; top: 20px; border: 12px solid transparent; border-left: 18px solid #fff; border-right: 0; }

.fx-how { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.fx-how li { padding: 22px; border-radius: 26px; background: #fff; border: 1px solid rgba(36, 18, 28, .08); }
.fx-how b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; margin-bottom: 14px; }
.fx-how h3 { font: 400 30px/1 var(--serif); margin-bottom: 6px; }
.fx-how p { color: #4c3340; }
.fx-coupon { margin-top: 20px; padding: 14px; text-align: center; border: 1px dashed var(--ink); border-radius: 18px; }

.fx-foot { margin-top: 90px; padding: 34px var(--pad) 30px; border-top: 1px dashed var(--ink); font-size: 13px; color: var(--muted); display: grid; gap: 12px; }
.fx-foot a { text-decoration: underline; text-underline-offset: 3px; }
.fx-bar { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 16px 34px -14px rgba(36, 18, 28, .5); transform: translateY(140%); transition: transform .6s var(--ease); }
.fx-scrolled .fx-bar { transform: none; }

@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .fx-bar { display: none; }
  .fx-nav { left: 50%; right: auto; transform: translateX(-50%); width: min(880px, calc(100% - 32px)); }
  .fx-nav nav { display: flex; }
  .fx-home { margin-right: 0; }
  .fx-nav nav { margin: 0 auto; }
  .fx-game { grid-template-columns: 340px 1fr; gap: 60px; }
  .fx-earn { grid-template-columns: 1fr 300px; }
  .fx-how { grid-template-columns: repeat(3, 1fr); }
  .fx-dock { grid-template-columns: 1.2fr 1fr auto; align-items: end; }
  .fx-tube { margin-top: 0; margin-left: 38vw; }
  .fx-steps { right: auto; width: 46vw; bottom: 22svh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx-rv { opacity: 1; transform: none; filter: none; }
}

/* ——— 3D y ajuste de escritorio ——— */
#hero3d { position: absolute; left: 0; top: 0; width: 100%; height: 54svh; pointer-events: none; display: block; }
.fx-3d-hero .fx-float { display: none; }
#tube3d { position: absolute; left: 0; top: 0; width: 100%; height: 66%; pointer-events: none; display: block; }
.fx-3d-story .fx-tube { display: none; }
.fx-hero > p:not(.fx-scroll), .fx-hero > h1, .fx-hero > .fx-actions { position: relative; z-index: 1; }
@media (min-width: 900px) {
  :root { --edge: max(var(--pad), calc((100vw - 1240px) / 2)); }
  .fx-hero { justify-content: center; padding: 120px var(--edge) 80px; }
  .fx-hero > p:not(.fx-scroll), .fx-hero > h1, .fx-hero > .fx-actions { max-width: min(600px, 46%); }
  .fx-hero h1 { font-size: clamp(64px, 6.6vw, 118px); }
  .fx-scroll { right: var(--edge); }
  #hero3d { left: auto; right: 0; width: 58%; height: 100%; }
  #tube3d { left: 40%; width: 60%; height: 100%; }
  .fx-tube { margin: 0 0 0 38vw; }
  .fx-steps { left: var(--edge); right: auto; width: min(520px, 40vw); top: 50%; bottom: auto; }
  .fx-steps article { top: 0; bottom: auto; margin-top: -120px; }
  .fx-dots { right: var(--edge); }
  .fx-foot { padding-inline: var(--edge); }
}
