/* =========================================================
   BoostForge v3 — "Rift Nocturne"
   Diseño oscuro con splash arts, emblemas oficiales y
   animaciones. Los colores salen de las variables --c-* que
   se configuran en Ajustes del panel de administración.
   ========================================================= */
:root {
  --c-primary: #c8aa6e; --c-secondary: #0ac8b9; --c-accent: #e84057;
  --c-bg: #010a13; --c-surface: #0a1428; --c-text: #f0e6d2; --c-muted: #a09b8c;

  --gold-bright: color-mix(in srgb, var(--c-primary) 55%, white);
  --gold-deep: color-mix(in srgb, var(--c-primary) 70%, black);
  --line: color-mix(in srgb, var(--c-primary) 30%, transparent);
  --line-soft: color-mix(in srgb, var(--c-text) 9%, transparent);
  --glass: color-mix(in srgb, var(--c-surface) 72%, transparent);
  --glass-2: color-mix(in srgb, var(--c-surface) 88%, var(--c-primary));
  --surface-3: color-mix(in srgb, var(--c-surface) 60%, var(--c-bg));
  --primary-soft: color-mix(in srgb, var(--c-primary) 13%, transparent);
  --secondary-soft: color-mix(in srgb, var(--c-secondary) 14%, transparent);

  --f-display: "Cinzel", "Times New Roman", serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --r: 16px; --r-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative;
  background: var(--c-bg); color: var(--c-text); font: 400 1rem/1.65 var(--f-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--c-secondary); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--c-primary) 45%, transparent); color: #fff; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: var(--gold-bright); letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--c-muted); }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 1.5rem 0; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; position: relative; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }
.narrow-wide { width: min(860px, 100% - 32px); }
main { flex: 1; position: relative; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Fondo ambiental animado ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 26s ease-in-out infinite alternate; }
.ambient i:nth-child(1) { background: var(--c-secondary); top: -25vmax; right: -15vmax; }
.ambient i:nth-child(2) { background: var(--c-primary); bottom: -30vmax; left: -20vmax; opacity: .14; animation-duration: 32s; }
.ambient i:nth-child(3) { background: var(--c-accent); top: 40%; left: 45%; width: 30vmax; height: 30vmax; opacity: .07; animation-duration: 38s; }
.ambient::after { /* rejilla hextech */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
@keyframes drift { to { transform: translate3d(-8vmax, 6vmax, 0) scale(1.15); } }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 60; background: linear-gradient(90deg, var(--c-secondary), var(--c-primary), var(--c-accent)); box-shadow: 0 0 12px var(--c-primary); }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Etiquetas ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 600 .78rem/1 var(--f-body); letter-spacing: .28em; text-transform: uppercase; color: var(--c-secondary); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---------- Tarjetas (glass con borde degradado) ---------- */
.frame {
  position: relative; padding: 1.6rem; border-radius: var(--r);
  background: linear-gradient(160deg, color-mix(in srgb, var(--glass-2) 90%, transparent), var(--glass));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow), inset 0 1px 0 color-mix(in srgb, white 6%, transparent);
  backdrop-filter: blur(14px);
}
.frame::before { /* filo superior luminoso */
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent); opacity: .8;
}
.frame--flat { background: var(--surface-3); box-shadow: none; }
.frame + .frame { margin-top: 1.25rem; }
.frame-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.frame-title h2, .frame-title h3 { margin: 0; }
.frame-title h3 { font-size: 1.1rem; }

/* ---------- Botones ---------- */
.btn {
  --bc: var(--c-primary);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; min-height: 46px; cursor: pointer;
  font: 700 .86rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-text); background: color-mix(in srgb, var(--bc) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--bc) 70%, transparent); border-radius: var(--r-sm);
  transition: transform .25s var(--ease), box-shadow .25s, color .2s, background .2s, border-color .2s;
}
.btn::after { /* destello que cruza el botón */
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, white 35%, transparent), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); border-color: var(--bc); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--bc) 70%, transparent); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0); }
.btn--primary { color: #120d04; border: 0; background: linear-gradient(135deg, var(--gold-bright), var(--c-primary) 45%, var(--gold-deep)); box-shadow: 0 8px 24px -10px var(--c-primary), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--primary:hover { color: #120d04; }
.btn--teal { --bc: var(--c-secondary); }
.btn--danger { --bc: var(--c-accent); }
.btn--ghost { background: transparent; }
.btn--sm { padding: .5rem .85rem; min-height: 36px; font-size: .74rem; letter-spacing: .1em; }
.btn--lg { padding: 1rem 1.9rem; min-height: 54px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--discord { --bc: #5865f2; background: #5865f2; border-color: #5865f2; color: #fff; }
.btn--discord:hover { color: #fff; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* ---------- Navegación ---------- */
.promo { position: relative; z-index: 50; background: linear-gradient(90deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 50%, var(--c-primary)), var(--c-accent)); background-size: 200% 100%; animation: shimmer 6s linear infinite; color: #fff; text-align: center; font-weight: 600; padding: .45rem 1rem; font-size: .9rem; }
@keyframes shimmer { to { background-position: 200% 0; } }
.nav { position: sticky; top: 0; z-index: 40; transition: background .35s, border-color .35s, box-shadow .35s; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--c-bg) 55%, transparent); backdrop-filter: blur(12px); }
.nav.is-scrolled { background: color-mix(in srgb, var(--c-bg) 90%, transparent); border-color: var(--line); box-shadow: 0 10px 30px -15px #000; }
.is-home .nav:not(.is-scrolled) { background: linear-gradient(180deg, color-mix(in srgb, var(--c-bg) 75%, transparent), transparent); backdrop-filter: none; }
.nav__in { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; font: 800 1.35rem/1 var(--f-display); letter-spacing: .06em; color: var(--gold-bright); }
.brand:hover { color: #fff; }
.brand img { height: 38px; width: auto; }
.brand svg { width: 30px; height: 34px; transition: transform .5s var(--ease); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c-primary) 60%, transparent)); }
.brand:hover svg { transform: rotate(-8deg) scale(1.08); }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav__links a:not(.btn) { position: relative; color: var(--c-text); font-weight: 600; font-size: .95rem; letter-spacing: .03em; padding: .3rem 0; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--c-primary); transform: scaleX(0); transition: transform .3s var(--ease); box-shadow: 0 0 8px var(--c-primary); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--gold-bright); }
.nav__toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--c-text); padding: .55rem .8rem; cursor: pointer; border-radius: var(--r-sm); font: inherit; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--c-primary); display: inline-grid; place-items: center; background: var(--c-surface); font-size: .72rem; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.inline-form { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--c-muted); cursor: pointer; }
.linklike:hover { color: var(--c-accent); }
@media (max-width: 1040px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; inset: 72px 0 auto; flex-direction: column; align-items: stretch; background: color-mix(in srgb, var(--c-bg) 96%, transparent); backdrop-filter: blur(14px); padding: 1rem 16px 1.5rem; border-bottom: 1px solid var(--line); gap: 1rem; }
  .nav__links.is-open { display: flex; animation: drop .3s var(--ease); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Selector de idioma ---------- */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; padding: .4rem .65rem; border: 1px solid var(--line-soft); border-radius: 999px; font-weight: 700; font-size: .8rem; letter-spacing: .08em; color: var(--c-text); transition: border-color .2s, color .2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--c-primary); color: var(--gold-bright); }
