/* ============================ páginas públicas / marketing ================ */

/* ------------------------------------------------------------------- hero */
.hero { padding: 5.5rem 0 3rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px var(--brand); color: transparent; display: inline-block;
}
.hero .lede { font-size: 1.06rem; max-width: 46ch; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.8rem 0 1.4rem; }

.claim {
  display: flex; gap: .5rem; align-items: stretch; max-width: 480px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: .45rem;
}
.claim .inline-input { flex: 1; border: 0; background: transparent; }
.claim .inline-input input { padding-left: .1em; }
.claim-msg { font-size: .8rem; margin-top: .55rem; min-height: 1.2em; font-family: var(--mono); }
.claim-msg.ok { color: var(--brand-lit); }
.claim-msg.no { color: var(--coral); }

/* --------- maqueta de tarjetas de perfil flotando (todo CSS) ----------- */
.mock { position: relative; height: 520px; }

.tarjeta {
  position: absolute; width: 208px; height: 358px;
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 70px -32px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: flotar 8s ease-in-out infinite;
  transition: transform .4s cubic-bezier(.2,.9,.3,1);
}
.tarjeta:nth-of-type(1) { left: 0;     top: 92px;  transform: rotate(-8deg); }
.tarjeta:nth-of-type(2) { left: 148px; top: 6px;   transform: rotate(2deg) scale(1.06); z-index: 3; animation-delay: -2.6s; }
.tarjeta:nth-of-type(3) { right: -6px; top: 128px; transform: rotate(7deg); animation-delay: -5.2s; }
@keyframes flotar { 50% { translate: 0 -16px } }

