/* Forja Studio · Socios — misma marca, página de captación de vendedores */
body.sx { background: var(--pink); color: var(--ink); cursor: auto; }
.sx a, .sx button, .sx summary, .sx input[type="range"] { cursor: pointer; }
.sx input:not([type="range"]) { cursor: text; }
.sx .nav { color: var(--ink); }
.sx .nav nav { background: rgba(255,255,255,.32); }
.sx .h2 i { color: var(--red-d); }
.sx main > section { position: relative; }

/* ---------- Hero ---------- */
.sx-hero { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 120px var(--g) 80px; }
.sx-hero__t { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(50px, 8.6vw, 140px); line-height: .92; letter-spacing: -.04em; max-width: 14ch; }
.sx-hero__t i { color: var(--red-d); font-size: 1.06em; }
.sx-hero__num { display: inline-block; padding: 0 .14em; border-radius: .18em; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; transform: rotate(-2deg); }
.sx-hero__sub { max-width: 46ch; margin: 30px auto 32px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; }
.sx-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sx-hero .pill--line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sx-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 44px 0 0; padding: 0; }
.sx-facts li { display: grid; min-width: 150px; padding: 14px 20px; border-radius: 16px; background: var(--cream); box-shadow: 0 20px 40px -30px rgba(42,15,18,.5); }
.sx-facts b { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.sx-facts span { font-size: 14px; }

/* entrada del hero en CSS: pinta antes que el JS */
.motion .sx-hero__t, .motion .sx-hero__sub, .motion .sx-hero__ctas, .motion .sx-facts { animation: sxIn .9s cubic-bezier(.23,1,.32,1) both; }
.motion .sx-hero__sub { animation-delay: .12s; }
.motion .sx-hero__ctas { animation-delay: .2s; }
.motion .sx-facts { animation-delay: .28s; }
@keyframes sxIn { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Calculadora ---------- */
.sx-calc { display: grid; gap: 40px; align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(90px, 11vw, 160px) var(--g); }
@media (min-width: 960px) { .sx-calc { grid-template-columns: .9fr 1.1fr; gap: 70px; } }
.sx-calc .h2 { margin-bottom: 20px; }
.sx-calc__card { padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; background: var(--cream); box-shadow: 0 50px 90px -50px rgba(42,15,18,.55); }
.sx-calc__label { display: block; font-weight: 700; font-size: 15px; }
.sx-calc__row { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.sx-calc__n { min-width: 2.4ch; font-family: var(--display); font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -.04em; text-align: right; font-variant-numeric: tabular-nums; }
input[type="range"] { --fill: 16%; flex: 1; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(to right, var(--red) var(--fill), rgba(42,15,18,.12) var(--fill)); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: rgba(42,15,18,.12); }
input[type="range"]::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--red); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 4px solid var(--cream); box-shadow: 0 6px 16px -4px rgba(42,15,18,.5); transition: transform 160ms cubic-bezier(.23,1,.32,1); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 4px solid var(--cream); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--pink-l); }
.sx-calc__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sx-calc__presets button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(42,15,18,.07); color: var(--ink); font-size: 14px; font-weight: 500; transition: background-color 160ms ease, transform 160ms cubic-bezier(.23,1,.32,1); }
.sx-calc__presets button:active { transform: scale(.97); }
.sx-calc__presets button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sx-calc__out { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 28px; }
.sx-calc__out > div { display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px; background: #fff; }
.sx-calc__out > div:last-child { background: var(--red); color: #fff; }
.sx-calc__k { font-size: 13px; font-weight: 700; }
.sx-calc__v { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-calc__v--big { font-size: clamp(38px, 4.6vw, 62px); }
.sx-calc__rank { margin: 20px 0 0; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--red-d); }
.sx-calc__note { margin: 10px 0 0; font-size: 13px; color: #6b3a40; }
@media (hover: hover) and (pointer: fine) { .sx-calc__presets button:not([aria-pressed="true"]):hover { background: rgba(42,15,18,.13); } }

/* ---------- Cómo funciona ---------- */
.sx-how { max-width: 1240px; margin: 0 auto; padding: clamp(90px, 11vw, 160px) var(--g); }
.sx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .sx-steps { grid-template-columns: repeat(3, 1fr); } }
.sx-steps li { position: relative; padding: 30px 28px 32px; border-radius: 26px; background: var(--cream); overflow: hidden; }
.sx-steps li:nth-child(2) { background: var(--orange); }
.sx-steps li:nth-child(3) { background: var(--ink); color: var(--cream); }
.sx-steps__n { display: block; font-family: var(--display); font-weight: 600; font-size: 120px; line-height: .8; letter-spacing: -.06em; opacity: .9; }
.sx-steps h3 { margin: 22px 0 8px; font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -.03em; }
.sx-steps p { margin: 0; font-size: 17px; }
.sx-kit { display: grid; gap: 18px; justify-items: start; margin-top: 14px; padding: clamp(26px, 3.4vw, 44px); border-radius: 26px; background: var(--red); color: #fff; }
@media (min-width: 900px) { .sx-kit { grid-template-columns: 1fr 1.4fr auto; align-items: center; } }
.sx-kit__t { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.03em; }
.sx-kit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-kit li { position: relative; padding-left: 28px; }
.sx-kit li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-5' fill='none' stroke='%23c2434a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ---------- Ranking ---------- */
.sx-rank { max-width: 1240px; margin: 0 auto; padding: clamp(90px, 11vw, 160px) var(--g); text-align: center; }
.sx-rank .lead { margin: 0 auto; }
.sx-rank__tabs { display: inline-flex; gap: 4px; margin: 30px 0 0; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.4); }
.sx-rank__tabs button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-weight: 700; font-size: 14px; transition: background-color 180ms ease, color 180ms ease; }
.sx-rank__tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.sx-podium { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: clamp(8px, 1.6vw, 18px); max-width: 860px; margin: 50px auto 0; padding: 0; }
.sx-podium__item { display: grid; justify-items: center; gap: 6px; text-align: center; }
.sx-podium__avatar { display: grid; place-items: center; width: clamp(60px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); }
.sx-podium__item--1 .sx-podium__avatar { background: var(--orange); color: var(--ink); width: clamp(76px, 10vw, 118px); }
.is-empty .sx-podium__avatar { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); opacity: .55; }
.sx-podium__name { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 2vw, 24px); letter-spacing: -.02em; line-height: 1.1; }
.is-empty .sx-podium__name { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sx-podium__meta { font-size: 13px; min-height: 1.4em; }
.sx-podium__step { display: grid; place-items: center; width: 100%; margin-top: 8px; border-radius: 20px 20px 0 0; background: var(--cream); font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.05em; }
.sx-podium__item--1 .sx-podium__step { height: clamp(150px, 20vw, 230px); background: var(--red); color: #fff; }
.sx-podium__item--2 .sx-podium__step { height: clamp(110px, 14vw, 170px); }
.sx-podium__item--3 .sx-podium__step { height: clamp(80px, 10vw, 120px); }
.sx-board { list-style: none; max-width: 860px; margin: 0 auto; padding: 0; text-align: left; border-radius: 0 0 22px 22px; background: var(--cream); overflow: hidden; }
.sx-board[hidden] { display: none; }
.sx-board li { display: grid; grid-template-columns: 2.4rem 1fr auto auto; gap: 14px; align-items: baseline; padding: 14px 22px; border-top: 1px solid rgba(42,15,18,.1); }
.sx-rank__prize { display: inline-block; margin: 26px 0 0; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }

/* ---------- FAQ y unirme ---------- */
.sx-faq summary::after { background: var(--ink); }
.sx-join .opts button { min-height: 48px; }
.sx-join__mail { margin-top: 26px; font-size: 16px; }
.sx-join__mail a { font-weight: 700; }

/* ---------- Pie ---------- */
.sx .foot { background: var(--red-d); color: #f6bcc4; }
.sx .foot a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .sx-hero__t, .sx-hero__sub, .sx-hero__ctas, .sx-facts { animation: none !important; }
}
.sx-rank__prize[hidden] { display: none; }
.sx-calc { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .sx-calc { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.sx-calc > * { min-width: 0; }
.sx-calc__out { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