.lang summary svg { width: 16px; height: 16px; }
.lang__menu { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 50; min-width: 200px; margin: 0; padding: .4rem; list-style: none; border-radius: var(--r-sm); background: color-mix(in srgb, var(--c-bg) 95%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: drop .25s var(--ease); }
.lang__menu a { display: flex; gap: .6rem; align-items: center; padding: .5rem .7rem; border-radius: 8px; color: var(--c-text); font-weight: 500; font-size: .92rem; }
.lang__menu a::after { display: none; }
.lang__menu a b { width: 1.8rem; color: var(--c-muted); font-size: .75rem; letter-spacing: .08em; }
.lang__menu a:hover { background: color-mix(in srgb, var(--c-text) 6%, transparent); color: var(--gold-bright); }
.lang__menu a.is-active { background: var(--primary-soft); color: var(--gold-bright); }
.lang__menu a.is-active b { color: var(--c-primary); }
@media (max-width: 1040px) { .lang__menu { position: static; margin-top: .5rem; box-shadow: none; } .lang summary { width: fit-content; } }

/* ---------- Avisos ---------- */
.flash { margin: 1rem 0; padding: .9rem 1.1rem; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--c-secondary) 40%, transparent); background: var(--secondary-soft); display: flex; justify-content: space-between; gap: 1rem; animation: drop .4s var(--ease); }
.flash--error { border-color: color-mix(in srgb, var(--c-accent) 50%, transparent); background: color-mix(in srgb, var(--c-accent) 14%, transparent); }
.flash button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.errors { margin: 0 0 1rem; padding: .9rem 1rem .9rem 2rem; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--c-accent) 50%, transparent); background: color-mix(in srgb, var(--c-accent) 12%, transparent); }

/* =========================================================
   HERO con splash arts en bucle
   ========================================================= */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; padding: 6.5rem 0 5rem; margin-top: -72px; overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -3; }
