/* ==========================================================
   MC Asesores y Consultores - Hoja de estilos
   Mobile-first | CSS3 (variables, grid, flex)
   ========================================================== */

:root {
  --navy: #0b2a4a;
  --navy-dark: #071d35;
  --accent: #1e88a8;
  --accent-dark: #166d87;
  --gold: #e0a82e;
  --text: #25313f;
  --muted: #5f6b7a;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --border: #dde4ec;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(11, 42, 74, .10);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', 'Inter', system-ui, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; margin-top: 40px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background .2s, transform .2s, color .2s, border-color .2s;
  text-align: center;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--small { padding: 9px 20px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--outline { background: transparent; border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-dark); color: #cfd9e5; font-size: .85rem; }
.topbar a { color: #cfd9e5; }
.topbar a:hover { color: #fff; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 8px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar__social { display: none; gap: 10px; }
.topbar__social a {
  display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: .7rem; font-weight: 700;
}

/* ---------- Header / Nav ---------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 10px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 44px;
  max-width: 250px;
}

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--border); box-shadow: 0 12px 24px rgba(0,0,0,.08);
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.nav.open { max-height: 420px; }
.nav ul { padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.nav a { display: block; padding: 12px 8px; color: var(--navy); font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a.btn { color: #fff; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 80px 0 70px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg span {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity .8s ease-in-out;
}
.hero__bg span.is-active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg, rgba(7,29,53,.96) 0%, rgba(11,42,74,.90) 55%, rgba(30,136,168,.75) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.5vw, 3.4rem); max-width: 18ch; font-weight: 800; }
.hero__lead { font-size: 1.1rem; max-width: 60ch; color: #dbe6f1; margin-bottom: 2em; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow--dark { color: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__or { color: #b9c8d9; }
.hero__stats { display: grid; gap: 14px; margin-top: 56px; }
.hero__stats li {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 16px 20px;
}
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: #fff; }
.hero__stats span { color: #c9d7e6; font-size: .92rem; }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section__head h2, .about__text h2, .contact__text h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section__head p { color: var(--muted); }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: #cdd9e6; }

/* Nosotros */
.about { display: grid; gap: 40px; align-items: center; }
.about__panel {
  background:
    linear-gradient(160deg, rgba(7, 29, 53, .93), rgba(30, 136, 168, .78)),
    url("../assets/img/blog/mapa-tranquilidad.jpg") center / cover no-repeat;
  border-radius: var(--radius); padding: 36px; color: #fff; box-shadow: var(--shadow);
}
.checklist li { position: relative; padding: 14px 0 14px 38px; border-bottom: 1px solid rgba(255,255,255,.18); font-weight: 500; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}

/* Tarjetas de servicios */
.cards { display: grid; gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* SST */
.sst {
  background:
    linear-gradient(135deg, rgba(7, 29, 53, .93), rgba(11, 42, 74, .86)),
    url("../assets/img/bg/sst.jpg") center / cover no-repeat;
}
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pills li {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-weight: 500;
}

/* Clientes */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: center; }
.clients li {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; height: 110px; display: grid; place-items: center;
}
.clients img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: filter .25s, opacity .25s; }
.clients li:hover img { filter: none; opacity: 1; }

/* Blog */
.posts { display: grid; gap: 24px; }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post time { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.post h3 { font-size: 1.05rem; }
.post h3 a { color: var(--navy); }
.post h3 a:hover { color: var(--accent); }
.post p { color: var(--muted); font-size: .94rem; flex: 1; }
.more { font-weight: 600; font-size: .92rem; }

/* Contacto */
.contact { background: var(--bg-alt); }
.contact__inner { display: grid; gap: 40px; align-items: start; }
.contact__text p { color: var(--muted); }
.contact__list { display: grid; gap: 8px; margin-top: 18px; font-weight: 500; }
.form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form__row { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .92rem; }
.form input, .form textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,136,168,.18); }
.form .invalid { border-color: #d64545; }
.form__error { color: #d64545; font-size: .82rem; display: block; min-height: 1em; margin-top: 4px; }
.form__status { margin: 14px 0 0; font-weight: 600; text-align: center; }
.form__status.ok { color: #1a8a4a; }
.form__status.err { color: #d64545; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Footer */
.footer { background: var(--navy-dark); color: #b9c8d9; }
.footer__inner { display: grid; gap: 36px; padding-block: 56px; }
.footer__about img {
  display: block;
  width: auto;
  height: auto;
  max-height: 40px;
  max-width: 220px;
  margin-bottom: 16px;
}
.footer__about p { max-width: 52ch; font-size: .94rem; }
.footer h3 { color: #fff; font-size: 1.05rem; }
.footer__links li { margin-bottom: 8px; }
.footer a { color: #b9c8d9; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: .85rem; text-align: center; }
.footer__bottom p { margin: 0; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* Animaciones reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

@media (scripting: none) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Móvil ---------- */
@media (max-width: 639px) {
  .logo img { max-height: 32px; max-width: 180px; }
  .footer__about img { max-height: 34px; max-width: 190px; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .topbar__social { display: flex; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .nav-toggle { display: none; }
  .nav { position: static; max-height: none; overflow: visible; box-shadow: none; border: 0; background: none; }
  .nav ul { flex-direction: row; align-items: center; gap: 6px; padding: 0; }
  .nav a { padding: 10px 14px; }
  .nav a.btn { margin: 0 0 0 10px; }
  .about { grid-template-columns: 1.3fr 1fr; gap: 60px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .posts { grid-template-columns: repeat(4, 1fr); }
  .clients { grid-template-columns: repeat(6, 1fr); }
  .contact__inner { grid-template-columns: 1fr 1fr; gap: 60px; }
  .footer__inner { grid-template-columns: 2fr 1fr; }
  .hero { padding: 110px 0 90px; }
}

/* ==========================================================
   Páginas internas
   ========================================================== */

/* Hero de páginas internas */
.page-hero {
  position: relative;
  color: #fff;
  padding: 90px 0 80px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 29, 53, .93) 0%, rgba(11, 42, 74, .80) 55%, rgba(30, 136, 168, .58) 100%);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; max-width: 20ch; }
.page-hero p { color: #dbe6f1; max-width: 60ch; margin-bottom: 0; font-size: 1.08rem; }
.page-hero--nosotros { background-image: url("../assets/img/bg/nosotros.jpg"); }
.page-hero--servicios { background-image: url("../assets/img/bg/servicios.jpg"); }
.page-hero--blog { background-image: url("../assets/img/bg/blog.jpg"); }
.page-hero--contactanos { background-image: url("../assets/img/bg/contactanos.jpg"); }

/* Nosotros: imagen + texto */
.split { display: grid; gap: 40px; align-items: center; }
.media-stack { position: relative; }
.media-stack__main {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.media-stack__small { display: none; }
.split__text h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.split__text p { color: var(--muted); }
.split__text .btn { margin-top: 8px; }

/* Misión / visión */
.mv-grid { display: grid; gap: 22px; }
.mv-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 4px 18px rgba(11, 42, 74, .05);
}
.mv-card h3 { font-size: 1.25rem; }
.mv-card p { color: var(--muted); margin: 0; }

/* Valores */
.values-grid { display: grid; gap: 18px; }
.value-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: var(--navy); color: var(--gold);
  font-family: var(--font-head); font-weight: 700; margin-bottom: 14px;
}
.value-card h3 { font-size: 1.1rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .94rem; }

/* CTA en línea */
.cta-inline {
  display: grid; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.cta-inline h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-inline p { color: var(--muted); margin: 0; }
.cta-inline .btn { justify-self: start; }

/* Servicios */
.service-grid { display: grid; gap: 22px; }
.service-item {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.service-item__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.service-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-item:hover .service-item__media img { transform: scale(1.04); }
.service-item__body { padding: 24px; }
.service-item h3 { font-size: 1.15rem; }
.service-item p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Banda CTA con fondo */
.cta-band {
  position: relative; color: #fff; padding: 70px 0;
  background-color: var(--navy); background-size: cover; background-position: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7, 29, 53, .93) 0%, rgba(30, 136, 168, .65) 100%);
}
.cta-band__inner { position: relative; z-index: 1; text-align: center; max-width: 760px; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: #dbe6f1; margin-bottom: 24px; }
.cta-band--servicios { background-image: url("../assets/img/bg/servicios-cta.jpg"); }

/* Blog: anclas de artículos */
.post[id] { scroll-margin-top: 100px; }

/* Contacto */
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.contact-card__label {
  display: block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: 8px;
}
.contact-card strong, .contact-card a {
  display: block; color: var(--navy); font-family: var(--font-head);
  font-size: 1.12rem; margin-bottom: 6px; word-break: break-word;
}
.contact-card a:hover { color: var(--accent); }
.contact-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.form__grid { display: grid; gap: 0 18px; }

@media (min-width: 640px) {
  .mv-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .cta-inline { grid-template-columns: 1.6fr auto; }
  .form__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .page-hero { padding: 110px 0 100px; }
  .split { grid-template-columns: 1fr 1fr; gap: 60px; }
  .media-stack__small {
    display: block; position: absolute; right: -24px; bottom: -28px;
    width: 46%; aspect-ratio: 4 / 3; object-fit: cover;
    border: 6px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .values-grid { grid-template-columns: repeat(5, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================
   Artículos, páginas legales y asistente
   ========================================================== */

.anchor { display: block; height: 0; visibility: hidden; }

.form__row--check { margin-bottom: 14px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  font-size: .92rem;
}
.check input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.check a { text-decoration: underline; text-underline-offset: 2px; }
.form__note { color: var(--muted); font-size: .86rem; margin: 0 0 16px; }
.form__note a { text-decoration: underline; text-underline-offset: 2px; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.page-hero .article__lead {
  color: #dbe6f1;
  max-width: 62ch;
  margin: 0;
  font-size: 1.1rem;
}
.article-hero h1 { max-width: 26ch; }
.page-hero--diagnostico { background-image: url("../assets/img/bg/sst.jpg"); }
.page-hero--formulario { background-image: url("../assets/img/bg/servicios.jpg"); }

.article-layout { display: grid; gap: 36px; align-items: start; }
.article__body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 4px 18px rgba(11, 42, 74, .05);
  min-width: 0;
}
.article__body > :first-child { margin-top: 0; }
.article__body h2 {
  margin-top: 1.5em;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}
.article__body h3 {
  margin-top: 1.3em;
  font-size: 1.15rem;
}
.article__body p { color: var(--text); }
.article__body ul,
.article__body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li { margin-bottom: .45em; }
.article__body blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.article__body blockquote p:last-child { margin-bottom: 0; }
.article__body hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
.article__body a { text-decoration: underline; text-underline-offset: 2px; }
.article__body .article__lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.4em;
}
.article__cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article__cta h2 { margin-top: 0; font-size: 1.35rem; }
.article__cta p { color: var(--muted); }
.article__cta .btn { margin-top: 6px; }
.article__back { margin: 26px 0 0; font-weight: 600; }
.article__aside {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.article__aside h2 { font-size: 1.1rem; }
.article__aside li { padding: 10px 0; border-top: 1px solid var(--border); }
.article__aside li:first-child { border-top: 0; }
.article__aside a { color: var(--navy); font-weight: 500; }
.article__aside a:hover { color: var(--accent); }

.article-layout--legal { max-width: 900px; margin-inline: auto; }
.legal { font-size: 1rem; }
.legal h2 { scroll-margin-top: 100px; }
.legal h2:first-of-type { margin-top: 0; }

.assistant-layout { display: grid; gap: 26px; align-items: start; }
.assistant-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 4px 18px rgba(11, 42, 74, .05);
}
.assistant-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.assistant-card > p { color: var(--muted); }
.assistant-card .form { padding: 0; box-shadow: none; background: transparent; }
.chat-log {
  min-height: 170px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  padding: 14px;
  margin: 16px 0;
  font-size: .94rem;
}
.chat-log p { margin: 0 0 8px; }
.chat-log p:last-child { margin-bottom: 0; }
.assistant-wa { margin: 16px 0 0; font-weight: 600; }
.assistant-card--news { background: var(--bg-alt); }

@media (min-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .article-layout--legal { grid-template-columns: minmax(0, 1fr); }
  .article__aside { position: sticky; top: 110px; }
  .assistant-layout { grid-template-columns: 1.15fr .85fr; gap: 36px; }
}
