/* ==========================================================================
   TerreNet — páginas secundarias (ronda de diseño 2026-11-09)
   Cómo funciona, FAQ, vendedores, perfil, 404/500, guía de compra.
   Se carga después de tn-2026.css. Usa solo los tokens --tn-*.
   ========================================================================== */

/* ---------- Base compartida ---------- */
.tp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body main a:not(.btn):not(.tn-link) { text-underline-offset: 3px; }

/* Hero claro tipo "plano": papel, tinta, trama de parcelas a la derecha */
.tp-hero {
  position: relative; overflow: hidden; background: var(--tn-paper); border-bottom: 1px solid var(--tn-line);
  padding: 56px 0 48px; color: var(--tn-ink);
}
.tp-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 55%;
  background: var(--tn-plot) right top / 320px 320px repeat; pointer-events: none;
}
.tp-hero > .tn-wrap { position: relative; z-index: 1; }
body .tp-hero h1 {
  font-family: var(--tn-font); font-stretch: 88%; font-weight: 650; letter-spacing: -0.012em;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem); line-height: 1.04; color: var(--tn-ink);
  margin: 14px 0 14px; max-width: 20ch; text-shadow: none;
}
.tp-hero--wide h1 { max-width: 26ch; }
body .tp-hero__lead { font-size: 1.125rem; line-height: 1.55; color: var(--tn-ink-2); max-width: 56ch; margin: 0; }
.tp-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tp-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tp-crumb { margin: 0; font-size: .9rem; }
.tp-crumb a { color: var(--tn-brand-strong); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.tp-crumb a:hover { text-decoration: underline; }

.tp-section { padding: 64px 0; }
.tp-section--surface { background: var(--tn-surface); border-top: 1px solid var(--tn-line); border-bottom: 1px solid var(--tn-line); }
body .tp-section h2, body .tp-cta h2 {
  font-family: var(--tn-font); font-stretch: 88%; font-weight: 650; letter-spacing: -0.012em;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.1; color: var(--tn-ink); margin: 0 0 10px; text-align: left;
}
.tp-section__lead { color: var(--tn-ink-2); font-size: 1.05rem; max-width: 58ch; margin: 0 0 32px; }
.tp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.tp-head .tp-section__lead { margin: 0; }

/* Rótulo de plano: etiqueta con borde punteado, número en mono */
.tp-label {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--tn-mono); font-size: .82rem; font-weight: 500;
  color: var(--tn-ink-2); padding: 3px 9px; border: 1px dashed var(--tn-line-strong); border-radius: var(--tn-r1); background: #fbfcfb;
}

