/* ==========================================================================
   Mauro Code — hoja de estilos principal
   Tokens → base → layout → componentes → páginas → utilidades
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #fbfbfd;
  --bg-soft: #f2f3f8;
  --surface: #ffffff;
  --text: #14151a;
  --text-soft: #4a4d5a;
  --muted: #6b6f7d;
  --border: #e3e5ec;
  --primary: #5b4cf0;
  --primary-strong: #4536d6;
  --primary-soft: #ecebff;
  --accent: #0fb5a6;
  --accent-soft: #dcf7f3;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --on-primary: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 21, 26, .06);
  --shadow: 0 8px 30px rgba(20, 21, 26, .08);
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1160px;
  --reading: 720px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e13;
    --bg-soft: #14161d;
    --surface: #171922;
    --text: #eceef5;
    --text-soft: #b9bdcc;
    --muted: #8e93a6;
    --border: #262938;
    --primary: #8d82ff;
    --primary-strong: #a79fff;
    --primary-soft: #221f45;
    --accent: #2dd4bf;
    --accent-soft: #0f2f2c;
    --warn: #fbbf24;
    --warn-soft: #2b2210;
    --on-primary: #0d0e13;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0e13;
  --bg-soft: #14161d;
  --surface: #171922;
  --text: #eceef5;
  --text-soft: #b9bdcc;
  --muted: #8e93a6;
  --border: #262938;
  --primary: #8d82ff;
  --primary-strong: #a79fff;
  --primary-soft: #221f45;
  --accent: #2dd4bf;
  --accent-soft: #0f2f2c;
  --warn: #fbbf24;
  --warn-soft: #2b2210;
  --on-primary: #0d0e13;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary);
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-primary); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--text-soft); font-size: 1.125rem; }

.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: .8rem;
}

.grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-family: var(--mono); font-size: .9rem; font-weight: 700;
}

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: .5rem .8rem; border-radius: var(--radius-sm);
  color: var(--text-soft); text-decoration: none; font-weight: 550; font-size: .97rem;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: var(--bg-soft); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.lang-switch {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none;
  font-family: var(--mono); font-size: .85rem; font-weight: 700; letter-spacing: .04em;
}
.lang-switch:hover { border-color: var(--primary); color: var(--text); }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .nav__list {
    position: absolute; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 16px 1rem;
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__link { padding: .85rem .5rem; font-size: 1.05rem; }
  .nav .btn--sm { display: none; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-strong); color: var(--on-primary); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--text); }
.btn--sm { padding: .55rem 1rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -50% -15%; width: 620px; height: 620px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero__lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-soft); max-width: 600px; margin-bottom: 2rem; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--accent); }

.code-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-family: var(--mono); font-size: .88rem;
}
.code-card__bar { display: flex; gap: 6px; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.code-card__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.code-card pre { margin: 0; padding: 1.25rem; overflow-x: auto; line-height: 1.75; color: var(--text-soft); }
.code-card .k { color: var(--primary); }
.code-card .s { color: var(--accent); }
.code-card .c { color: var(--muted); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.metric { padding: 1rem; text-align: center; }
.metric + .metric { border-left: 1px solid var(--border); }
.metric strong { display: block; font-family: var(--font); font-size: 1.4rem; color: var(--text); }
.metric span { font-size: .75rem; color: var(--muted); }

/* ---------- Tarjetas ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-soft); margin: 0; font-size: 1rem; }
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.1rem;
  background: var(--primary-soft); color: var(--primary);
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--accent { background: var(--accent-soft); color: var(--accent); }

/* Pasos */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { counter-increment: step; }
.step::before {
  content: "0" counter(step); display: block; font-family: var(--mono); font-weight: 700;
  font-size: .9rem; color: var(--primary); margin-bottom: .6rem;
}