.hero__slide { --dur: calc(var(--n) * 7s); position: absolute; inset: 0; margin: 0; opacity: 0; animation: slide-fade var(--dur) infinite; animation-delay: calc(var(--i) * 7s); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; animation: kenburns var(--dur) infinite; animation-delay: calc(var(--i) * 7s); }
.hero__slide figcaption { position: absolute; right: max(16px, calc((100% - 1200px) / 2)); bottom: 2.2rem; text-align: right; z-index: 2; font-family: var(--f-display); }
.hero__slide figcaption b { display: block; font-size: 1.2rem; color: var(--gold-bright); letter-spacing: .12em; text-transform: uppercase; }
.hero__slide figcaption span { color: var(--c-muted); font: italic 500 .92rem var(--f-body); }
@keyframes slide-fade { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes kenburns { 0% { transform: scale(1.12) translateX(2%); } 30% { transform: scale(1.02) translateX(-1%); } 100% { transform: scale(1.02); } }
.hero__veil { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--c-bg) 8%, color-mix(in srgb, var(--c-bg) 75%, transparent) 42%, color-mix(in srgb, var(--c-bg) 15%, transparent) 75%),
    linear-gradient(0deg, var(--c-bg) 0%, transparent 35%),
    radial-gradient(ellipse at 80% 40%, transparent 30%, color-mix(in srgb, var(--c-bg) 50%, transparent));
}
.hero__sparks { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero h1 { max-width: 13ch; text-shadow: 0 6px 40px rgba(0,0,0,.7);
  background: linear-gradient(180deg, #fff 10%, var(--gold-bright) 55%, var(--c-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.18rem; color: color-mix(in srgb, var(--c-text) 82%, transparent); max-width: 46ch; margin-bottom: 2rem; text-shadow: 0 2px 20px #000; }
.hero__trust { margin-top: 2rem; display: flex; gap: .6rem 1.4rem; flex-wrap: wrap; color: var(--c-muted); font-size: .93rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust span::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--c-secondary); box-shadow: 0 0 8px var(--c-secondary); }
.hero__trust strong { color: var(--c-text); font-weight: 700; }
.hero__dots { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero__dots i { width: 26px; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--c-text) 25%, transparent); overflow: hidden; position: relative; }
.hero__dots i::after { content: ""; position: absolute; inset: 0; background: var(--c-primary); transform-origin: 0 50%; transform: scaleX(0); animation: dot calc(4 * 7s) linear infinite; animation-delay: calc(var(--i) * 7s); }
@keyframes dot { 0% { transform: scaleX(0); } 25% { transform: scaleX(1); opacity: 1; } 26%, 100% { transform: scaleX(1); opacity: 0; } }
.hero__scroll { position: absolute; left: max(16px, calc((100% - 1200px) / 2)); bottom: 1.6rem; width: 26px; height: 42px; border: 2px solid color-mix(in srgb, var(--c-text) 40%, transparent); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--c-primary); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Escalera de ligas: cada peldaño ocupa su propio sitio (sin solapes) */
.ladder { position: relative; display: flex; flex-direction: column-reverse; justify-content: center; gap: .15rem; min-height: 420px; }
.ladder::before { content: ""; position: absolute; inset: -10% -15%; background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--c-bg) 70%, transparent), transparent 68%); pointer-events: none; }
.ladder__path { display: none; }
.ladder__step { position: relative; display: flex; align-items: center; gap: .7rem; margin-left: calc(var(--i) / max(1, var(--n) - 1) * (100% - 13rem)); }
.ladder__step .crest { width: var(--s, 56px); height: var(--s, 56px); flex: none; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.7)) drop-shadow(0 0 14px color-mix(in srgb, var(--crest) 45%, transparent)); animation: float 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.ladder__step span { font: 600 .74rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); white-space: nowrap; }
.ladder__step--top .crest { animation: float 5s ease-in-out infinite, glow 3s ease-in-out infinite; }
.ladder__step--top span { color: var(--gold-bright); font-size: .9rem; }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes glow { 50% { filter: drop-shadow(0 10px 18px rgba(0,0,0,.7)) drop-shadow(0 0 34px var(--crest)); } }
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 7rem; }
  .hero__grid { grid-template-columns: 1fr; }
  /* En pantallas pequeñas la escalera pasa a ser una fila de emblemas */
  .ladder { min-height: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .9rem .5rem; margin-top: 1rem; }
  .ladder::before { display: none; }
  .ladder__step { flex-direction: column; gap: .35rem; margin-left: 0; width: 72px; }
  .ladder__step .crest { width: 54px; height: 54px; }
  .ladder__step span, .ladder__step--top span { font-size: .62rem; letter-spacing: .08em; }
  .hero__slide figcaption, .hero__scroll { display: none; }
}

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section__head { max-width: 660px; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.section__head p { color: var(--c-muted); font-size: 1.05rem; }

/* Rejilla de ligas */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 760px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
.tier-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem;
  padding: 1.6rem 1rem 1.3rem; border-radius: var(--r); color: var(--c-text); overflow: hidden;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--crest) 22%, transparent), transparent 65%), var(--glass);
  border: 1px solid color-mix(in srgb, var(--crest) 25%, transparent);
  transform-style: preserve-3d;
}
.tier-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--crest) 30%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; }
.tier-card:hover { color: var(--c-text); border-color: var(--crest); box-shadow: 0 20px 40px -18px var(--crest); }
.tier-card:hover::before { opacity: 1; }
.tier-card .crest { width: 110px; height: 110px; object-fit: contain; position: relative; transition: transform .5s var(--ease), filter .5s; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.tier-card:hover .crest { transform: translateY(-8px) scale(1.1) rotate(-3deg); filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)) drop-shadow(0 0 24px var(--crest)); }
.tier-card h3 { position: relative; margin: .4rem 0 0; font-size: 1.05rem; color: var(--c-text); letter-spacing: .08em; text-transform: uppercase; }
.tier-card__price { position: relative; font-weight: 700; color: var(--crest); filter: brightness(1.35); }
.tier-card__price small { color: var(--c-muted); font-weight: 500; margin-left: .25rem; filter: none; }

/* Servicios con splash */
.services { display: grid; grid-template-columns: repeat(min(var(--cols, 3), 3), 1fr); gap: 1.4rem; }
.service { position: relative; min-height: 460px; border-radius: var(--r); overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--line-soft); isolation: isolate; box-shadow: var(--shadow); transform-style: preserve-3d; }
.service__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.05); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85) brightness(.75); }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 10%, color-mix(in srgb, var(--c-bg) 70%, transparent) 45%, var(--c-bg) 92%); }
.service:hover .service__art { transform: scale(1.14); filter: saturate(1.1) brightness(.9); }
.service:hover { border-color: var(--line); }
.service__body { padding: 1.6rem; }
.service__num { font: 800 .8rem/1 var(--f-display); letter-spacing: .2em; color: var(--c-secondary); }
.service h3 { font-size: 1.5rem; margin: .5rem 0 .6rem; }
.service p { color: color-mix(in srgb, var(--c-text) 75%, transparent); }
.service__price { font-weight: 700; color: var(--gold-bright); margin-bottom: 1.1rem; }

/* Cifras */
.numbers { position: relative; padding: 2.8rem 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, transparent, var(--primary-soft), transparent); }
.numbers__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.numbers b { display: block; font: 800 clamp(2rem, 4vw, 3rem)/1 var(--f-display); background: linear-gradient(180deg, #fff, var(--c-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numbers span { color: var(--c-muted); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }

/* Carrusel de campeones */
.section--champs { overflow: hidden; }
.marquee { display: grid; gap: 1rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 1rem; width: max-content; animation: scroll-x 60s linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(calc(-50% - .5rem)); } }
.champ { position: relative; margin: 0; width: 170px; aspect-ratio: 308 / 460; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-soft); flex: none; }
.champ img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease), filter .5s; filter: grayscale(.35) brightness(.8); }
.champ::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(1,10,19,.95)); }
.champ figcaption { position: absolute; left: .8rem; right: .8rem; bottom: .7rem; z-index: 1; }
.champ b { display: block; font: 700 .95rem/1.1 var(--f-display); color: var(--gold-bright); letter-spacing: .06em; }
.champ span { font-size: .72rem; color: var(--c-muted); }
.champ:hover { border-color: var(--c-primary); box-shadow: 0 0 24px -6px var(--c-primary); }
.champ:hover img { transform: scale(1.1); filter: none; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.5rem 1.5rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-soft); transition: transform .4s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 800 3rem/1 var(--f-display); margin-bottom: .8rem; background: linear-gradient(180deg, var(--c-primary), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: var(--c-muted); margin: 0; }

