/* Mudar Letras — the look of awesometoolkit's fancy text generator (light and dark follow the device) */
:root {
  --bg-page: #f8fafb;
  --bg-surface: #ffffff;
  --bg-inset: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #66707f;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-subtle: #eef2ff;
  --accent-text: #4f46e5;
  --ok: #059669;
  --offer-bg: linear-gradient(135deg, #eef2ff, #f5f3ff 50%, #fdf4ff);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05);
  --sheet-shadow: 0 -12px 48px -12px rgba(15, 23, 42, .35);
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --glyphs: "Segoe UI Symbol", "Noto Sans Math", "Cambria Math", "Apple Symbols", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #01030f;
    --bg-surface: #0a0c10;
    --bg-inset: #080b10;
    --text-primary: #f0f6fc;
    --text-secondary: #a8b2bc;
    --text-tertiary: #8b949e;
    --text-muted: #717b8a;
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .16);
    --accent: #6265f0;
    --accent-hover: #818cf8;
    --accent-subtle: rgba(99, 102, 241, .12);
    --accent-text: #a5b4fc;
    --ok: #34d399;
    --offer-bg: linear-gradient(135deg, rgba(30, 27, 75, .55), rgba(46, 16, 101, .45) 50%, rgba(74, 4, 78, .4));
    --shadow: none;
    --sheet-shadow: 0 -12px 48px -12px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg-page); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg-page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text-primary); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: Georgia, serif; font-style: italic; font-weight: 700; background: linear-gradient(135deg, #6366f1, #ec4899); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.nav a:hover { background: var(--bg-inset); color: var(--text-primary); text-decoration: none; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text-secondary); }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
}

