/* 6LNOAH — personaliza los colores en CONFIGURACIÓN dentro de script.js */
:root {
  color-scheme: dark;
  --bg: #090812;
  --bg-soft: #100d1c;
  --surface: rgba(22, 18, 37, .78);
  --surface-hover: rgba(36, 27, 57, .92);
  --text: #f7f4ff;
  --muted: #a8a2bc;
  --subtle: #77718e;
  --border: rgba(203, 186, 255, .13);
  --accent: #a855f7;
  --accent-2: #6d5dfc;
  --accent-rgb: 168, 85, 247;
  --shadow: 0 20px 60px rgba(0, 0, 0, .22);
  --radius: 20px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f2fb;
  --bg-soft: #ece6f8;
  --surface: rgba(255, 255, 255, .78);
  --surface-hover: rgba(255, 255, 255, .98);
  --text: #211832;
  --muted: #625b75;
  --subtle: #817993;
  --border: rgba(67, 43, 103, .13);
  --shadow: 0 20px 60px rgba(50, 28, 82, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), .11), transparent 43%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text); font-family: "DM Sans", sans-serif; transition: background .3s, color .3s;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.ambient { position: fixed; z-index: -1; pointer-events: none; filter: blur(80px); opacity: .19; border-radius: 50%; }
.ambient-one { width: 300px; height: 300px; background: var(--accent); top: 170px; left: -220px; }
.ambient-two { width: 340px; height: 340px; background: var(--accent-2); right: -250px; top: 540px; }
.page-shell { width: min(100% - 40px, 700px); margin: 0 auto; padding: 25px 0 28px; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
.brand-mark { display: inline-flex; gap: 9px; align-items: center; font: 700 14px "Space Grotesk", sans-serif; letter-spacing: .12em; }
.brand-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 5px 20px rgba(var(--accent-rgb), .3); font-size: 16px; letter-spacing: 0; }
.top-actions { display: flex; gap: 9px; }
.icon-button { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--border); border-radius: 13px; color: var(--muted); background: var(--surface); cursor: pointer; transition: transform .2s, color .2s, border-color .2s, background .2s; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover { transform: translateY(-2px); color: var(--text); border-color: rgba(var(--accent-rgb), .55); }
.profile { text-align: center; padding: 51px 0 37px; }
.avatar-wrap { position: relative; width: 112px; height: 112px; margin: 0 auto 20px; }
.avatar-halo { position: absolute; inset: -5px; border-radius: 34px; background: linear-gradient(140deg, var(--accent), transparent 56%, var(--accent-2)); opacity: .85; filter: blur(1px); }
.avatar { position: relative; display: block; width: 100%; height: 100%; border: 3px solid var(--bg); border-radius: 30px; object-fit: cover; background: linear-gradient(135deg, #302044, #17152a); }
.avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; font: 700 33px "Space Grotesk", sans-serif; color: white; border: 3px solid var(--bg); border-radius: 30px; background: linear-gradient(135deg, #302044, #17152a); }
.avatar.has-image + .avatar-fallback { display: none; }
.online-dot { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border: 4px solid var(--bg); border-radius: 50%; background: #67e8a5; }
.handle { display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.verified { display: inline-flex; width: 17px; height: 17px; }
.verified svg { width: 100%; fill: #8b5cf6; }
.verified .check { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1 { margin: 8px 0 8px; font: 700 clamp(36px, 8vw, 48px)/1.08 "Space Grotesk", sans-serif; letter-spacing: -.055em; }
.profile-tagline { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .19em; }
.profile-tagline span { color: var(--accent); padding: 0 4px; }
.bio { max-width: 420px; margin: 14px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.all-links-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 21px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 600; }
.pill-spark { color: #d5b5ff; }
.links-section, .quick-section { margin-top: 10px; }
.section-heading { display: flex; align-items: center; gap: 14px; margin: 0 2px 15px; color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.heading-line { height: 1px; flex: 1; background: var(--border); }
.link-list { display: grid; gap: 10px; }
.link-card { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 82px; padding: 15px 17px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 22px rgba(0,0,0,.035); backdrop-filter: blur(14px); transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease; animation: rise-in .45s both; }
.link-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); opacity: 0; transition: opacity .2s; }
.link-card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .4); background: var(--surface-hover); box-shadow: var(--shadow); }
.link-card:hover::before { opacity: 1; }
.link-card:active { transform: translateY(-1px) scale(.995); }
.platform-icon { flex: 0 0 45px; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 15px; background: rgba(var(--accent-rgb), .12); color: var(--text); }
.platform-icon svg { width: 22px; height: 22px; }
.link-copy { flex: 1; min-width: 0; }
.link-title { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.link-description { display: block; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.5; text-overflow: ellipsis; }
.arrow-wrap { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 10px; color: var(--subtle); transition: color .2s, transform .2s, border-color .2s; }
.arrow-wrap svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.link-card:hover .arrow-wrap { color: var(--text); border-color: rgba(var(--accent-rgb), .45); transform: translateX(2px); }
.featured-card { display: flex; align-items: center; gap: 15px; padding: 19px; border: 1px solid rgba(var(--accent-rgb), .42); border-radius: 22px; background: linear-gradient(115deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 12px 35px rgba(var(--accent-rgb), .2); transition: transform .22s, box-shadow .22s; }
.featured-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(var(--accent-rgb), .3); }
.featured-card .platform-icon { background: rgba(255,255,255,.16); color: white; }
.featured-card .link-description { color: rgba(255,255,255,.78); }
.featured-card .arrow-wrap { border-color: rgba(255,255,255,.25); color: white; }
.featured-label { display: block; margin-bottom: 5px; color: rgba(255,255,255,.78); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.quick-section { margin-top: 29px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 9px; }
.quick-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 0 13px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700; transition: transform .2s, border-color .2s, color .2s; }
.quick-link svg { width: 16px; height: 16px; }
.quick-link:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .45); color: var(--text); }
.community-note { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 31px; padding: 19px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(110deg, var(--surface), rgba(var(--accent-rgb), .055)); overflow: hidden; }
.note-icon { flex: 0 0 43px; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: rgba(var(--accent-rgb), .13); color: var(--accent); }
.note-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.community-note h2 { margin: 0 0 5px; font: 600 14px "Space Grotesk", sans-serif; }
.community-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.note-spark { margin-left: auto; color: var(--accent); font-size: 19px; opacity: .7; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 25px 2px 0; color: var(--subtle); font-size: 10px; }
.footer-brand { color: var(--muted); font: 700 12px "Space Grotesk", sans-serif; letter-spacing: .1em; }
.footer-brand span { margin-left: 2px; font-size: 8px; vertical-align: top; }
.footer-dot { color: var(--accent); }
.empty-note { color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 5; bottom: 25px; left: 50%; transform: translate(-50%, 12px); padding: 11px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-hover); color: var(--text); font-size: 12px; opacity: 0; pointer-events: none; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 700px) { .page-shell { padding-top: 31px; } .profile { padding-top: 59px; padding-bottom: 43px; } }
@media (max-width: 480px) {
  .page-shell { width: min(100% - 28px, 700px); padding-top: 18px; }
  .profile { padding-top: 42px; padding-bottom: 31px; }
  .avatar-wrap { width: 100px; height: 100px; }
  .link-card { gap: 11px; min-height: 77px; padding: 13px; border-radius: 17px; }
  .platform-icon { flex-basis: 41px; width: 41px; height: 41px; border-radius: 13px; }
  .link-title { font-size: 13px; }
  .link-description { font-size: 11px; }
  .featured-card { padding: 16px 13px; gap: 11px; }
  .community-note { padding: 15px; gap: 11px; }
  .footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
