/* Paleta y tipografía: ver guia-de-marca.md */
:root {
  --navy: #000E35;
  --navy-2: #0B1A47;
  --red: #DC1C2E;
  --red-dark: #B81524;
  --white: #FFFFFF;
  --ink: #1A2233;
  --grey: #5A6270;
  --line: #DDE2EA;
  --soft: #F4F6FA;
  --radius: 14px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--navy); max-width: 760px; }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
p { margin: 0 0 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Etiquetas de sección */
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.kicker--light { color: rgba(255,255,255,.7); }
.kicker--red { color: #FF5A68; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* Cabecera */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Portada */
.hero { background: var(--navy); color: var(--white); overflow: hidden; border-bottom: 4px solid var(--red); }
.hero__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 44px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px;
}
.stats div { padding: 0 16px; border-left: 2px solid var(--red); }
.stats div + div { border-left-color: rgba(255,255,255,.2); }
.stats dt { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.stats dd { margin: 4px 0 0; font-size: .82rem; color: rgba(255,255,255,.7); }
.hero__photo { margin: 0; position: relative; justify-self: end; width: 100%; max-width: 400px; }
.hero__photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; }
.hero__photo figcaption {
  position: absolute; left: 20px; bottom: 20px; background: var(--white); color: var(--navy);
  padding: 12px 18px; border-radius: 10px; display: flex; flex-direction: column; line-height: 1.3;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.hero__photo figcaption span { font-size: .8rem; color: var(--grey); }

/* Lema */
.motto { padding: 64px 0; border-bottom: 1px solid var(--line); }
.motto__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.motto blockquote { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -.02em; }
.motto p { color: var(--grey); font-size: 1.05rem; margin: 0; }

/* Secciones */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2 { color: var(--white); }
.section__lead { color: var(--grey); max-width: 640px; }
.muted-light { color: rgba(255,255,255,.78); }
.note { color: var(--grey); font-size: .85rem; margin-top: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--photo { grid-template-columns: .8fr 1.2fr; }
.photo-card { margin: 0; }
.photo-card img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--navy); box-shadow: 0 12px 30px rgba(0,14,53,.08); }
.card__num { font-size: .8rem; font-weight: 800; color: var(--red); letter-spacing: .1em; margin-bottom: 18px; }
.card p { color: var(--grey); font-size: .95rem; flex: 1; }
.link { font-weight: 700; color: var(--navy); text-decoration: none; }
.link:hover { color: var(--red); }

/* Listas con check */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 9px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}
.checks--light li { color: rgba(255,255,255,.9); }

/* Comprobador de vivienda protegida */
.quiz { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; border-top: 4px solid var(--red); }
.quiz__title { font-weight: 800; color: var(--navy); font-size: 1.25rem; margin: 0; }
.quiz label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.quiz select, .quiz input, .quiz textarea {
  font: inherit; font-weight: 500; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--white); color: var(--ink);
}
.quiz select:focus, .quiz input:focus, .quiz textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.quiz textarea { resize: vertical; min-height: 84px; }
.quiz__note { font-size: .78rem; color: var(--grey); margin: 0; text-align: center; }
.quiz__note a { color: var(--navy); font-weight: 700; }
.quiz.is-sent .quiz__note { font-size: 1rem; font-weight: 700; color: var(--navy); }
.quiz .quiz__consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .82rem; color: var(--grey); }
.quiz .quiz__consent input { margin: 3px 0 0; padding: 0; width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.quiz .quiz__consent a { color: var(--navy); }

/* Aviso de vivienda protegida en inicio */
.vpo-cta { align-self: center; display: grid; gap: 14px; padding: 32px; border: 1px solid rgba(255,255,255,.18); border-top: 4px solid var(--red); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.vpo-cta p { margin: 0; color: rgba(255,255,255,.8); }
.vpo-cta .vpo-cta__title { font-weight: 800; font-size: 1.25rem; color: var(--white); }

/* Formulario de valoración */
#valorar .quiz--valora { margin-top: 28px; box-shadow: 0 10px 30px rgba(0, 14, 53, .08); }
.quiz__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__extras { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.quiz__extras legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.quiz .quiz__extras label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.quiz .quiz__extras input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--navy); flex: none; }
.quiz .quiz__extras .quiz__extras-full { grid-column: 1 / -1; }
@media (max-width: 480px) { .quiz__extras { grid-template-columns: repeat(2, 1fr); } }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps li { border-top: 2px solid var(--line); padding-top: 20px; }
.steps li:first-child { border-top-color: var(--red); }
.steps span { font-weight: 800; color: var(--red); font-size: .85rem; letter-spacing: .1em; }
.steps h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.steps p { color: var(--grey); font-size: .92rem; margin: 0; }

/* Mapa */
.map-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 32px; }
.map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.map-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.map-filter button {
  font: inherit; font-weight: 700; font-size: .88rem; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--navy);
}
.map-filter button.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.map-filter + .map-wrap { margin-top: 16px; }
.ops-side { display: grid; gap: 16px; align-content: start; }
.ops-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ops-stats p { margin: 0; background: var(--white); border-radius: 12px; padding: 16px 18px; color: var(--grey); font-size: .9rem; }
.ops-stats p:first-child { border-left: 3px solid var(--red); }
.ops-stats p:last-child { border-left: 3px solid var(--navy); }
.ops-stats strong { display: block; color: var(--navy); font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.ops-side__title { margin: 8px 0 0; font-weight: 800; color: var(--navy); }
.ops-barrios { list-style: none; margin: 0; padding: 0; background: var(--white); border-radius: 12px; }
.ops-barrios li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--grey); }
.ops-barrios li:last-child { border-bottom: 0; }
.ops-barrios strong { color: var(--navy); }
.ops-side .note { margin-top: 0; }
.map .leaflet-popup-content { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; line-height: 1.5; color: var(--ink); }
.map .leaflet-popup-content strong { color: var(--navy); }
.map .leaflet-popup-content span, .map .leaflet-popup-content small { color: var(--grey); }