/* Hero */
.hero { border-bottom: 1px solid var(--border); padding: 22px 0 20px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent-text); background: var(--accent-subtle); padding: 3px 11px; border-radius: 999px; margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.hero h1 .gradient { background: linear-gradient(135deg, #6366f1, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0; max-width: 720px; font-size: clamp(15px, 2vw, 17px); color: var(--text-secondary); }

/* Tool */
.tool { padding-top: 20px; padding-bottom: 8px; }
.panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.text-panel .head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.text-panel .title { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.text-panel .count { font-size: 12.5px; color: var(--text-muted); }
.text-panel .clear { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.text-panel .clear:hover { color: var(--text-primary); background: var(--bg-inset); }
.text-panel textarea { display: block; width: 100%; min-height: 104px; resize: vertical; border: 0; outline: 0; background: transparent; padding: 14px 16px; font: inherit; font-size: 18px; color: var(--text-primary); }
.text-panel textarea::placeholder { color: var(--text-muted); }
.text-panel .foot { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.text-panel .foot .over { color: #dc2626; font-weight: 600; }
.text-panel .foot a { font-weight: 600; }

.filters { margin-top: 12px; padding: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filters .label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0 6px 0 4px; }
.chip { border: 0; background: none; padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.chip:hover { background: var(--bg-inset); color: var(--text-primary); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; }
.filters .sep { flex-basis: 100%; height: 0; }
.ghost { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.ghost:hover { background: var(--bg-inset); color: var(--text-primary); }

.results-meta { margin: 14px 2px 10px; font-size: 13px; color: var(--text-muted); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .results { grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; } }
.card { position: relative; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px 14px; cursor: pointer; transition: border-color .15s, background .15s; box-shadow: var(--shadow); }
.card:hover { border-color: var(--accent); }
.card .row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.card .name { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.card .copy { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 3px 6px; border-radius: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.card:hover .copy { color: var(--accent-text); }
.card .value { display: block; font-family: var(--glyphs), var(--font); font-size: 19px; line-height: 1.4; color: var(--text-primary); white-space: pre-wrap; overflow-wrap: anywhere; }
.card.copied { border-color: var(--ok); }
.card.copied .copy { color: var(--ok); font-weight: 600; }
.hidden-note { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.hidden-note button { border: 0; background: none; padding: 0; color: var(--accent-text); font-weight: 600; cursor: pointer; }

/* Content */
.content { max-width: 780px; margin: 0 auto; padding: 40px 16px 8px; }
.content h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.25; letter-spacing: -.015em; margin: 36px 0 12px; }
.content h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.content p, .content li { color: var(--text-secondary); font-size: 16px; }
.content ul, .content ol { padding-left: 22px; }
.content strong { color: var(--text-primary); }
.steps { display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-subtle); color: var(--accent-text); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.steps h3 { margin: 0 0 4px; font-size: 15.5px; color: var(--text-primary); }
.steps p { margin: 0; font-size: 14.5px; }
.cta-card { background: var(--offer-bg); border: 1px solid var(--border); border-radius: 18px; padding: 22px; margin: 32px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cta-card .cta-text { flex: 1; min-width: 230px; }
.cta-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--text-primary); }
.cta-card p { margin: 0; font-size: 15px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff !important; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 14.5px; }
.cta-btn:hover { background: var(--accent-hover); text-decoration: none; }

.faq { max-width: 780px; margin: 0 auto; padding: 8px 16px 24px; }
.faq h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 32px 0 14px; }
.faq details { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--text-muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--text-secondary); }

.related { max-width: 1080px; margin: 0 auto; padding: 8px 16px 48px; }
.related h2 { font-size: 1.3rem; margin: 24px 0 14px; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-grid a { padding: 8px 14px; border-radius: 999px; background: var(--bg-surface); border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.pill-grid a:hover { border-color: var(--accent); color: var(--accent-text); text-decoration: none; }

/* Footer (always dark) */
footer { background: #0b0d14; color: #a8b2bc; padding: 40px 0 0; }
footer .container { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { footer .container { grid-template-columns: 1fr; } }
footer .brand { color: #fff; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 6px 0; }
footer a { color: #a8b2bc; font-size: 14px; }
footer a:hover { color: #fff; }
footer p { font-size: 14px; }
.footer-bottom { text-align: center; padding: 18px 16px; margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #717b8a; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--text-primary); color: var(--bg-surface); padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: transform .25s, opacity .25s; z-index: 50; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* After-copy sheet (the fancy text generator's) */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88dvh; overflow-y: auto; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 24px 24px 0 0; padding: 8px 16px 16px; box-shadow: var(--sheet-shadow); transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.1); }
.sheet.show { transform: translateY(0); }
@media (min-width: 640px) { .sheet { left: auto; right: 24px; bottom: 24px; width: 580px; border-radius: 24px; padding: 20px; } }
.sheet .grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 0 auto 8px; }
@media (min-width: 640px) { .sheet .grip { display: none; } }
.sheet .x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: none; border-radius: 10px; color: var(--text-muted); cursor: pointer; font-size: 16px; }
.sheet .x:hover { color: var(--text-primary); }
.sheet .ok { margin: 0; padding-right: 40px; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.sheet .title { margin: 4px 0 0; padding-right: 40px; font-size: 17px; font-weight: 700; line-height: 1.25; }
.sheet .offer { margin-top: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--border); background: var(--offer-bg); }
@media (min-width: 640px) { .sheet .offer { padding: 16px; } }
.sheet .offer-h { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; }
.sheet .offer-d { margin: 2px 0 0; font-size: 12.5px; color: var(--text-tertiary); }
.avatars { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; row-gap: 12px; }
@media (min-width: 640px) { .avatars { grid-template-columns: repeat(6, 1fr); row-gap: 0; } }
.avatar { position: relative; display: block; border-radius: 50%; transition: transform .15s; animation: pop .35s both; }
.avatar:hover { transform: scale(1.05); }
.avatar:active { transform: scale(.95); }
.avatar canvas { display: block; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 8px 18px -6px rgba(0, 0, 0, .45); }
@media (prefers-color-scheme: dark) { .avatar canvas { box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 8px 18px -6px rgba(0, 0, 0, .6); } }
.avatar:hover canvas { box-shadow: 0 0 0 3px var(--accent), 0 8px 18px -6px rgba(0, 0, 0, .45); }
.avatar .pen { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg-surface); }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.sheet .more { margin-top: 12px; display: flex; justify-content: flex-end; }
.sheet .more a { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.sheet .bottom { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet .free { font-size: 11.5px; color: var(--text-muted); }
.sheet .keep { border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--accent-text); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px; }
.ico { width: 1em; height: 1em; flex-shrink: 0; }

/* Views: "Estilos" / "Crear mi nick" (the fancy text generator's big cards) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.view-card { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--border); background: var(--bg-surface); cursor: pointer; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.view-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.view-card[aria-selected="true"] { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent-text); }
.view-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-inset); color: var(--text-tertiary); }
.view-ico .ico { width: 15px; height: 15px; }
.view-card[aria-selected="true"] .view-ico { background: var(--accent); color: #fff; }
.view-badge { position: absolute; top: -9px; right: 10px; background: #fbbf24; color: #0f172a; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
@media (max-width: 480px) { .view-card { font-size: 13.5px; padding: 9px 8px; } .view-ico { width: 24px; height: 24px; } }

/* "Crear mi nick" */
.panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.panel-head .title, .nick-field .label, .nick-group .label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.panel-head .title { margin-right: auto; }
.nick-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px; margin-bottom: 14px; }
.nick-group { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nick-group .label { margin: 0 6px 0 4px; }
.select { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 14px; max-width: 220px; }
.nick-random { margin-left: auto; }
.nick-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 1000px) { .nick-grid { grid-template-columns: minmax(0, 1fr) 320px; } .nick-side { position: sticky; top: 76px; } }
.nick-main, .nick-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.nick-fields { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.nick-field { display: block; }
.nick-field .label { display: block; margin-bottom: 6px; }
.nick-sides { display: grid; gap: 12px; }
@media (min-width: 640px) { .nick-sides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 16px; }
.field:focus, .select:focus { outline: 0; border-color: var(--accent); }
.field-wrap { position: relative; display: block; }
.field-wrap .field { padding-right: 36px; }
.field-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; }
.field-x:hover { color: var(--text-primary); }
.nick-out { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; }
@media (min-width: 640px) { .nick-out { flex-direction: row; align-items: center; } }
.nick-value { flex: 1; min-width: 0; font-family: var(--glyphs), var(--font); font-size: 24px; line-height: 1.35; color: var(--text-primary); overflow-wrap: anywhere; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary.done { background: #059669; }
.nick-hint { margin: 0; padding: 0 16px 12px; font-size: 11.5px; color: var(--text-muted); }
.nick-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--accent-text); }
.nick-link:hover { background: var(--bg-inset); text-decoration: none; }
.nick-link:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.nick-link-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-subtle); flex-shrink: 0; }
.nick-link-text { flex: 1; min-width: 0; }
.nick-link-text b { display: block; font-size: 14px; color: var(--text-primary); }
.nick-link-text small { display: block; font-size: 12px; color: var(--text-tertiary); }
.sides { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); }
.mini { border: 0; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; background: var(--bg-inset); color: var(--text-tertiary); cursor: pointer; flex-shrink: 0; }
.mini[aria-pressed="true"] { background: var(--accent); color: #fff; }
.cats { display: flex; gap: 4px; padding: 12px 12px 0; overflow-x: auto; scrollbar-width: none; }
.cat { flex-shrink: 0; border: 0; background: none; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--text-tertiary); cursor: pointer; }
.cat:hover { background: var(--bg-inset); }
.cat[aria-pressed="true"] { background: var(--accent-subtle); color: var(--accent-text); }
.symbols { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.sym { min-width: 42px; height: 42px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font-size: 18px; cursor: pointer; }
.sym.wide { min-width: 58px; padding: 0 10px; }
.sym:hover { border-color: var(--accent); background: var(--accent-subtle); }
.fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; }
@media (min-width: 640px) { .fonts { grid-template-columns: repeat(3, 1fr); } }
.font-pick { height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-secondary); font-family: var(--glyphs), var(--font); font-size: 16px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.font-pick:hover { border-color: var(--accent); }
.font-pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-subtle); color: var(--text-primary); }
.surfaces { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.surfaces .mini { background: none; }
.surfaces .mini[aria-pressed="true"] { background: var(--accent); }
.preview-wrap { padding: 16px; }
.preview-wrap .note { margin: 8px 0 0; font-size: 11px; color: var(--text-muted); }
.invisible { padding: 16px; }
.inv-title { margin: 0; font-size: 14px; font-weight: 700; }
.inv-desc { margin: 4px 0 12px; font-size: 13px; color: var(--text-tertiary); }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--text-secondary); font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-ghost:hover { border-color: var(--accent); }

/* The preview's generic screens (their own colours whatever the theme) */
.preview-box { border-radius: 14px; }
.preview-box .bar { display: block; height: 8px; border-radius: 99px; background: #e5e5e5; }
.preview-box .bar.dark { background: #262626; }
.pv-text { margin: 0; font-family: var(--glyphs), var(--font); overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.35; }
.pv-profile { background: #fff; color: #171717; padding: 16px; border: 1px solid #e5e5e5; }
.pv-top { display: flex; align-items: center; gap: 16px; }
.pv-ring { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #fbbf24, #ec4899, #7c3aed); }
.pv-ring span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #e5e5e5; border: 2px solid #fff; }
.pv-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-stats > span { display: grid; gap: 4px; justify-items: center; }
.pv-profile .pv-text { margin-top: 12px; font-size: 14px; font-weight: 600; }
.pv-lines { margin-top: 8px; display: grid; gap: 6px; }
.pv-video { background: #0a0a0a; color: #fff; padding: 20px; text-align: center; }
.pv-avatar { display: block; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #404040; }
.pv-video .pv-text { margin-top: 12px; font-size: 16px; font-weight: 700; }
.pv-handle { margin: 4px 0 0; font-size: 11px; color: #a3a3a3; }
.pv-btns { margin-top: 12px; display: flex; justify-content: center; gap: 8px; }
.pv-btns span { width: 40px; height: 28px; border-radius: 6px; background: #262626; }
.pv-btns .red { width: 96px; background: #f43f5e; }
.pv-chat { background: #e9dfd4; padding: 16px; display: grid; gap: 8px; }
.pv-in { max-width: 80%; background: #fff; border-radius: 0 8px 8px 8px; padding: 8px 12px; }
.pv-out { margin-left: auto; max-width: 85%; width: fit-content; background: #d9fdd3; color: #171717; border-radius: 8px 0 8px 8px; padding: 8px 12px; }
@media (prefers-color-scheme: dark) { .pv-chat { background: #0b141a; } .pv-in { background: #202c33; } .pv-in .bar { background: #525252; } .pv-out { background: #005c4b; color: #fff; } }
.pv-out .pv-text { font-size: 14px; }
.pv-time { margin: 2px 0 0; display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 10px; color: #737373; }
.pv-game { background: linear-gradient(135deg, #0f172a, #1e1b4b, #0f172a); }
.pv-game .pv-game { background: none; color: #fff; padding: 16px 16px 12px; display: flex; align-items: center; gap: 12px; }
.pv-badge { width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, #fbbf24, #ea580c); border: 2px solid rgba(253, 230, 138, .6); }
.pv-game .pv-text { font-size: 16px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pv-level { display: inline-block; margin-top: 4px; padding: 0 6px; border-radius: 4px; background: rgba(251, 191, 36, .9); color: #0f172a; font-size: 10px; font-weight: 800; }
.pv-xp { margin: 0 16px; padding-bottom: 16px; }
.pv-xp span { display: block; height: 6px; width: 66%; border-radius: 99px; background: linear-gradient(90deg, #34d399, #bef264); }
/* A phone: the name card first, on the first screen (as on awesometoolkit) */
@media (max-width: 999px) { #panel-nick { display: flex; flex-direction: column; gap: 14px; } #panel-nick .nick-grid, #panel-nick .nick-main { display: contents; } #panel-nick .nick-bar { margin-bottom: 0; } #panel-nick .nick-fields { order: -1; } }

/* Ready-made examples in the page's text */
.examples { list-style: none; padding: 0; margin: 14px 0 8px; display: grid; gap: 8px; }
@media (min-width: 640px) { .examples { grid-template-columns: 1fr 1fr; } }
.example { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); cursor: pointer; text-align: left; }
.example:hover { border-color: var(--accent); }
.ex-value { flex: 1; min-width: 0; font-family: var(--glyphs), var(--font); font-size: 18px; overflow-wrap: anywhere; }
.ex-copy { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.example:hover .ex-copy { color: var(--accent-text); }
.example.copied { border-color: var(--ok); }
.example.copied .ex-copy { color: var(--ok); }

/* The page's own after-copy offer (nick pages: avatar; Instagram pages: link in bio) and the inline
   "Para tu bio" card of the Instagram pages — build.js PAGE_OFFERS, assets/app.js */
:root { --next-border: #c7d2fe; --next-kicker: #4338ca; --next-shadow: 0 8px 24px rgba(79, 70, 229, .12); --bio-border: #fbcfe8; --bio-bg: linear-gradient(180deg, #ffffff, #fdf2f8); --bio-kicker: #be185d; }
@media (prefers-color-scheme: dark) {
  :root { --next-border: rgba(129, 140, 248, .35); --next-kicker: #a5b4fc; --next-shadow: none; --bio-border: rgba(244, 114, 182, .3); --bio-bg: linear-gradient(180deg, #0a0c10, rgba(131, 24, 67, .28)); --bio-kicker: #f9a8d4; }
}
.sheet .next { margin-top: 10px; border: 1px solid var(--next-border); border-radius: 16px; background: var(--bg-surface); box-shadow: var(--next-shadow); overflow: hidden; }
.sheet .next.is-bio { border-color: var(--bio-border); background: var(--bio-bg); }
.next-k, .bi-k { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--next-kicker); }
.next-k { padding: 12px 14px 0; }
.is-bio .next-k, .bi-k { color: var(--bio-kicker); }
.next-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.next-txt { min-width: 0; }
.next-t, .bi-t { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--text-primary); }
.next-d { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text-secondary); }
.next-cta { display: flex; align-items: center; justify-content: center; margin: 0 14px 12px; min-height: 48px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 800; }
.next-cta:hover, .bi-cta:hover { background: var(--accent-hover); color: #fff; }
.next-cta:focus-visible, .bi-cta:focus-visible, .next-alt a:focus-visible { outline: 3px solid var(--next-border); outline-offset: 2px; }
.next-alt { margin: 0; border-top: 1px solid var(--border); padding: 8px 14px; font-size: 13.5px; line-height: 1.4; color: var(--text-secondary); }
.next-alt a { display: inline-block; padding: 4px 0; font-weight: 700; color: var(--next-kicker); }
.is-bio .next-alt a { color: var(--bio-kicker); }
.lp-nick, .lp-game, .lp-logo { flex: none; width: 86px; height: 86px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #7f1d1d, #f97316); color: #fff; font-family: "Bungee", var(--font); text-align: center; }
.lp-game { background: linear-gradient(135deg, #312e81, #db2777); }
.lp-nick span, .lp-game span, .lp-logo span { display: block; max-width: 100%; padding: 0 6px; line-height: 1.1; overflow-wrap: normal; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
/* Mini link-in-bio page: picture, the name in a script font, three buttons */
.lp-bio { flex: none; width: 96px; height: 140px; border-radius: 16px; background: linear-gradient(180deg, #f9a8d4, #c084fc); padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bm-av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.bm-name { flex: none; max-width: 100%; height: 22px; font-family: "Pacifico", var(--glyphs), cursive; font-size: 14px; line-height: 22px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(131, 24, 67, .35); }
.bm-btn { flex: none; width: 100%; height: 16px; border-radius: 7px; background: #fff; }
.bm-btn + .bm-btn { opacity: .8; }
.bm-btn + .bm-btn + .bm-btn { opacity: .6; }
.inline-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--next-border); background: var(--bg-surface); box-shadow: var(--shadow); }
.inline-card[hidden] { display: none; }
.inline-card.is-bio { border-color: var(--bio-border); background: var(--bio-bg); }
.inline-card:not(.is-bio) .bi-k { color: var(--next-kicker); }
.bi-text { min-width: 0; }
.bi-t { margin-top: 4px; }
.bi-cta { display: inline-flex; align-items: center; margin-top: 10px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 800; }

/* The name as a logo (default pages): a display font on a rounded gradient tile */
.lp-logo { border-radius: 22px; background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #db2777); font-family: "Righteous", var(--font); }
.lp-logo span { text-shadow: 0 2px 6px rgba(30, 27, 75, .35); }
/* Second inline card: a pictogram of the tool (no preview) */
.pict { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.pict svg { width: 28px; height: 28px; }
.tint-indigo { background: #eef2ff; color: #4f46e5; }
.tint-pink { background: #fdf2f8; color: #db2777; }
.tint-violet { background: #f5f3ff; color: #7c3aed; }
.tint-sky { background: #f0f9ff; color: #0284c7; }
.tint-green { background: #ecfdf5; color: #059669; }
.tint-orange { background: #fff7ed; color: #ea580c; }
@media (prefers-color-scheme: dark) {
  .tint-indigo { background: rgba(99, 102, 241, .16); color: #a5b4fc; }
  .tint-pink { background: rgba(236, 72, 153, .16); color: #f9a8d4; }
  .tint-violet { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
  .tint-sky { background: rgba(14, 165, 233, .16); color: #7dd3fc; }
  .tint-green { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
  .tint-orange { background: rgba(249, 115, 22, .16); color: #fdba74; }
}
/* End-of-article card: the preview beside the words */
.cta-card .lp { align-self: center; }
.cta-card .cta-text { flex: 1 1 160px; min-width: 0; }
@media (max-width: 480px) { .cta-card .cta-btn { width: 100%; justify-content: center; } }
/* "Más herramientas gratis" above the footer */
.more-tools { max-width: 1080px; margin: 0 auto; padding: 0 16px 48px; }
.more-tools h2 { font-size: 1.3rem; margin: 8px 0 14px; }
.mt-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .mt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mt-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mt-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-surface); box-shadow: var(--shadow); color: var(--text-primary); font-size: 14px; font-weight: 700; line-height: 1.3; }
.mt-tile:hover { border-color: var(--accent); text-decoration: none; }
.mt-tile .pict { width: 44px; height: 44px; border-radius: 12px; }
.mt-tile .pict svg { width: 24px; height: 24px; }
/* Header link to the logo maker, footer line about Awesome Toolkit */
.nav a.nav-logo { color: var(--accent-text); font-weight: 700; }
footer .family { margin: 12px 0 0; }
footer .family a { color: #c7d2fe; }
footer .family a:hover { color: #fff; }
footer .family strong { color: #fff; }