/* La "foto" de fondo: capas de color, sin imágenes que descargar. */
.t-foto { position: absolute; inset: 0; }
.t-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 22%, rgba(0,0,0,.62) 62%, rgba(0,0,0,.88)); }
.bosque .t-foto {
  background:
    radial-gradient(120% 80% at 70% 12%, #b8ff8a55, transparent 60%),
    radial-gradient(90% 70% at 20% 40%, #1f6b3a 0%, #0d3a22 55%, #06170f 100%);
}
.cosmos .t-foto {
  background:
    radial-gradient(60% 40% at 25% 18%, #b892ff88, transparent 60%),
    radial-gradient(70% 50% at 80% 70%, #4f46e577, transparent 65%),
    radial-gradient(120% 90% at 50% 40%, #241a55 0%, #120c2c 55%, #05030f 100%);
}
.piedra .t-foto {
  background:
    radial-gradient(70% 45% at 62% 14%, #e9edf288, transparent 62%),
    radial-gradient(120% 90% at 40% 60%, #3a3f47 0%, #1c1f25 55%, #08090b 100%);
}
/* Puntitos de estrella solo en la cósmica */
.cosmos .t-foto::before {
  content: ''; position: absolute; inset: 0; opacity: .8;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 72% 15%, #fff, transparent),
    radial-gradient(1px 1px at 40% 35%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 85% 46%, #fff, transparent),
    radial-gradient(1px 1px at 28% 58%, #fff, transparent);
}

.t-cuerpo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1rem 1.1rem; text-align: center; }

.t-av-caja { position: relative; margin-bottom: .7rem; }
.t-av {
  display: block; width: 68px; height: 68px; border-radius: 50%;
  object-fit: cover; background: #12141a;
  border: 2px solid var(--tono, #fff);
  box-shadow: 0 0 22px -4px var(--tono, #fff);
}
/* el tick va por encima de la foto */
.t-check { z-index: 2; }
.t-check {
  position: absolute; right: -3px; bottom: -3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--tono, #fff); color: #06110a;
  display: grid; place-items: center; font-size: 10px; font-weight: 800;
  border: 2px solid rgba(0, 0, 0, .55);
}
.bosque { --tono: #9dff6e; }
.cosmos { --tono: #A855F7; }
.piedra { --tono: #dfe5ec; }

.t-nombre { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em; color: #fff; display: flex; align-items: center; gap: .3rem; }
.t-tick { width: 13px; height: 13px; border-radius: 50%; background: var(--tono); color: #06110a; font-size: 8px; display: grid; place-items: center; font-weight: 800; }
.t-chapas { display: flex; gap: .3rem; margin: .45rem 0; }
.t-chapas i { width: 17px; height: 17px; border-radius: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16); display: block; }
.t-bio { font-size: .68rem; color: rgba(255,255,255,.72); margin-bottom: .5rem; }
.t-cita { font-size: .62rem; line-height: 1.5; color: rgba(255,255,255,.8); font-style: italic; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: .5rem .6rem; margin-bottom: .55rem; }

.t-redes { display: flex; gap: .35rem; margin-bottom: .6rem; }
.t-redes i {
  width: 24px; height: 24px; border-radius: 50%; display: block;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  position: relative;
}
.t-redes i::after {
  content: ''; position: absolute; inset: 5px; background: rgba(255,255,255,.9);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.t-redes i[data-r="custom"]::after    { -webkit-mask-image: url(/img/social/custom.svg);    mask-image: url(/img/social/custom.svg); }
.t-redes i[data-r="github"]::after    { -webkit-mask-image: url(/img/social/github.svg);    mask-image: url(/img/social/github.svg); }
.t-redes i[data-r="discord"]::after   { -webkit-mask-image: url(/img/social/discord.svg);   mask-image: url(/img/social/discord.svg); }
.t-redes i[data-r="spotify"]::after   { -webkit-mask-image: url(/img/social/spotify.svg);   mask-image: url(/img/social/spotify.svg); }
.t-redes i[data-r="youtube"]::after   { -webkit-mask-image: url(/img/social/youtube.svg);   mask-image: url(/img/social/youtube.svg); }
.t-redes i[data-r="instagram"]::after { -webkit-mask-image: url(/img/social/instagram.svg); mask-image: url(/img/social/instagram.svg); }
.t-redes i[data-r="x"]::after         { -webkit-mask-image: url(/img/social/x.svg);         mask-image: url(/img/social/x.svg); }

.t-links { display: grid; gap: .3rem; width: 100%; margin-top: auto; }
.t-links span { display: block; height: 24px; border-radius: 8px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); }
.t-estado { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .55rem; font: 600 .58rem var(--mono); letter-spacing: .06em; color: rgba(255,255,255,.7); }
.t-estado i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.t-estado i.vivo { background: #53FC18; box-shadow: 0 0 8px #53FC18; animation: pulse 2s infinite; }

@media (max-width: 1100px) { .tarjeta { width: 186px; height: 320px; } }

/* ---------------------------------------------------------------- marquee */
.ticker { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding: .75rem 0; margin-top: 3rem; }
.ticker-in { display: flex; gap: 3rem; width: max-content; animation: slide 32s linear infinite; }
.ticker span { font-family: var(--mono); font-weight: 600; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker span b { color: var(--brand-lit); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%) } }

/* ------------------------------------------------------------------ stats */
.section { padding: 5rem 0; }
.section-head { max-width: 620px; margin-bottom: 2.5rem; }
.section-head.mid { margin-inline: auto; text-align: center; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--panel); padding: 1.7rem 1.4rem; transition: background .25s; }
.stat:hover { background: var(--panel-2); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; }
.stat small { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 760px) { .stats-strip { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------- features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem; position: relative; overflow: hidden; transition: border-color .25s, transform .25s;
}
.feat:hover { border-color: rgba(124, 58, 237, .35); transform: translateY(-3px); }
.feat::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 180px; height: 180px; background: radial-gradient(circle, rgba(124, 58, 237,.14), transparent 70%); opacity: 0; transition: opacity .3s; }
.feat:hover::after { opacity: 1; }
.feat .ico { font-size: 1.5rem; margin-bottom: .7rem; display: block; }
.feat h3 { margin-bottom: .35em; }
.feat p { font-size: .88rem; margin: 0; }
.feat.wide { grid-column: span 2; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } .feat.wide { grid-column: auto; } }

/* ---------------------------------------------------------------- pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 860px; margin-inline: auto; }
/* Sin planes que comparar, la tarjeta va sola y centrada. */
.price-grid.one { grid-template-columns: minmax(0, 440px); justify-content: center; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; position: relative; }
.plan.pro { border-color: rgba(124, 58, 237, .4); background: linear-gradient(170deg, rgba(124, 58, 237, .07), var(--panel) 45%); box-shadow: 0 30px 80px -50px rgba(124, 58, 237, .6); }
.plan .ribbon { position: absolute; top: -13px; right: 22px; }
.plan .amount { font-family: var(--display); font-size: 2.9rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.plan .per { font-size: .85rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .6rem; }
.plan li { display: flex; gap: .6rem; font-size: .9rem; align-items: flex-start; }
.plan li::before { content: '✦'; color: var(--brand-lit); font-size: .8rem; line-height: 1.5; }
.plan.free li::before { color: var(--faint); }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- faq */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: .6rem; }
.qa { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s; }
.qa[open] { border-color: rgba(124, 58, 237, .3); }
.qa summary { list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: .97rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--brand-lit); font-family: var(--mono); transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 1.3rem 1.2rem; margin: 0; font-size: .9rem; }

/* -------------------------------------------------------------- cta final */
.cta-box {
  border: 1px solid rgba(124, 58, 237, .3); border-radius: var(--r-lg); padding: 3rem;
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(124, 58, 237, .12), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--ink-2));
}

/* ------------------------------------------------------------------ auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2.5rem 1rem; }
.auth-card { width: min(430px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 2.2rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.85rem; margin-bottom: .25em; }
.auth-card > p { font-size: .9rem; }
.auth-steps { display: flex; gap: .35rem; margin-bottom: 1.6rem; }
.auth-steps i { height: 3px; border-radius: 99px; background: var(--panel-3); flex: 1; transition: background .3s; }
.auth-steps i.on { background: var(--brand); }
.readonly-box { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem 1rem; margin-bottom: 1rem; }
.readonly-box .k { font-family: var(--mono); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.readonly-box .v { font-weight: 700; font-size: .95rem; }
.link-back { font-size: .85rem; color: var(--muted); display: inline-flex; gap: .35rem; align-items: center; margin-bottom: 1rem; cursor: pointer; }
.link-back:hover { color: var(--brand-lit); }
.sep { display: flex; align-items: center; gap: .8rem; color: var(--faint); font-size: .75rem; margin: 1.2rem 0; }
.sep::before, .sep::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.form-err { color: #ff9686; font-size: .85rem; min-height: 1.2em; margin-bottom: .6rem; }

/* --------------------------------------------------------- onboarding */
.onb { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.onb-left { display: grid; align-content: center; padding: 3rem clamp(1.5rem, 6vw, 5rem); }
.onb-right { background: linear-gradient(160deg, var(--panel), var(--ink-2)); border-left: 1px solid var(--line); display: grid; align-content: center; padding: 3rem; }
.onb-opts { display: grid; gap: .6rem; margin: 1.6rem 0; }
.onb-opt { text-align: left; padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: center; }
.onb-opt.sel { border-color: var(--brand); background: rgba(124, 58, 237, .08); }
.onb-dots { display: flex; gap: .5rem; margin-bottom: 2rem; }
.onb-dots i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 .72rem var(--mono); background: var(--panel-2); border: 1px solid var(--line); color: var(--faint); }
.onb-dots i.on { background: var(--brand); color: #FFFFFF; border-color: transparent; }
@media (max-width: 900px) { .onb { grid-template-columns: 1fr } .onb-right { display: none } }

/* ---------------------------------------------------------- leaderboard */
.lb-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 1rem; align-items: center; padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); margin-bottom: .5rem; transition: border-color .2s, transform .2s; }
.lb-row:hover { border-color: rgba(124, 58, 237, .35); transform: translateX(4px); }
.lb-rank { font-family: var(--display); font-size: 1.3rem; font-weight: 800; color: var(--faint); }
.lb-row:nth-child(1) .lb-rank { color: var(--amber); }
.lb-row:nth-child(2) .lb-rank { color: #cfd6de; }
.lb-row:nth-child(3) .lb-rank { color: #d38b52; }
.lb-av { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-3); object-fit: cover; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { display: none; }
}