/* Opiniones */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 12px; color: var(--grey); font-size: .92rem; margin: 0 0 16px; }
.rating__score { font-size: 2rem; font-weight: 800; color: var(--navy); }
.rating__stars { color: #F5B301; letter-spacing: 2px; font-size: 1.1rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.review--empty { border-style: dashed; color: var(--grey); }
.review__stars { color: #F5B400; letter-spacing: .1em; margin-bottom: 10px; }
.review span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }

/* Guías */
.guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.guide {
  text-decoration: none; padding: 26px 24px; border-radius: var(--radius); background: var(--soft);
  border-bottom: 3px solid transparent; transition: border-color .2s, background .2s;
}
.guide:hover { border-bottom-color: var(--red); background: #ECEFF5; }
.guide span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.guide h3 { margin: 10px 0 0; font-size: 1.05rem; }

/* Llamada final */
.cta { background: var(--red); color: var(--white); padding: 64px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255,255,255,.88); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { border-color: rgba(255,255,255,.6); }

/* Pie */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 48px 0 24px; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer__logo { display: block; height: 120px; width: auto; }
.signature { display: flex; align-items: center; gap: 14px; }
.signature img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.signature strong { display: block; color: var(--white); }
.footer address { font-style: normal; line-height: 1.7; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__legal { display: flex; gap: 18px; }
.footer__note { font-size: .78rem; margin: 20px auto 0; color: rgba(255,255,255,.5); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* Tablet */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,14,53,.08);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .cards, .guides { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* Móvil */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .header__inner { height: 72px; }
  .nav { top: 72px; }
  .brand img { height: 52px; }
  .footer__logo { height: 100px; }
  .hero__inner, .motto__inner, .split, .split--photo, .map-wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero__inner { padding-top: 40px; padding-bottom: 48px; }
  .hero__photo { justify-self: center; max-width: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stats div:nth-child(3) { border-left-color: var(--red); }
  .hero__ctas .btn { width: 100%; }
  .cards, .guides, .reviews, .steps { grid-template-columns: 1fr; }
  .map { height: 340px; }
  .photo-card { max-width: 360px; }
  .cta__actions .btn { flex: 1 1 100%; }
}
.map .map-tiles { filter: grayscale(1) contrast(.9) brightness(1.05); }

/* ---------- Páginas interiores ---------- */
.nav a[aria-current="page"] { color: var(--red); }
.hero--page h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.hero--page .hero__photo { max-width: 360px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }

/* Tabla comparativa */
.table-scroll { overflow-x: auto; margin-top: 36px; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--navy); line-height: 1.3; }
.compare thead small { font-weight: 500; color: var(--grey); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.compare td { color: var(--grey); }
.compare td.yes { color: var(--ink); font-weight: 600; }
.compare td.no { color: #9AA1AD; }
.compare .is-best { background: #FFF4F5; }
.compare thead .is-best { background: var(--red); color: var(--white); border-bottom-color: var(--red); border-radius: 10px 10px 0 0; }
.compare thead .is-best small { color: rgba(255,255,255,.85); }
.compare td.is-best { color: var(--navy); font-weight: 700; }

/* Dosier de ejemplo */
.dossier-sample { margin: 0; }
.dossier-sample img { border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.45); transform: rotate(-2deg); max-width: 420px; width: 100%; }
.dossier-sample figcaption { margin-top: 24px; font-size: .85rem; color: rgba(255,255,255,.6); }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.feature-list li { padding-left: 20px; border-left: 2px solid var(--red); color: rgba(255,255,255,.8); }
.feature-list strong { color: var(--white); }

/* Tarjetas en 3 columnas */
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.section--soft .card { background: var(--white); }

/* Preguntas frecuentes */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 12px; border: 1px solid var(--line); padding: 0 22px; }
.faq details[open] { border-color: var(--navy); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--red); font-weight: 600; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--grey); margin: 0 0 20px; }

@media (max-width: 1080px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .stats--3 { grid-template-columns: 1fr 1fr; }
  .stats--3 div:nth-child(3) { border-left-color: var(--red); }
  .cards--3 { grid-template-columns: 1fr; }
  .hero--page .hero__photo { display: none; }
  .dossier-sample img { max-width: 280px; margin: 0 auto; }
}

/* Recuadro informativo */
.info-box { background: var(--white); border-radius: var(--radius); padding: 32px; border-left: 4px solid var(--red); box-shadow: 0 12px 30px rgba(0,14,53,.06); }
.info-box__title { font-weight: 800; color: var(--navy); font-size: 1.2rem; }
.info-box p:not(.info-box__title) { color: var(--grey); }

/* Etiquetas de barrios */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.chips li:last-child { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Páginas legales */
.legal__inner { max-width: 820px; }
.legal h1 { color: var(--navy); font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 40px; }
.legal p, .legal li { color: var(--grey); }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--navy); font-weight: 600; }
.legal__date { font-size: .85rem; }

/* ---------- Blog ---------- */
.hero--blog .wrap, .hero--post .wrap { padding-top: 64px; padding-bottom: 64px; max-width: 920px; }
.hero--blog h1, .hero--post h1 { max-width: 820px; }
.hero--post h1 { font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.post-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post-byline strong { display: block; font-size: .95rem; }
.post-byline span { font-size: .85rem; color: rgba(255,255,255,.7); }
.draft-flag { display: inline-block; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; }

/* Listado */
.post-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.post-filter button {
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--navy); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer;
}
.post-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; background: var(--white); }
.post-card[hidden] { display: none; }
.post-card__meta { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.post-card__meta span { color: var(--red); }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--red); }
.post-card p:not(.post-card__meta) { color: var(--grey); font-size: .95rem; flex: 1; }