/* ---------- Cómo funciona: pasos ---------- */
.tp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.tp-steps > li { border-top: 2px solid var(--tn-ink); padding: 18px 0 8px; }
.tp-step__n {
  display: inline-block; font-family: var(--tn-mono); font-weight: 500; font-size: .85rem; color: var(--tn-hito);
  border: 1px dashed currentColor; border-radius: var(--tn-r1); padding: 2px 10px; margin-bottom: 14px;
}
body .tp-steps h3 { font-family: var(--tn-font); font-stretch: 92%; font-weight: 650; font-size: 1.3rem; line-height: 1.2; color: var(--tn-ink); margin: 0 0 8px; }
.tp-steps p { margin: 0 0 14px; color: var(--tn-ink-2); font-size: 1rem; line-height: 1.6; max-width: 46ch; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tp-tags li {
  font-family: var(--tn-mono); font-size: .78rem; font-weight: 500; color: var(--tn-ink); padding: 2px 8px;
  border: 1px dashed var(--tn-line-strong); border-radius: var(--tn-r1); background: #fbfcfb;
}

/* Glosario de la ficha */
.tp-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.tp-gloss { margin: 0; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
.tp-gloss dt, .tp-gloss dd { margin: 0; padding: 12px 0; border-bottom: 1px dotted var(--tn-line-strong); }
.tp-gloss dt { font-family: var(--tn-mono); font-weight: 500; font-size: .92rem; color: var(--tn-ink); padding-right: 16px; }
.tp-gloss dd { color: var(--tn-ink-2); font-size: .98rem; line-height: 1.5; }
.tp-note { margin: 20px 0 0; font-size: .92rem; color: var(--tn-muted); }

/* Beneficios para vendedores */
.tp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.tp-list li { border-top: 1px solid var(--tn-line); padding: 18px 0 20px; }
body .tp-list h3 { font-family: var(--tn-font); font-weight: 650; font-size: 1.08rem; color: var(--tn-ink); margin: 0 0 4px; }
.tp-list p { margin: 0; color: var(--tn-ink-2); font-size: .98rem; line-height: 1.55; max-width: 52ch; }

/* Para quién */
.tp-aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tp-aud > div { display: flex; flex-direction: column; background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: var(--tn-r3); padding: 22px; }
body .tp-aud h3 { font-family: var(--tn-font); font-stretch: 92%; font-weight: 650; font-size: 1.15rem; color: var(--tn-ink); margin: 0 0 12px; }
.tp-aud ul { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.tp-aud li { position: relative; padding: 5px 0 5px 20px; color: var(--tn-ink-2); font-size: .96rem; line-height: 1.5; }
.tp-aud li::before { content: ""; position: absolute; left: 0; top: .95em; width: 10px; border-top: 1px dashed var(--tn-ink-2); }
.tp-aud .tn-link { display: inline-flex; align-items: center; min-height: 44px; }

/* Cierre */
.tp-cta { background: var(--tn-surface); border-top: 1px solid var(--tn-line); padding: 64px 0; }
.tp-cta .tn-wrap { max-width: 860px; }
.tp-cta p { color: var(--tn-ink-2); font-size: 1.06rem; max-width: 56ch; margin: 0 0 24px; }
.tp-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.tp-cta .tn-free-note { display: inline-flex; margin: 0; }

/* Testimonios (solo aparecen si hay reseñas reales) */
.testimonials-section { padding: 64px 0; background: var(--tn-paper); border-top: 1px solid var(--tn-line); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.testimonial-card { background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: var(--tn-r3); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.testimonial-stars { color: var(--tn-warn); font-size: 1.05rem; letter-spacing: 2px; }
.testimonial-text { color: var(--tn-ink-2); line-height: 1.6; font-size: 1rem; flex: 1; margin: 0; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: var(--tn-r2); background: var(--tn-sunken); color: var(--tn-ink); display: grid; place-items: center; font-weight: 700; flex: none; }
.testimonial-name { font-weight: 600; color: var(--tn-ink); font-size: .95rem; }
.testimonial-role { font-size: .85rem; color: var(--tn-muted); }

/* ---------- FAQ (acordeón, comparte look con .tn-faq de la home) ---------- */
.tp-faq { max-width: 760px; }
.tp-faq h2 { font-size: 1.15rem !important; font-family: var(--tn-mono) !important; font-stretch: 100% !important; font-weight: 500 !important; letter-spacing: 0 !important; margin: 44px 0 4px !important; color: var(--tn-ink-2) !important; }
.tp-faq h2:first-child { margin-top: 0 !important; }
.tp-faq details { border-bottom: 1px solid var(--tn-line); }
.tp-faq details:first-of-type { border-top: 1px solid var(--tn-line); }
.tp-faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; min-height: 44px; position: relative; font-weight: 600; font-size: 1.08rem; line-height: 1.35; color: var(--tn-ink); }
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; line-height: 1.3; color: var(--tn-brand); font-weight: 400; }
.tp-faq details[open] summary::after { content: "\2013"; }
.tp-faq details p { margin: 0 0 20px; color: var(--tn-ink-2); font-size: 1.02rem; line-height: 1.65; max-width: 65ch; }
.tp-faq details a { color: var(--tn-brand-strong); font-weight: 600; }
.tp-faq-help { margin-top: 48px; padding: 20px 22px; background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: var(--tn-r3); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.tp-faq-help p { margin: 0; color: var(--tn-ink-2); max-width: 44ch; }
.tp-faq-help strong { color: var(--tn-ink); }

/* ---------- Vendedores (directorio) ---------- */
.tp-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; align-items: end; margin-bottom: 24px; padding: 16px; background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: var(--tn-r3); }
.tp-toolbar .tn-field label { font-size: .82rem; font-weight: 600; color: var(--tn-ink-2); }
body .tp-toolbar input, body .tp-toolbar select {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 1rem; color: var(--tn-ink); background: var(--tn-surface);
  border: 1px solid var(--tn-line-strong); border-radius: var(--tn-r2); box-shadow: none;
}
body .tp-toolbar input:focus, body .tp-toolbar select:focus { border-color: var(--tn-brand); box-shadow: 0 0 0 3px rgba(24, 121, 78, .18); outline: none; }
body .tp-toolbar input::placeholder { color: #6b7770; }

.vendedores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
body .vendedor-card {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "thumb name" "thumb actor" "thumb empresa" "stats stats" "actions actions";
  column-gap: 16px; row-gap: 0; align-content: start; background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: var(--tn-r3);
  padding: 18px; box-shadow: none; text-align: left; transition: border-color var(--tn-dur) var(--tn-ease);
}
body .vendedor-card:hover { border-color: var(--tn-line-strong); box-shadow: none; transform: none; }
.vendedor-thumb { grid-area: thumb; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--tn-sunken); border: 1px solid var(--tn-line); }
.vendedor-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.vendedor-name { grid-area: name; align-self: end; font-size: 1.1rem; font-weight: 650; font-stretch: 92%; line-height: 1.25; color: var(--tn-ink); overflow-wrap: anywhere; }
.vendedor-actor, .vendedor-empresa { font-size: .92rem; color: var(--tn-muted); line-height: 1.4; }
.vendedor-actor { grid-area: actor; margin-top: 4px; font-weight: 600; color: var(--tn-ink-2); }
.vendedor-empresa { grid-area: empresa; margin-top: 2px; overflow-wrap: anywhere; }
.vendedor-stats { grid-area: stats; display: flex; gap: 8px; margin-top: 16px; }
.vendedor-stat {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border: 1px dashed var(--tn-line-strong); border-radius: var(--tn-r1); background: #fbfcfb;
  font-family: var(--tn-mono); font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--tn-ink);
}
.vendedor-stat__value { font-weight: 500; font-size: .95rem; }
.vendedor-stat__label { color: var(--tn-muted); }
.vendedor-actions { grid-area: actions; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--tn-line); }
body .vendedor-actions .btn {
  background: transparent; border: 0; color: var(--tn-brand-strong); padding: 0 2px; min-height: 44px; justify-content: flex-start; width: auto; box-shadow: none; font-weight: 600;
}
body .vendedor-actions .btn::after { content: "\2192"; margin-left: 6px; transition: transform var(--tn-dur) var(--tn-ease); }
body .vendedor-card:hover .vendedor-actions .btn::after { transform: translateX(3px); }
body .vendedor-actions .btn:hover { background: transparent; color: var(--tn-brand-strong); text-decoration: underline; text-underline-offset: 3px; }
/* La lista y el perfil muestran el tipo con emoji desde el JS: se recorta el emoji inicial */
/* Emoji inicial que agrega el JS (siempre presente en estos elementos): se oculta con ::first-letter */
.profile-hero-tipo::first-letter, .profile-bio-title::first-letter, .terreno-card-meta > span::first-letter,
.terreno-card-visitas::first-letter, .terreno-destacado-badge::first-letter { font-size: 0; }

#vendedoresList .empty-state { padding: 40px 20px; text-align: center; }
#vendedoresList .empty-state__icon { display: none; }
#vendedoresList .empty-state__title { font-size: 1.2rem; font-weight: 650; color: var(--tn-ink); margin: 0 0 6px; }
#vendedoresList .empty-state__text { color: var(--tn-ink-2); margin: 0 0 16px; }

.skeleton { display: block; background: var(--tn-sunken); border-radius: var(--tn-r1); }
.skeleton--avatar { width: 72px; height: 72px; border-radius: 8px; grid-area: thumb; }
.skeleton--text-short { height: 14px; grid-column: 2; }
.skeleton--text { height: 14px; grid-column: 1 / -1; }
.skeleton--button { height: 44px; grid-column: 1 / -1; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton, .skeleton-profile { animation: tp-pulse 1.4s ease-in-out infinite; }
  @keyframes tp-pulse { 50% { opacity: .55; } }
}

/* ---------- Perfil de vendedor ---------- */
.profile-hero { background: var(--tn-paper); border-bottom: 1px solid var(--tn-line); position: relative; overflow: hidden; padding: 24px 0 40px; color: var(--tn-ink); }
.profile-hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 55%; background: var(--tn-plot) right top / 320px 320px repeat; pointer-events: none; }
.profile-hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; gap: 28px; align-items: flex-start; }
.profile-hero p, .profile-hero-inner p { color: var(--tn-ink) !important; margin: 0 0 12px; }
.profile-avatar-large { width: 120px; height: 120px; flex: none; border-radius: 8px; overflow: hidden; background: var(--tn-sunken); border: 1px solid var(--tn-line-strong); }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.skeleton-profile { background: var(--tn-sunken); }
.profile-hero-info { min-width: 0; flex: 1; }
body .profile-hero-name {
  font-family: var(--tn-font); font-stretch: 88%; font-weight: 650; letter-spacing: -0.012em; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  line-height: 1.06; color: var(--tn-ink); margin: 0 0 6px; text-shadow: none; overflow-wrap: anywhere;
}
.profile-hero-empresa { font-size: 1.1rem; color: var(--tn-ink-2); margin-bottom: 8px; }
.profile-hero-tipo {
  display: inline-block; font-family: var(--tn-mono); font-size: .82rem; font-weight: 500; color: var(--tn-ink-2); padding: 3px 9px; vertical-align: top;
  border: 1px dashed var(--tn-line-strong); border-radius: var(--tn-r1); background: #fbfcfb; margin-bottom: 14px;
}
.profile-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.hero-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border: 1px dashed var(--tn-line-strong); border-radius: var(--tn-r1); background: #fbfcfb; font-family: var(--tn-mono); font-variant-numeric: tabular-nums; }
.hero-stat-value { font-size: 1rem; font-weight: 500; color: var(--tn-ink); }
.hero-stat-label { font-size: .82rem; color: var(--tn-muted); }
.profile-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--tn-r2);
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: background-color var(--tn-dur) var(--tn-ease), border-color var(--tn-dur) var(--tn-ease);
}
.btn-contact-wa { background: #0f7a63; border-color: #0f7a63; color: #fff; }
.btn-contact-wa:hover { background: #0b6552; border-color: #0b6552; color: #fff; }
.btn-contact-phone { background: var(--tn-surface); border-color: var(--tn-line-strong); color: var(--tn-ink); font-family: var(--tn-mono); font-weight: 500; font-size: .95rem; }
.btn-contact-phone:hover { border-color: var(--tn-ink-2); color: var(--tn-ink); }

.profile-content { max-width: 1200px; margin: 0 auto; padding: 40px 32px 72px; }
.profile-bio-card { max-width: 72ch; margin: 0 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--tn-line); }
.profile-bio-title { font-size: .95rem; font-weight: 600; color: var(--tn-muted); margin: 0 0 8px; }
.profile-bio-text { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--tn-ink-2); white-space: pre-line; }
.profile-terrenos-section .section-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
body .profile-terrenos-section .section-title { font-family: var(--tn-font); font-stretch: 88%; font-weight: 650; font-size: 1.7rem; color: var(--tn-ink); margin: 0; }
.terrenos-count { font-family: var(--tn-mono); font-size: .85rem; font-weight: 500; color: var(--tn-ink); padding: 2px 9px; border: 1px dashed var(--tn-line-strong); border-radius: var(--tn-r1); background: #fbfcfb; }

.terrenos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.terreno-card-mini { position: relative; display: flex; flex-direction: column; background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: var(--tn-r3); overflow: hidden; color: var(--tn-ink); text-decoration: none; transition: border-color var(--tn-dur) var(--tn-ease), box-shadow var(--tn-dur) var(--tn-ease); }
.terreno-card-mini:hover { border-color: var(--tn-line-strong); box-shadow: var(--tn-shadow-hover); transform: none; }
.terreno-card-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--tn-sunken); overflow: hidden; }
.terreno-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.terreno-destacado-badge {
  position: absolute; left: 12px; bottom: 12px; display: inline-block; white-space: nowrap; font-size: .75rem; font-weight: 600; line-height: 1;
  padding: 6px 9px; border-radius: var(--tn-r1); background: var(--tn-surface); color: var(--tn-hito); box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  text-transform: capitalize;
}
.terreno-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.terreno-card-price { order: 0; font-size: 1.45rem; font-weight: 700; color: var(--tn-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
body .terreno-card-title {
  order: 1; font-size: .98rem; font-weight: 500; line-height: 1.35; color: var(--tn-ink-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.terreno-card-meta { order: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.terreno-card-meta > span, .terreno-card-visitas {
  display: inline-block; white-space: nowrap; font-family: var(--tn-mono); font-size: .8rem; font-weight: 500; color: var(--tn-ink); font-variant-numeric: tabular-nums;
}
.terreno-card-meta > span { padding: 2px 8px; border: 1px dashed var(--tn-line-strong); border-radius: var(--tn-r1); background: #fbfcfb; }
.terreno-card-visitas { order: 3; color: var(--tn-muted); font-weight: 400; margin-top: 4px; }
.profile-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; background: var(--tn-surface); border: 1px dashed var(--tn-line-strong); border-radius: var(--tn-r3); }
.profile-empty-icon { display: none; }
.profile-empty-text { margin: 0; color: var(--tn-ink-2); }
.profile-reviews-section { margin-top: 48px; }

/* ---------- 404 / 500 ---------- */
.tp-error { padding: 56px 0 72px; }
.tp-error__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.tp-error__code { font-family: var(--tn-mono); font-size: .95rem; color: var(--tn-hito); margin: 0; }
body .tp-error h1 {
  font-family: var(--tn-font); font-stretch: 88%; font-weight: 650; letter-spacing: -0.012em; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem);
  line-height: 1.04; color: var(--tn-ink); margin: 10px 0 14px; max-width: 16ch;
}
.tp-error__desc { color: var(--tn-ink-2); font-size: 1.1rem; max-width: 50ch; margin: 0 0 24px; }
.tp-error__plan { margin: 0; }
.tp-error__plan svg { display: block; width: 100%; height: auto; }
.tp-error__plan figcaption { margin-top: 8px; font-family: var(--tn-mono); font-size: .78rem; color: var(--tn-muted); text-align: right; }
.tp-places { margin-top: 40px; }
.tp-places p { margin: 0 0 10px; font-size: .95rem; font-weight: 600; color: var(--tn-ink-2); }
.tp-places ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tp-places a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--tn-r2); border: 1px solid var(--tn-line-strong);
  background: var(--tn-surface); color: var(--tn-ink); font-weight: 500; text-decoration: none;
}
.tp-places a:hover { border-color: var(--tn-ink-2); color: var(--tn-brand-strong); }

/* ---------- Guía (lectura editorial) ---------- */
.tp-article-head { padding: 40px 0 32px; background: var(--tn-paper); border-bottom: 1px solid var(--tn-line); position: relative; overflow: hidden; }
.tp-article-head::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 55%; background: var(--tn-plot) right top / 320px 320px repeat; pointer-events: none; }
.tp-article-head .tn-wrap { position: relative; z-index: 1; }
.tp-article { max-width: calc(68ch + 48px); margin: 0 auto; padding: 0 24px; }
body .tp-article-head h1 {
  font-family: var(--tn-font); font-stretch: 88%; font-weight: 650; letter-spacing: -0.012em; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem);
  line-height: 1.06; color: var(--tn-ink); margin: 8px 0 14px; max-width: 22ch;
}
.tp-article-head .tp-hero__lead { max-width: 60ch; }
.tp-toc { margin: 0; padding: 18px 20px; background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: var(--tn-r3); }
.tp-toc p { margin: 0 0 6px; font-size: .95rem; font-weight: 600; color: var(--tn-ink-2); }
.tp-toc ol { margin: 0; padding: 0; list-style: none; }
.tp-toc a { display: flex; align-items: center; min-height: 44px; color: var(--tn-brand-strong); font-weight: 600; text-decoration: none; }
.tp-toc a:hover { text-decoration: underline; }
.tp-prose { padding-top: 40px; padding-bottom: 72px; font-size: 1.125rem; line-height: 1.7; color: var(--tn-ink-2); }
.tp-prose > * { max-width: 68ch; }
.tp-prose p { margin: 0 0 1.25em; }
body .tp-prose h2 {
  font-family: var(--tn-font); font-stretch: 88%; font-weight: 650; letter-spacing: -0.01em; font-size: 1.6rem; line-height: 1.15; color: var(--tn-ink);
  margin: 2.2em 0 .6em; padding: 0; border: 0; scroll-margin-top: 88px;
}
.tp-prose h2:first-of-type { margin-top: 0; }
.tp-prose a { color: var(--tn-brand-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tp-prose strong { color: var(--tn-ink); }
.tp-prose ul, .tp-prose ol { margin: 0 0 1.25em 1.25em; }
.tp-prose li { margin-bottom: .4em; }
.tp-aside { margin-top: 3em; padding: 20px 22px; background: var(--tn-brand-tint); border-radius: var(--tn-r2); color: var(--tn-brand-strong); font-size: 1.05rem; line-height: 1.6; }
.tp-aside a { color: var(--tn-brand-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .tp-steps { grid-template-columns: 1fr; }
  .tp-steps > li { padding-bottom: 18px; }
  .tp-split { grid-template-columns: 1fr; gap: 28px; }
  .tp-aud { grid-template-columns: 1fr; }
  .tp-list { grid-template-columns: 1fr; }
  .tp-error__grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-hero-inner, .profile-content { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 600px) {
  .tp-hero { padding: 32px 0 32px; }
  .tp-hero::before, .profile-hero::before, .tp-article-head::before { width: 100%; opacity: .6; }
  body .tp-hero h1 { font-size: 2.1rem; }
  .tp-hero__ctas .btn, .tp-cta__btns .btn { width: 100%; justify-content: center; }
  .tp-section { padding: 44px 0; }
  .tp-cta { padding: 44px 0; }
  .tp-toolbar { grid-template-columns: 1fr; padding: 12px; }
  .vendedores-grid { grid-template-columns: 1fr; gap: 12px; }
  .tp-gloss { grid-template-columns: 1fr; }
  .tp-gloss dt { border-bottom: 0; padding-bottom: 0; padding-top: 14px; }
  .tp-gloss dd { padding-top: 2px; }
  .profile-hero { padding: 8px 0 28px; }
  .profile-hero-inner { flex-direction: column; gap: 16px; padding-left: 16px; padding-right: 16px; }
  .profile-avatar-large { width: 88px; height: 88px; }
  .btn-contact { flex: 1 1 100%; }
  .profile-content { padding: 28px 16px 56px; }
  .terrenos-grid { grid-template-columns: 1fr; }
  .tp-error { padding: 32px 0 48px; }
  .tp-error__plan { display: none; }
  .tp-article-head { padding: 24px 0 24px; }
  .tp-prose { font-size: 1.0625rem; padding-top: 28px; }
  .tp-faq-help .btn { width: 100%; justify-content: center; }
}

/* Enlace de salto: oculto hasta recibir foco */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; }

/* Anular estilos heredados de modern.css en las tarjetas de vendedor */
body .vendedor-actor, body .vendedor-empresa {
  background: none; border: 0; border-radius: 0; padding: 0; width: auto; display: block; text-transform: none; letter-spacing: 0;
  font-size: .92rem; text-align: left; justify-self: start;
}
body .vendedor-stats { justify-content: flex-start; padding: 0; background: none; border: 0; }
body .vendedor-stat { flex-direction: row; text-align: left; flex: none; width: auto; text-transform: none; letter-spacing: 0; }
body .vendedor-stat__label, body .vendedor-stat__value { text-transform: none; letter-spacing: 0; font-size: .82rem; }
body .vendedor-stat__value { font-size: .95rem; }
body .vendedor-card .vendedor-name { text-align: left; margin: 0; }
body .vendedor-thumb { margin: 0; }
.tp-prose .tp-toc ol { margin: 0; }
.tp-prose .tp-toc p { margin: 0 0 6px; }
.tp-prose .tp-toc li { margin: 0; }

.profile-hero-inner, .profile-hero-info, .profile-hero-name, .profile-hero-empresa { text-align: left; }
.profile-hero-inner { justify-content: flex-start; }
.profile-bio-card { text-align: left; }
.profile-hero { padding-left: 0; padding-right: 0; }
body .profile-hero { display: block; border-radius: 0; box-shadow: none; margin: 0; }
body .profile-hero-inner { width: 100%; box-sizing: border-box; }
body .vendedor-actions { text-align: left; display: flex; justify-content: flex-start; }
body .vendedor-actions .btn { display: inline-flex; flex: none; }
.tp-error__plan { max-width: 460px; }
@media (min-width: 769px) and (max-width: 1000px) {
  body .site-header .brand-subtitle { display: none; }
  body .main-nav { gap: 0; }
  body .main-nav a:not(.btn) { padding-left: 8px; padding-right: 8px; }
  body .main-nav .nav-separator { margin: 0 6px; }
}

/* Avatar sin foto (o con foto que no carga): iniciales */
.vendedor-initials { width: 100%; height: 100%; display: grid; place-items: center; background: var(--tn-sunken); color: var(--tn-ink-2); font-weight: 650; font-size: 1.25rem; border-radius: inherit; }