/* Incluido */
.features-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.features-wrap__art { position: relative; height: 520px; }
.features-wrap__art img { position: absolute; width: 58%; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); }
.features-wrap__art img:first-child { left: 0; top: 0; transform: rotate(-5deg); animation: float 7s ease-in-out infinite; }
.features-wrap__art img:last-child { right: 0; bottom: 0; transform: rotate(4deg); animation: float 7s ease-in-out infinite -3.5s; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; }
.feature { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.feature svg { width: 30px; height: 30px; padding: 6px; border-radius: 8px; color: var(--c-secondary); background: var(--secondary-soft); }
.feature h4 { margin: 0 0 .2rem; color: var(--c-text); font: 700 1.02rem/1.3 var(--f-body); }
.feature p { margin: 0; color: var(--c-muted); font-size: .94rem; }

/* Reseñas */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review { margin: 0; transition: transform .4s var(--ease); }
.review:hover { transform: translateY(-5px); }
.review blockquote { margin: .6rem 0 1rem; color: var(--c-text); font-size: 1.02rem; }
.review footer { color: var(--c-muted); font-size: .88rem; }
.stars { color: var(--c-primary); letter-spacing: .15em; text-shadow: 0 0 10px color-mix(in srgb, var(--c-primary) 60%, transparent); }

/* FAQ */
.faq details { border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: var(--glass); margin-bottom: .7rem; padding: 0 1.2rem; transition: border-color .3s; }
.faq details[open] { border-color: var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); color: var(--c-primary); font-size: 1.2rem; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--c-muted); margin: 0 0 1.2rem; max-width: 70ch; animation: drop .35s var(--ease); }

/* CTA */
.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--r) * 1.5); text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.5rem; border: 1px solid var(--line); isolation: isolate; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns-slow 30s ease-in-out infinite alternate; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--c-bg) 62%, transparent) 20%, color-mix(in srgb, var(--c-bg) 25%, transparent) 80%); }
.cta-band__bg { object-position: 50% 30%; }
@keyframes kenburns-slow { to { transform: scale(1.15); } }
.cta-band__crest { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 1rem; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--c-secondary) 60%, transparent)); }
.cta-band p { color: color-mix(in srgb, var(--c-text) 80%, transparent); font-size: 1.1rem; }
.cta-band .btn { margin-top: .5rem; }

@media (max-width: 960px) {
  .services, .steps, .reviews { grid-template-columns: 1fr; }
  .features-wrap { grid-template-columns: 1fr; }
  .features-wrap__art { display: none; }
  .numbers__in { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .service { min-height: 400px; } }

/* =========================================================
   CALCULADORA
   ========================================================= */
.page-banner { position: relative; overflow: hidden; border-radius: calc(var(--r) * 1.4); margin: 1.5rem 0 1.5rem; min-height: 240px; display: flex; align-items: flex-end; border: 1px solid var(--line); isolation: isolate; }
.page-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; z-index: -2; animation: kenburns-slow 25s ease-in-out infinite alternate; }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--c-bg) 5%, color-mix(in srgb, var(--c-bg) 60%, transparent) 55%, transparent), linear-gradient(0deg, color-mix(in srgb, var(--c-bg) 70%, transparent), transparent 60%); }
.page-banner__body { padding: 2rem; max-width: 620px; }
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .3rem; }
.page-banner p { color: color-mix(in srgb, var(--c-text) 80%, transparent); margin: 0; }

