/* Capa 2 de Monetichain: home de startup, animaciones de scroll y acceso a Farmasi.
   Se carga después de app.css y solo añade clases mx-*. No cambia el Exchange. */

.nav-farmasi { color: #ffd3e6 !important; background: linear-gradient(90deg, rgba(255, 92, 160, .22), rgba(192, 132, 252, .18)); box-shadow: inset 0 0 0 1px rgba(255, 143, 190, .45); }
.nav-farmasi i { font-style: normal; margin-left: 4px; display: inline-block; animation: mx-twinkle 2.6s ease-in-out infinite; }
html[data-theme="light"] .nav-farmasi { color: #a3165c !important; }
.hero-actions .mx-pink { border-color: rgba(255, 143, 190, .6); color: #ffd9ea; background: linear-gradient(90deg, rgba(255, 92, 160, .28), rgba(120, 40, 200, .3)); }
html[data-theme="light"] .hero-actions .mx-pink { color: #8f1150; }
@keyframes mx-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.35) rotate(90deg); opacity: .6; } }

/* Aparición al hacer scroll */
.mx-rv { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(6px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.mx-rv.mx-in { opacity: 1; transform: none; filter: none; }
.no-js .mx-rv { opacity: 1; transform: none; filter: none; }

/* Cinta */
.mx-marquee { position: relative; z-index: 3; overflow: hidden; padding: 16px 0; margin: 0 0 8px; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(147, 18, 255, .12), rgba(255, 92, 160, .08), rgba(147, 18, 255, .12)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mx-track { display: flex; gap: 22px; width: max-content; align-items: center; animation: mx-slide 38s linear infinite; }
.mx-track span { font-family: var(--serif); font-size: clamp(16px, 2.2vw, 24px); letter-spacing: -.01em; white-space: nowrap; }
.mx-track i { font-style: normal; color: var(--gold-2); font-size: 12px; }
@keyframes mx-slide { to { transform: translateX(-50%); } }

.mx-sec { position: relative; z-index: 3; padding: clamp(44px, 8vw, 96px) 0 0; }
.mx-h { font-size: clamp(30px, 5.2vw, 56px); max-width: 18ch; text-wrap: balance; }

/* Bento de productos */
.mx-bento { display: grid; gap: 14px; margin-top: 26px; grid-template-columns: 1fr; }
.mx-card { --mx: 50%; --my: 0%; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 8px; min-height: 260px; padding: 22px; border-radius: 26px; text-decoration: none; color: #fff; border: 1px solid rgba(192, 132, 252, .28); background: linear-gradient(160deg, #1b1040, #0b0620 70%); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; }
.mx-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(192, 132, 252, .34), transparent 60%); opacity: 0; transition: opacity .4s; }
.mx-card:hover, .mx-card:focus-visible { transform: translateY(-4px); border-color: rgba(216, 180, 254, .7); box-shadow: 0 26px 60px -22px rgba(147, 18, 255, .7); }
.mx-card:hover::before { opacity: 1; }
.mx-card h3 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); }
.mx-card h3 em { font-style: italic; font-weight: 700; color: #ffc2dc; }
.mx-card p { margin: 0; max-width: 40ch; color: rgba(255, 255, 255, .78); font-size: 15px; }
.mx-tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.mx-new { background: linear-gradient(90deg, #ff5ca0, #c084fc); box-shadow: 0 0 22px rgba(255, 92, 160, .6); }
.mx-go { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 14px; }
.mx-card:hover .mx-go { text-decoration: underline; text-underline-offset: 4px; }

.mx-rate { margin-top: 10px; padding: 12px 14px 0; border-radius: 16px; background: rgba(0, 0, 0, .34); box-shadow: inset 0 0 0 1px rgba(192, 132, 252, .3); overflow: hidden; }
.mx-rate small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c4b5fd; }
.mx-rate strong { display: block; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; }
.mx-rate svg { display: block; width: calc(100% + 28px); height: 62px; margin: 4px -14px 0; }
.mx-line { fill: none; stroke: #d8b4fe; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.mx-area { fill: rgba(168, 85, 247, .22); opacity: 0; transition: opacity 1.2s ease 1.4s; }
.mx-in .mx-line { stroke-dashoffset: 0; }
.mx-in .mx-area { opacity: 1; }

.mx-farmasi { background: radial-gradient(120% 90% at 100% 0%, #ff7fb6 0%, #b0307a 34%, #3a1147 68%, #170a2c 100%); border-color: rgba(255, 160, 205, .5); }
.mx-farmasi::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 210, 230, .4), transparent 60%); }
.mx-vanity { position: relative; height: 120px; margin-top: 8px; }
.mx-vanity b { position: absolute; left: 6%; right: 6%; bottom: 0; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); filter: blur(3px); }
.mx-vanity i { position: absolute; bottom: 6px; display: block; animation: mx-float 5s ease-in-out infinite; }
.mx-lip { left: 14%; width: 30px; height: 96px; border-radius: 6px 6px 8px 8px; background: linear-gradient(90deg, #f7e3b0, #fff6da 40%, #c9a45c); box-shadow: inset 0 -44px 0 #1c1024, inset 0 -46px 0 #f7e3b0; }
.mx-lip::before { content: ""; position: absolute; left: 5px; right: 5px; top: -30px; height: 34px; border-radius: 10px 16px 2px 2px / 22px 30px 2px 2px; background: linear-gradient(90deg, #ff3d7f, #ff8fb8 45%, #c81e5a); }
.mx-jar { left: 40%; width: 86px; height: 58px; border-radius: 12px 12px 16px 16px; background: linear-gradient(90deg, #ffe9f2, #fff 40%, #f3bcd4); box-shadow: inset 0 18px 0 #f7e3b0, inset 0 20px 0 rgba(0, 0, 0, .12); animation-delay: -1.6s !important; }
.mx-wand { right: 14%; width: 22px; height: 104px; border-radius: 8px; background: linear-gradient(90deg, #2b1238, #5a2a72 45%, #1c0a26); box-shadow: inset 0 40px 0 #f7e3b0, inset 0 42px 0 rgba(0, 0, 0, .25); animation-delay: -3.1s !important; }
@keyframes mx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.mx-qva { background: linear-gradient(160deg, #10324a, #0b0620 70%); border-color: rgba(125, 211, 252, .32); }
.mx-visa { position: relative; align-self: flex-start; width: min(220px, 80%); aspect-ratio: 1.586; margin-top: 10px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #7c3aed, #2dd4bf); box-shadow: 0 18px 34px -14px rgba(45, 212, 191, .6); transform: rotate(-5deg); transition: transform .6s var(--ease); }
.mx-card:hover .mx-visa { transform: rotate(0) scale(1.04); }
.mx-visa span { font-family: var(--serif); font-size: 20px; font-style: italic; }
.mx-visa i { position: absolute; left: 14px; top: 46%; width: 34px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, #fde68a, #d4a53a); }
.mx-visa b { position: absolute; left: 14px; bottom: 12px; font: 600 14px ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.mx-aca { background: linear-gradient(160deg, #3b176e, #0b0620 70%); }

@media (min-width: 760px) {
  .mx-bento { grid-template-columns: 1.25fr 1fr; }
  .mx-cupido, .mx-farmasi { min-height: 380px; }
}

/* Manifiesto palabra a palabra */
.mx-manifesto { text-align: center; padding-bottom: 12px; }
.mx-words { margin: 0 auto; max-width: 16ch; font-family: var(--serif); font-weight: 800; font-size: clamp(38px, 8.4vw, 96px); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.mx-words span { display: inline-block; opacity: .14; transition: opacity .5s linear, color .5s; }
.mx-words span.on { opacity: 1; }
.mx-words span.on:nth-child(3n) { color: #d8b4fe; }

/* Tutoriales */
.mx-tuts { margin-top: 22px; }
.mx-tuts .tutorial { transition: transform .5s var(--ease), box-shadow .5s, opacity .8s var(--ease), filter .8s var(--ease); }
.mx-tuts .tutorial.mx-in:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 26px 50px -18px rgba(147, 18, 255, .8); }
.mx-tuts .tutorial img { transition: transform 1.2s var(--ease); }
.mx-tuts .tutorial:hover img { transform: scale(1.07); }
.mx-play { position: absolute; z-index: 2; left: 16px; top: 16px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.mx-play::after { content: ""; position: absolute; left: 18px; top: 14px; border: 9px solid transparent; border-left: 14px solid #fff; border-right: 0; }
@media (min-width: 900px) {
  .mx-tuts .mx-feature { grid-column: span 2; grid-row: span 2; min-height: 434px; }
  .mx-tuts .mx-feature strong { font-size: 30px; max-width: 22ch; }
}

/* Carril de Reels */
.mx-rail { display: flex; gap: 14px; margin: 22px calc(var(--pad) * -1) 0; padding: 6px var(--pad) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mx-rail::-webkit-scrollbar { display: none; }
.mx-reel { position: relative; flex: 0 0 min(62vw, 230px); aspect-ratio: 9 / 16; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px; overflow: hidden; border-radius: 22px; text-decoration: none; color: #fff; background: #140a33; border: 1px solid rgba(243, 232, 255, .3); transition: transform .5s var(--ease), box-shadow .5s; }
.mx-reel:hover, .mx-reel:focus-visible { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 26px 50px -18px rgba(147, 18, 255, .85); }
.mx-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mx-reel:hover img { transform: scale(1.08); }
.mx-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 2, 18, .1) 35%, rgba(6, 2, 18, .92)); }
.mx-reel > * { position: relative; z-index: 1; }
.mx-reel > img { position: absolute; z-index: 0; }
.mx-reel strong { font-family: var(--serif); font-size: 16px; line-height: 1.15; }
.mx-chip { align-self: flex-start; margin-bottom: auto; padding: 4px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.mx-ig { background: linear-gradient(160deg, #f9ce34, #ee2a7b 45%, #6228d7); }
.mx-ig::after, .mx-tt::after { display: none; }
.mx-tt { background: linear-gradient(160deg, #25f4ee, #111 42%, #111 58%, #fe2c55); }
.mx-tt strong { font-size: 19px; overflow-wrap: anywhere; }
.mx-ig strong { font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
  .mx-rv { opacity: 1; transform: none; filter: none; transition: none; }
  .mx-track, .mx-vanity i, .nav-farmasi i { animation: none; }
  .mx-words span { opacity: 1; }
  .mx-line { stroke-dashoffset: 0; transition: none; }
  .mx-area { opacity: 1; }
}