/* Artículo */
.section--post { padding-top: 64px; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; justify-content: center; align-items: start; }
.post-toc { position: sticky; top: 108px; }
.post-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: toc; }
.post-toc li { counter-increment: toc; font-size: .9rem; line-height: 1.4; padding-left: 28px; position: relative; }
.post-toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; font-weight: 800; color: var(--red); font-size: .78rem; top: 2px; }
.post-toc a { text-decoration: none; color: var(--grey); }
.post-toc a:hover { color: var(--navy); }
.prose { font-size: 1.07rem; line-height: 1.75; }
.prose > p:first-child { font-size: 1.18rem; color: var(--navy); font-weight: 500; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 56px 0 16px; scroll-margin-top: 108px; }
.prose h3 { margin: 32px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose a:not(.btn) { color: var(--navy); font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 3px; }
.prose strong { color: var(--navy); }
.prose .table-scroll { margin: 24px 0 28px; }
.prose .compare { min-width: 520px; font-size: .95rem; }
.prose .info-box { margin: 32px 0; padding: 26px 28px; }
.prose .info-box p { margin-bottom: 8px; }
.prose .info-box p:last-child { margin-bottom: 0; }
.post-cta { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 32px; margin: 40px 0; border-bottom: 4px solid var(--red); }
.post-cta p { color: rgba(255,255,255,.8); }
.post-cta .post-cta__title { color: var(--white); font-weight: 800; font-size: 1.3rem; line-height: 1.25; }
.post-cta .btn { margin: 8px 8px 0 0; }
.prose .sources { font-size: .88rem; color: var(--grey); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 48px; }
.prose .sources li { margin-bottom: 4px; }
.author-box { display: flex; gap: 20px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 48px; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.author-box p { font-size: .95rem; color: var(--grey); margin-bottom: 10px; }
.author-box .author-box__name { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.post-disclaimer { font-size: .82rem; color: var(--grey); margin-top: 20px; }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 720px); gap: 0; }
  .post-toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 40px; }
}
@media (max-width: 760px) {
  .hero--blog .wrap, .hero--post .wrap { padding-top: 40px; padding-bottom: 44px; }
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.02rem; }
  .author-box { flex-direction: column; }
  .post-cta { padding: 26px 22px; }
  .post-cta .btn { width: 100%; margin-right: 0; }
}
.review-note { background: #FFF8DB; border: 1px dashed #C9A100; border-radius: 10px; padding: 14px 18px; font-size: .9rem; line-height: 1.5; color: #5C4A00; }
.review-note strong { color: #5C4A00; }
.compare tbody th small { display: block; font-weight: 500; color: var(--grey); font-size: .82rem; margin-top: 4px; }