.boost-tabs { display: flex; gap: .4rem; margin-bottom: 1.5rem; overflow-x: auto; padding: .35rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-soft); width: fit-content; max-width: 100%; }
.boost-tabs a { padding: .65rem 1.2rem; color: var(--c-muted); border-radius: 999px; white-space: nowrap; font-weight: 700; font-size: .92rem; transition: color .2s, background .3s; }
.boost-tabs a:hover { color: var(--c-text); }
.boost-tabs a.is-active { color: #120d04; background: linear-gradient(135deg, var(--gold-bright), var(--c-primary)); box-shadow: 0 6px 20px -8px var(--c-primary); }
.calc { display: grid; grid-template-columns: 1fr 350px; gap: 1.5rem; align-items: start; }
.frame--lobby { overflow: hidden; }
.lobby { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 1rem; align-items: stretch; }
.lobby__side { text-align: center; position: relative; }
.lobby__side h3 { font: 600 .8rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--c-muted); }
.lobby__crest { width: 150px; height: 150px; object-fit: contain; margin: .4rem auto .6rem; transition: filter .5s, transform .5s var(--ease); filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)) drop-shadow(0 0 26px color-mix(in srgb, var(--crest, var(--c-primary)) 70%, transparent)); animation: float 5s ease-in-out infinite; }
.lobby__crest.is-swapping { animation: swap .5s var(--ease); }
@keyframes swap { 0% { transform: scale(.6) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.lobby__arrow { display: grid; place-items: center; color: var(--c-primary); }
.lobby__arrow svg { width: 44px; animation: nudge 1.6s ease-in-out infinite; filter: drop-shadow(0 0 8px var(--c-primary)); }
@keyframes nudge { 50% { transform: translateX(6px); } }
.lobby__name { font: 700 1.35rem/1.2 var(--f-display); color: var(--c-text); margin-bottom: 1.1rem; letter-spacing: .04em; }
.lobby__side .field { text-align: left; }
.summary { position: sticky; top: 96px; }
.summary h3 { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.summary__total { font: 800 2.7rem/1 var(--f-display); margin: .4rem 0 1.1rem; background: linear-gradient(180deg, #fff, var(--c-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.summary__total.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0 0 1.25rem; font-size: .95rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.summary dt { color: var(--c-muted); }
.summary dd { margin: 0; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--c-muted); cursor: pointer; font-size: .9rem; transition: all .25s var(--ease); }
.chip:hover span { border-color: var(--line); color: var(--c-text); }
.chip input:checked + span { border-color: var(--c-secondary); color: #fff; background: var(--secondary-soft); box-shadow: 0 0 16px -4px var(--c-secondary); }
.chip input:focus-visible + span { outline: 2px solid var(--c-secondary); }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 560px) { .lobby { grid-template-columns: 1fr; } .lobby__arrow { transform: rotate(90deg); height: 44px; } }

/* ---------- Formularios ---------- */
.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .88rem; color: var(--c-text); letter-spacing: .02em; }
.field small { display: block; margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: .7rem .9rem; min-height: 46px;
  background: color-mix(in srgb, var(--c-bg) 75%, var(--c-surface)); color: var(--c-text);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--primary-soft), 0 0 20px -6px var(--c-primary); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-primary) 50%), linear-gradient(135deg, var(--c-primary) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
select option { background: var(--c-surface); }
input[type=color] { width: 52px; height: 40px; padding: 2px; border: 1px solid var(--line); background: var(--c-surface); cursor: pointer; border-radius: 8px; }
input[type=range] { width: 100%; accent-color: var(--c-secondary); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .3rem; accent-color: var(--c-primary); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.or { display: flex; align-items: center; gap: 1rem; color: var(--c-muted); margin: 1.25rem 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line-soft); }
.auth { padding: 3.5rem 0; }

/* =========================================================
   PANELES
   ========================================================= */
.panel { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0 4rem; }
.panel > section { min-width: 0; }
.side { position: sticky; top: 96px; align-self: start; padding: 1rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-soft); backdrop-filter: blur(12px); }
.side__role { font: 700 1rem/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--c-primary); margin-bottom: .8rem; padding: .3rem .6rem .9rem; border-bottom: 1px solid var(--line-soft); }
.side a { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; margin-bottom: 2px; color: var(--c-muted); border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; transition: background .25s, color .2s, transform .25s var(--ease); }
.side a:hover { color: var(--c-text); background: color-mix(in srgb, var(--c-text) 5%, transparent); transform: translateX(3px); }
.side a.is-active { color: var(--gold-bright); background: linear-gradient(90deg, var(--primary-soft), transparent); box-shadow: inset 2px 0 0 var(--c-primary); }
.side__group { margin-top: 1.1rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); padding: 0 .8rem .4rem; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.panel__head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }
.panel__head p { margin: .3rem 0 0; color: var(--c-muted); }
@media (max-width: 1180px) { .panel { grid-template-columns: 1fr; gap: 1.25rem; } .side { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; } .side__role { width: 100%; } .side__group { display: none; } .side a { margin: 0; } .side a:hover { transform: none; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { position: relative; overflow: hidden; padding: 1.2rem 1.3rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-soft); transition: transform .35s var(--ease), border-color .3s; }
.stat:hover { transform: translateY(-3px); border-color: var(--line); }
.stat b { display: block; font: 700 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--f-display); color: var(--c-text); }
.stat span { color: var(--c-muted); font-size: .88rem; }


.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th { text-align: left; font-weight: 700; color: var(--c-muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .7rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .75rem .6rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr { transition: background .2s; }
tbody tr:hover td { background: color-mix(in srgb, var(--c-primary) 5%, transparent); }
td .btn { white-space: nowrap; }
.ref { font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--c-muted); }
.empty p { margin-bottom: 1rem; }

.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; font-size: .76rem; font-weight: 700; border-radius: 999px; white-space: nowrap; color: var(--c-muted); background: color-mix(in srgb, currentColor 14%, transparent); border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.badge--pending_payment { color: var(--c-muted); }
.badge--paid { color: var(--c-primary); }
.badge--in_progress { color: var(--c-secondary); }
.badge--in_progress::before { animation: pulse 1.6s ease-in-out infinite; }
.badge--paused { color: #e0a33a; }
.badge--completed { color: #4fc27a; }
.badge--cancelled, .badge--refunded { color: var(--c-accent); }
.badge--role-admin { color: var(--c-accent); }
.badge--role-booster { color: var(--c-secondary); }
.badge--role-user { color: var(--c-muted); }
@keyframes pulse { 50% { opacity: .3; } }

.progress { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--c-bg) 60%, var(--c-surface)); border: 1px solid var(--line-soft); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c-secondary) 50%, var(--c-bg)), var(--c-secondary)); box-shadow: 0 0 12px var(--c-secondary); position: relative; overflow: hidden; transition: width .8s var(--ease); }
.progress > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: sweep 2.2s ease-in-out infinite; }
@keyframes sweep { to { transform: translateX(100%); } }

.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.order-grid > .frame + .frame { margin-top: 0; }
@media (max-width: 960px) { .order-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: .5rem 1rem; margin: 0; }
.kv dt { color: var(--c-muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--c-bg); padding: .1rem .45rem; border: 1px dashed var(--line); border-radius: 6px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 1rem; }
.bars > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bars i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 25%, var(--c-surface))); }
.bars span { font-size: .7rem; color: var(--c-muted); }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters > * { width: auto; flex: 1 1 160px; }
.filters .btn { flex: 0 0 auto; }

