/* Páginas SEO (plantillas, sectores, alternativas, guías): reutiliza tokens y landing.css */
.c-wrap { max-width: 820px; margin: 0 auto; padding: 8px 0 30px; display: grid; gap: 26px; }
.c-wrap.wide { max-width: 1100px; }
.c-wrap section { display: grid; gap: 12px; }
.c-wrap h2 { font-size: clamp(21px, 2.4vw, 26px); letter-spacing: -0.02em; margin-top: 10px; }
.c-wrap p, .c-wrap li { color: var(--text-2); line-height: 1.7; font-size: 16.5px; }
.c-wrap ul, .c-wrap ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.c-wrap a { color: var(--primary); }
.c-wrap code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); padding-top: 8px; }
.crumbs a { color: var(--muted); }
.c-head { display: grid; gap: 12px; }
.c-head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }

/* Plantilla: texto + móvil */
.tpl-hero { display: grid; grid-template-columns: 1fr 330px; gap: 36px; align-items: start; }
.tpl-hero > div { display: grid; gap: 16px; }
.result { font-weight: 600; color: var(--text) !important; }
.facts { list-style: none; padding: 0 !important; display: grid; gap: 4px; }
.facts li { font-size: 14px; }

.phone { margin: 0; border: 8px solid #111; border-radius: 34px; background: var(--surface); box-shadow: 0 30px 60px -24px rgba(60, 20, 120, 0.35), var(--shadow-lg); overflow: hidden; position: sticky; top: 84px; }
.phone-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.phone-top .avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); }
.chat { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 18px; max-height: 560px; overflow-y: auto; }
.chat .trigger { align-self: center; text-align: center; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 4px 12px; margin-bottom: 4px; }
.chat .b { max-width: 82%; padding: 8px 12px; border-radius: 18px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.chat .b.out { align-self: flex-end; background: var(--bubble-out); color: #fff; border-bottom-right-radius: 6px; }
.chat .b.in { align-self: flex-start; background: var(--bubble-in); color: var(--text); border-bottom-left-radius: 6px; }
.chat .b.public { align-self: stretch; max-width: none; background: var(--surface-2); color: var(--text-2); border-radius: 12px; font-size: 13px; }
.chat .b.public small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.chat .b-btns { align-self: flex-end; display: grid; gap: 4px; max-width: 82%; }
.chat .b-btns span { border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px 12px; font-size: 13px; text-align: center; color: var(--primary); background: var(--surface); }
.chat .wait { align-self: center; font-size: 12px; color: var(--muted); }

.how { counter-reset: how; list-style: none; padding: 0 !important; gap: 10px !important; }
.how li { counter-increment: how; position: relative; padding-left: 42px; min-height: 30px; }
.how li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.checks { list-style: none; padding: 0 !important; }
.checks li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 8px; }

/* Ideas por sector y tarjetas */
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.idea { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.idea p { font-size: 15px; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.c-card { display: grid; gap: 6px; align-content: start; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; color: var(--text) !important; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.c-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.c-card span:not(.kicker):not(.tpl-ico) { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tpl-ico { font-size: 24px; }

/* Comparativas */
.verdict { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--text); line-height: 1.6; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14.5px; }
.compare th, .compare td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare thead th { background: var(--surface-2); font-weight: 700; }
.compare tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.compare td { color: var(--text-2); }

.sources ul { font-size: 14px; }
.sources a { overflow-wrap: anywhere; }

/* Afiliados */
.aff-form { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.aff-form textarea { min-height: 90px; }
.aff-form .err { color: var(--err); }

@media (max-width: 860px) {
  .tpl-hero { grid-template-columns: 1fr; }
  .phone { position: static; max-width: 360px; justify-self: center; width: 100%; }
  .ideas { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .c-wrap p, .c-wrap li { font-size: 16px; }
  .compare tbody th { white-space: normal; }
}
