/* Conexión Digital — hoja de estilos única (sin frameworks, sin build) */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght.woff2") format("woff2") tech("variations"),
       url("../fonts/manrope-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0B0D12;
  --surface: #12151C;
  --surface-2: #181C25;
  --border: #232833;
  --border-strong: #2F3642;
  --text: #F3F4F6;
  --text-2: #9AA1AD;
  --text-3: #6B7280;
  --accent: #2F6BFF;
  --accent-hover: #4D82FF;
  --accent-text: #7AA2FF;
  --accent-soft: rgba(47, 107, 255, 0.12);
  --error: #F28B82;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px;
  z-index: 100; padding: 10px 14px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--check { color: var(--accent-text); }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.section { padding: clamp(72px, 9vw, 120px) 0; scroll-margin-top: var(--header-h); }
.section--band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--band + .section--band { border-top: 0; }
.section--narrow .container { max-width: 860px; }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.75rem); margin: 10px 0 14px; }
.section__lead { color: var(--text-2); font-size: 1.0625rem; margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1;
  color: var(--text); background: transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--text-3); background: var(--surface); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--text-2); font-size: 15px; font-weight: 500; padding: 6px 0; transition: color 0.15s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); text-decoration: none; }
.site-nav__cta { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle__bar { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.site-header.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 128px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero__title {
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  margin: 16px 0 20px; max-width: 17ch;
}
.hero__lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--text-2); max-width: 54ch; margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { list-style: none; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--text-2); font-size: 14px; }
.proof li { display: flex; align-items: center; gap: 8px; }

.hero__visual { position: relative; }

/* Mockup de navegador */
.window { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--border-strong); }
.window__url { margin: 0 auto; padding: 3px 12px; border-radius: 5px; background: var(--surface-2); font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.window__body { padding: 18px; display: grid; gap: 14px; }
.mock-nav { display: flex; align-items: center; gap: 12px; }
.mock-nav__brand { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); }
.mock-nav__links { display: flex; gap: 8px; }
.mock-nav__links i { width: 34px; height: 6px; border-radius: 3px; background: var(--border-strong); }
.mock-nav__btn { margin-left: auto; width: 54px; height: 18px; border-radius: 4px; background: var(--accent-soft); border: 1px solid rgba(47, 107, 255, 0.35); }
.mock-hero { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); display: grid; gap: 10px; justify-items: start; }
.mock-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-soft); padding: 3px 8px; border-radius: 4px;
}
.mock-title { margin: 0; font-weight: 800; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
.mock-btn { display: block; width: 92px; height: 22px; border-radius: 5px; background: var(--accent); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: grid; gap: 7px; }
.sk { display: block; height: 6px; border-radius: 3px; background: var(--border-strong); }
.sk--img { height: 44px; border-radius: 5px; background: var(--surface-2); }
.sk--w40 { width: 40%; } .sk--w50 { width: 50%; } .sk--w60 { width: 60%; } .sk--w70 { width: 70%; } .sk--w80 { width: 80%; }
.sk--active { background: var(--accent); }

.score {
  position: absolute; left: -18px; bottom: -22px;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px;
}
.score__ring {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent-text); font-weight: 800; font-size: 15px;
}
.score__text { display: grid; gap: 2px; }
.score__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.score__value { font-size: 14px; font-weight: 600; }

/* ---------- Franja de stack ---------- */
.stack { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 30px 0; }
.stack__label { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.stack__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }

/* ---------- Tarjetas y servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.service { display: flex; flex-direction: column; gap: 12px; transition: border-color 0.15s; }
.service:hover { border-color: var(--border-strong); }
.service__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 6px; }
.service__icon .icon { width: 20px; height: 20px; }
.service__title { font-size: 1.2rem; }
.service__text { margin: 0; color: var(--text-2); }
.service__link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.service__link .icon { width: 16px; height: 16px; transition: transform 0.15s; }
.service__link:hover .icon { transform: translateX(3px); }

/* ---------- Nosotros ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; }
.why__title { font-size: 1.15rem; margin: 6px 0 8px; }
.why__text { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- Layout dividido ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { align-items: start; }
.split__copy .section__lead { margin-bottom: 24px; }
.checklist { list-style: none; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 10px; }

/* Mockup de panel administrativo */
.dash { display: grid; grid-template-columns: 120px 1fr; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; font-size: 13px; }
.dash__side { border-right: 1px solid var(--border); padding: 16px 14px; display: grid; gap: 12px; align-content: start; }
.dash__logo { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); margin-bottom: 6px; }
.dash__main { padding: 16px; display: grid; gap: 14px; min-width: 0; }
.dash__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dash__title { font-weight: 700; color: var(--text); }
.dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.stat__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat__value { font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -0.01em; }
.stat__delta { font-family: var(--font-mono); font-size: 11px; color: var(--accent-text); }
.stat__delta--muted { color: var(--text-3); }
.dash__table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dash__table th { text-align: left; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); font-weight: 500; padding: 0 8px 8px 0; border-bottom: 1px solid var(--border); }
.dash__table td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.dash__table tr:last-child td { border-bottom: 0; }
.dash__table td:first-child { color: var(--text); font-weight: 600; }
.dash__table .num { text-align: right; font-family: var(--font-mono); padding-right: 0; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border-strong); color: var(--text-2); }
.pill--ok { border-color: rgba(47, 107, 255, 0.5); color: var(--accent-text); background: var(--accent-soft); }

