/* Nyra · dashboard kawaii · noche, azul eléctrico, plata lunar */
:root {
  --bg: #060a1c; --bg2: #0b1236; --card: rgba(16, 24, 68, .62); --card-b: rgba(120, 150, 255, .28);
  --text: #eaf0ff; --muted: #a9b7e8; --blue: #5b8cff; --blue2: #8fb0ff; --lav: #b79bff; --pink: #ff8fc7;
  --ok: #35d6b0; --err: #ff5c7a; --warn: #ffc857; --r: 22px;
  --head: 'Fredoka', 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif; --logo: 'Pacifico', 'Fredoka', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--body); color: var(--text); line-height: 1.6;
  background: radial-gradient(1100px 560px at 85% -8%, rgba(91, 140, 255, .38), transparent 62%), radial-gradient(800px 520px at -5% 22%, rgba(183, 155, 255, .2), transparent 60%), radial-gradient(700px 500px at 60% 110%, rgba(255, 143, 199, .10), transparent 60%), var(--bg);
  background-attachment: fixed; overflow-x: hidden;
}
a { color: var(--blue2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }
.emoji { width: 1.7em; height: 1.7em; vertical-align: -0.5em; display: inline-block; margin: 0 .08em; object-fit: contain; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* fondo de estrellas y mariposas */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky::before, .sky::after { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(2px 2px at 12% 18%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 28% 72%, #cfe0ff, transparent 60%), radial-gradient(2px 2px at 47% 33%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 63% 85%, #cfe0ff, transparent 60%), radial-gradient(2px 2px at 78% 22%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 91% 58%, #cfe0ff, transparent 60%), radial-gradient(1px 1px at 6% 52%, #fff, transparent 60%), radial-gradient(1px 1px at 38% 8%, #fff, transparent 60%), radial-gradient(1px 1px at 55% 60%, #fff, transparent 60%), radial-gradient(1px 1px at 86% 90%, #fff, transparent 60%);
  animation: twinkle 5s ease-in-out infinite alternate; }
.sky::after { transform: scale(1.35) rotate(8deg); opacity: .6; animation-duration: 7s; animation-delay: -2s; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.bf { position: absolute; width: 42px; height: 42px; opacity: .75; filter: drop-shadow(0 0 10px rgba(110, 160, 255, .8));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%236ea0ff'%3E%3Cellipse cx='11' cy='13' rx='10' ry='14' transform='rotate(-25 11 13)'/%3E%3Cellipse cx='29' cy='13' rx='10' ry='14' transform='rotate(25 29 13)'/%3E%3Cellipse cx='12' cy='28' rx='7' ry='10' transform='rotate(20 12 28)' opacity='.85'/%3E%3Cellipse cx='28' cy='28' rx='7' ry='10' transform='rotate(-20 28 28)' opacity='.85'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: flutter 14s ease-in-out infinite; }
.bf:nth-child(1) { left: 6%; top: 24%; } .bf:nth-child(2) { left: 88%; top: 40%; width: 30px; height: 30px; animation-duration: 18s; animation-delay: -4s; }
.bf:nth-child(3) { left: 70%; top: 76%; animation-duration: 16s; animation-delay: -8s; } .bf:nth-child(4) { left: 20%; top: 82%; width: 26px; height: 26px; animation-duration: 20s; animation-delay: -2s; }
@keyframes flutter { 0%, 100% { transform: translate(0, 0) rotate(-6deg) scale(1); } 25% { transform: translate(40px, -50px) rotate(8deg) scale(1.1); } 50% { transform: translate(-20px, -90px) rotate(-4deg) scale(.95); } 75% { transform: translate(-50px, -30px) rotate(10deg) scale(1.05); } }

/* navegación */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(6, 10, 28, .72); border-bottom: 1px solid var(--card-b); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--logo); font-size: 1.7rem; color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue), 0 0 18px rgba(91, 140, 255, .7); }
.links { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.links a { font-family: var(--head); font-weight: 500; padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: .2s; }
.links a:hover, .links a.on { background: rgba(91, 140, 255, .2); color: #fff; }
.lang { display: inline-flex; gap: 4px; margin-left: 6px; }
.lang a { padding: 4px 10px; font-size: .85rem; border: 1px solid var(--card-b); }
.lang a.on { background: var(--blue); color: #fff; border-color: transparent; }
.user { display: inline-flex; align-items: center; gap: 8px; }
.user img { width: 30px; height: 30px; border-radius: 50%; }

/* botones */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 1rem; padding: 12px 24px; border: 0; border-radius: 999px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--lav)); box-shadow: 0 8px 24px rgba(91, 140, 255, .4); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 30px rgba(91, 140, 255, .55); color: #fff; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: rgba(91, 140, 255, .14); border: 1.5px solid var(--card-b); box-shadow: none; }
.btn.small { padding: 7px 16px; font-size: .9rem; }
.btn.danger { background: linear-gradient(135deg, #ff5c7a, #ff8fc7); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* tarjetas */
.card { position: relative; background: var(--card); border: 1.5px solid var(--card-b); border-radius: var(--r); padding: 24px; backdrop-filter: blur(8px); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.eared::before, .eared::after { content: ''; position: absolute; top: -13px; width: 30px; height: 30px; background: var(--card-b); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.eared::before { left: 28px; transform: rotate(-12deg); } .eared::after { right: 28px; transform: rotate(12deg); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.feature { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), border-color .2s; }
.feature:hover { transform: translateY(-6px) rotate(-.6deg); border-color: var(--blue2); }
.feature .ico { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, rgba(91, 140, 255, .35), rgba(183, 155, 255, .35)); margin-bottom: 12px; }
.feature .ico .emoji { width: 2.9rem; height: 2.9rem; margin: 0; vertical-align: 0; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }
code { background: rgba(91, 140, 255, .18); padding: 2px 8px; border-radius: 8px; font-size: .92em; color: #dfe8ff; }
.kicker { font-family: var(--logo); color: var(--blue2); font-size: 1.4rem; }
.sparkle { display: inline-block; width: 1em; height: 1em; vertical-align: -.1em; margin: 0 .2em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238fb0ff' d='M12 0c1 7 5 11 12 12-7 1-11 5-12 12-1-7-5-11-12-12 7-1 11-5 12-12z'/%3E%3C/svg%3E") center / contain no-repeat; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) scale(1.1); } }
section { padding: 56px 0; }
.center { text-align: center; }

/* hero */
.hero { padding: 64px 0 32px; }
.hero .wrap { display: grid; gap: 36px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero .sub { font-size: 1.15rem; max-width: 34em; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: 28px; border: 2px solid var(--card-b); box-shadow: 0 20px 60px rgba(40, 80, 255, .35), 0 0 0 6px rgba(91, 140, 255, .1); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(.6deg); } }
.stats { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.stat b { font-family: var(--head); font-size: 2rem; color: #fff; display: block; line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; }
.gradient-text { background: linear-gradient(120deg, #fff, var(--blue2) 45%, var(--lav)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* bots */
.bot { display: flex; flex-direction: column; gap: 10px; }
.bot .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* comandos */
.search { width: 100%; padding: 14px 20px; border-radius: 999px; border: 1.5px solid var(--card-b); background: rgba(10, 16, 50, .8); color: var(--text); font: 600 1rem var(--body); outline: none; }
.search:focus { border-color: var(--blue2); box-shadow: 0 0 0 4px rgba(91, 140, 255, .2); }
.cmd-cat { margin-top: 30px; }
.cmd-cat h3 { color: var(--blue2); }
.cmd { padding: 14px 18px; border-radius: 16px; background: rgba(10, 16, 50, .6); border: 1px solid var(--card-b); }
.cmd b { font-family: var(--head); font-size: 1.05rem; color: #fff; }
.cmd .subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cmd .subs code { font-size: .8rem; }
.cmd p { margin: 4px 0 0; font-size: .92rem; }
.hide { display: none !important; }

/* formularios y panel */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .lbl { font-family: var(--head); font-weight: 500; color: var(--blue2); font-size: .95rem; }
.field small { color: var(--muted); }
input[type=text], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 11px 16px; border-radius: 16px; border: 1.5px solid var(--card-b); background: rgba(8, 13, 42, .85); color: var(--text); font: 600 .98rem var(--body); outline: none; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue2); box-shadow: 0 0 0 4px rgba(91, 140, 255, .18); }
input[type=color] { width: 56px; height: 40px; padding: 2px; border-radius: 12px; border: 1.5px solid var(--card-b); background: transparent; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 14px; font-weight: 700; }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .15); position: relative; transition: .25s; cursor: pointer; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .25s cubic-bezier(.3, 1.6, .5, 1); }
.switch input:checked { background: linear-gradient(135deg, var(--blue), var(--lav)); }
.switch input:checked::after { transform: translateX(20px); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.tab { font-family: var(--head); font-weight: 500; padding: 9px 18px; border-radius: 999px; background: rgba(91, 140, 255, .12); border: 1.5px solid var(--card-b); color: var(--muted); cursor: pointer; }
.tab.on { background: linear-gradient(135deg, var(--blue), var(--lav)); color: #fff; border-color: transparent; }
.pane { display: none; } .pane.on { display: block; animation: pop .35s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.two { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.guild { display: flex; align-items: center; gap: 14px; }
.guild > img, .guild > .ph { width: 56px; height: 56px; border-radius: 18px; background: var(--bg2); display: grid; place-items: center; font-family: var(--head); font-weight: 700; }
.guild .nm { font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: #fff; }
.preview { width: 100%; border-radius: 16px; border: 1.5px solid var(--card-b); background: rgba(0, 0, 0, .25); min-height: 120px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: .85rem; font-weight: 800; background: rgba(53, 214, 176, .18); color: var(--ok); }
.tag.no { background: rgba(255, 92, 122, .15); color: var(--err); } .tag.prem { background: rgba(157, 123, 255, .22); color: var(--lav); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(8, 13, 42, .6); margin-bottom: 8px; flex-wrap: wrap; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline > * { flex: 1 1 140px; } .inline .btn { flex: 0 0 auto; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); padding: 14px 26px; border-radius: 999px; font-family: var(--head); font-weight: 600; background: var(--card); border: 1.5px solid var(--card-b); backdrop-filter: blur(12px); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); transition: .4s cubic-bezier(.3, 1.6, .5, 1); z-index: 50; }
.toast.show { transform: translate(-50%, 0); } .toast.ok { border-color: var(--ok); } .toast.err { border-color: var(--err); }
.table { width: 100%; border-collapse: collapse; } .table td { padding: 10px 14px; border-bottom: 1px solid var(--card-b); }
.rank { font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--blue2); width: 52px; }
.rank-u { display: flex; align-items: center; gap: 12px; } .rank-u img { width: 38px; height: 38px; border-radius: 50%; }
.status-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); margin-right: 8px; } .status-dot.off { background: var(--err); box-shadow: 0 0 12px var(--err); }
.perks { list-style: none; padding: 0; margin: 0; } .perks li { padding: 8px 0 8px 34px; position: relative; color: var(--text); }
.perks li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b79bff' d='M12 0c1 7 5 11 12 12-7 1-11 5-12 12-1-7-5-11-12-12 7-1 11-5 12-12z'/%3E%3C/svg%3E") center / contain no-repeat; }
.legal p { color: var(--text); }
footer { margin-top: 60px; padding: 36px 0 48px; border-top: 1px solid var(--card-b); text-align: center; color: var(--muted); }
footer a { color: var(--blue2); margin: 0 8px; }
.error-page { text-align: center; padding: 90px 0; } .error-page img { width: 160px; animation: bob 5s ease-in-out infinite; }


/* ---------- menú hamburguesa (solo móvil/tablet) ---------- */
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--card-b); background: rgba(91, 140, 255, .14); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; padding: 0; }
.burger span { width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s; }
.nav.open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.btn { min-height: 44px; justify-content: center; }
.btn.small { min-height: 40px; }
.toast { max-width: calc(100vw - 32px); text-align: center; }
img, svg, video, canvas { height: auto; }

/* ---------- tablet y móvil ---------- */
@media (max-width: 860px) {
  .wrap { width: min(1120px, 100% - 28px); }
  .nav .wrap { min-height: 60px; flex-wrap: nowrap; gap: 10px; }
  .brand { font-size: 1.5rem; } .brand img { width: 36px; height: 36px; }
  .burger { display: flex; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 14px 20px;
    background: #060a1c; border-bottom: 1px solid var(--card-b); max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; box-shadow: 0 24px 40px rgba(0, 0, 0, .5); }
  .nav.open .links { display: flex; }
  .links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; font-size: 1.05rem; }
  .lang { margin: 8px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lang a { justify-content: center; border-radius: 14px; font-size: .95rem; }
  .links > .btn, .user { align-self: stretch; margin-top: 6px; justify-content: center; }
  .user { padding: 6px 16px; gap: 12px; }
  .hero { padding: 28px 0 6px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { max-width: 560px; margin-inline: auto; width: 100%; }
  section { padding: 38px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; line-height: 1.55; }
  h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); } h2 { font-size: 1.5rem; } h3 { font-size: 1.1rem; }
  .kicker { font-size: 1.2rem; }
  .hero .sub { font-size: 1.02rem; }
  .cta { flex-direction: column; align-items: stretch; } .cta .btn { width: 100%; }
  .stats { gap: 22px; justify-content: space-between; } .stat b { font-size: 1.7rem; }
  .card { padding: 18px 16px; border-radius: 20px; }
  .eared::before, .eared::after { width: 24px; height: 24px; top: -10px; }
  .feature:hover { transform: none; }
  .grid, .two { gap: 16px; }
  input[type=text], input[type=number], input[type=url], input[type=search], select, textarea, .search { font-size: 16px; }
  .field { margin-bottom: 14px; }
  /* tabs del panel: una sola fila con scroll lateral */
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 16px -14px; padding: 4px 14px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; white-space: nowrap; scroll-snap-align: start; min-height: 42px; }
  .inline > * { flex: 1 1 100%; } .inline .btn { width: 100%; }
  .list-row { flex-direction: column; align-items: stretch; } .list-row .btn { width: 100%; }
  .guild { gap: 12px; } .guild > img, .guild > .ph { width: 48px; height: 48px; border-radius: 16px; }
  .guild .nm { font-size: 1rem; word-break: break-word; }
  .table td { padding: 10px 6px; font-size: .92rem; } .rank { width: 34px; font-size: 1rem; } .rank-u img { width: 30px; height: 30px; } .rank-u { gap: 8px; }
  .cmd { padding: 12px 14px; } .cmd .subs code { font-size: .78rem; }
  .perks li { padding-left: 30px; }
  .toast { bottom: 16px; padding: 12px 20px; font-size: .95rem; }
  footer { margin-top: 36px; padding: 28px 0 40px; } footer a { display: inline-block; margin: 4px 8px; }
  .sky .bf:nth-child(n+3) { display: none; }
}
@media (hover: none) { .btn:hover, .feature:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* correcciones vistas en móvil real */
.links a.btn, .links a.btn:hover { color: #fff; }
/* tamaños de emoji por contexto (grandes y nítidos) */
.links a .emoji { width: 1.9em; height: 1.9em; vertical-align: -0.6em; }
.tag .emoji { width: 1.9em; height: 1.9em; vertical-align: -0.6em; margin: -4px 2px -4px -6px; }
.btn .emoji { width: 1.9em; height: 1.9em; vertical-align: middle; margin: -6px 0; }
.tab .emoji, label .emoji, .lbl .emoji { width: 1.9em; height: 1.9em; vertical-align: -0.65em; }
h3 .emoji { width: 1.85em; height: 1.85em; vertical-align: -0.55em; }
h1 .emoji, h2 .emoji { width: 1.05em; height: 1.05em; vertical-align: -0.18em; }
.rank-u .emoji, .perks .emoji, p .emoji, .cmd .emoji { width: 1.7em; height: 1.7em; }
.guild .tag { margin-top: 4px; }
@media (max-width: 860px) { .links a.btn { min-height: 48px; font-size: 1.05rem; } }