.pagination { margin-top: 1rem; }
.pagination nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pagination svg { width: 18px; height: 18px; }
.pagination a, .pagination span[aria-current] span, .pagination span[aria-disabled] span { padding: .4rem .75rem; border: 1px solid var(--line-soft); border-radius: 8px; display: inline-block; }
.pagination span[aria-current] span { border-color: var(--c-primary); color: var(--gold-bright); }
.pagination .hidden { display: none; }
@media (min-width: 640px) { .pagination .sm\:flex-1 { flex: 1; } .pagination .sm\:hidden { display: none; } .pagination .hidden.sm\:flex-1 { display: flex; justify-content: space-between; align-items: center; width: 100%; } }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: 520px; }
.chat__log { flex: 1; overflow-y: auto; padding: .5rem .25rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { max-width: 82%; padding: .6rem .9rem; background: var(--surface-3); border: 1px solid var(--line-soft); border-radius: 14px 14px 14px 4px; align-self: flex-start; animation: drop .3s var(--ease); }
.msg--mine { align-self: flex-end; background: var(--primary-soft); border-color: var(--line); border-radius: 14px 14px 4px 14px; }
.msg--system { align-self: center; max-width: 95%; background: transparent; border: 0; border-radius: 0; border-top: 1px dashed var(--line-soft); border-bottom: 1px dashed var(--line-soft); color: var(--c-muted); font-size: .86rem; text-align: center; }
.msg__meta { font-size: .76rem; color: var(--c-muted); margin-bottom: .2rem; display: flex; gap: .5rem; }
.msg__meta b { font-weight: 700; color: var(--c-text); }
.msg__meta .r-booster { color: var(--c-secondary); }
.msg__meta .r-admin { color: var(--c-accent); }
.msg__meta span + span { opacity: .8; }
.msg__body { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__form { display: flex; gap: .5rem; border-top: 1px solid var(--line-soft); padding-top: .75rem; }
.chat__form textarea { min-height: 46px; height: 46px; }
.chat__closed { text-align: center; color: var(--c-muted); padding: .75rem; border-top: 1px solid var(--line-soft); }
.unread { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--c-accent); color: #fff; font-size: .74rem; font-weight: 700; border-radius: 11px; animation: pulse 2s ease-in-out infinite; }
.ref .unread { margin-left: .35rem; vertical-align: middle; }
.live { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--c-muted); }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-muted); }
.live[data-state="on"] { color: var(--c-secondary); }
.live[data-state="on"] i { background: var(--c-secondary); box-shadow: 0 0 10px var(--c-secondary); animation: pulse 1.6s ease-in-out infinite; }
.live[data-state="wait"] i { background: var(--c-primary); }
.live[data-state="off"] i { background: var(--c-accent); }
.chat__people { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--c-muted); margin: -.25rem 0 .5rem; min-height: 1.6em; }
.chat__people .person { padding: .1rem .55rem; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--c-text); }
.chat__people .person.r-booster { border-color: var(--c-secondary); }
.chat__people .person.r-admin { border-color: var(--c-accent); }
.chat__typing { min-height: 1.4em; font-size: .85rem; color: var(--c-secondary); font-style: italic; padding: 0 .25rem .25rem; }

/* ---------- Ajustes / tema ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.swatch { display: flex; gap: .75rem; align-items: center; padding: .75rem; border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
.swatch > div { min-width: 0; overflow-wrap: anywhere; }
.swatch input[type=color] { flex: none; }
.swatch label { margin: 0; }
.swatch code { font-size: .8rem; color: var(--c-muted); }
.tier-row input[type=number] { min-width: 90px; }

/* =========================================================
   DASHBOARD DE ADMINISTRACIÓN
   ========================================================= */
.range-tabs { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-soft); }
.range-tabs a { padding: .45rem .95rem; border-radius: 999px; color: var(--c-muted); font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
.range-tabs a:hover { color: var(--c-text); }
.range-tabs a.is-active { color: #120d04; background: linear-gradient(135deg, var(--gold-bright), var(--c-primary)); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { position: relative; overflow: hidden; padding: 1.15rem 1.25rem 0; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-soft); display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s; }
.kpi:hover { transform: translateY(-3px); border-color: var(--kc, var(--line)); }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--kc, var(--c-primary)); box-shadow: 0 0 14px var(--kc, var(--c-primary)); }
.kpi__label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); font-weight: 700; }
.kpi__value { font: 700 clamp(1.3rem, 2.2vw, 1.75rem)/1.15 var(--f-display); color: var(--c-text); margin: .35rem 0 .2rem; font-variant-numeric: tabular-nums; }
.kpi__meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--c-muted); min-height: 1.4em; }
.delta { font-weight: 700; padding: .05rem .45rem; border-radius: 999px; font-size: .76rem; }
.delta--up { color: #4fc27a; background: color-mix(in srgb, #4fc27a 15%, transparent); }
.delta--down { color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 15%, transparent); }
.delta--flat { color: var(--c-muted); background: color-mix(in srgb, var(--c-muted) 15%, transparent); }
.kpi__spark { display: block; width: calc(100% + 2.5rem); margin: .6rem -1.25rem 0; height: 44px; }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.dash-grid--even { grid-template-columns: 1fr 1fr; }
.dash-grid { align-items: start; }
.dash-grid > .frame { margin: 0; min-width: 0; container-type: inline-size; }
@media (max-width: 1180px) { .dash-grid, .dash-grid--even { grid-template-columns: 1fr; } }


.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .84rem; color: var(--c-muted); }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.legend i { width: 12px; height: 3px; border-radius: 2px; background: var(--lc); box-shadow: 0 0 6px var(--lc); }
.legend i.is-dash { background: repeating-linear-gradient(90deg, var(--lc) 0 4px, transparent 4px 7px); box-shadow: none; }

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line-soft); }
.chart .axis text { fill: var(--c-muted); font: 500 11px var(--f-body); }
.chart .s-area { opacity: .9; }
.chart .s-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .s-line--dash { stroke-dasharray: 5 5; stroke-width: 1.8; }
.chart .s-line.is-drawing { animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.chart .cursor line { stroke: color-mix(in srgb, var(--c-text) 35%, transparent); stroke-dasharray: 3 3; }
.chart .cursor circle { stroke: var(--c-bg); stroke-width: 2; }
.chart__tip { position: absolute; top: 0; pointer-events: none; z-index: 5; min-width: 170px; padding: .65rem .8rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--c-bg) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .84rem; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; backdrop-filter: blur(8px); }
.chart__tip.is-on { opacity: 1; transform: none; }
.chart__tip b { display: block; font: 700 .8rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: .35rem; }
.chart__tip div { display: flex; justify-content: space-between; gap: 1rem; }
.chart__tip div span { display: inline-flex; align-items: center; gap: .4rem; color: var(--c-muted); }
.chart__tip div span i { width: 8px; height: 8px; border-radius: 50%; background: var(--lc); }
.chart__tip div strong { color: var(--c-text); font-variant-numeric: tabular-nums; }
.chart-empty { display: grid; place-items: center; min-height: 220px; color: var(--c-muted); text-align: center; border: 1px dashed var(--line-soft); border-radius: var(--r-sm); }

