/* Guías para asesores (scripts/build-guias.js): /guias/<slug>. Van después de web/precio-m2.css y usan sus tokens,
   la barra, el pie, las preguntas frecuentes (.pm-faq) y el cierre (.pm-cta). Lectura cómoda: una columna de 680 px,
   letra de 17 en pantalla grande, títulos en navy y las capturas reales de la app con borde y sombra suave.
   Celular primero: margen de 16 px y nada más ancho que la pantalla (la tabla, en tarjetas debajo de 640 px).
   Un solo llamado (a Pro, como la landing): la barra, la banda después del ejemplo, los links de los pasos y el cierre;
   en el cierre, Munimapa gratis para el que todavía no.
   Al cambiar este archivo, subir CSS_V en scripts/build-guias.js. */
.gu-doc { --lectura: 680px; }
.gu-doc > * { max-width: var(--lectura); margin-left: auto; margin-right: auto; }
.gu-doc > .gu-portada, .gu-doc > .pm-cta, .gu-doc > .gu-banda { max-width: none; }
.gu-doc p, .gu-doc li { font-size: 16px; line-height: 1.65; }
@media (min-width: 768px) { .gu-doc p, .gu-doc li { font-size: 17px; } }
.gu-doc b { color: var(--navy); font-weight: 650; }

/* ── Cabecera ── */
.gu-kicker { font-size: 12px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean); }
.gu-cab h1 { margin-top: 8px; font-size: clamp(32px, 8vw, 46px); line-height: 1.08; letter-spacing: -.04em; color: var(--navy); font-weight: 800; text-wrap: balance; }
.gu-bajada { margin-top: 10px; font-size: 14px !important; color: var(--muted); }
.gu-corto { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--ocean); background: var(--ocean-bg); border-radius: 0 10px 10px 0; color: var(--text); }

