/* Letras Diferentes — shared design. System fonts only: zero external requests. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f2ede4;
  --ink: #1d1a16;
  --ink-soft: #5c554b;
  --line: #e4ddd1;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fde7d9;
  --accent-strong: #9a3412; /* accent text on --accent-soft: passes 4.5:1 */
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 26, 22, .06), 0 4px 16px rgba(29, 26, 22, .05);
  --max: 980px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --surface: #1f1c19;
    --surface-2: #2a2622;
    --ink: #f3eee6;
    --ink-soft: #b5ac9f;
    --line: #3a352f;
    --accent: #fb923c;
    --accent-ink: #1d1a16;
    --accent-soft: #3b2415;
    --accent-strong: #fdba74;
    --ok: #4ade80;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }

/* Header / nav */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 6px 12px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }

/* Hero + tool */
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.02em; }
.hero .lead { margin: 0 0 16px; color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }

.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.tool label { display: block; font-weight: 700; margin-bottom: 6px; }
.input-row { position: relative; }
.tool textarea {
  width: 100%; min-height: 64px; resize: vertical; padding: 12px 14px; font: inherit; font-size: 1.1rem;
  color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 10px;
}
.tool textarea:focus { border-color: var(--accent); outline: none; }
.tool-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }
.counter.near { color: var(--accent); font-weight: 700; }
.btn-clear { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 8px; padding: 4px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips span { font-size: .9rem; color: var(--ink-soft); align-self: center; margin-right: 2px; }
.chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.chip:hover { border-color: var(--accent); }

.filters { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: thin; }
/* Tablets and up: wrap instead of hiding the last filters (Favoritos) past the edge. Phones keep the swipe row. */
@media (min-width: 768px) { .filters { flex-wrap: wrap; overflow-x: visible; } }
.filter { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter .n { opacity: .7; font-weight: 500; margin-left: 4px; }

.results { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.card { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card-copy { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 10px 14px; cursor: pointer; }
.card-copy:hover { background: var(--surface-2); }
.card-name { display: flex; gap: 8px; font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.card-name .len { font-weight: 400; }
.card-out { display: block; font-size: 1.25rem; line-height: 1.5; overflow-wrap: anywhere; }
.card-fav { flex: 0 0 48px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-soft); font-size: 1.3rem; cursor: pointer; }
.card-fav[aria-pressed="true"] { color: var(--accent); }
.card-fav:hover { background: var(--surface-2); }
.card-png { flex: 0 0 44px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-soft); font-family: inherit; font-weight: 700; font-size: .7rem; line-height: 1; letter-spacing: .04em; cursor: pointer; }
.card-png:hover { background: var(--surface-2); color: var(--ink); }
.card.is-random { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
/* REDO-9: each card's own Decorar / Estilo al azar row, under the copy row */
.card { flex-wrap: wrap; }
.card-tools { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px 8px; border-top: 1px solid var(--line); }
.card-tools button { min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-soft); font: inherit; font-size: .8rem; line-height: 1.2; cursor: pointer; }
.card-tools button:hover { color: var(--ink); background: var(--surface-2); }
.card-tools button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.card.is-mix .card-name { color: var(--brand); }
.conv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.conv-tools .conv-say { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--ink-soft); min-height: 1.2em; }
.empty { padding: 18px; text-align: center; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }

.note { margin: 12px 0 0; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; font-size: .92rem; color: var(--ink-soft); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; transition: opacity .15s, transform .15s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Content */
main section { padding: 28px 0 4px; }
main h2 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.01em; }
main h3 { font-size: 1.08rem; margin: 18px 0 6px; }
main p, main li { max-width: 70ch; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: 10px; overflow: hidden; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; }
.ideas { list-style: none; padding: 0; display: grid; gap: 8px; }
.idea { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.idea button { margin-top: 6px; }

/* Symbols */
.sym-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.sym { width: 100%; aspect-ratio: 1; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; font-size: 1.5rem; cursor: pointer; }
.sym:hover { border-color: var(--accent); background: var(--surface-2); }

.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--ink-soft); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer a { color: var(--ink-soft); display: inline-block; padding: 6px 4px; margin: -6px -4px; }

@media (min-width: 720px) {
  .results { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

/* Nick lists, alphabet table, blog (added 2026-11-18) */
.nick-grid { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.nick { width: 100%; min-height: 56px; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
.nick:hover { border-color: var(--accent); background: var(--surface-2); }
.nick-out { display: block; font-size: 1.1rem; overflow-wrap: anywhere; }
.nick-len { display: block; font-size: .78rem; color: var(--ink-soft); }
a.chip { text-decoration: none; display: inline-block; }
.abc td, .abc th { text-align: center; font-size: 1.15rem; white-space: nowrap; }
.abc thead th { font-size: .9rem; white-space: normal; }
.post { max-width: 720px; }
.post h1 { font-size: clamp(1.6rem, 4.2vw, 2.2rem); line-height: 1.2; margin: 8px 0; letter-spacing: -.02em; }
.post h2 { margin-top: 28px; }
.post .lead { font-size: 1.08rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; }
.post-meta, .crumbs { color: var(--ink-soft); font-size: .9rem; margin: 16px 0 0; }
.post-list h2 { font-size: 1.15rem; margin: 0 0 4px; }
.post-list p { margin: 0; color: var(--ink-soft); }

/* ===== Modern UI layer (2026-11-18): SVG logo, 3D hero, motion. CSS + inline SVG only. ===== */
:root { --accent-2: #0f766e; --tile-ink: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --accent-2: #2dd4bf; --tile-ink: #161412; } }

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand svg { width: 28px; height: 28px; flex: 0 0 auto; }

/* Hero layout with 3D stage */
.hero { position: relative; display: flex; flex-direction: column; }
.hero > h1, .hero > .lead { position: relative; z-index: 1; }
.hero-blob { position: absolute; z-index: 0; top: -30px; right: -40px; width: 340px; height: 300px; color: var(--accent-soft); opacity: .9; pointer-events: none; }
.stage { order: -1; display: flex; gap: 10px; align-items: center; margin: 0 0 12px; perspective: 700px; position: relative; z-index: 1; }
.tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.45rem; line-height: 1; color: var(--tile-ink);
  background: var(--accent); box-shadow: 0 8px 18px rgba(29, 26, 22, .18), inset 0 -4px 0 rgba(0, 0, 0, .16);
  transform: rotateX(8deg) rotateY(-14deg); } /* a fixed tilt: the tiles no longer swing (owner saw the page "moving") */
.tile:nth-child(2) { background: var(--ink); color: var(--bg); transform: rotateX(6deg) rotateY(12deg); }
.tile:nth-child(3) { background: var(--accent-2); }
.tile:nth-child(4) { background: var(--surface); color: var(--accent); border: 1px solid var(--line); transform: rotateX(-6deg) rotateY(14deg); }
.tile:nth-child(5) { background: var(--accent-strong); }
/* Task 12: the tiles are links to their style pages, and they float gently. The float uses the separate "translate"
   property, so each tile keeps its own 3D tilt; only the tiles move, never the words. Off with reduced motion. */
.tile { text-decoration: none; animation: tile-float 4.5s ease-in-out 3; }   /* 3 gentle floats, then still: nothing loops (owner rule 2026-11-19) */
.tile:nth-child(2) { animation-delay: -1.1s; } .tile:nth-child(3) { animation-delay: -2.2s; }
.tile:nth-child(4) { animation-delay: -3.3s; } .tile:nth-child(5) { animation-delay: -.6s; }
a.tile:hover { filter: brightness(1.08); }
a.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@keyframes tile-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }
.phone { display: none; }

@media (min-width: 880px) {
  .hero.has-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 32px; align-items: center; padding-bottom: 20px; }
  .hero.has-stage > h1, .hero.has-stage > .lead { grid-column: 1; }
  .hero.has-stage > h1 { align-self: end; }
  .hero.has-stage > .lead { align-self: start; }
  .hero.has-stage .stage { order: 0; grid-column: 2; grid-row: 1 / span 2; height: 300px; margin: 0; display: block; perspective: 900px; }
  .hero.has-stage .tile { position: absolute; width: 58px; height: 58px; font-size: 1.8rem; border-radius: 16px; }
  .hero.has-stage .tile:nth-child(1) { left: 0; top: 26px; }
  .hero.has-stage .tile:nth-child(2) { right: 4px; top: 0; }
  .hero.has-stage .tile:nth-child(3) { left: 14px; bottom: 18px; }
  .hero.has-stage .tile:nth-child(4) { right: 0; bottom: 60px; }
  .hero.has-stage .tile:nth-child(5) { display: none; }
  .phone { display: block; position: absolute; left: 50%; top: 50%; width: 176px; height: 280px; margin: -140px 0 0 -88px; padding: 14px 12px;
    background: var(--surface); border: 7px solid var(--ink); border-radius: 30px; transform-style: preserve-3d;
    box-shadow: 22px 26px 40px rgba(29, 26, 22, .22); transform: rotateY(-16deg) rotateX(7deg); overflow: hidden; }
  .phone::before { content: ""; display: block; width: 46px; height: 6px; border-radius: 6px; background: var(--line); margin: 0 auto 14px; }
  .phone-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .phone-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: 0 0 auto; }
  .phone-name { font-weight: 700; font-size: .82rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .phone-line { font-size: .92rem; line-height: 1.35; margin: 0 0 9px; padding: 7px 9px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
  /* One line per sample with an ellipsis: two wrapped lines were cut in half by the phone's fixed height */
  .phone-line span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .phone-line small { display: block; font-size: .62rem; color: var(--ink-soft); letter-spacing: .02em; }
}

/* Post header strip */
.post .stage { margin-top: 18px; }

/* Feature strip with SVG icons */
.features { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.features li { display: flex; gap: 12px; align-items: center; max-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.features svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--accent); }
.features strong { display: block; }
.features span { color: var(--ink-soft); font-size: .9rem; }

/* Category showcase (3D tilt cards) */
.showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; perspective: 900px; }
.show { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; transform-style: preserve-3d; }
.show:hover, .show:focus-visible { transform: rotateX(7deg) rotateY(-7deg) translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 30px rgba(29, 26, 22, .16); }
.show-ex { display: block; font-size: 1.5rem; line-height: 1.3; min-height: 2.6rem; overflow-wrap: anywhere; color: var(--accent-strong); }
.show h3 { margin: 6px 0 2px; font-size: 1rem; }
.show p { margin: 0; font-size: .85rem; color: var(--ink-soft); }

/* Cards: lift on hover, press on tap, flash on copy */
.card, .nick, .sym, .chip, .filter { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(29, 26, 22, .10); border-color: var(--accent); }
.card-copy:active, .nick:active, .sym:active, .chip:active { transform: scale(.97); }
.card.copied, .nick.copied, .sym.copied { animation: copied-flash .6s ease; }
@keyframes copied-flash { 0% { box-shadow: 0 0 0 0 var(--accent); } 60% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: none; } }
.toast.show { animation: toast-pop .25s ease; }
@keyframes toast-pop { from { transform: translate(-50%, 14px) scale(.9); } to { transform: translate(-50%, 0) scale(1); } }

/* Scroll reveal (only when JS is on). Tool-page sections only: blog headings always stay visible. */
.js main > section { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js main > section.in { opacity: 1; transform: none; }
#nicks h3[id] { scroll-margin-top: 16px; } /* a chip tapped during the 16px reveal slide must not cut the group heading */
#por-que-veo-cuadritos, #por-que-veo-un-cuadrito { scroll-margin-top: 16px; } /* REDO-20: same for the FAQ questions the earlier «cuadritos» links jump to */

@media (prefers-reduced-motion: reduce) {
  .js main > section, .js .post > h2 { opacity: 1; transform: none; transition: none; }
  .show:hover, .show:focus-visible, .card:hover { transform: none; }
  .card.copied, .nick.copied, .sym.copied, .toast.show { animation: none; }
}
.brand .brand-text { color: var(--ink); }
.brand .brand-text span { color: var(--accent); }
/* Keep the hero shape inside the page (no sideways scroll on phones) */
main { overflow-x: clip; }
.hero-blob { right: 0; }
@media (max-width: 879px) { .hero-blob { width: 240px; height: 212px; top: -10px; } }
.results .more { grid-column: 1 / -1; max-width: none; }  /* main li caps list items at 70ch; the button row spans the grid */
.btn-more { width: 100%; min-height: 48px; border: 2px dashed var(--accent); background: var(--accent-soft); color: var(--accent-strong); border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn-more:hover { background: var(--surface); }
.btn-more:active { transform: scale(.98); }
.zalgo-ctl { margin: 6px 0 2px; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.zalgo-ctl[hidden] { display: none; }
.zalgo-ctl label { margin: 0; font-weight: 600; }
.zalgo-ctl input[type=range] { flex: 1 1 160px; min-height: 28px; accent-color: var(--accent); }
/* Zalgo marks stack above and below the letters: give them room so they do not cover the label */
.card.is-zalgo .card-out { padding: 1.5em 0 1.2em; line-height: 1.2; }
.card.is-zalgo .card-name { position: relative; z-index: 1; background: var(--surface); width: fit-content; padding-right: 6px; border-radius: 4px; }

/* Print: plain page, no decoration, everything visible */
@media print {
  .site-header nav, .stage, .hero-blob, .toast, .filters, .tool-meta, .chips, .card-fav, .card-png, .card-tools, .conv-tools, .btn-more, .features, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .js main > section { opacity: 1 !important; transform: none !important; }
  .card, .idea, .tool, details { box-shadow: none; break-inside: avoid; }
  a { color: #000; }
}
/* Styled-accents switch */
.tool .switch { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 600; cursor: pointer; min-height: 28px; } /* .tool label (display:block) used to win and glue the box to its text */
.switch input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.switch-hint { display: block; color: var(--ink-soft); font-size: .85rem; }

/* Symbol combos: wider tiles for multi-character decorations */
.sym-grid.combos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.sym-grid.combos .sym { aspect-ratio: auto; min-height: 56px; font-size: 1.05rem; padding: 8px 10px; overflow-wrap: anywhere; }

/* Ad slots: fixed size, hold a house banner until AdSense is approved */
.ad-slot { margin: 28px 0; min-height: 100px; display: flex; align-items: stretch; }
.ad-slot .house { flex: 1; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 16px; background: var(--accent-soft); color: var(--ink); text-decoration: none; min-width: 0; }
.ad-slot .house:hover { border-color: var(--accent); border-style: solid; }
.house-ico { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); box-shadow: 0 6px 16px rgba(0,0,0,.08); font-size: 1.6rem; color: var(--accent); }
.house-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.house-text span { color: var(--ink-soft); font-size: .95rem; }
.house-go { flex: 0 0 auto; font-size: 1.3rem; color: var(--accent); }
.post .ad-slot { margin: 24px 0; }
.ad-slot.has-ad .house { display: none; }

/* ===== Theme A · Atardecer líquido (owner choice 2026-11-18) =====
   Warm aurora mesh that drifts slowly behind frosted-glass panels, plus fine grain.
   Only CSS: no extra requests, no inline styles. Motion stops with prefers-reduced-motion. */
:root {
  --bg: #fff4ea;
  --surface: rgba(255, 255, 255, .78);
  --surface-2: rgba(255, 244, 234, .9);
  --line: rgba(150, 80, 40, .16);
  --ink-soft: #54473d;
  --accent-soft: #ffe2cf;
  --accent-2: #db2777;
  --accent-3: #7c3aed;
  --glass-edge: rgba(255, 255, 255, .75);
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -24px rgba(140, 50, 10, .45);
  --mesh-a: #fdba74; --mesh-b: #f9a8d4; --mesh-c: #c4b5fd; --mesh-d: #fde68a;
  --mesh-opacity: .85;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150f17;
    --surface: rgba(38, 28, 40, .78);
    --surface-2: rgba(54, 40, 56, .88);
    --line: rgba(255, 255, 255, .1);
    --ink: #f7efe8;
    --ink-soft: #cdbdb3;
    --accent-soft: rgba(251, 146, 60, .18);
    --accent-2: #f472b6;
    --accent-3: #a78bfa;
    --glass-edge: rgba(255, 255, 255, .1);
    --shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
    --mesh-a: #9a3412; --mesh-b: #831843; --mesh-c: #4c1d95; --mesh-d: #78350f;
    --mesh-opacity: .55;
    --tile-ink: #ffffff;
  }
}

/* Background layers: a still colour mesh with fine grain on top. Both are behind all content.
   The mesh used to drift (translate + rotate, 26 s loop); that was the background "moving left and right". */
body::before, body::after { content: ""; position: fixed; pointer-events: none; z-index: -1; }
body::before {
  inset: 0;
  opacity: var(--mesh-opacity);
  background:
    radial-gradient(32% 30% at 68% 18%, var(--mesh-a), transparent 70%),
    radial-gradient(30% 28% at 18% 48%, var(--mesh-b), transparent 70%),
    radial-gradient(28% 30% at 78% 72%, var(--mesh-c), transparent 70%),
    radial-gradient(24% 22% at 38% 12%, var(--mesh-d), transparent 70%);
}
/* Grain: an SVG noise image (the namespace URL is percent-encoded so the stylesheet holds no outside link). */
body::after {
  inset: 0;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .3 0 0 0 .4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::after { mix-blend-mode: soft-light; opacity: .3; } }

/* Frosted glass on the large panels only (keeps phones fast: no blur on the 73 result cards or 240 nicks) */
.site-header, .tool, .post .lead, .features li, .show, .ad-slot .house, .phone, .table-wrap table {
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.site-header { background: rgba(255, 255, 255, .55); border-bottom-color: var(--glass-edge); }
@media (prefers-color-scheme: dark) { .site-header { background: rgba(21, 15, 23, .6); } }
.tool { border-radius: 22px; box-shadow: var(--shadow); }
.card, .nick, .idea, .sym, details { box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset; }
.card-copy:hover, .nick:hover, .sym:hover { transform: translateY(-2px); }
.card-copy, .nick, .sym { transition: transform .2s ease, background .2s ease, border-color .2s ease; }

/* Hero: the mesh replaces the old blob; the H1 gets a soft sunset gradient (all stops pass 4.5:1 on the light background) */
.hero-blob { display: none; }
.hero h1 {
  background: linear-gradient(100deg, var(--ink) 35%, var(--accent) 72%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .hero h1 { background-image: linear-gradient(100deg, var(--ink) 35%, #fdba74 72%, #f9a8d4); }
}
@media (forced-colors: active) { .hero h1 { background: none; color: CanvasText; } }

/* 3D tiles in sunset colours */
.tile { box-shadow: 0 16px 28px -12px rgba(194, 65, 12, .55), inset 0 -6px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .35); }
.tile:nth-child(1) { background: linear-gradient(145deg, #fb923c, #c2410c); }
.tile:nth-child(2) { background: linear-gradient(145deg, #2a211b, #1d1a16); color: #fff; }
.tile:nth-child(3) { background: linear-gradient(145deg, #f472b6, #db2777); }
.tile:nth-child(4) { background: linear-gradient(145deg, #fff, #ffe9da); color: var(--accent); border-color: var(--glass-edge); }
.tile:nth-child(5) { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
@media (prefers-color-scheme: dark) {
  .tile:nth-child(2) { background: linear-gradient(145deg, #fff, #f3e8ff); color: #1d1a16; }
  .tile:nth-child(4) { background: linear-gradient(145deg, #3b2a3e, #241a28); color: #fdba74; }
}
.phone { background: rgba(255, 255, 255, .7); border-color: rgba(29, 26, 22, .85); box-shadow: 0 40px 60px -30px rgba(140, 50, 10, .55); }
@media (prefers-color-scheme: dark) { .phone { background: rgba(38, 28, 40, .8); border-color: #000; } }
.phone-avatar { background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3)); }

/* Primary buttons and the active filter glow a little */
.filter[aria-pressed="true"] { box-shadow: 0 8px 18px -8px var(--accent); }

@media print { body::before, body::after { display: none; } }
/* Real ads (only after tools/ads.py on): a clear "Publicidad" label above the ad */
.ad-slot.has-ad { flex-direction: column; gap: 6px; }
.ad-label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* Contrast fix (audit H2, 2026-11-19): text links and the hero-title gradient pass WCAG AA even where the
   background mesh is darkest. Light: links #7c2d12 = 5.5:1 worst case; title stops >= 4.3:1 (3:1 needed for large text).
   Dark mode already passed (5.4:1 or better) and keeps its colours. */
:root { --link: #7c2d12; }
@media (prefers-color-scheme: dark) { :root { --link: #fb923c; } }
a { color: var(--link); }
.hero h1 { background-image: linear-gradient(100deg, var(--ink) 35%, #9a3412 72%, #9d174d); }
@media (prefers-color-scheme: dark) { .hero h1 { background-image: linear-gradient(100deg, var(--ink) 35%, #fdba74 72%, #f9a8d4); } }
@media (forced-colors: active) { .hero h1 { background: none; color: CanvasText; } }

/* Accessibility fixes (final corrections step 4, 2026-11-19) */
/* Focus ring: same strong colour as links (light 5.5:1 worst case; dark #fb923c 5.4:1) */
:focus-visible { outline-color: var(--link); }
/* Main text box: keep the coloured border AND show the focus ring for keyboard users */
.tool textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
/* Skip link: when focused it takes its own line above the header instead of covering the logo */
.skip:focus { position: static; display: block; width: fit-content; margin: 8px 16px; left: auto; top: auto; }
/* Reduced motion: copy feedback stays (the toast text), only the flash and pop animations stop */
@media (prefers-reduced-motion: reduce) {
  .card.copied, .nick.copied, .sym.copied, .toast.show { animation: none; }
}

/* ===== Blog design A · Editorial magazine (owner choice 2026-11-19) =====
   Masthead (headline + answer) with an illustration plate beside it, a 700px reading column with numbered
   sections, a quiet contents column on the left. Same tokens as the site (light and dark). Scoped to .post. */
.post { max-width: 1180px; margin: 0 auto; display: block;
  --pa: #c2410c; --pa2: #db2777; --pa-ink: #9a3412; --pa-soft: rgba(194, 65, 12, .1); }
.post--tiktok { --pa: #db2777; --pa2: #7c3aed; --pa-ink: #9d174d; --pa-soft: rgba(219, 39, 119, .1); }
.post--cuadritos { --pa: #ea580c; --pa2: #b91c1c; --pa-ink: #9a3412; --pa-soft: rgba(234, 88, 12, .1); }
.post--whatsapp { --pa: #7c3aed; --pa2: #db2777; --pa-ink: #5b21b6; --pa-soft: rgba(124, 58, 237, .1); }
.post--accesibilidad { --pa: #6d28d9; --pa2: #0f766e; --pa-ink: #5b21b6; --pa-soft: rgba(109, 40, 217, .1); }
.post--felicitaciones { --pa: #be185d; --pa2: #c2410c; --pa-ink: #9d174d; --pa-soft: rgba(190, 24, 93, .1); }
.post--imagen { --pa: #0e7490; --pa2: #1f3fb8; --pa-ink: #155e75; --pa-soft: rgba(14, 116, 144, .1); }
.post--cabeza { --pa: #4338ca; --pa2: #db2777; --pa-ink: #3730a3; --pa-soft: rgba(67, 56, 202, .1); }
.post--adornos { --pa: #b45309; --pa2: #be185d; --pa-ink: #92400e; --pa-soft: rgba(180, 83, 9, .1); }
.post--mini { --pa: #047857; --pa2: #1f3fb8; --pa-ink: #065f46; --pa-soft: rgba(4, 120, 87, .1); }
@media (prefers-color-scheme: dark) {
  .post { --pa-soft: rgba(251, 146, 60, .13); } .post--tiktok { --pa-soft: rgba(244, 114, 182, .13); }
  .post--whatsapp, .post--accesibilidad { --pa-soft: rgba(167, 139, 250, .13); }
}
/* A calmer page behind long reading: the sunset mesh stays, much softer */
body:has(main .post)::before { opacity: .28; }
.ed-serif, .post h1, .post-body > h2, .ed-plate .hero-title, .pull { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; }

/* Masthead */
.ed-mast { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 34px 0 34px; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .ed-mast { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; padding-top: 44px; } }
.post-head { max-width: none; padding: 0; }
.post .crumbs { margin: 0 0 18px; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 0; border: 0; background: none; border-radius: 0;
  font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--link); }
.kicker::before { display: none; }
.kicker::after { content: ""; width: 56px; height: 2px; background: var(--pa); }
.post h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 26px; font-weight: 700; text-wrap: balance; }
.post .lead { max-width: 62ch; margin: 0; padding: 0 0 0 20px; background: none; border: 0; border-left: 3px solid var(--pa); border-radius: 0; box-shadow: none;
  font-size: clamp(1.12rem, 2vw, 1.36rem); line-height: 1.6; -webkit-backdrop-filter: none; backdrop-filter: none; }
.post .lead::before, .post .lead::after { display: none; }
.post-head .post-meta { margin: 18px 0 0; font-size: .85rem; }

/* Illustration plate (replaces the big glass hero) */
.post-hero.ed-plate { position: relative; margin: 0; padding: 26px; overflow: visible; border-radius: 4px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.post-hero.ed-plate::before { display: none; }
.ed-plate .hero-title { margin: 0 0 16px; font: 800 .72rem/1.3 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.ed-plate figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .85rem; line-height: 1.5; color: var(--ink-soft); }
/* inside the plate every illustration stacks into one tidy column */
.ed-plate .tt, .ed-plate .cq, .ed-plate .ac { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ed-plate .cq { gap: 26px; }
.ed-plate .cq-step:not(:last-child)::after { content: "↓"; left: 50%; right: auto; top: auto; bottom: -24px; transform: translateX(-50%); }
.ed-plate .wa { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ed-plate .ac-machine { grid-column: auto; }
.ed-plate .tt-notes li, .ed-plate .cq-step, .ed-plate .wa-panel, .ed-plate .ac-card, .ed-plate .ac-machine { background: transparent; box-shadow: none; }
.ed-plate .cq-step, .ed-plate .wa-panel, .ed-plate .ac-card { border-radius: 4px; padding: 14px; }
.ed-plate .tt-notes li { border-radius: 4px; padding: 10px 12px 10px 48px; }
.ed-plate .tt-notes li::before { top: 9px; left: 12px; }
.ed-plate .tt-phone { transform: none; }
@media (max-width: 420px) { .ed-plate .wa { grid-template-columns: minmax(0, 1fr); } .post-hero.ed-plate { padding: 18px; } }
/* Tipos plate: one letter, two ways */
.ed-glyphs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; text-align: center; }
.ed-glyphs .big { display: block; font-size: clamp(4.6rem, 12vw, 7.5rem); line-height: 1; }
.ed-glyphs .font .big { font-family: Georgia, "Times New Roman", serif; color: var(--ink); }
.ed-glyphs .uni .big { color: var(--link); }
/* A three-letter glyph («PNG») is twice as wide as «Aa»: at 12vw it outgrew its half of the card at 960–1024px (REDO-23 A) */
.ed-glyphs .big-wide { font-size: clamp(3.2rem, 7vw, 5.5rem); }
.ed-glyphs code { display: block; margin-top: 8px; font: 700 .78rem/1.3 ui-monospace, Consolas, monospace; background: none; padding: 0; }
.ed-glyphs small { display: block; margin-top: 4px; font-size: .8rem; line-height: 1.4; color: var(--ink-soft); }

/* Reading column + contents column */
.ed-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 0 64px; }
@media (min-width: 960px) {
  .ed-wrap { grid-template-columns: 220px minmax(0, 700px); gap: 56px; }
  .ed-wrap .post-body { grid-column: 2; grid-row: 1; }
  .ed-side { grid-column: 1; grid-row: 1; position: sticky; top: 24px; align-self: start; }
}
.post-body { min-width: 0; max-width: 700px; font-size: 1.07rem; line-height: 1.8; counter-reset: sec; }
.post-body > p:first-child::first-letter { float: left; padding: 6px 10px 0 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 4.1rem; line-height: .85; color: var(--link); }
.post-body > h2 { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 64px 0 16px; scroll-margin-top: 20px; }
.post-body > h2:not(.no-num)::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 10px; padding: 0; background: none; border-radius: 0; transform: none;
  font: 700 .8rem/1 system-ui, sans-serif; letter-spacing: .14em; color: var(--link); }
.post-body > h3 { font-size: 1.06rem; margin: 26px 0 4px; }
.post-body > p, .post-body > ul > li { max-width: 66ch; }
.post-body code { font-size: .92em; padding: 0 6px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }
.pull { margin: 36px 0; padding: 22px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.3; font-style: italic; }
/* steps: serif numerals on hairlines */
.post-body ol.steps { list-style: none; padding: 0; margin: 18px 0; display: block; counter-reset: st; }
.post-body ol.steps > li { counter-increment: st; position: relative; margin: 0; padding: 12px 0 12px 48px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.post-body ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: 9px; width: auto; height: auto; display: block; background: none; color: var(--link);
  font-family: "Iowan Old Style", Georgia, serif; font-size: 1.7rem; line-height: 1; font-weight: 400; }
.post-body ol.steps > li::after { display: none; }
/* tables: hairline rules on desktop, one card per row on phones */
.post-body .table-wrap { margin: 22px 0; border: 0; border-radius: 0; box-shadow: none; background: none; overflow-x: auto; }
.post-body table { background: transparent; font-size: .98rem; }
.post-body th { padding: 0 12px 10px 0; background: none; border-bottom: 2px solid var(--ink); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.post-body td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.post-body td:first-child { font-weight: 700; }
.post-body td[data-label="Ejemplo"] { font-size: 1.4rem; }
.post-body tbody tr:nth-child(even) td { background: none; }
@media (max-width: 640px) {
  .post-body table, .post-body tbody, .post-body tr, .post-body td { display: block; width: 100%; }
  .post-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .post-body tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .post-body td { border: 0; padding: 4px 0; }
  .post-body td::before { content: attr(data-label); display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
}
/* copyable examples (TikTok) */
.post-body .ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 24px; margin: 16px 0; padding: 0; list-style: none; }
.post-body .idea { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.post-body .idea br { display: none; }
.post-body .idea small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.post-body .idea .card-out { font-size: 1.35rem; line-height: 1.35; overflow-wrap: anywhere; }
.post-body .idea .len { font-size: .82rem; color: var(--ink-soft); }
.post-body .glossary { margin: 16px 0; }
.post-body .glossary dt { font-weight: 700; margin-top: 14px; }
.post-body .glossary dd { margin: 2px 0 0; color: var(--ink-soft); }
.post-body .idea .chip { align-self: flex-start; margin: 2px 0 0; padding: 6px 16px; font-weight: 700; color: #fff; background: var(--pa-ink); border-color: var(--pa-ink); min-height: 36px; }
.post-body > ul:not(.ideas):not(.sources) { padding-left: 1.2rem; }
.post-body > ul:not(.ideas):not(.sources) > li { margin-bottom: 8px; }
.post-body > ul:not(.ideas):not(.sources) > li::marker { color: var(--pa); }
/* sources */
.post-body > h2.no-num { font: 800 .78rem/1.2 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 52px; padding-top: 16px; border-top: 2px solid var(--ink); }
.post-body .sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; counter-reset: src; }
.post-body .sources li { counter-increment: src; display: flex; gap: 10px; line-height: 1.45; }
.post-body .sources li::before { content: "[" counter(src) "]"; font-weight: 800; color: var(--ink-soft); flex: 0 0 auto; }
/* contents + tools + guides column */
.ed-side { display: grid; gap: 22px; align-content: start; font-size: .88rem; }
.ed-side .rail-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ed-side .rail-title { margin: 0 0 6px; font-size: .7rem; letter-spacing: .12em; }
.ed-side ol, .ed-side ul { list-style: none; margin: 0; padding: 0; display: block; }
.ed-side a { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); border-radius: 0; color: var(--ink-soft); text-decoration: none; line-height: 1.4; font-size: .88rem; }
.ed-side a:hover { color: var(--ink); background: none; }
.ed-side .rail-toc ol { counter-reset: toc; }
.ed-side .rail-toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-size: .7rem; font-weight: 800; color: var(--link); flex: 0 0 auto; }
.ed-side .rail-ico { flex: 0 0 24px; height: 24px; border-radius: 6px; font-size: .95rem; }
@media (max-width: 959px) { .ed-side .rail-toc { display: none; } .ed-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 2px solid var(--ink); padding-top: 16px; } }
@media print { .ed-side { display: none; } .ed-wrap, .ed-mast { display: block; } }

/* ---------- A. Tipos de letras: Unicode anatomy ---------- */
.ana { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .ana { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .ana-combo { grid-column: 1 / -1; } }
.ana-col, .ana-combo { padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-edge); }
.ana-glyphs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 6px; font-size: clamp(2.6rem, 7vw, 3.8rem); line-height: 1.2; color: var(--ink); }
.ana-uni .ana-glyphs { color: var(--link); }
.g-serif { font-family: Georgia, "Times New Roman", serif; } .g-script { font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; } .g-mono { font-family: ui-monospace, Consolas, monospace; }
.ana code { font-size: .78rem; color: var(--ink-soft); background: none; padding: 0; }
.ana p { margin: 10px 0 0; font-size: .96rem; line-height: 1.55; }
.ana-vs { align-self: center; justify-self: center; font-size: 2.6rem; font-weight: 800; color: var(--pa); }
.ana-combo { background: linear-gradient(90deg, var(--pa-soft), rgba(255, 255, 255, .4)); }
.ana-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; font-size: 1.5rem; color: var(--ink-soft); }
.eq-box { display: inline-flex; flex-direction: column; align-items: center; min-width: 78px; padding: 10px 12px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow); font-size: 2.1rem; line-height: 1.2; color: var(--ink); }
.eq-box small { margin-top: 4px; font: 700 .66rem/1.2 ui-monospace, Consolas, monospace; color: var(--ink-soft); }
.eq-out { border: 2px solid var(--pa); }

/* ---------- B. TikTok: illustrated profile with numbered notes ---------- */
.tt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 760px) { .tt { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; } }
.tt-art { display: flex; justify-content: center; perspective: 900px; }
.tt-phone { width: 250px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 34px 16px 22px; text-align: center; position: relative;
  border-radius: 38px; border: 8px solid #1d1a16; background: linear-gradient(170deg, #ffffff 0%, #fff1e4 55%, #fde3ef 100%);
  transform: rotateY(-9deg) rotateX(4deg); box-shadow: 0 40px 60px -34px rgba(140, 30, 70, .6), 0 0 0 1px rgba(255, 255, 255, .7) inset; }
.tt-phone::before { content: ""; position: absolute; top: 10px; width: 70px; height: 7px; border-radius: 7px; background: #1d1a16; opacity: .85; }
.tt-avatar { width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(135deg, #fb923c, #db2777 55%, #7c3aed); box-shadow: 0 0 0 4px #fff, 0 10px 20px -10px rgba(219, 39, 119, .8); }
.tt-line { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow-wrap: anywhere; color: #1d1a16; }
.tt-name { font-weight: 700; font-size: 1.3rem; }
.tt-user { font-size: .92rem; color: #54473d; }
.tt-bad .tt-txt { text-decoration: line-through; text-decoration-color: #b91c1c; text-decoration-thickness: 2px; }
.tt-bio { font-size: .9rem; padding: 6px 10px; border-radius: 10px; background: rgba(255, 226, 207, .75); }
.tt-num { flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 800 .7rem/1 system-ui, sans-serif; color: #fff; background: #9d174d; }
.tt-num.no { background: #b91c1c; }
.tt-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: tt; }
.tt-notes li { counter-increment: tt; position: relative; padding: 14px 16px 14px 56px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-edge); line-height: 1.5; }
.tt-notes li::before { content: counter(tt); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: #9d174d; }
.tt-notes li.no::before { background: #b91c1c; }
.tt-notes .ok-tag, .tt-notes .no-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #fff; vertical-align: 1px; }
.tt-notes .ok-tag { background: #15803d; } .tt-notes .no-tag { background: #b91c1c; } .tt-notes .info-tag { background: #57534e; } /* REDO-21: neutral tag, TikTok does not say */

/* ---------- C. Cuadritos: three stages ---------- */
.cq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; counter-reset: cq; }
@media (min-width: 760px) { .cq { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; } }
.cq-step { counter-increment: cq; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; min-width: 0;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-edge); border-top: 5px solid #ea580c; }
.cq-step.bad { border-top-color: #b91c1c; } .cq-step.good { border-top-color: #15803d; }
.cq-step:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -27px; transform: translateX(-50%); font-size: 1.3rem; font-weight: 800; color: var(--pa); }
@media (min-width: 760px) { .cq-step:not(:last-child)::after { content: "→"; left: auto; right: -29px; bottom: auto; top: 50%; transform: translateY(-50%); } }
.cq-step .hero-label::before { content: counter(cq) ". "; }
.cq-text { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 2.4em; padding: 6px 0; font-size: 1.55rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.cq-box { display: inline-block; width: .62em; height: .92em; margin: 0 3px; border: 2px solid currentColor; border-radius: 3px; }
.cq-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .86rem; color: var(--ink-soft); }
.cq-hex { font: 700 .62rem/1 ui-monospace, Consolas, monospace; padding: 3px; border: 1.5px solid currentColor; border-radius: 3px; }
.cq-opt { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--glass-edge); }
.cq-opt b { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.cq-opt span { font-size: 1.35rem; line-height: 1.4; color: var(--ink); }

/* ---------- D. WhatsApp: native formatting vs Unicode ---------- */
.wa { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .wa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wa-panel { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-edge); min-width: 0; }
.wa-title { margin: 0; font-size: 1.1rem; font-weight: 800; }
.wa-chat { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: linear-gradient(170deg, rgba(255, 241, 228, .9), rgba(253, 227, 239, .8)); }
.wa-in { justify-self: start; display: inline-flex; gap: 8px; align-items: center; font-size: .84rem; color: #54473d; }
.wa-in code { font-size: .95rem; color: #1d1a16; background: rgba(255, 255, 255, .85); }
.wa-out { justify-self: end; max-width: 100%; padding: 8px 14px; border-radius: 16px 16px 4px 16px; font-size: 1.2rem; color: #1d1a16; background: #fff; box-shadow: 0 8px 14px -10px rgba(29, 26, 22, .4); overflow-wrap: anywhere; }
.wa-facts { margin: 0; display: grid; gap: 8px; }
.wa-facts div { display: grid; gap: 1px; }
.wa-facts dt { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.wa-facts dd { margin: 0; font-size: .95rem; line-height: 1.5; }

/* ---------- E. Accesibilidad: readable vs decorated, and what the computer compares ---------- */
.ac { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .ac { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-machine { grid-column: 1 / -1; } }
.ac-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; min-width: 0; background: rgba(255, 255, 255, .55);
  border: 1px solid var(--glass-edge); border-left: 6px solid #b91c1c; }
.ac-card.good { border-left-color: #15803d; }
.ac-tag { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; }
.ac-tag i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: .78rem; background: #b91c1c; }
.ac-card.good .ac-tag i { background: #15803d; }
.ac-bio { font-size: 1.25rem; line-height: 1.5; overflow-wrap: anywhere; }
.ac-note { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.ac-machine { padding: 18px 20px; border-radius: 22px; background: linear-gradient(90deg, var(--pa-soft), rgba(255, 255, 255, .4)); border: 1px solid var(--glass-edge); }
.ac-cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 8px; font-size: 1.5rem; color: var(--ink-soft); }
.ac-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 84px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--glass-edge); font-size: 2rem; line-height: 1.2; color: var(--ink); }
.ac-chip small { margin-top: 3px; font: 700 .66rem/1.2 ui-monospace, Consolas, monospace; color: var(--ink-soft); }
.ac-machine p { margin: 0; font-size: .95rem; line-height: 1.55; max-width: 70ch; }

/* Dark mode for the illustration surfaces */
@media (prefers-color-scheme: dark) {
  .ana-col, .tt-notes li, .cq-step, .wa-panel, .ac-card { background: rgba(255, 255, 255, .04); }
  .ana-combo, .ac-machine { background: linear-gradient(90deg, var(--pa-soft), rgba(255, 255, 255, .03)); }
  .tt-phone { border-color: #000; background: linear-gradient(170deg, #2e2233, #1b1420 60%, #2a1626); }
  .tt-line { color: #f7efe8; } .tt-user { color: #cdbdb3; } .tt-bio { background: rgba(244, 114, 182, .16); }
  .tt-avatar { box-shadow: 0 0 0 4px #1b1420, 0 10px 20px -10px rgba(219, 39, 119, .8); } .tt-phone::before { background: #000; }
  .wa-chat { background: linear-gradient(170deg, rgba(60, 40, 64, .8), rgba(40, 26, 44, .8)); }
  .wa-in { color: #cdbdb3; } .wa-in code { color: #f7efe8; background: rgba(255, 255, 255, .08); }
  .wa-out { color: #f7efe8; background: #3a2c3e; }
  .tt-bad .tt-txt { text-decoration-color: #f87171; }
}
@media (prefers-reduced-motion: reduce) { .tt-phone { transform: none; } }
@media print { .post-rail, .post-hero::before { display: none; } .post { display: block; } .tt-phone { transform: none; box-shadow: none; } }
/* Blog pages may use a wider container than the tool pages (the site wrap is 980px) */
main.wrap:has(> .post) { max-width: 1180px; }
/* U+0336 (combining long stroke): the Windows system font hides it and some monospace fonts draw it low.
   These fonts draw it through the middle of the letter. */
.eq-box, .post .fx { font-family: Arial, "Liberation Sans", "Helvetica Neue", "Segoe UI Symbol", sans-serif; }
/* Design A fixes after the screenshot review (2026-11-19) */
@media (min-width: 960px) { .ed-mast { align-items: start; } }
.hero-label { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.sim-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #9a3412; vertical-align: 1px; }
.ed-plate .wa { grid-template-columns: minmax(0, 1fr); }
.ed-plate .wa-chat { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; }
.ed-plate .wa-out { justify-self: end; }
.ed-plate .wa-facts { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ed-plate .wa-facts div { grid-template-columns: 112px minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
@media (max-width: 420px) { .ed-plate .wa-facts div { grid-template-columns: minmax(0, 1fr); } }
/* Blog 2 (TikTok) compact profile plate (2026-11-19): smaller phone beside a one-line legend, so the plate is not taller than the headline */
.post--tiktok .ed-plate .tt { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: center; }
@media (min-width: 420px) { .post--tiktok .ed-plate .tt { grid-template-columns: 172px minmax(0, 1fr); gap: 18px; } }
.post--tiktok .ed-plate .tt-phone { width: 172px; gap: 6px; padding: 26px 10px 16px; border-width: 6px; border-radius: 28px; box-shadow: 0 24px 40px -30px rgba(140, 30, 70, .6); }
.post--tiktok .ed-plate .tt-phone::before { top: 7px; width: 50px; height: 5px; }
.post--tiktok .ed-plate .tt-avatar { width: 52px; height: 52px; }
.post--tiktok .ed-plate .tt-name { font-size: 1.05rem; }
.post--tiktok .ed-plate .tt-user { font-size: .8rem; }
.post--tiktok .ed-plate .tt-bio { font-size: .78rem; padding: 4px 8px; }
.post--tiktok .ed-plate .tt-num { width: 17px; height: 17px; font-size: .62rem; }
.post--tiktok .ed-plate .tt-notes { gap: 8px; }
.post--tiktok .ed-plate .tt-notes li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 40px; padding: 8px 10px 8px 42px; line-height: 1.3; }
.post--tiktok .ed-plate .tt-notes li::before { top: 50%; left: 10px; width: 22px; height: 22px; margin-top: -11px; font-size: .75rem; }
.post--tiktok .ed-plate .tt-notes .ok-tag, .post--tiktok .ed-plate .tt-notes .no-tag { margin-left: 0; }
/* Blog index (2026-11-19): design A cards across the full width and a shorter hero. Scoped to main.blog-index. */
.blog-index { --pa: #c2410c; }
.blog-index .hero h1, .blog-index .post-list h2 { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; }
@media (min-width: 880px) {
  .blog-index .hero.has-stage { padding-bottom: 4px; }
  .blog-index .hero.has-stage .stage { height: 140px; }
  .blog-index .hero.has-stage .tile:nth-child(1) { left: 0; top: 46px; }
  .blog-index .hero.has-stage .tile:nth-child(2) { left: 78px; right: auto; top: 4px; }
  .blog-index .hero.has-stage .tile:nth-child(3) { left: 156px; top: 62px; bottom: auto; }
  .blog-index .hero.has-stage .tile:nth-child(4) { left: 234px; right: auto; top: 18px; bottom: auto; }
}
.blog-index .post-list { grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; max-width: none; margin: 20px 0 32px; }
@media (min-width: 760px) {
  .blog-index .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-index .post-list .bl-featured { grid-column: 1 / -1; }
}
.blog-index .post-list .idea { display: flex; flex-direction: column; gap: 8px; max-width: none; padding: 20px 22px 22px; border-radius: 4px; border: 1px solid var(--line);
  border-top: 3px solid var(--pa); background: var(--surface); box-shadow: none; }
.blog-index .bl-kicker { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.blog-index .post-list h2 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.2; }
.blog-index .post-list .bl-featured h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.blog-index .post-list h2 a { color: var(--ink); text-decoration: none; }
.blog-index .post-list h2 a:hover, .blog-index .post-list h2 a:focus-visible { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.blog-index .post-list p:not(.bl-kicker) { font-size: .98rem; line-height: 1.55; max-width: 70ch; }
/* Homepage style finder (2026-11-19): a small search field, styled apart from the big text box so nobody types their name in it */
.style-search { margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2); }
.style-search label { display: block; margin: 0 0 6px; font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
.style-search-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.style-search input[type="search"] { flex: 1 1 220px; min-width: 0; max-width: 420px; min-height: 44px; padding: 8px 14px 8px 38px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .95rem; color: var(--ink); background-color: var(--surface);
  background-image: radial-gradient(circle at 50% 50%, transparent 4.5px, currentColor 5px, currentColor 6.5px, transparent 7px),
    linear-gradient(135deg, transparent 38%, currentColor 38%, currentColor 62%, transparent 62%);
  background-repeat: no-repeat; background-size: 16px 16px, 7px 7px; background-position: 12px calc(50% - 2px), 24px calc(50% + 6px); }
.style-search input[type="search"]::placeholder { color: var(--ink-soft); opacity: 1; }
.style-search-clear { min-height: 44px; }
.style-search-clear[hidden] { display: none; }
.style-search-status { margin: 6px 0 0; font-size: .88rem; color: var(--ink-soft); min-height: 1.2em; }
.style-search-status:empty { margin: 0; min-height: 0; }
.empty .btn-clear { margin-top: 10px; }
/* WhatsApp and Accesibilidad plates (2026-11-19): tighter spacing so each plate is no taller than its headline block on desktop */
@media (min-width: 960px) {
  .post--whatsapp .ed-plate .wa { gap: 8px; }
  .post--whatsapp .ed-plate .wa-panel { padding: 10px 14px; gap: 8px; }
  .post--whatsapp .ed-plate .wa-title { font-size: 1rem; }
  .post--whatsapp .ed-plate .wa-chat { padding: 8px 10px; }
  .post--whatsapp .ed-plate .wa-out { padding: 6px 12px; font-size: 1.1rem; }
  .post--accesibilidad .ed-plate .ac { gap: 10px; }
  .post--accesibilidad .ed-plate .ac-card { padding: 12px 14px; gap: 6px; }
  .post--accesibilidad .ed-plate .ac-bio { font-size: 1.08rem; line-height: 1.4; }
  .post--accesibilidad .ed-plate .ac-note { font-size: .86rem; line-height: 1.45; }
  .post--accesibilidad .ed-plate .ac-machine { padding: 12px 14px; }
  .post--accesibilidad .ed-plate .ac-cmp { margin: 6px 0; }
  .post--accesibilidad .ed-plate .ac-chip { min-width: 70px; padding: 6px 12px; font-size: 1.6rem; }
  .post--accesibilidad .ed-plate .ac-machine p { font-size: .88rem; line-height: 1.45; }
}
/* TikTok plate at split-screen widths (about 900-1000px): keep each status pill on one line */
.tt-notes .ok-tag, .tt-notes .no-tag { white-space: nowrap; }
/* Between 960 and 1099px the plate column is too narrow for the phone and the legend side by side (the pills spilled out):
   put the legend under the phone there. Below 960 and from 1100 up nothing changes. */
@media (min-width: 960px) and (max-width: 1099px) { .post--tiktok .ed-plate .tt { grid-template-columns: minmax(0, 1fr); justify-items: center; } .post--tiktok .ed-plate .tt-notes { width: 100%; } }

/* ===== Homepage creative studio (2026-11-19) ===== */
.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; }
.muted { color: var(--ink-soft); }

/* Hero: type specimen (replaces the tiles + phone on the homepage only) */
.hero.has-specimen { display: grid; gap: 18px; }
.specimen { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 12px; box-shadow: var(--shadow); min-width: 0; }
.spec-glyphs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.1; color: var(--accent-strong); }
.spec-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.spec-rows li { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); max-width: none; }
.spec-rows li:last-child { border-bottom: 0; }
.spec-k { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.spec-v { font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.spec-foot { margin: 8px 0 0; font-size: .75rem; color: var(--ink-soft); text-align: right; }
@media (min-width: 880px) {
  .hero.has-specimen { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); column-gap: 36px; align-items: center; padding-bottom: 18px; }
  .hero.has-specimen > h1, .hero.has-specimen > .lead { grid-column: 1; }
  .hero.has-specimen > h1 { align-self: end; }
  .hero.has-specimen > .lead { align-self: start; }
  .hero.has-specimen .specimen { grid-column: 2; grid-row: 1 / span 2; }
}

/* Studio */
.studio { margin: 28px 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.studio > h2 { margin-top: 0; }
.studio h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.studio h3:first-child { margin-top: 4px; }
.studio h4 { margin: 14px 0 6px; font-size: .95rem; }
.st-intro { margin-top: 0; }
.st-setup { display: grid; gap: 10px; }
.st-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.st-field legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.st-radios, .st-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.st-inline legend { width: 100%; }
.st-radio { position: relative; display: inline-flex; }
.st-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-radio span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); cursor: pointer; font-size: .95rem; }
.st-radio input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.st-radio input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.st-tip { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.st-result { margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.st-result label { display: block; font-weight: 700; margin-bottom: 6px; }
#st-salida { width: 100%; min-height: 64px; resize: vertical; font: inherit; font-size: 1.15rem; line-height: 1.5; padding: 10px 12px; border: 2px solid var(--accent); border-radius: 12px; background: var(--surface); color: var(--ink); }
.st-count { margin: 6px 0 0; font-size: .85rem; color: var(--ink-soft); }
.st-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.st-tools button, .st-primary, .studio .btn-clear { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; }
.studio .st-primary, .st-tools .st-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.st-tools button:disabled { opacity: .45; cursor: default; }
.st-tabs { display: flex; gap: 6px; margin: 18px 0 0; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.st-tabs [role="tab"] { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px 10px 0 0; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; }
.st-tabs [role="tab"][aria-selected="true"] { background: var(--surface); border-color: var(--accent); border-bottom-color: var(--surface); color: var(--accent-strong); font-weight: 700; }
@media (min-width: 768px) { .st-tabs { flex-wrap: wrap; overflow-x: visible; } }
.st-panel { border: 1px solid var(--line); border-radius: 0 12px 12px 12px; padding: 4px 16px 16px; }
.st-panel select { min-height: 44px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.st-panel label[for] { display: block; font-weight: 700; margin: 14px 0 6px; }
.st-buckets, .st-framesets, .st-words { display: flex; flex-wrap: wrap; gap: 6px; }
.studio .chip { min-height: 40px; }
.studio .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.st-options { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.st-options li { max-width: none; }
.st-option { width: 100%; min-height: 48px; display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.st-option:hover { border-color: var(--accent); }
.st-option[aria-pressed="true"] { border: 2px solid var(--accent); }
.st-opt-text { font-size: 1.08rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.st-opt-meta { font-size: .78rem; color: var(--ink-soft); }
.st-symgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.st-symlabel { width: 100%; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.st-sym { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.2rem; cursor: pointer; }
.st-sym:hover { border-color: var(--accent); background: var(--surface-2); }
.st-checkcard { margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.st-checkcard h4 { margin-top: 0; }
.st-letters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.st-l { display: flex; gap: 8px; align-items: center; max-width: none; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); font-size: .85rem; }
.st-l-ch { font-size: 1.2rem; min-width: 1.4em; text-align: center; }
.st-l-mark { box-shadow: inset 3px 0 0 var(--accent); }
.st-l-normal { box-shadow: inset 3px 0 0 var(--line); }
.st-clean-label { margin: 10px 0 2px; font-weight: 700; }
.st-clean-out { min-height: 1.6em; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
#st-limpiar { width: 100%; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.st-clean-inv { margin: 0; padding-left: 20px; font-size: .9rem; }

/* Illustrative previews: generic layouts, no app logos */
.st-preview { margin: 8px 0; }
.pv { max-width: 420px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.pv-kind { margin: 0 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.pv-head { display: flex; gap: 12px; align-items: center; }
.pv-avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.pv-who { min-width: 0; }
.pv-name { margin: 0; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.pv-sub { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.pv-body { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-bubble { display: inline-block; max-width: 92%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); }
.pv-title { font-weight: 700; font-size: 1.15rem; text-align: center; }
.pv-tiktok .pv-head { flex-direction: column; text-align: center; }
.pv-tiktok .pv-body { text-align: center; }
.pv-whatsapp { background: color-mix(in srgb, var(--ok) 8%, var(--bg)); }
.pv-whatsapp .pv-bubble { border-radius: 14px 14px 4px 14px; margin-left: auto; display: block; width: fit-content; background: color-mix(in srgb, var(--ok) 18%, var(--surface)); }
.pv-juegos { background: #17131f; border-color: #2b2438; color: #f3eee6; }
.pv-juegos .pv-kind, .pv-juegos .pv-sub { color: #b9b0c9; }
.pv-juegos .pv-avatar { border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #db2777); }
.pv-facebook .pv-avatar { width: 44px; height: 44px; }

/* Titles and alphabet */
.abc label { display: block; font-weight: 700; margin: 10px 0 6px; }
.abc-select { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; max-width: 100%; }
.abc-rows, .abc-titles { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.abc-rows li, .abc-titles li { max-width: none; }
.abc-rows li { display: grid; gap: 4px; }
.abc-k { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.abc-copy { width: 100%; min-height: 48px; text-align: left; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.15rem; overflow-wrap: anywhere; cursor: pointer; }
.abc-copy:hover { border-color: var(--accent); }
.abc-titles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 420px) { .studio { padding: 14px; } .st-panel { padding: 2px 10px 12px; } }
@media print { .studio, .specimen { display: none; } }
/* Phones: keep the converter close to the top; the specimen shows only its glyph strip */
@media (max-width: 599px) { .specimen { padding: 10px 14px; } .spec-glyphs { margin: 0; padding: 0; border: 0; } .spec-rows, .spec-foot { display: none; } }

/* ===== Page heroes (2026-11-19): one composition per page, all still ===== */
.hero.has-visual { display: grid; gap: 16px; }
.hv { position: relative; z-index: 1; min-width: 0; }
@media (min-width: 880px) {
  .hero.has-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: 36px; align-items: center; padding-bottom: 18px; }
  .hero.has-visual > h1, .hero.has-visual > .lead { grid-column: 1; }
  .hero.has-visual > h1 { align-self: end; }
  .hero.has-visual > .lead { align-self: start; }
  .hero.has-visual .hv { grid-column: 2; grid-row: 1 / span 2; }
}
.hv-cap { margin: 8px 0 0; font-size: .72rem; color: var(--ink-soft); }

/* /instagram: a flat profile card (not a phone) */
.hv-ig { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.hv-ig-head { display: flex; align-items: center; gap: 16px; }
.hv-ig-avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(from 200deg, #f59e0b, #db2777, #7c3aed, #f59e0b); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #db2777; }
.hv-ig-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.hv-ig-stats span { display: grid; text-align: center; line-height: 1.15; }
.hv-ig-stats b { font-size: 1rem; }
.hv-ig-stats small { font-size: .7rem; color: var(--ink-soft); }
.hv-ig-name { margin: 12px 0 2px; font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.hv-ig-bio { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.hv-ig-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-soft); }
.hv-ig-count { font-weight: 700; color: var(--accent-strong); }

/* /nick: dark gamer nameplate with a 12-slot meter */
.hv-nick { background: #15121c; color: #f3eee6; border: 1px solid #2c2539; border-radius: 10px; padding: 16px 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.hv-nick-label { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a99dc0; }
.hv-nick-plate { margin: 6px 0 12px; font-size: 1.5rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fde68a; }
.hv-nick-meter { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.hv-nick-meter span { height: 8px; border-radius: 2px; background: #2c2539; }
.hv-nick-meter span.on { background: #34d399; }
.hv-nick-meter span.over { background: #f87171; }
.hv-nick-count { margin: 8px 0 10px; font-size: .78rem; color: #c9bfdc; }
.hv-nick-rail { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-top: 10px; border-top: 1px dashed #3b3250; }
.hv-nick-rail span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border: 1px solid #3b3250; border-radius: 6px; font-size: 1rem; }

/* /cursiva: a calligraphy page on ruled paper */
.hv-cur { background: #fffaf3; color: #2a1d14; border: 1px solid #ecdccb; border-radius: 4px; padding: 14px 20px 16px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(124, 45, 18, .14) 33px 34px); }
.hv-cur-big { margin: 0; font-size: 3.6rem; line-height: 68px; color: #9a3412; }  /* two ruled lines tall, so no rule crosses it */
.hv-cur-line { margin: 0; line-height: 34px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hv-cur-live { font-size: 1.5rem; }
.hv-cur-abc { font-size: 1.15rem; color: #6b4a33; letter-spacing: .06em; }

/* /goticas: a blackletter block with a large initial */
.hv-got { background: #1d1a16; color: #f5efe6; border: 3px double #b45309; padding: 16px 18px; }
.hv-got-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.hv-got-initial { display: grid; place-items: center; width: 76px; height: 76px; font-size: 3.4rem; line-height: 1; background: #b45309; color: #fff7ed; }
.hv-got-live { margin: 0; font-size: 1.6rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-got-abc { margin: 4px 0 0; font-size: 1.05rem; color: #d6c7b2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hv-got-foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #4a3a28; font-size: 1.05rem; color: #fcd34d; overflow-wrap: anywhere; }

/* /simbolos: a gallery of the page's own symbol groups */
.hv-sym { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hv-sym-cell { display: grid; gap: 4px; padding: 10px 8px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.hv-sym-g { display: flex; justify-content: center; gap: 6px; font-size: 1.35rem; line-height: 1.2; height: 1.4em; overflow: hidden; }
.hv-sym-cell small { font-size: .7rem; color: var(--ink-soft); overflow-wrap: anywhere; }

/* /tatuajes and /letras-de-…: the page's own style groups on its sample word (REDO-23 B) */
.hv-pk { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); }
.hv-pk-label { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.hv-pk-live { margin: 6px 0 10px; font-size: 1.8rem; line-height: 1.25; color: var(--accent-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-pk-row { display: grid; gap: 2px; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
.hv-pk-row + .hv-pk-row { margin-top: 8px; }
.hv-pk-row small { font-size: .72rem; color: var(--ink-soft); }
.hv-pk-v { font-size: 1.15rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) { .hv-pk-row { display: none; } .hv-pk-live { margin-bottom: 0; } }

@media (prefers-color-scheme: dark) {
  .hv-cur { background-color: #241c16; color: #f3e7d8; border-color: #4a3a2c; background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(251, 146, 60, .18) 33px 34px); }
  .hv-cur-big { color: #fdba74; } .hv-cur-abc { color: #d8bfa6; }
}
/* Phones: keep the converter close to the top; each hero shows a compact version */
@media (max-width: 599px) {
  .hv-ig-stats, .hv-cap, .hv-nick-rail, .hv-cur-abc, .hv-got-abc, .hv-got-foot { display: none; }
  .hv-ig { padding: 12px; } .hv-ig-avatar { width: 44px; height: 44px; }
  .hv-cur-big { font-size: 2.4rem; } .hv-got-initial { width: 56px; height: 56px; font-size: 2.5rem; }
  .hv-sym { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hv-sym-cell:nth-child(n+7) { display: none; }
}
@media print { .hv { display: none; } }

/* ===== Footer: Mexico City date, time and calendar (2026-11-19) ===== */
.mx-time { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.mx-h { margin: 0; width: 100%; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.mx-now { margin: 0; min-height: 1.6em; font-variant-numeric: tabular-nums; }
.mx-cal-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.mx-cal-btn:hover { border-color: var(--accent); }
.mx-cal-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-strong); }
.mx-cal { position: absolute; z-index: 20; bottom: calc(100% + 6px); right: 16px; width: min(300px, calc(100vw - 32px)); padding: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.mx-cal[hidden] { display: none; }
.mx-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mx-cal-title { margin: 0; font-weight: 700; }
.mx-nav { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.mx-grid { width: 100%; margin: 8px 0 4px; border-collapse: collapse; table-layout: fixed; text-align: center; font-size: .9rem; }
.mx-grid th { padding: 4px 0; font-size: .72rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; }
.mx-grid td { padding: 6px 0; border-radius: 8px; }
.mx-grid td.mx-today { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.mx-cal-foot { display: flex; justify-content: space-between; gap: 8px; }
.mx-link { min-height: 36px; padding: 4px 10px; border: 0; background: none; color: var(--accent-strong); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
@media (max-width: 480px) { .mx-cal { right: auto; left: 16px; } }   /* keep the 16px page gutter */
@media print { .mx-cal-btn, .mx-cal { display: none; } }

/* ===== Footer: its own solid band in light and dark (owner request 2026-11-20) ===== */
:root { --ft-bg: #2b1f1a; --ft-ink: #f3e9df; --ft-soft: #d9c8b8; --ft-link: #fdba74; --ft-line: rgba(255, 255, 255, .14);
  --ft-btn: #3a2b24; --ft-pop: #ffffff; --ft-pop-ink: #1d1a16; --ft-pop-soft: #5c554b; --ft-pop-line: #e4ddd1; }
@media (prefers-color-scheme: dark) {
  :root { --ft-bg: #382940; --ft-ink: #f1e8ef; --ft-soft: #cbbcc8; --ft-link: #fdba74; --ft-line: rgba(255, 255, 255, .12);
    --ft-btn: #3a2c40; --ft-pop: #1f1a22; --ft-pop-ink: #f3eee6; --ft-pop-soft: #b5ac9f; --ft-pop-line: #3a3240; }
}
.site-footer { position: relative; z-index: 1; background: var(--ft-bg); color: var(--ft-soft); border-top: 3px solid var(--accent); }  /* accent line marks where the page ends */
.site-footer a { color: var(--ft-link); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ft-ink); }
.site-footer :focus-visible { outline-color: var(--ft-link); }
.site-footer .mx-time { border-top-color: var(--ft-line); }
.site-footer .mx-h { color: var(--ft-soft); }
.site-footer .mx-now { color: var(--ft-ink); }
.site-footer .mx-cal-btn { background: var(--ft-btn); color: var(--ft-ink); border-color: var(--ft-line); }
.site-footer .mx-cal-btn:hover, .site-footer .mx-cal-btn[aria-expanded="true"] { border-color: var(--ft-link); color: var(--ft-ink); }
/* The calendar pop-up keeps a solid light/dark card of its own over the footer band */
.site-footer .mx-cal { background: var(--ft-pop); color: var(--ft-pop-ink); border-color: var(--ft-pop-line); }
.site-footer .mx-cal .mx-nav { background: var(--ft-pop); color: var(--ft-pop-ink); border-color: var(--ft-pop-line); }
.site-footer .mx-grid th { color: var(--ft-pop-soft); }
.site-footer .mx-link { color: var(--accent-strong); }
@media print { .site-footer { background: none; color: #000; } }

/* Labelled groups inside a page selection (e.g. /cursiva: caligrafía vs itálica) */
.results .results-group { grid-column: 1 / -1; max-width: none; margin: 10px 0 2px; }
.results .results-group:first-child { margin-top: 0; }
.results-group h2 { margin: 0; font-size: 1rem; }
.results-group p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-soft); }

/* ===== Brand colour: Azul talavera #1F3FB8 (Task 1, 2026-11-20) =====
   One bold colour for headings, buttons, active chips, links and focus. Peach and pink stay only as the light
   background tint (the mesh and --accent-soft). Contrast, light: #1F3FB8 = 8.5:1 on white, 7.9:1 on #fff4ea,
   5.0:1 on the darkest mesh spot; white on #1F3FB8 = 8.5:1. Dark: #9AAEFF = 5.7:1 or better on every dark
   surface; #0B1030 on #9AAEFF = 8.7:1. */
:root {
  --brand: #1f3fb8; --brand-strong: #172f8c; --brand-ink: #ffffff; --brand-soft: #e4e9fb;
  --accent: var(--brand); --accent-strong: var(--brand-strong); --accent-ink: var(--brand-ink); --link: var(--brand);
  /* background tint: peach and pink only (the lavender and yellow spots are gone), and lighter */
  --mesh-a: #fdba74; --mesh-b: #f9a8d4; --mesh-c: #fed7aa; --mesh-d: #fbcfe8; --mesh-opacity: .6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #9aaeff; --brand-strong: #c3ceff; --brand-ink: #0b1030; --brand-soft: rgba(154, 174, 255, .16);
    --mesh-a: #7c2d12; --mesh-b: #831843; --mesh-c: #78350f; --mesh-d: #831843; --mesh-opacity: .42;
  }
}
/* Headings */
.hero h1 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--brand); }
.post h1 { color: var(--brand); }
main h2 { color: var(--brand-strong); }
.blog-index .post-list h2 { color: var(--ink); }
/* Task 12 Part G (owner's eye test, 2026-11-21): on the LIGHT theme, H1, H2 and H3 are deep navy #14286F, the same
   Talavera hue (227°) as the brand blue but darker. Measured contrast: 12.40:1 on the page #fff4ea, 13.44:1 on white
   cards, 11.52:1 on #f2ede4, 9.51:1 on the peach mesh spot, 9.10:1 on the pink mesh spot. The bright #1F3FB8 stays for
   buttons, pills, links and accents. The dark theme keeps its light blues (#9AAEFF 6.96:1 or better). */
:root { --heading: #14286f; }
@media (prefers-color-scheme: light) {
  .hero h1, .post h1, main h1, main h2, main h3, .post-body > h2, .post-body > h3, .blog-index .post-list h2, .blog-index .post-list h2 a { color: var(--heading); }
}
@media (forced-colors: active) { .hero h1, .post h1, main h2 { color: CanvasText; } }
/* Header: the current page is a solid brand pill */
.nav a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); }
.nav a[aria-current="page"]:hover { background: var(--brand-strong); color: var(--brand-ink); }
/* Buttons */
.btn-more { border: 2px solid var(--brand); background: var(--brand); color: var(--brand-ink); }
.btn-more:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-clear { border-color: var(--brand); color: var(--brand); background: var(--surface); font-weight: 700; }
.btn-clear:hover { background: var(--brand-soft); }
.chip:hover, .nick:hover, .sym:hover, .card:hover, .st-option:hover, .abc-copy:hover { border-color: var(--brand); }
/* Decoration that used the old orange */
.tile { box-shadow: 0 16px 28px -12px rgba(31, 63, 184, .5), inset 0 -6px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .35); }
.tile:nth-child(1) { background: linear-gradient(145deg, #4f6fe0, #1f3fb8); }
.tile:nth-child(4) { color: var(--brand); }
.hv-cur-big { color: var(--brand); }
.sim-badge { background: #172f8c; }
/* Blog: the editorial rules, kickers and tints use the brand colour on every guide (the second colour stays per guide) */
.post, .post--tiktok, .post--cuadritos, .post--whatsapp, .post--accesibilidad, .blog-index {
  --pa: var(--brand); --pa-ink: var(--brand-strong); --pa-soft: rgba(31, 63, 184, .08); }
@media (prefers-color-scheme: dark) {
  .post, .post--tiktok, .post--cuadritos, .post--whatsapp, .post--accesibilidad, .blog-index { --pa-soft: rgba(154, 174, 255, .13); }
}

/* ===== Tool heroes (Task 1): bigger title, one promise line, big text box right under it ===== */
.hero { padding: 26px 0 10px; }
.hero h1 { font-size: clamp(2rem, 6.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 10px; text-wrap: balance; }
.hero .lead { font-size: clamp(1.05rem, 2.1vw, 1.2rem); line-height: 1.5; max-width: 56ch; margin: 0 0 18px; }
.tool > label[for="texto"] { font-size: 1.05rem; }
.tool textarea { min-height: 92px; padding: 14px 16px; font-size: 1.3rem; line-height: 1.4; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.tool textarea:focus { border-color: var(--brand); }
/* Phones and tablets: the converter comes right after the promise line. The decorative preview beside the
   title (aria-hidden, it repeats what the cards show) only appears where there is room for it, from 880px. */
@media (max-width: 879px) {
  .hero.has-visual .hv, .hero.has-specimen .specimen { display: none; }
  .hero.has-visual, .hero.has-specimen { gap: 0; }
}

/* /instagram bio ideas in 6 labelled groups of 3 (Task 2, 2026-11-20) */
.idea-group { margin: 20px 0 8px; font-size: 1rem; }
.idea-group + .ideas { margin-top: 0; }

/* /cursiva and /goticas A–Z tables (Task 6, 2026-11-20): every letter is a one-tap copy button (36×36 or larger) */
.abc .abc-l { min-width: 36px; min-height: 36px; padding: 2px 6px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 1.15rem; line-height: 1.2; cursor: pointer; }
.abc .abc-l:hover { border-color: var(--brand); background: var(--surface-2); }
.abc .abc-acc { padding: 6px 8px; line-height: 1.6; }
.abc .abc-all { border-color: var(--line); background: var(--surface-2); padding: 4px 10px; }
.abc tfoot th, .abc tfoot td { border-bottom: 0; }
.abc-notes { padding-left: 1.2rem; font-size: .95rem; color: var(--ink-soft); }
.abc-notes li { margin-bottom: 6px; }
@media (max-width: 767px) { .abc:is(table) th, .abc:is(table) td { padding: 6px 4px; } .abc .abc-l { min-width: 32px; min-height: 32px; padding: 2px 4px; } }
/* Phones: stack the capital above the small letter and let the accent row wrap, so all 4 cursive styles fit 375px like the old table did (up to 767px) */
@media (max-width: 767px) { .abc:is(table) td, .abc:is(table) tbody th, .abc:is(table) tfoot th { white-space: normal; } .abc:is(table) tbody th, .abc:is(table) tfoot th { font-size: .95rem; } .abc td .abc-l { display: block; margin: 2px auto; } .abc .abc-acc { max-width: 3.2em; padding: 4px; } .abc .abc-all { padding: 4px; } }

/* /simbolos texto invisible (Task 7, 2026-11-20) */
.inv-tool { margin: 12px 0 8px; }
.inv-tool input[type="text"] { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1.15rem; color: var(--ink); background: var(--bg);
  border: 2px solid color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 10px; }
.inv-tool input[type="text"]:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-color: var(--brand); }
.inv-preview { margin: 10px 0; overflow-wrap: anywhere; }
.inv-preview span { font-weight: 700; }
.inv-tool .btn-more { margin: 2px 0 16px; }
.inv-tool textarea { min-height: 64px; }
.inv-count { margin: 8px 0 0; font-size: .9rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.inv-table td, .inv-table th { vertical-align: middle; }
.inv-table code { font-size: .9em; white-space: nowrap; }
.inv-table .chip { min-height: 36px; }
@media (max-width: 599px) { .inv-table th, .inv-table td { padding: 8px 5px; } .inv-table .chip { padding: 4px 10px; } }

/* /simbolos collection mode + quick search results (Task 8, 2026-11-20) */
.sym-quick { margin-top: 10px; }
.sym-quick-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sym-quick-btn { min-width: 44px; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.3rem; cursor: pointer; }
.sym-quick-btn:hover { border-color: var(--brand); }
.sym-quick-all { margin-top: 8px; min-height: 40px; }
.sym-collect { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf5; }  /* solid: it floats over the symbols while it is sticky */
.sym-collect.on { position: sticky; top: 0; z-index: 20; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); }
@media (prefers-color-scheme: dark) { .sym-collect { background: #241b27; } }
.sym-collect-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 700; cursor: pointer; }
.sym-collect-hint { margin: 2px 0 0; font-size: .88rem; color: var(--ink-soft); }
.sym-collect.on .sym-collect-hint { display: none; }
.sym-collect-panel { margin-top: 8px; }
.sym-collect-out { margin: 0; min-height: 2.2em; max-height: 4.6em; overflow-y: auto; padding: 6px 10px; border-radius: 10px; background: var(--bg); font-size: 1.35rem; line-height: 1.6; overflow-wrap: anywhere; }
.sym-collect-out.is-empty { font-size: .95rem; color: var(--ink-soft); }
.sym-collect-meta { margin: 6px 0 0; font-size: .88rem; color: var(--ink-soft); }
.sym-collect-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sym-collect-copy { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; }
.sym-collect-copy:hover { background: var(--brand-strong); }
.sym-collect-actions .btn-clear { min-height: 44px; }
.sym-collect-actions button:disabled { opacity: .45; cursor: default; }
.sym-collect-note { margin: 8px 0 0; font-size: .8rem; color: var(--ink-soft); }

/* Task 14: emoji copy-paste section on /simbolos (its own class, so the symbol search and counts are untouched) */
.emo-grid { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.emo { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; height: 100%; text-align: left;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.emo:hover { border-color: var(--brand); background: var(--surface-2); }
.emo:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.emo-ch { grid-row: 1 / span 2; font-size: 1.9rem; line-height: 1; }
.emo-name { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.emo-use { font-size: .8rem; line-height: 1.3; color: var(--ink-soft); }

/* Task 15: «Texto al revés y boca abajo» table on the homepage (stacked into labelled cards on phones) */
.flip-table { width: 100%; border-collapse: collapse; }
.flip-table th, .flip-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.flip-copy { display: block; width: 100%; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1.05rem; line-height: 1.4; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.flip-live .flip-copy { white-space: pre-wrap; }
.flip-copy:hover { border-color: var(--brand); background: var(--surface-2); }
.flip-copy:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.flip-live td { background: var(--surface-2); }
@media (max-width: 640px) {
  .flip-table, .flip-table tbody { display: block; width: 100%; }
  .flip-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .flip-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .flip-table td { display: block; border: 0; padding: 4px 0; }
  .flip-table td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
}

/* Mega build Part 2: live countdown on the homepage */
.countdown { margin: 24px 0; }
.cd-answer { font-size: 1.15rem; font-weight: 700; margin: 4px 0 12px; }
.cd-list { display: grid; gap: 12px; }
.cd-ev { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 16px; }
.cd-ev h3 { margin: 0 0 4px; }
.cd-date { margin: 0 0 10px; }
.cd-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.cd-clock span { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: var(--surface-2); font-size: .8rem; color: var(--ink-soft); }
.cd-clock b { font-size: 1.6rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-copy-label { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.cd-styles { margin-top: 6px; }
.cd-kind { margin: 0 0 10px; font-size: .85rem; color: var(--ink-soft); }
.cd-chip { min-height: 40px; padding: 6px 14px; font-size: 1rem; }
/* REDO-12: .cd-clock sets display:grid, which beat the hidden attribute (Audit 18 item 12) */
.countdown [hidden] { display: none !important; }
/* REDO-12 Fix 6: «Ejemplos rápidos» (plain-HTML examples on the homepage) */
.quick-ex { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 8px; }
.quick-ex li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.qx-name { min-width: 8.5em; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.qx-out { flex: 1 1 12em; min-width: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.quick-ex .chip { min-height: 40px; padding: 6px 14px; }

/* ---- Gap-fix round (2026-11-22) ---- */
/* /nick: name personalizer */
.pers-tool { margin: 12px 0 8px; }
.pers-tool input[type="text"] { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1.15rem; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 12px; box-sizing: border-box; }
.pers-tool input[type="text"]:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-color: var(--brand); }
.pers-say { margin: 10px 0; color: var(--ink-soft); font-size: .95rem; }
.pers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pers-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pers-name { flex: 1 0 100%; font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.pers-out { flex: 1 1 10em; min-width: 0; font-size: 1.2rem; line-height: 1.7; overflow-wrap: anywhere; }
.pers-len { font-size: .85rem; color: var(--ink-soft); }
.pers-fit { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.is-fit .pers-fit { color: var(--ok); }
.is-long .pers-fit { color: var(--accent-strong); }
.pers-item .chip { min-height: 40px; padding: 6px 14px; }
/* /blog/letras-como-imagen: live image maker */
.img-tool { margin: 12px 0 16px; }
.img-tool textarea { width: 100%; box-sizing: border-box; }
.img-tool select { width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.img-tool select:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.img-opts { border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.img-opts legend { font-weight: 700; padding: 0; margin-bottom: 4px; width: 100%; }
.img-tool .img-opts label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; min-height: 36px; margin: 0; cursor: pointer; }
.img-opts input { width: 18px; height: 18px; margin: 0; }
.img-preview { margin: 8px 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2); text-align: center; }
.img-preview canvas, .img-preview img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.img-preview canvas[hidden], .img-preview img[hidden] { display: none; }
.img-preview figcaption { margin-top: 8px; font-size: .85rem; color: var(--ink-soft); }
.img-tool .btn-more[disabled] { opacity: .55; cursor: not-allowed; }
.img-say { margin: 8px 0 0; font-size: .95rem; color: var(--ink-soft); }
/* home: compatibility table */
.compat th[scope="row"] { font-weight: 600; text-align: left; }
/* links built from data/internal-links.json, /simbolos jump line, /blog card links */
.related-links { margin: 18px 0; padding: 12px 14px; border-left: 4px solid var(--brand); background: var(--surface-2); border-radius: 0 10px 10px 0; line-height: 1.9; }
.jump { margin: 10px 0 0; font-size: .95rem; }
.bl-go { margin: 8px 0 0; font-weight: 700; }
/* tipos guide: printable alphabet */
.abc-print { margin: 12px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.abc-print-title { margin: 0 0 12px; font-weight: 800; text-align: center; }
.abc-print-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.abc-print-grid li { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.abc-up { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.abc-lo { font-size: 1.3rem; color: var(--ink-soft); line-height: 1; }
.abc-print-foot { margin: 12px 0 0; text-align: center; font-size: .8rem; color: var(--ink-soft); }
.abc-print-say { margin: 4px 0 0; font-size: .95rem; color: var(--ink-soft); }
@media print {
  /* only the sheet and the boxes that contain it print; everything else is removed, so no blank pages */
  .print-abc body *:not(.abc-path):not(.abc-print):not(.abc-print *) { display: none !important; }
  .print-abc body, .print-abc .abc-path { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: #fff !important; max-width: none !important; width: auto !important; }
  .print-abc #abc-print { margin: 0; border: 0; background: #fff; color: #000; box-shadow: none; padding: 0; }
  .print-abc .abc-print-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .print-abc .abc-print-grid li { background: #fff; border: 1.5px solid #000; padding: 16px 4px; break-inside: avoid; }
  .print-abc .abc-up { font-size: 36pt; color: #000; }
  .print-abc .abc-lo { font-size: 26pt; color: #000; }
  .print-abc .abc-print-title { font-size: 18pt; color: #000; }
  .print-abc .abc-print-foot { color: #444; }
}

/* footer: the site pages (Big Cook Part 3) */
.ft-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ---- gap-fix Round 1: guide contents on phones and tablets (the rail TOC shows from 960px), breadcrumbs, site map ---- */
.toc-m { margin: 14px 0 6px; }
.toc-m details { margin: 0; }
.toc-m summary { cursor: pointer; font-weight: 800; }
.toc-m ol { margin: 10px 0 0; padding-left: 1.4em; }
.toc-m li { margin: 4px 0; }
@media (min-width: 960px) { .toc-m { display: none; } }
nav > .crumbs { margin: 16px 0 0; }
.site-map { list-style: none; padding: 0; margin: 0; columns: 2 280px; column-gap: 28px; }
.site-map li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-map time { color: var(--ink-soft); font-size: .9rem; }
.toc-page { margin: 18px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.toc-page summary { cursor: pointer; font-weight: 800; }
.toc-page ol { margin: 10px 0 0; padding-left: 1.4em; columns: 2 220px; column-gap: 24px; }
.toc-page li { margin: 4px 0; break-inside: avoid; }