/* Bloque hosting / destacado */
.feature {
  display: grid; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .feature { grid-template-columns: 1.2fr .8fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; color: var(--text-soft); }
.checklist svg { flex: none; width: 20px; height: 20px; margin-top: .2rem; color: var(--accent); }
.price-tag { background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.price-tag strong { display: block; font-size: 1.5rem; margin-bottom: .3rem; }
.price-tag p { color: var(--muted); font-size: .95rem; }
.disclosure { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Blog cards ---------- */
.post-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.post-card__cover { aspect-ratio: 1200 / 630; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.4rem 1.5rem; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.post-card :is(h2, h3) { font-size: 1.18rem; margin-bottom: .55rem; }
.post-card :is(h2, h3) a { color: var(--text); text-decoration: none; }
.post-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.post-card[hidden] { display: none; }
.post-card { position: relative; }
.post-card p { color: var(--text-soft); font-size: .98rem; margin-bottom: 1rem; }
.post-card__more { margin-top: auto; font-weight: 650; font-size: .95rem; color: var(--primary); }

.tag {
  display: inline-block; font-size: .75rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); text-decoration: none;
}
.tag--accent { background: var(--accent-soft); color: var(--accent); }

/* Filtros del blog */
.blog-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-size: .92rem; font-weight: 600; padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); cursor: pointer;
}
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { width: 100%; padding: .7rem 1rem .7rem 2.6rem; }
.search svg { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.empty-state { display: none; text-align: center; color: var(--muted); padding: 2rem; }
.empty-state.is-visible { display: block; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.25rem; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 650; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; line-height: 1; color: var(--primary); transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding-bottom: 1.1rem; color: var(--text-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; border-radius: calc(var(--radius) + 8px); padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 50%, var(--accent)));
  color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 600px; margin-inline: auto; margin-bottom: 1.8rem; font-size: 1.1rem; }
.cta .btn-row { justify-content: center; }
.cta .btn--primary { background: #fff; color: #1e1a4d; }
.cta .btn--primary:hover { background: #f1f0ff; color: #1e1a4d; }
.cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem .9rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
textarea { min-height: 150px; resize: vertical; }
.field__hint { font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 1rem; font-weight: 600; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--text-soft); margin-bottom: 1.25rem; }
.consent input { width: auto; margin-top: .3rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--border); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

/* ---------- Página de cabecera simple ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero p { font-size: 1.15rem; color: var(--text-soft); max-width: 660px; }

/* ---------- Artículo ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--primary), var(--accent)); }

.article-header { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.article-header__inner { max-width: 820px; }
.article-header h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; color: var(--muted); font-size: .93rem; margin-top: 1.25rem; }
.article-meta .dot::before { content: "·"; margin-right: 1.1rem; }
.article-lede { font-size: 1.2rem; color: var(--text-soft); }
.article-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 2.5rem; }
.article-cover img { width: 100%; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 4rem; }
@media (min-width: 1040px) { .article-layout { grid-template-columns: minmax(0, var(--reading)) 280px; justify-content: space-between; } }

.toc { align-self: start; position: sticky; top: 92px; font-size: .93rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; background: var(--surface); }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); color: var(--muted); margin-bottom: .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.toc a { display: block; padding: .35rem .6rem; border-left: 2px solid var(--border); color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.is-active { border-left-color: var(--primary); color: var(--primary); font-weight: 600; }
@media (max-width: 1039px) { .toc { position: static; order: -1; } }

.prose { font-size: 1.1rem; line-height: 1.78; min-width: 0; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin-top: 2.6rem; scroll-margin-top: 92px; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--text); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--border); padding: .1em .35em; border-radius: 6px; }
.prose pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; overflow-x: auto; font-size: .9rem; line-height: 1.6; margin: 0 0 1.4em; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { margin: 0 0 1.4em; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--primary); color: var(--text-soft); font-style: italic; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }

.callout { display: flex; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); margin: 0 0 1.5em; font-size: 1.02rem; }
.callout p:last-child { margin: 0; }
.callout svg { flex: none; width: 22px; height: 22px; color: var(--primary); margin-top: .2rem; }
.callout--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.callout--warn svg { color: var(--warn); }
.callout--tip { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.callout--tip svg { color: var(--accent); }

.key-points { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2rem; }
.key-points h2 { font-size: 1.05rem !important; margin: 0 0 .7rem !important; }
.key-points ul { margin: 0; }

.author-box { display: flex; gap: 1rem; align-items: center; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-top: 2.5rem; }
.author-box .brand__mark { width: 56px; height: 56px; border-radius: 14px; font-size: 1.1rem; flex: none; }
.author-box p { margin: 0; color: var(--text-soft); font-size: .97rem; }
.author-box strong { display: block; color: var(--text); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; }
.share span { font-weight: 600; margin-right: .3rem; }
.share a, .share button { font: inherit; font-size: .9rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--primary); color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 3.5rem 2rem; background: var(--bg-soft); font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer p { color: var(--text-soft); }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

/* ---------- Animación al aparecer ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-family: var(--mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