.donut-wrap { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 1.2rem; align-items: center; }
.donut-wrap .breakdown { width: 100%; }
@container (min-width: 440px) { .donut-wrap { grid-template-columns: 170px 1fr; justify-items: stretch; } }
.donut { position: relative; }
.donut svg { width: 170px; height: 170px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 22; transition: stroke-width .25s; }
.donut circle.seg:hover { stroke-width: 28; }
.donut circle.seg { animation: donut 1.2s var(--ease) both; }
@keyframes donut { from { stroke-dasharray: 0 999; } }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__center b { font: 700 1.15rem/1.1 var(--f-display); color: var(--c-text); }
.donut__center span { font-size: .72rem; color: var(--c-muted); letter-spacing: .14em; text-transform: uppercase; }
.breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.breakdown li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; font-size: .9rem; }
.breakdown li > span { display: inline-flex; align-items: center; gap: .5rem; }
.breakdown li > span i { width: 10px; height: 10px; border-radius: 3px; background: var(--lc); }
.breakdown li strong { font-variant-numeric: tabular-nums; }
.breakdown li small { grid-column: 1 / -1; }


.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hbars li { display: grid; grid-template-columns: 34px 1fr auto; gap: .2rem .7rem; align-items: center; }
.hbars img { width: 34px; height: 34px; object-fit: contain; grid-row: span 2; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--crest) 60%, transparent)); }
.hbars .hbars__name { font-weight: 600; font-size: .92rem; }
.hbars .hbars__val { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .9rem; text-align: right; }
.hbars .hbars__track { grid-column: 2 / -1; height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--c-text) 6%, transparent); overflow: hidden; }
.hbars .hbars__track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--crest) 50%, transparent), var(--crest)); box-shadow: 0 0 10px color-mix(in srgb, var(--crest) 60%, transparent); transform-origin: 0 50%; animation: grow 1.1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; }
.pipeline a { display: block; padding: .9rem 1rem; border-radius: var(--r-sm); background: color-mix(in srgb, currentColor 8%, transparent); border: 1px solid color-mix(in srgb, currentColor 25%, transparent); transition: transform .3s var(--ease), background .3s; }
.pipeline a:hover { transform: translateY(-3px); background: color-mix(in srgb, currentColor 14%, transparent); }
.pipeline b { display: block; font: 700 1.5rem/1.1 var(--f-display); }
.pipeline span { font-size: .8rem; color: var(--c-muted); }

.leader { list-style: none; margin: 0; padding: 0; }
.leader li { display: grid; grid-template-columns: 28px 1fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.leader li:last-child { border-bottom: 0; }
.leader__pos { font: 800 .95rem var(--f-display); color: var(--c-muted); text-align: center; }
.leader li:first-child .leader__pos { color: var(--c-primary); text-shadow: 0 0 10px var(--c-primary); }
.leader strong { display: block; font-size: .95rem; }
.leader small { font-size: .8rem; }
.leader__money { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- Pie ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 3rem; padding: 0 0 2.5rem; color: var(--c-muted); font-size: .92rem; background: linear-gradient(180deg, color-mix(in srgb, var(--c-surface) 50%, transparent), var(--c-bg)); }
.footer__emblems { display: flex; justify-content: center; gap: clamp(.3rem, 2vw, 1.4rem); padding: 1.6rem 16px; margin-bottom: 2rem; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.footer__emblems img { width: clamp(38px, 6vw, 64px); height: auto; opacity: .55; filter: grayscale(.6); transition: transform .4s var(--ease), opacity .3s, filter .3s; animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.footer__emblems img:hover { opacity: 1; filter: none; transform: scale(1.2); }
.footer__in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer a { color: var(--c-muted); }
.footer a:hover { color: var(--c-primary); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.disclaimer { margin-top: 2rem; font-size: .78rem; max-width: 90ch; opacity: .8; }

/* ---------- Contención: ningún contenido se sale de su caja ---------- */
.grid-2 > *, .grid-3 > *, .dash-grid > *, .order-grid > *, .calc > *, .lobby > *, .features > *, .kpis > *, .stats > *, .services > *, .reviews > *, .panel > *, .hero__grid > * { min-width: 0; }
input, select, textarea, table { max-width: 100%; }
.frame, .kpi, .stat, .tier-card, .service, .step, .review, .feature, .breakdown, .leader, .hbars, .pipeline, .side { overflow-wrap: break-word; }
td small, .kv dd, .msg__body, .breakdown small, .leader small { overflow-wrap: anywhere; }
.btn { max-width: 100%; white-space: normal; text-align: center; }
.btn--sm, td .btn { white-space: nowrap; }
.frame-title > * { min-width: 0; }

/* ---------- Utilidades ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; }
.text-right { text-align: right; } .nowrap { white-space: nowrap; }
.crest--img { object-fit: contain; }

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__slide:first-child { opacity: 1; }
}

/* =========================================================
   CATÁLOGO (panel de administración)
   ========================================================= */
.catalog-table td { vertical-align: top; }
.catalog-table input[type=text] { min-width: 100px; }
.catalog-table textarea { min-height: 46px; min-width: 140px; }
.catalog-table td small { display: block; margin-top: .25rem; font-size: .75rem; }
.input-num { width: 82px !important; min-width: 0 !important; }
.input-code { width: 100px !important; text-transform: uppercase; }
.input-suffix { display: inline-flex; align-items: center; gap: .4rem; }
.input-suffix span { color: var(--c-muted); font-weight: 700; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; margin-top: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--c-text) 12%, transparent); border: 1px solid var(--line-soft); transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-muted); transition: transform .3s var(--ease), background .25s; }
.switch input:checked + span { background: color-mix(in srgb, var(--c-secondary) 35%, transparent); border-color: var(--c-secondary); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--c-secondary); box-shadow: 0 0 10px var(--c-secondary); }
.switch input:focus-visible + span { outline: 2px solid var(--c-secondary); outline-offset: 2px; }
.add-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-soft); }
.add-row > input[type=text] { flex: 1 1 200px; width: auto; }
.add-row > select { width: auto; flex: 0 1 180px; }
.add-row__title { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-secondary); }
.frame--lp { container-type: inline-size; }
.lp-grid { gap: 1.5rem; grid-template-columns: 1fr; }
@container (min-width: 900px) { .lp-grid { grid-template-columns: 1fr 1fr; } }
.lp-grid h4 { margin-bottom: .2rem; }