/* ---------- Proceso ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; }
.step__num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--accent-text); }
.step__title { font-size: 1.15rem; margin: 14px 0 8px; }
.step__text { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 20px; transition: border-color 0.15s; }
.faq__item[open] { border-color: var(--border-strong); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.05rem; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron { color: var(--text-2); transition: transform 0.2s; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__item p { margin: 0; padding: 14px 0 18px; border-top: 1px solid var(--border); color: var(--text-2); }

/* ---------- Contacto ---------- */
.contact-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin-top: 12px; color: var(--text);
  transition: border-color 0.15s;
}
.contact-card:hover { border-color: var(--accent); text-decoration: none; }
.contact-card__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.contact-card__icon .icon { width: 20px; height: 20px; }
.contact-card__body { display: grid; gap: 1px; min-width: 0; }
.contact-card__label { font-size: 12px; color: var(--text-2); }
.contact-card__value { font-weight: 600; overflow-wrap: anywhere; }
.contact-meta { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--text-3); font-size: 14px; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile iframe { display: block; }
.form__note { margin: 0; font-size: 13px; color: var(--text-3); text-align: center; }
.form__status { margin: 0; min-height: 1.4em; font-size: 14px; text-align: center; }
.form__status.is-ok { color: var(--accent-text); }
.form__status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; color: var(--text-2); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__brand p { max-width: 34ch; margin: 14px 0 0; }
.site-footer__address { margin-top: 10px; color: var(--text-3); font-size: 13px; }
.site-footer__address a { color: var(--text-2); }
.site-footer__col { display: grid; gap: 8px; align-content: start; }
.site-footer__col a { color: var(--text-2); }
.site-footer__col a:hover { color: var(--text); }
.site-footer__title { margin: 0 0 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.site-footer__bottom p { margin: 0; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.15s;
}
.wa-float:hover { background: var(--accent-hover); }
.wa-float .icon { width: 24px; height: 24px; }

/* ---------- Blog: listado ---------- */
.page-head { padding-top: clamp(40px, 6vw, 72px); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section__head--row > div { max-width: 680px; }
.section__head--row .btn { flex: none; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb span[aria-hidden] { color: var(--border-strong); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: border-color 0.15s; }
.section--band .post-card { background: var(--bg); }
.post-card:hover { border-color: var(--border-strong); }
.post-card__title { font-size: 1.2rem; line-height: 1.25; margin: 2px 0 0; }
.post-card__title a { color: var(--text); }
.post-card__excerpt { margin: 0; color: var(--text-2); font-size: 15px; }
.post-card__meta { margin: auto 0 0; padding-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* ---------- Blog: artículo y páginas de texto ---------- */
.post { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); }
.post__wrap { max-width: 780px; }
.post__header { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.post__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 12px 0 16px; }
.post__lead { font-size: 1.15rem; color: var(--text-2); margin: 0; }
.prose { font-size: 1.0625rem; line-height: 1.75; color: #C9CDD4; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); margin: 44px 0 14px; color: var(--text); }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--text); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--accent-text); font-weight: 600; }
.prose strong { color: var(--text); font-weight: 700; }
.prose em { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(122, 162, 255, 0.5); }
.prose a:hover { text-decoration-color: var(--accent-text); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.prose td:last-child { white-space: nowrap; color: var(--text); font-weight: 600; }
.callout { margin: 28px 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 0 10px 10px 0; }
.callout p { margin: 0; color: var(--text); }
.post-cta { margin-top: 48px; display: grid; gap: 10px; justify-items: start; }
.post-cta__title { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); margin: 4px 0 0; }
.post-cta__text { margin: 0 0 10px; color: var(--text-2); }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.related__list { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.related__list a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-weight: 600; font-size: 15px; transition: border-color 0.15s; }
.related__list a:hover { border-color: var(--border-strong); text-decoration: none; }
.related__list .icon { color: var(--accent-text); }
.site-footer__legal a { color: var(--text-3); }
.site-footer__legal a:hover { color: var(--text); }

/* ---------- Página 404 ---------- */
.error-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.error-page__code { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em; color: var(--accent-text); margin: 0 0 12px; }
.error-page__title { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.75rem); margin: 0 0 14px; }
.error-page__text { color: var(--text-2); max-width: 44ch; margin: 0 auto 28px; }
.error-page__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .site-header.is-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 10px var(--gutter) 22px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .site-header.is-open .site-nav a { font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-header.is-open .site-nav a.site-nav__cta { display: inline-flex; margin-top: 14px; padding: 0 22px; border-bottom: 0; font-size: 15px; color: #fff; }
  .nav-toggle { display: flex; }
  .site-header__actions { margin-left: auto; }

  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 560px; }
  .score { position: static; margin-top: 12px; width: max-content; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .prose table { font-size: 14px; }
  .prose td:last-child { white-space: normal; }
  .post-cta__actions .btn { flex: 1 1 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__stats { gap: 8px; }
  .stat { padding: 8px 10px; }
  .stat__value { font-size: 14px; }
  .dash__table th:nth-child(2), .dash__table td:nth-child(2) { display: none; }
  .mock-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-grid .mock-card:nth-child(3) { display: none; }
}

@media (max-width: 480px) {
  .site-header__cta { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; }
}

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