/*
 * CBTI Widgets · página Membresía.
 * Valores copiados de los estilos en línea del diseño "Web CBTI v3" (ruta membresia).
 * Las clases tiers/tier-*, cbti-faq y cbti-ctas vienen de cbti-design.css del tema.
 */

/* ---------- Portada ---------- */
.cbtiw-ms-hero { position: relative; overflow: hidden; background: var(--grad-navy); color: var(--text-on-dark); }
.cbtiw-ms-hero__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 26px 26px; opacity: 0.5; }
.cbtiw-ms-hero__grid { position: relative; max-width: var(--container); margin: 0 auto; padding: var(--space-20) var(--space-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--space-12); align-items: center; box-sizing: border-box; }
.cbtiw-ms-hero__title { margin: var(--space-6) 0 0; font-family: var(--font-display); font-size: var(--text-display-2); font-weight: var(--weight-black); line-height: var(--leading-snug); letter-spacing: var(--tracking-display); color: var(--text-on-dark); text-wrap: balance; }
.cbtiw-ms-hero__lead { margin: var(--space-6) 0 0; max-width: 560px; font-size: var(--text-body-lg); line-height: var(--leading-body); color: var(--text-on-dark-muted); }
.cbtiw-ms-hero__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: var(--space-4); min-width: 0; }
.cbtiw-ms-tile { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--border-on-dark); border-radius: var(--radius-md); background: var(--glass-on-dark); }
.cbtiw-ms-tile__t { font-family: var(--font-display); font-size: var(--text-body); font-weight: var(--weight-bold); color: #fff; }
.cbtiw-ms-tile__d { margin-top: 4px; font-size: var(--text-body-sm); line-height: var(--leading-body); color: var(--text-on-dark-muted); }
.cbtiw-ms-hero__note { grid-column: 1 / -1; margin: 0; font-size: var(--text-caption); color: var(--text-on-dark-muted); }

/* ---------- Promesas ---------- */
.cbtiw-ms-promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: var(--space-5); margin-top: var(--space-12); }
.cbti-h3.cbtiw-ms-promise__t { margin-top: var(--space-4); }
.cbtiw-ms-promise__p { margin: var(--space-2) 0 0; font-size: var(--text-body-sm); line-height: var(--leading-body); color: var(--text-muted); }
.cbtiw-ms-promise__list { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.cbtiw-ms-promise__item { display: flex; flex-direction: column; gap: 2px; padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.cbtiw-ms-promise__name { font-size: var(--text-body-sm); line-height: var(--leading-body); font-weight: var(--weight-medium); color: var(--text-strong); }
.cbtiw-ms-promise__state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-caption); color: var(--text-muted); }
.cbtiw-ms-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }

/* ---------- Planes ---------- */
.cbtiw-ms-plans { scroll-margin-top: 80px; }
/* Botón de ancho completo del diseño (full-width): flex y sin nowrap. */
.tier-cta > .cbti-btn { display: flex; width: 100%; white-space: normal; text-align: center; box-sizing: border-box; }

/* ---------- Roadmap ---------- */
.cbtiw-ms-roadmap { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6) var(--section-y); scroll-margin-top: 80px; box-sizing: border-box; }
.cbtiw-ms-roadmap__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-6); margin-top: var(--space-12); }
.cbtiw-ms-roadmap__col { min-width: 0; border-top: 4px solid var(--border-subtle); padding-top: var(--space-5); }
.cbtiw-ms-roadmap__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.cbtiw-ms-roadmap__count { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cbtiw-ms-roadmap__list { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.cbtiw-ms-roadmap__item { font-size: var(--text-body-sm); line-height: var(--leading-body); color: var(--text-body); padding: var(--space-3) var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--white); }

/* ---------- Colaboradores ---------- */
.cbtiw-ms-collab { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6) var(--section-y); box-sizing: border-box; }
.cbtiw-ms-collab__card { position: relative; background: var(--surface-subtle); color: var(--text-body); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-8); font-family: var(--font-body); box-shadow: none; overflow: hidden; }
.cbtiw-ms-collab__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-6); }
.cbtiw-ms-collab__copy { min-width: 0; flex: 1 1 420px; max-width: 680px; }
.cbtiw-ms-kicker { font-size: var(--text-eyebrow); font-weight: var(--weight-bold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent-strong); }
/* line-height: normal = valor heredado en el diseño (el h2 no lo fija). */
.cbtiw-ms-collab__title { margin: var(--space-3) 0 0; font-family: var(--font-display); font-size: var(--text-h2); font-weight: var(--weight-black); line-height: normal; color: var(--text-strong); text-wrap: balance; }
.cbtiw-ms-collab__text { margin: var(--space-3) 0 0; font-size: var(--text-body); line-height: var(--leading-body); color: var(--text-muted); }
.cbtiw-ms-collab__cta { flex: 0 0 auto; }

/* ---------- Preguntas frecuentes ---------- */
.cbtiw-ms-faq { max-width: var(--container-narrow, 860px); margin: 0 auto; padding: 0 var(--space-6) var(--section-y); box-sizing: border-box; }
.cbtiw-ms-faq__list { margin-top: var(--space-8); }