/* ---------- Tablas en móvil/tableta: cada fila se convierte en una tarjeta ---------- */
@media (max-width: 900px) {
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { padding: .5rem .9rem; margin-bottom: .75rem; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--surface-3); }
  .table-wrap tbody tr:hover td { background: none; }
  .table-wrap td { display: block; padding: .5rem 0; border-bottom: 1px dashed var(--line-soft); text-align: right; min-width: 0 !important; overflow: hidden; }
  .table-wrap td:last-child { border-bottom: 0; }
  .table-wrap td::before { content: attr(data-label); float: left; margin: .15rem 1rem 0 0; color: var(--c-muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: left; }
  .table-wrap td[data-label=""]::before { display: none; }
  .table-wrap td small { display: inline-block; }
  .table-wrap td .progress { display: inline-block; width: 50%; vertical-align: middle; }
  .table-wrap td.btn-row { display: flex; justify-content: flex-end; }
  /* Campos editables: debajo de su etiqueta y a todo el ancho */
  .table-wrap td > input:not([type=checkbox]):not([type=color]), .table-wrap td > textarea, .table-wrap td > select { display: block; width: 100%; margin-top: .4rem; text-align: left; clear: both; }
  .table-wrap td > .input-suffix { margin-top: 0; }
  .table-wrap td > .input-num { display: inline-block !important; width: 110px !important; clear: none; margin-top: 0; }
  .catalog-table td small { display: block; text-align: left; clear: both; }
  .switch { margin-top: 0; }
}

/* ---------- Páginas legales ---------- */
.legal-page { padding-block: 2rem 4rem; max-width: 900px; }
.legal-tabs { flex-wrap: wrap; margin-bottom: 1.2rem; border-radius: var(--r); }
.range-tabs { flex-wrap: wrap; }
.prose { line-height: 1.7; overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0; }
.prose h2 { font-size: 1.2rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; min-width: 9rem; overflow-wrap: normal; hyphens: auto; }
.prose th { color: var(--c-primary); }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.5; }

/* ---------- Aviso de cookies ---------- */
.cookie-note { position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(880px, calc(100% - 32px));
  display: flex; gap: 1.25rem 1.75rem; align-items: center; justify-content: center; text-align: center;
  padding: 1.1rem 1.75rem; border-radius: var(--r); background: color-mix(in srgb, var(--c-surface) 94%, transparent);
  border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(0,0,0,.5); backdrop-filter: blur(10px); animation: cookie-in .45s var(--ease) both; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; flex: 1 1 auto; max-width: 640px; font-size: .92rem; line-height: 1.55; color: var(--c-muted); }
.cookie-note .btn { flex: 0 0 auto; white-space: nowrap; min-width: 150px; }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 640px) {
  .cookie-note { flex-direction: column; bottom: 12px; padding: 1rem 1.1rem; gap: .9rem; }
  .cookie-note .btn { width: 100%; }
}

/* ---------- Pulsaciones: sin recuadros ni selecciones raras al tocar/pulsar ---------- */
html { -webkit-tap-highlight-color: transparent; }
.btn, .chip span, .range-tabs a, .lang summary, .faq summary, .nav__toggle, .switch, .check, summary { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.btn:focus:not(:focus-visible), summary:focus:not(:focus-visible), .nav__toggle:focus:not(:focus-visible) { outline: none; }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.chip:active span, .range-tabs a:active, .lang summary:active { transform: scale(.96); }
.chip span, .range-tabs a { transition: all .25s var(--ease), transform .08s; }
/* En pantallas táctiles el «hover» se queda pegado tras tocar: lo anulamos */
@media (hover: none) {
  .btn:hover { transform: none; color: var(--c-text); box-shadow: none; border-color: color-mix(in srgb, var(--bc) 70%, transparent); }
  .btn--primary:hover { color: #120d04; box-shadow: 0 8px 24px -10px var(--c-primary), inset 0 1px 0 rgba(255,255,255,.4); border: 0; }
  .btn--discord:hover { color: #fff; border-color: #5865f2; }
  .btn:hover::after { left: -60%; }
  .btn:active { transform: scale(.97); }
  .chip:hover span { border-color: var(--line-soft); color: var(--c-muted); }
  .chip input:checked + span { border-color: var(--c-secondary); color: #fff; }
  .step:hover, .review:hover, .stat:hover, .kpi:hover, .pipeline a:hover, .side a:hover { transform: none; }
  .tier-card:hover .crest { transform: none; }
}

/* ---------- Selector de moneda ---------- */
.cur summary { gap: .3rem; }
.cur__sym { color: var(--c-primary); font-weight: 800; }
.cur .lang__menu { min-width: 140px; }
.prop-key { font-size: .72rem; color: var(--c-muted); background: color-mix(in srgb, var(--c-text) 6%, transparent); padding: .1rem .35rem; border-radius: 4px; word-break: break-all; }
.frame--note { border-color: color-mix(in srgb, var(--c-secondary) 45%, transparent); }
.frame--note code { color: var(--c-secondary); }

/* Selector de idioma con muchos idiomas: dos columnas */
.lang:not(.cur) .lang__menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .25rem; min-width: 400px; }
.lang__menu a { white-space: normal; min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
@media (max-width: 1040px) { .lang:not(.cur) .lang__menu { min-width: 0; } }
@media (max-width: 380px) { .lang:not(.cur) .lang__menu { grid-template-columns: 1fr; } }
