/* Texto Invisible — estilos globales
   Paleta inspirada en la dirección de diseño (lavanda / violeta, tarjetas pastel). */

:root {
  color-scheme: light;
  --ink: #1a1a2e;
  --text: #4f4f60;          /* 7:1+ sobre blanco, >4.5:1 sobre pasteles */
  --muted: #6b6b7d;
  --line: #e6e3f2;
  --bg: #ffffff;
  --bg-soft: #f7f6fc;
  --hero: #f3eeff;
  --violet: #6c3bea;
  --violet-2: #8a5cff;
  --magenta: #c21bc0;
  --grad-text: linear-gradient(90deg, #c21bc0 0%, #6c3bea 100%);
  --grad-btn: linear-gradient(90deg, #6c3bea 0%, #8a5cff 100%);
  --navy: #1e2b4f;
  --tile: #eef0f7;
  --ok: #157347;
  --ok-bg: #e8f6ee;
  --warn: #8a4b00;
  --warn-bg: #fff3df;
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 10px 30px rgba(60, 40, 140, .08);
  --shadow-sm: 0 3px 12px rgba(60, 40, 140, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .92em; background: var(--tile); color: var(--navy); padding: .1em .4em; border-radius: 6px; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: var(--violet); -webkit-text-fill-color: transparent; }
.skip { position: fixed; left: -9999px; top: 8px; z-index: 3000; background: var(--violet); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 12px; text-decoration: none; box-shadow: 0 8px 24px rgba(60, 40, 140, .3); }
.skip:focus { left: 16px; color: #fff; outline: 3px solid var(--ink); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- Hero + herramienta ---------- */
.hero { background: linear-gradient(180deg, var(--hero) 0%, #fbf9ff 60%, #fff 100%); padding: 48px 0 56px; text-align: center; }
.hero .lead { max-width: 680px; margin: 0 auto 28px; font-size: 1.12rem; }
.tool { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 24px; max-width: 760px; margin: 0 auto; text-align: left; border: 1px solid var(--line); }
.tool-label { display: block; font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 10px; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; border: 0; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.chip label { display: block; height: 100%; cursor: pointer; padding: 12px 14px; border-radius: var(--radius-md); border: 2px solid var(--line); background: var(--bg-soft); line-height: 1.35; transition: border-color .15s, background .15s; }
.chip label strong { display: block; color: var(--ink); font-size: .95rem; }
.chip label span { font-size: .8rem; color: var(--muted); }
.chip input:checked + label { border-color: var(--violet); background: #f4efff; }
.chip input:focus-visible + label { outline: 3px solid var(--violet); outline-offset: 2px; }
.chip label { position: relative; }
.badge { position: absolute; top: -10px; right: 10px; font-size: .7rem; font-weight: 700; color: #fff; background: var(--grad-btn); border-radius: 999px; padding: 1px 9px; }

.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 16px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 46px; height: 46px; border: 0; background: var(--bg-soft); font-size: 1.4rem; color: var(--ink); cursor: pointer; font-family: inherit; }
.stepper button:hover { background: var(--hero); }
.stepper input { width: 72px; height: 46px; border: 0; text-align: center; font: 700 1.1rem var(--font); color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-hint { font-size: .85rem; color: var(--muted); }

.output-box { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 2px dashed #d7cff3; border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 16px; font-family: var(--mono); color: var(--navy); min-height: 52px; }
.output-box .bracket { font-size: 1.4rem; color: var(--violet); }
.output-box input { flex: 1; min-width: 0; border: 0; padding: 4px 0; font: 1.4rem var(--mono); color: var(--navy); background: repeating-linear-gradient(90deg, rgba(108,59,234,.12) 0 1px, transparent 1px 100%); }
.output-meta { font-size: .8rem; color: var(--muted); font-family: var(--font); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 700 1rem var(--font); border-radius: 999px; padding: 14px 26px; text-decoration: none; transition: transform .1s, box-shadow .15s, filter .15s; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 20px rgba(108, 59, 234, .28); }
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--violet); border: 2px solid #d9cdfc; padding: 12px 22px; }
.btn-ghost:hover { background: #f6f1ff; color: var(--violet); }
.btn-small { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
@media (max-width: 480px) { .actions { grid-template-columns: 1fr; } }

.status { min-height: 1.6em; margin: 12px 0 0; font-size: .95rem; font-weight: 700; }
.status.ok { color: var(--ok); }
.status.err { color: #b42318; }
.next-step { font-size: .9rem; color: var(--muted); margin: 4px 0 0; }

/* Pruébalo */
.test { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.test textarea { width: 100%; min-height: 96px; border: 2px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; font: 1rem var(--font); color: var(--ink); resize: vertical; background: #fff; }
.test textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 4px rgba(108,59,234,.15); }
.analysis { margin-top: 10px; font-size: .92rem; }
.analysis ul { margin: 6px 0 0; padding-left: 20px; }
.analysis .pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .85rem; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.privacy-note { font-size: .8rem; color: var(--muted); margin-top: 8px; }

.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.trust-strip span::before { content: "✓ "; color: var(--violet); font-weight: 700; }

/* ---------- Secciones ---------- */
section.block { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.answer { font-size: 1.1rem; color: var(--ink); }
.card { border-radius: var(--radius-xl); padding: 32px; }
.pastel-1 { background: linear-gradient(135deg, #fff4e6 0%, #e8f4ff 100%); }
.pastel-2 { background: linear-gradient(135deg, #fcebff 0%, #ede7ff 100%); }
.pastel-3 { background: linear-gradient(135deg, #fff8ec 0%, #ffede3 100%); }
.soft { background: var(--bg-soft); }

/* Comparación espacio normal vs invisible */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.compare > div { background: rgba(255,255,255,.75); border-radius: var(--radius-lg); padding: 18px; }
.compare h3 { font-size: 1rem; margin-bottom: .4em; }
.compare p { font-size: .95rem; margin: 0; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } .card { padding: 22px; } }

/* ---------- Pasos (zigzag) ---------- */
.steps { position: relative; display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; position: relative; }
.step:nth-child(even) .step-mock { order: 2; }
.step-mock { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 18px; border: 1px solid var(--line); position: relative; }
.mock-top { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-top i { width: 9px; height: 9px; border-radius: 50%; background: #e3def3; display: block; }
.mock-line { height: 10px; border-radius: 6px; background: #eeebf7; margin: 8px 0; }
.mock-line.w60 { width: 60%; } .mock-line.w80 { width: 80%; } .mock-line.w40 { width: 40%; }
.mock-btn { display: inline-block; margin-top: 10px; background: var(--grad-btn); color: #fff; font-weight: 700; font-size: .85rem; padding: 8px 16px; border-radius: 999px; }
.mock-field { border: 2px solid #ddd5f6; border-radius: 12px; padding: 10px 12px; font-size: .9rem; color: var(--ink); background: #fbfaff; }
.mock-field .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--violet); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.mock-field .ghost { background: rgba(108,59,234,.14); border-radius: 3px; padding: 0 .5em; }
@keyframes blink { 50% { opacity: 0; } }
.chip-step { position: absolute; top: -14px; left: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--violet); padding: 4px 12px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--tile); display: grid; place-items: center; margin-bottom: 14px; color: var(--navy); }
.icon-tile svg { width: 26px; height: 26px; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tile); color: var(--navy); font-weight: 700; font-size: .85rem; margin-right: 8px; vertical-align: 2px; }
.connector { position: absolute; left: 50%; width: 46%; height: 60px; transform: translateX(-50%); bottom: -46px; pointer-events: none; }
.step:last-child .connector { display: none; }
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-mock { order: 0; }
  .connector { display: none; }
}

/* ---------- Qué carácter usar ---------- */
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.use { background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.use h3 { font-size: 1.05rem; }
.use p { font-size: .95rem; }
.use .try { font-size: .9rem; color: var(--ink); }

/* ---------- Plataformas ---------- */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.platform { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: var(--radius-lg); padding: 18px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
a.platform:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.platform strong { font-size: 1.02rem; }
.platform span { font-size: .85rem; color: var(--muted); }
.platform.soon { background: transparent; box-shadow: none; border-style: dashed; }
.platform .go { color: var(--violet); font-weight: 700; font-size: .85rem; margin-top: 6px; }

/* ---------- Problemas ---------- */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.dodont > div { border-radius: var(--radius-lg); padding: 22px; }
.do { background: var(--ok-bg); }
.dont { background: #fdeceb; }
.dodont h3 { font-size: 1.05rem; }
.dodont ul { margin: 0; padding-left: 20px; font-size: .95rem; }
.dodont li { margin-bottom: 6px; }
@media (max-width: 640px) { .dodont { grid-template-columns: 1fr; } }

/* ---------- Tabla Unicode ---------- */
.table-wrap { position: relative; overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 640px; }
caption { text-align: left; padding: 14px 16px; font-size: .85rem; color: var(--muted); caption-side: bottom; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: var(--bg-soft); color: var(--ink); font-size: .85rem; }
tbody tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.yes { color: var(--warn); font-weight: 700; }
.no { color: var(--ok); font-weight: 700; }

/* ---------- Pendientes (visible solo hasta completar) ---------- */
.todo { background: #fff8c5; border: 2px dashed #d4a72c; color: #5c4400; border-radius: 10px; padding: 2px 8px; font-weight: 700; }
.todo-box { background: #fff8c5; border: 2px dashed #d4a72c; color: #5c4400; border-radius: var(--radius-lg); padding: 18px 20px; font-size: .92rem; }

/* ---------- Feedback ---------- */
.feedback { text-align: center; }
.feedback .choices { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.feedback select, .feedback textarea, .feedback input[type=text] { font: 1rem var(--font); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); background: #fff; }
.feedback textarea { width: 100%; min-height: 90px; }
.fb-more { max-width: 520px; margin: 0 auto; text-align: left; display: grid; gap: 10px; }
.fb-more label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- FAQ ---------- */

/* ---------- Autor ---------- */
.author { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-soft); border-radius: var(--radius-lg); padding: 22px; }
.avatar { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }
.author p { margin: 0 0 .4em; font-size: .95rem; }
.author .meta { font-size: .85rem; color: var(--muted); }


[hidden] { display: none !important; }
.chip label .badge { color: #fff; font-size: .7rem; }


/* ---------- Páginas internas ---------- */
.page-hero { background: linear-gradient(180deg, var(--hero) 0%, #fbf9ff 70%, #fff 100%); padding: 36px 0 44px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.page-hero .lead { max-width: 700px; margin: 0 auto 24px; font-size: 1.08rem; }

.prose { padding-top: 32px; padding-bottom: 48px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose .table-wrap { margin: 18px 0 26px; }
.callout { border-radius: var(--radius-lg); padding: 20px 22px; margin: 20px 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-answer { background: linear-gradient(135deg, #fcebff 0%, #ede7ff 100%); color: var(--ink); }
.callout-info { background: var(--bg-soft); border: 1px solid var(--line); }
.callout-warn { background: var(--warn-bg); color: #5c3a00; }
.toc { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 18px 22px; margin: 0 0 28px; }
.toc strong { color: var(--ink); }
.toc ol { margin: 8px 0 0; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: var(--shadow-sm); }
.related a span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.related a:hover { border-color: #cdbffa; color: var(--violet); }
.legal h2 { font-size: 1.3rem; }
.legal { font-size: 1rem; }
.disclaimer { font-size: .85rem; color: var(--muted); }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px 16px 62px; box-shadow: var(--shadow-sm); margin: 0; }
.steps-list li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-btn); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.steps-list strong { color: var(--ink); }

/* Constructor de nombres (Free Fire) */
.nb-input { width: 100%; border: 2px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; font: 1.05rem var(--font); color: var(--ink); background: #fff; }
.nb-input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 4px rgba(108,59,234,.15); }
.nb-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 14px 0 18px; border: 0; padding: 0; }
.nb-modes .chip label { padding: 10px 12px; font-size: .9rem; color: var(--ink); }
.nb-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 56px; background: var(--bg-soft); border: 2px dashed #d7cff3; border-radius: var(--radius-md); padding: 12px 14px; font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; word-break: break-all; }
.inv-mark { display: inline-block; width: .9em; height: 1.1em; border: 1.5px dashed var(--violet); background: rgba(108,59,234,.12); border-radius: 4px; vertical-align: -3px; margin: 0 1px; }
.nb-meta { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.example { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.example span { font-weight: 700; color: var(--ink); }
.tool h2 { font-size: 1.15rem; margin-bottom: .8em; }

/* ---------- Cabecera (logo + menú) ---------- */
.ti-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.ti-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 14px 20px; }
.ti-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.ti-logo-icon { width: 34px; height: 34px; display: block; }
.ti-brand { color: var(--ink); font-weight: 700; font-size: clamp(1rem, 4.2vw, 1.15rem); white-space: nowrap; }
.ti-menu-btn { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 0; border-radius: 12px; }
.ti-menu-btn:hover { background: var(--hero); }
.ti-menu-btn span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.ti-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.ti-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ti-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.ti-menu { position: fixed; inset: 0; z-index: 999; background: #fff; padding-top: 73px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.ti-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.ti-menu > div { max-width: 1080px; margin: 0 auto; }
.ti-menu-item { border-bottom: 1px solid rgba(0,0,0,.08); }
.ti-menu-link { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; color: var(--ink); font: 400 1.2rem var(--font); padding: 22px; text-align: left; text-decoration: none; cursor: pointer; }
.ti-menu-link:hover, .ti-menu-link[aria-current="page"] { color: var(--violet); }
.ti-menu-chevron { width: 16px; height: 16px; color: var(--violet); transition: transform .2s; }
.ti-menu-toggle[aria-expanded="true"] .ti-menu-chevron { transform: rotate(180deg); }
.ti-submenu { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease, visibility 0s .25s; }
.ti-submenu.open { max-height: 480px; visibility: visible; transition: max-height .25s ease; }
.ti-submenu a { display: block; padding: 15px 34px; color: var(--text); text-decoration: none; font-size: 1.02rem; border-top: 1px solid rgba(0,0,0,.06); }
.ti-submenu a:hover, .ti-submenu a[aria-current="page"] { color: var(--violet); }
@media (min-width: 900px) { .ti-menu-item { max-width: 1040px; margin: 0 auto; } }

/* ---------- Pie de página ---------- */
.ti-footer { background: linear-gradient(170deg, #1d1840 0%, #2a1d5c 60%, #3a1f6e 100%); color: #f5f3ff; padding: 44px 24px 24px; margin-top: 40px; --dim: rgba(255,255,255,.82); }
.ti-footer-inner { max-width: 1040px; margin: 0 auto; }
.ti-footer-brand-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px; }
.ti-footer-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ti-footer-logo span { color: #fff; font-weight: 700; font-size: 1.15rem; }
.ti-footer-contact { color: var(--dim); font-size: .9rem; text-decoration: none; }
.ti-footer-contact:hover { color: #fff; text-decoration: underline; }
.ti-footer-copy-top { font-size: .84rem; color: var(--dim); margin: 2px 0 0; }
.ti-footer-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.ti-footer-social { list-style: none; display: flex; gap: 10px; margin: 0 0 32px; padding: 0; }
.ti-footer-social a { width: 40px; height: 40px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--dim); transition: border-color .16s, color .16s, background .16s; }
.ti-footer-social a:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.ti-footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.ti-footer-columns { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-bottom: 28px; }
.ti-footer-col { min-width: 150px; }
.ti-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.ti-footer-col a { color: var(--dim); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.ti-footer-col a:hover { color: #fff; text-decoration: underline; }
.ti-footer-divider { height: 1px; background: rgba(255,255,255,.18); border: 0; margin: 0 0 18px; }
.ti-footer-bottom { font-size: .8rem; color: var(--dim); line-height: 1.6; margin: 0; }
.ti-footer-bottom a { color: var(--dim); }
.ti-footer-bottom a:hover { color: #fff; }
.ti-footer a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 600px) { .ti-footer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; } .ti-footer-col { min-width: 0; } }
.ti-footer-col li { line-height: 1.4; }

/* ---------- Ruta de navegación (estilo LetrasBonita) ---------- */
.ti-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .85rem; font-weight: 700; color: var(--ink); text-align: left; justify-content: flex-start; }
.ti-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.ti-breadcrumb li + li::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 0 0; }
.ti-breadcrumb a { display: flex; align-items: center; gap: 6px; color: var(--violet); text-decoration: none; }
.ti-breadcrumb a:hover { color: var(--magenta); text-decoration: underline; }
.ti-breadcrumb [aria-current] { color: var(--ink); }
.ti-breadcrumb-icon { width: 19px; height: 19px; flex-shrink: 0; }
.hero { padding-top: 24px; }
.page-hero { padding-top: 24px; }
.page-hero { padding-bottom: 20px; }
.page-hero .lead { margin-bottom: 8px; }

/* ---------- Acordeón (FAQ y problemas) ---------- */
.faq, .trouble { display: grid; gap: 12px; }
.faq details, .trouble details { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, background .2s; overflow: hidden; }
.faq details:hover, .trouble details:hover { border-color: #d6cbfb; }
.faq details[open], .trouble details[open] { border-color: #b9a6f7; background: linear-gradient(180deg, #faf7ff 0%, #fff 70%); box-shadow: 0 8px 24px rgba(108, 59, 234, .12); }
.faq summary, .trouble summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.4; }
.faq summary::-webkit-details-marker, .trouble summary::-webkit-details-marker { display: none; }
.faq summary::after, .trouble summary::after { content: ""; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c3bea' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s ease, background-color .2s; }
.faq details[open] > summary::after, .trouble details[open] > summary::after { transform: rotate(45deg); background-color: #e6dcff; }
.faq summary:hover, .trouble summary:hover { color: var(--violet); }
.faq summary:focus-visible, .trouble summary:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; border-radius: 18px; }
.faq details > :not(summary), .trouble details > :not(summary) { margin: 0; padding: 0 20px 18px; font-size: .97rem; }
.faq details[open] > summary, .trouble details[open] > summary { color: var(--violet); }
/* animación suave al abrir (navegadores compatibles) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content, .trouble details::details-content { height: 0; overflow: hidden; transition: height .28s ease, content-visibility .28s allow-discrete; }
  .faq details[open]::details-content, .trouble details[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .faq details::details-content, .trouble details::details-content { transition: none; } }
.nb-meta.over { color: #b42318; font-weight: 700; }
.ig-text { min-height: 150px; font-size: 1rem; line-height: 1.5; resize: vertical; }
.nb-preview.ig { display: block; font-size: 1rem; font-weight: 400; line-height: 1.6; min-height: 120px; white-space: normal; }
.opts { display: grid; gap: 8px; margin: 14px 0; }
.opts label { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink); cursor: pointer; }
.opts input { margin-top: 5px; accent-color: var(--violet); width: 17px; height: 17px; flex: 0 0 auto; }
.prose pre { background: #15142a; color: #ece9ff; border-radius: var(--radius-md); padding: 16px 18px; overflow-x: auto; font-size: .88rem; line-height: 1.6; margin: 0 0 1.2em; }
.prose pre code { background: none; color: inherit; padding: 0; }
.copy3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.copy3 .btn { padding: 12px 8px; min-width: 0; }
.ficha table, .prose .table-wrap table.ficha { min-width: 0; }
.copy3 .btn { white-space: nowrap; font-size: .92rem; padding: 12px 6px; }
.author-photo { flex: 0 0 56px; width: 56px; height: 56px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; background: var(--tile); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d9cdfc; }
.author-photo-lg { flex-basis: 120px; width: 120px; height: 120px; }
@media (max-width: 480px) { .author-photo-lg { flex-basis: 84px; width: 84px; height: 84px; } }

/* Ilustraciones de contenido */
.ti-figure { margin: 26px 0; }
.ti-figure img { width: 100%; height: auto; aspect-ratio: 1200 / 675; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--hero); }
.ti-figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; line-height: 1.5; }
.ti-figure.ti-phone { max-width: 320px; margin-left: auto; margin-right: auto; }
.ti-figure.ti-phone img { aspect-ratio: 720 / 1280; border-radius: 26px; border: 6px solid #1a1a2e; box-shadow: 0 16px 40px rgba(26, 26, 46, .22); }