/* ── Arriba: el ACM terminado (acá va el video narrado cuando esté) ── */
.gu-portada { margin-top: 28px; }
.gu-portada img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-tint); box-shadow: 0 1px 2px rgba(13,33,55,.04), 0 24px 48px -32px rgba(13,33,55,.28); }
.gu-portada figcaption { margin-top: 8px; font-size: 13px; color: var(--faint); text-align: center; }
.gu-video { margin-top: 20px; }
.gu-video video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--navy); }
.gu-video figcaption { margin-top: 8px; font-size: 13px; color: var(--faint); text-align: center; }
.gu-cta__gratis { margin-top: 12px !important; font-size: 14px !important; color: #CBD5E1; }
.gu-cta__gratis a { color: #fff; font-weight: 600; }
.gu-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ¿Y los vendidos? (la objeción del asesor con oficio; CMO 28/10) */
.gu-vendidos { margin-top: 16px; padding: 16px 18px; border-radius: 12px; border: 1px dashed #94A3B8; background: #fff; }
.gu-vendidos__t { font-weight: 700; color: var(--navy); }
.gu-vendidos p + p { margin-top: 4px; font-size: 15px !important; }

/* Banda de prueba en el medio (después del ejemplo) */
.gu-banda { margin-top: 40px; padding: 22px; border-radius: 12px; background: var(--ocean-bg); border: 1px solid #C7D7FE; display: grid; gap: 14px; }
@media (min-width: 768px) { .gu-banda { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 24px 28px; } }
.gu-banda__t { font-size: 20px !important; font-weight: 700; letter-spacing: -.02em; line-height: 1.25 !important; color: var(--navy); }
.gu-banda p + p { margin-top: 4px; font-size: 15px !important; color: var(--muted); }
.gu-banda .pm-btn { justify-self: start; }
.gu-probar { display: inline-block; margin-left: 2px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.gu-probar:hover { text-decoration: underline; }

/* ── Índice ── */
.gu-indice { margin-top: 32px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.gu-indice h2 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gu-indice ol { margin: 10px 0 0; padding-left: 20px; }
.gu-indice ol ol { margin-top: 4px; padding-left: 0; list-style: none; }
.gu-indice li { font-size: 15px !important; line-height: 1.7 !important; }
.gu-indice a { color: var(--navy); text-decoration: none; }
.gu-indice a:hover { color: var(--ocean); text-decoration: underline; }
.gu-indice ol ol a { color: var(--muted); }

/* ── Secciones ── */
.gu-sec { margin-top: var(--seccion); scroll-margin-top: 72px; }
.gu-sec > h2 { font-size: clamp(24px, 5.6vw, 32px); line-height: 1.15; letter-spacing: -.03em; color: var(--navy); font-weight: 750; padding-top: 14px; border-top: 2px solid var(--navy); }
.gu-sec > p { margin-top: 14px; }
.gu-sec ul, .gu-sec ol { margin: 12px 0 0; padding-left: 22px; }
.gu-sec li + li { margin-top: 6px; }

/* ACM o tasación */
.gu-dos { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .gu-dos { grid-template-columns: 1fr 1fr; } }
.gu-dos__c { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-tint); }
.gu-dos__c:first-child { border-color: var(--ocean); background: var(--ocean-bg); }
.gu-dos__c h3 { font-size: 17px; color: var(--navy); letter-spacing: -.01em; }
.gu-dos__c p { margin-top: 6px; font-size: 15px !important; }

/* ── Pasos ── */
.gu-paso { margin-top: 40px; scroll-margin-top: 72px; }
.gu-paso h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 4.6vw, 24px); line-height: 1.2; letter-spacing: -.02em; color: var(--navy); font-weight: 700; }
.gu-num { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.gu-texto { margin-top: 12px; }
.gu-texto p + p { margin-top: 10px; }
.gu-ojo { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #FFF7E6; border: 1px solid #F5DDA8; font-size: 15px !important; }
.gu-ojo b { color: #8A5A00; }
.gu-con { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-tint); }
.gu-con__t { font-size: 15px !important; }
.gu-con__marca { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; vertical-align: 1px; }
.gu-cap { margin-top: 14px; }
.gu-cap img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 28px -20px rgba(13,33,55,.35); }
.gu-cap figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--faint); }

/* ── El ejemplo ── */
.gu-ejemplo__caso { padding: 16px 18px; border-radius: 12px; background: var(--navy); color: #fff; }
.gu-ejemplo__caso b { color: #fff; }
.gu-cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 16px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.gu-cifras > div { padding: 14px 14px 16px; background: #fff; text-align: center; }
.gu-cifras dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gu-cifras dd { margin: 4px 0 2px; font-size: clamp(20px, 5vw, 28px); line-height: 1.15; font-weight: 750; letter-spacing: -.02em; color: var(--navy); }
.gu-cifras span { display: block; font-size: 13px; line-height: 1.4; color: var(--faint); }
.gu-cifras--alerta dd { color: #B45309; }
@media (min-width: 768px) { .gu-cifras { grid-template-columns: repeat(4, 1fr); } .gu-cifras--3 { grid-template-columns: repeat(3, 1fr); } }
.gu-cifras > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 768px) { .gu-cifras > div:last-child:nth-child(odd) { grid-column: auto; } }
.gu-nota { margin-top: 14px; font-size: 13px !important; color: var(--faint); }

/* ── Tabla ── */
.gu-tabla { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gu-tabla table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gu-tabla th, .gu-tabla td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.gu-tabla tr:last-child th, .gu-tabla tr:last-child td { border-bottom: 0; }
.gu-tabla thead th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-tint); }
.gu-tabla thead th:last-child { color: var(--ocean); }
.gu-tabla tbody th { color: var(--navy); font-weight: 600; width: 30%; }
.gu-tabla td:last-child { color: var(--navy); font-weight: 600; }
/* En el celular, cada fila es una tarjeta: el rótulo arriba y «Con Mercadomapa» a la vista (auditoría 28/10) */
@media (max-width: 639px) {
  .gu-tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gu-tabla tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .gu-tabla tr:last-child { border-bottom: 0; }
  .gu-tabla tbody th { grid-column: 1 / -1; width: auto; padding: 12px 14px 4px; border: 0; }
  .gu-tabla td { padding: 4px 14px 12px; border: 0; font-size: 14px; }
  .gu-tabla td::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
  .gu-tabla td:last-child::before { color: var(--ocean); }
}
.gu-sec > h3 { margin-top: 22px; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; color: var(--navy); font-weight: 700; }
.gu-sec > h3 + p { margin-top: 6px; }

/* ── Errores ── */
.gu-errores li::marker { color: var(--ocean); font-weight: 700; }

/* Preguntas y cierre de precio-m2.css, con aire */
.gu-doc .pm-faq-sec { margin-top: var(--seccion); }
.gu-cta { margin-top: var(--seccion); }

@media print {
  .gu-portada, .gu-indice, .gu-banda, .gu-probar { display: none; }
  .gu-paso, .gu-cap, .gu-cifras { break-inside: avoid; }
}
.gu-texto ul + p, .gu-texto ol + p { margin-top: 12px; }
/* Captura vertical (un panel de la app): angosta en la compu, a lo ancho en el celular */
.gu-cap--estrecha { max-width: 400px; margin-left: auto; margin-right: auto; }
/* Objeciones del dueño (guía de captación) */
.gu-objecion { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; }
.gu-objecion h3 { font-size: 17px; font-weight: 700; color: var(--navy); }
.gu-objecion p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--text); }

/* Páginas por herramienta (scripts/build-herramientas.js) */
.gu-doc > .gu-cap--estrecha { max-width: 400px; margin-left: auto; margin-right: auto; }
.gu-arranque { margin-top: 20px; }
.gu-arranque p { margin-top: 8px; font-size: 13px !important; color: var(--muted); }
.gu-link { display: inline-block; padding: 12px 0; }
.gu-ejemplo { margin-left: 0; margin-right: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.gu-ejemplo__filas { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; align-items: end; text-align: center; }
.gu-ejemplo__filas p { margin: 0; }
.gu-ejemplo__filas small { display: block; font-size: 12px; color: var(--muted); }
.gu-ejemplo__filas b { font-size: 15px; color: var(--navy); white-space: nowrap; }
.gu-ejemplo__medio b { font-size: 20px; color: var(--ocean); }
.gu-ejemplo__pide { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.gu-ejemplo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 420px) { .gu-ejemplo__filas b { font-size: 13px; } .gu-ejemplo__medio b { font-size: 16px; } }
