/* =========================================================
   ACADEMIA TARVOS · RESOURCE DESIGN SYSTEM 2026
   Capa final y común para todas las herramientas públicas.
   Se carga después del CSS específico de cada recurso.
   ========================================================= */

.tarvos-resource-page {
  background: #fff !important;
}

.tarvos-resource-page {
  --tr-brand: #6f3df4;
  --tr-brand-strong: #5928d6;
  --tr-brand-soft: #f5f2ff;
  --tr-ink: #101426;
  --tr-copy: #536078;
  --tr-muted: #7b8598;
  --tr-line: #e5e8ef;
  --tr-line-strong: #d9dee8;
  --tr-canvas: #f7f8fb;
  --tr-surface: #fff;
  --tr-success: #087653;
  --tr-success-soft: #edf8f4;
  --tr-danger: #b62e2a;
  --tr-danger-soft: #fff7f6;
  --tr-radius: 20px;
  --tr-radius-sm: 13px;
  color: var(--tr-ink);
}

.tarvos-resource-page,
.tarvos-resource-page :is(input, select, textarea, button) {
  font-family: inherit;
}

.tarvos-resource-page :is(.tarvos-resource-shell, .tarvos-calculator-shell, .tarvos-study-shell, .tarvos-cutoffs__shell, .tarvos-exams-shell, .tarvos-materials-shell, .tarvos-exam-stats__shell) {
  width: min(1320px, calc(100% - clamp(32px, 6vw, 96px))) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
  padding: 0 0 clamp(78px, 8vw, 116px) !important;
}

/* ---------- Hero común ---------- */
.tarvos-tool-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 78px) 0 clamp(50px, 6vw, 72px);
  border-bottom: 1px solid var(--tr-line);
}

.tarvos-tool-hero::after {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 61, 244, .09) 0, rgba(111, 61, 244, .035) 35%, transparent 70%);
  content: "";
  pointer-events: none;
}

.tarvos-tool-hero__copy,
.tarvos-tool-hero__footer {
  position: relative;
  z-index: 1;
}

.tarvos-tool-hero__copy {
  max-width: 1040px;
}

.tarvos-tool-hero .tarvos-page-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tr-brand-strong) !important;
  box-shadow: none !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
  letter-spacing: .115em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}

.tarvos-tool-hero .tarvos-page-tag::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--tr-brand);
  box-shadow: 0 0 0 5px rgba(111, 61, 244, .09);
  content: "";
}

.tarvos-tool-hero h1 {
  max-width: 1000px;
  margin: 0 !important;
  color: var(--tr-ink) !important;
  font-size: clamp(3rem, 5.25vw, 4.8rem) !important;
  font-weight: 850 !important;
  letter-spacing: -.06em !important;
  line-height: .99 !important;
  text-wrap: balance;
}

.tarvos-tool-hero__lead {
  max-width: 840px;
  margin: 22px 0 0 !important;
  color: var(--tr-copy) !important;
  font-size: clamp(1.03rem, 1.35vw, 1.18rem) !important;
  line-height: 1.72 !important;
  text-wrap: pretty;
}

.tarvos-tool-hero__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(32px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid rgba(229, 232, 239, .9);
}

.tarvos-tool-hero__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
  width: min(880px, 100%);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tarvos-tool-hero__features li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 !important;
  color: #626d82;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.48;
}

.tarvos-tool-hero__features li > span {
  width: 5px;
  height: 5px;
  margin-top: .48em;
  border-radius: 50%;
  background: var(--tr-brand);
}

.tarvos-tool-hero__jump {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 2px 0 0;
  color: var(--tr-ink) !important;
  text-decoration: none !important;
  font-size: .83rem;
  font-weight: 800;
  white-space: nowrap;
}

.tarvos-tool-hero__jump svg {
  width: 17px;
  height: 17px;
  color: var(--tr-brand);
  transition: transform .18s ease;
}

.tarvos-tool-hero__jump:hover svg { transform: translateY(3px); }

/* ---------- Área funcional ---------- */
.tarvos-tool-workspace {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 24px;
  margin-top: 0 !important;
  padding-top: clamp(54px, 6vw, 76px) !important;
  padding-bottom: clamp(54px, 6vw, 76px) !important;
}

.tarvos-tool-workspace::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  border-top: 1px solid #eceef3;
  border-bottom: 1px solid #eceef3;
  background: var(--tr-canvas);
  content: "";
  transform: translateX(-50%);
}

.tarvos-tool-workspace::after { display: none !important; }

.tarvos-resource-page :is(
  .tarvos-calculator-card,
  .tarvos-calculator-result,
  .tarvos-study-panel,
  .tarvos-study-session,
  .tarvos-cutoffs__finder,
  .tarvos-exams-search,
  .tarvos-exam-card,
  .tarvos-exam-stats__form-card,
  .tarvos-exam-stats__panel,
  .tarvos-exam-stats__matches,
  .tarvos-materials-discovery
) {
  border-color: var(--tr-line) !important;
  border-radius: var(--tr-radius) !important;
  background: var(--tr-surface) !important;
  box-shadow: 0 18px 50px rgba(24, 31, 55, .045) !important;
}

.tarvos-resource-page :is(input, select, textarea) {
  border-color: #dde2eb !important;
}

.tarvos-resource-page :is(input, select, textarea):focus,
.tarvos-resource-page :is(input, select, textarea):focus-visible {
  border-color: var(--tr-brand) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(111, 61, 244, .11) !important;
}

.tarvos-tool-button,
.tarvos-resource-page :is(.tarvos-calculator-button--primary, .tarvos-study-button--primary, .tarvos-cutoffs__modal-cta, .tarvos-exam-stats__submit) {
  border-radius: 12px !important;
}

.tarvos-tool-button--primary,
.tarvos-resource-page :is(.tarvos-calculator-button--primary, .tarvos-study-button--primary, .tarvos-cutoffs__modal-cta, .tarvos-exam-stats__submit) {
  border-color: var(--tr-brand) !important;
  background: var(--tr-brand) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(111, 61, 244, .16) !important;
}

.tarvos-tool-button--primary:hover,
.tarvos-resource-page :is(.tarvos-calculator-button--primary, .tarvos-study-button--primary, .tarvos-cutoffs__modal-cta, .tarvos-exam-stats__submit):hover {
  border-color: var(--tr-brand-strong) !important;
  background: var(--tr-brand-strong) !important;
}

.tarvos-tool-button--secondary {
  border-color: var(--tr-line-strong) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--tr-ink) !important;
  box-shadow: none !important;
}

.tarvos-resource-page :is(.tarvos-calculator-step, .tarvos-study-method[aria-pressed="true"], .tarvos-cutoffs__count) {
  border-color: #d9cefb !important;
  background: var(--tr-brand-soft) !important;
  color: var(--tr-brand-strong) !important;
}

.tarvos-resource-page .tarvos-study-method[aria-pressed="true"] {
  box-shadow: inset 3px 0 0 var(--tr-brand) !important;
}

/* Resultado de la calculadora: integrado con el resto, sin bloque oscuro. */
.tarvos-resource-calculator .tarvos-calculator-score {
  border: 1px solid #ddd4fb !important;
  background: linear-gradient(145deg, #faf8ff, #f4f0ff) !important;
  color: var(--tr-ink) !important;
  box-shadow: none !important;
}
.tarvos-resource-calculator .tarvos-calculator-score::before { display: none !important; }
.tarvos-resource-calculator .tarvos-calculator-score > span { color: var(--tr-brand) !important; }
.tarvos-resource-calculator .tarvos-calculator-score em { color: #68738a !important; }
.tarvos-resource-calculator .tarvos-calculator-score__badge {
  border-color: #e0e4ec !important;
  background: #fff !important;
  color: #68738a !important;
}
.tarvos-resource-calculator .tarvos-calculator-score__badge[data-status="ready"] {
  border-color: #cdebdc !important;
  background: var(--tr-success-soft) !important;
  color: var(--tr-success) !important;
}
.tarvos-resource-calculator .tarvos-calculator-score__badge[data-status="warning"] {
  border-color: #efd8a9 !important;
  background: #fff9ed !important;
  color: #8b5b0e !important;
}
.tarvos-resource-calculator .tarvos-calculator-result__formula {
  background: #f8f6ff !important;
  color: #5e5577 !important;
}
.tarvos-resource-calculator .tarvos-calculator-result__formula strong { color: #261d3f !important; }
.tarvos-resource-calculator .tarvos-calculator-scorebar span { background: var(--tr-brand) !important; }

/* Notas de corte: elimina estilos de hero antiguos que ya no forman parte del DOM. */
.tarvos-cutoffs__hero { display: none !important; }
.tarvos-cutoffs__finder { padding: clamp(22px, 3vw, 30px) !important; }

/* Estadísticas: franja de estado de datos dentro del área funcional. */
.tarvos-exam-stats__data-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px 18px;
  border: 1px solid var(--tr-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .78);
}
.tarvos-exam-stats__data-strip > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.tarvos-exam-stats__data-strip p {
  margin: 0;
  color: var(--tr-copy);
  font-size: .81rem;
  line-height: 1.45;
}
.tarvos-exam-stats__data-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
}
.tarvos-exam-stats__data-metrics div { display: flex; align-items: baseline; gap: 5px; }
.tarvos-exam-stats__data-metrics dt { color: var(--tr-ink); font-weight: 850; }
.tarvos-exam-stats__data-metrics dd { margin: 0; color: var(--tr-muted); font-size: .74rem; }
.tarvos-exam-stats__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--tr-success);
  font-size: .72rem;
  font-weight: 800;
}
.tarvos-exam-stats__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.tarvos-exam-stats__status.is-pending { color: #a26a0b; }

/* ---------- Información editorial / GEO ---------- */
.tarvos-tool-knowledge {
  scroll-margin-top: 28px;
  margin-top: clamp(82px, 9vw, 126px);
  padding-top: clamp(46px, 5vw, 64px);
  border-top: 1px solid var(--tr-line);
}

.tarvos-tool-knowledge__heading {
  max-width: 920px;
}

.tarvos-tool-knowledge__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--tr-brand-strong);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.tarvos-tool-knowledge__eyebrow::before {
  width: 22px;
  height: 1px;
  background: var(--tr-brand);
  content: "";
}

.tarvos-tool-knowledge__heading h2 {
  max-width: 900px;
  margin: 0;
  color: var(--tr-ink);
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  font-weight: 850;
  letter-spacing: -.052em;
  line-height: 1.04;
  text-wrap: balance;
}

.tarvos-tool-knowledge__lead {
  max-width: 840px;
  margin: 18px 0 0;
  color: var(--tr-copy);
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.tarvos-tool-knowledge__context {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(40px, 7vw, 88px);
  margin-top: clamp(34px, 4vw, 48px);
  padding: clamp(30px, 4vw, 42px) 0;
  border-top: 1px solid var(--tr-line);
  border-bottom: 1px solid var(--tr-line);
}

.tarvos-tool-knowledge__context h3,
.tarvos-tool-knowledge__workflow h3,
.tarvos-tool-faq__heading h3 {
  margin: 0;
  color: var(--tr-ink);
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: -.018em;
}

.tarvos-tool-knowledge__principle-list {
  display: grid;
  gap: 0;
  margin-top: 15px;
  border-top: 1px solid var(--tr-line);
}

.tarvos-tool-knowledge__principle-list article {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--tr-line);
}

.tarvos-tool-knowledge__principle-list article > span {
  width: 6px;
  height: 6px;
  margin-top: .46em;
  border-radius: 50%;
  background: var(--tr-brand);
}

.tarvos-tool-knowledge__principle-list h4,
.tarvos-tool-knowledge__workflow-grid h4 {
  margin: 0;
  color: var(--tr-ink);
  font-size: .91rem;
  font-weight: 790;
}

.tarvos-tool-knowledge__principle-list p,
.tarvos-tool-knowledge__workflow-grid p {
  margin: 5px 0 0;
  color: #667188;
  font-size: .84rem;
  line-height: 1.58;
}

.tarvos-tool-knowledge__errors {
  align-self: start;
  padding: 20px 22px;
  border: 1px solid #f0dedb;
  border-radius: 16px;
  background: var(--tr-danger-soft);
}
.tarvos-tool-knowledge__errors h3 { color: #812d29; }
.tarvos-tool-knowledge__errors ul {
  display: grid;
  gap: 11px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: #6d5c5a;
  font-size: .82rem;
  line-height: 1.55;
}
.tarvos-tool-knowledge__errors li::marker { color: #c44a42; }

.tarvos-tool-knowledge__workflow {
  padding: clamp(34px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--tr-line);
}
.tarvos-tool-knowledge__workflow > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
}
.tarvos-tool-knowledge__workflow > header p,
.tarvos-tool-faq__heading p {
  max-width: 560px;
  margin: 0;
  color: var(--tr-muted);
  font-size: .8rem;
  line-height: 1.5;
}
.tarvos-tool-knowledge__workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  margin-top: 23px;
}
.tarvos-tool-knowledge__workflow-grid article {
  padding-top: 15px;
  border-top: 2px solid #ddd5fb;
}

.tarvos-tool-faq {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 86px);
  padding-top: clamp(38px, 5vw, 56px);
}
.tarvos-tool-faq__heading p { margin-top: 8px; }
.tarvos-tool-faq__list { border-top: 1px solid var(--tr-line); }
.tarvos-tool-faq details { border-bottom: 1px solid var(--tr-line); }
.tarvos-tool-faq summary {
  position: relative;
  min-height: 62px;
  padding: 19px 44px 19px 0;
  color: var(--tr-ink);
  font-size: .93rem;
  font-weight: 760;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.tarvos-tool-faq summary::-webkit-details-marker { display: none; }
.tarvos-tool-faq summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #e3ddf7;
  border-radius: 50%;
  color: var(--tr-brand-strong);
  content: "+";
  font-size: 1rem;
  font-weight: 650;
  transform: translateY(-50%);
}
.tarvos-tool-faq details[open] summary::after { content: "−"; }
.tarvos-tool-faq details p {
  max-width: 780px;
  margin: -1px 0 20px;
  padding-right: 40px;
  color: #606c83;
  font-size: .88rem;
  line-height: 1.68;
}

/* El reporte de errores queda como utilidad discreta al final. */
.tarvos-resource-page .tarvos-error-report-entry {
  display: flex !important;
  justify-content: flex-end !important;
  margin: 24px 0 0 !important;
}
.tarvos-resource-page .tarvos-error-report-entry :is(button, a) {
  min-height: 32px !important;
  padding: 0 2px !important;
  border: 0 !important;
  background: transparent !important;
  color: #8b93a2 !important;
  box-shadow: none !important;
  font-size: .71rem !important;
  font-weight: 700 !important;
}
.tarvos-resource-page .tarvos-error-report-entry :is(button, a):hover { color: var(--tr-brand-strong) !important; }

/* Mensajes redundantes que compiten con la tarea principal. */
.tarvos-resource-page :is(.tarvos-study-local-note, .tarvos-study-session__privacy, .tarvos-calculator-result__privacy) {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .tarvos-tool-hero__footer { align-items: flex-start; flex-direction: column; }
  .tarvos-tool-hero__features { grid-template-columns: 1fr; gap: 11px; }
  .tarvos-tool-knowledge__context { grid-template-columns: 1fr; gap: 28px; }
  .tarvos-tool-knowledge__workflow-grid { grid-template-columns: 1fr; gap: 18px; }
  .tarvos-tool-knowledge__workflow > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .tarvos-tool-faq { grid-template-columns: 1fr; gap: 16px; }
  .tarvos-exam-stats__data-strip { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .tarvos-resource-page :is(.tarvos-resource-shell, .tarvos-calculator-shell, .tarvos-study-shell, .tarvos-cutoffs__shell, .tarvos-exams-shell, .tarvos-materials-shell, .tarvos-exam-stats__shell) {
    width: min(100% - 24px, 1320px) !important;
  }
  .tarvos-tool-hero { padding-top: 34px; padding-bottom: 42px; }
  .tarvos-tool-hero::after { width: 320px; height: 320px; top: -120px; right: -150px; }
  .tarvos-tool-hero h1 { font-size: clamp(2.55rem, 13vw, 3.8rem) !important; }
  .tarvos-tool-hero__lead { margin-top: 17px !important; }
  .tarvos-tool-hero__footer { margin-top: 26px; padding-top: 18px; }
  .tarvos-tool-workspace { padding-top: 42px !important; padding-bottom: 46px !important; }
  .tarvos-tool-knowledge { margin-top: 70px; padding-top: 38px; }
  .tarvos-tool-knowledge__heading h2 { font-size: clamp(2rem, 10vw, 2.85rem); }
  .tarvos-tool-knowledge__context { margin-top: 28px; padding: 26px 0; }
  .tarvos-tool-knowledge__errors { padding: 18px; }
  .tarvos-tool-faq details p { padding-right: 8px; }
  .tarvos-exam-stats__data-metrics { width: 100%; justify-content: space-between; gap: 10px; }
  .tarvos-exam-stats__data-metrics div { align-items: flex-start; flex-direction: column; gap: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .tarvos-tool-hero__jump svg { transition: none; }
}

/* =========================================================
   RESOURCE DESIGN SYSTEM · REFINEMENT V2
   Dirección visual: editorial, limpia, sin franjas ni divisores decorativos.
   ========================================================= */

.tarvos-resource-page {
  --tr-brand: #6d43ed;
  --tr-brand-strong: #5730ce;
  --tr-brand-soft: #f5f2ff;
  --tr-ink: #111426;
  --tr-copy: #58647b;
  --tr-muted: #7c879a;
  --tr-line: #e7e9ef;
  --tr-surface-soft: #f7f7fa;
  --tr-surface-softer: #fafafd;
  background: #fff !important;
}

/* Hero: sin eyebrow, sin glow, sin franja y con altura común en escritorio. */
.tarvos-tool-hero {
  display: flex !important;
  align-items: center !important;
  min-height: clamp(370px, 30vw, 410px) !important;
  overflow: visible !important;
  padding: clamp(54px, 6.2vw, 86px) 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.tarvos-tool-hero::before,
.tarvos-tool-hero::after {
  display: none !important;
  content: none !important;
}

.tarvos-tool-hero__copy {
  max-width: 1020px !important;
}

.tarvos-tool-hero .tarvos-page-tag,
.tarvos-tool-hero__footer,
.tarvos-tool-hero__features {
  display: none !important;
}

.tarvos-tool-hero h1 {
  max-width: 1000px !important;
  margin: 0 !important;
  color: var(--tr-ink) !important;
  font-size: clamp(3rem, 5vw, 4.45rem) !important;
  font-weight: 820 !important;
  letter-spacing: -.055em !important;
  line-height: 1.015 !important;
  text-wrap: balance;
}

.tarvos-tool-hero__lead {
  max-width: 790px !important;
  margin: 24px 0 0 !important;
  color: var(--tr-copy) !important;
  font-size: clamp(1.02rem, 1.25vw, 1.14rem) !important;
  line-height: 1.72 !important;
  text-wrap: pretty;
}

.tarvos-tool-hero__jump {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: auto !important;
  margin-top: 28px !important;
  padding: 0 0 4px !important;
  border-bottom: 1px solid rgba(109, 67, 237, .32) !important;
  color: var(--tr-brand-strong) !important;
  font-size: .86rem !important;
  font-weight: 760 !important;
  text-decoration: none !important;
}

.tarvos-tool-hero__jump svg {
  width: 16px !important;
  height: 16px !important;
  color: currentColor !important;
  transition: transform .18s ease !important;
}

.tarvos-tool-hero__jump:hover svg { transform: translateX(3px) !important; }

/* Área funcional: desaparece el rectángulo gris a todo el ancho. */
.tarvos-tool-workspace {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: clamp(54px, 6vw, 78px) !important;
  background: transparent !important;
}

.tarvos-tool-workspace::before,
.tarvos-tool-workspace::after {
  display: none !important;
  content: none !important;
}

.tarvos-resource-page :is(
  .tarvos-calculator-card,
  .tarvos-calculator-result,
  .tarvos-study-panel,
  .tarvos-study-session,
  .tarvos-cutoffs__finder,
  .tarvos-exams-search,
  .tarvos-exam-card,
  .tarvos-exam-stats__form-card,
  .tarvos-exam-stats__panel,
  .tarvos-exam-stats__matches,
  .tarvos-materials-discovery
) {
  border: 1px solid #e8e9ef !important;
  border-radius: 22px !important;
  background: var(--tr-surface-softer) !important;
  box-shadow: 0 14px 40px rgba(22, 28, 45, .045) !important;
}

.tarvos-resource-page :is(input, select, textarea) {
  border-color: #e0e3ea !important;
  background-color: #fff !important;
}

/* Buscador principal de notas de corte: más ligero y menos “panel dentro de panel”. */
.tarvos-cutoffs__finder {
  padding: clamp(24px, 3.1vw, 34px) !important;
}
.tarvos-cutoffs__finder-head {
  margin-bottom: 24px !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}
.tarvos-cutoffs__finder-head h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.2rem) !important;
  letter-spacing: -.04em !important;
}
.tarvos-cutoffs__eyebrow {
  margin-bottom: 7px !important;
  color: var(--tr-brand-strong) !important;
  font-size: .67rem !important;
  letter-spacing: .11em !important;
}

/* ---------- Información editorial: sin “rejilla de líneas”. ---------- */
.tarvos-tool-knowledge {
  margin-top: clamp(74px, 8vw, 112px) !important;
  padding-top: 0 !important;
  border: 0 !important;
}

.tarvos-tool-knowledge__heading {
  display: grid !important;
  grid-template-columns: minmax(0, .86fr) minmax(360px, 1.14fr) !important;
  align-items: end !important;
  gap: clamp(36px, 6vw, 88px) !important;
  max-width: none !important;
  margin-bottom: clamp(38px, 5vw, 58px) !important;
}

.tarvos-tool-knowledge__eyebrow { display: none !important; }

.tarvos-tool-knowledge__heading h2 {
  max-width: 650px !important;
  margin: 0 !important;
  color: var(--tr-ink) !important;
  font-size: clamp(2.15rem, 3.4vw, 3.15rem) !important;
  font-weight: 810 !important;
  letter-spacing: -.052em !important;
  line-height: 1.06 !important;
  text-wrap: balance;
}

.tarvos-tool-knowledge__lead {
  max-width: 680px !important;
  margin: 0 !important;
  color: var(--tr-copy) !important;
  font-size: .98rem !important;
  line-height: 1.72 !important;
}

.tarvos-tool-knowledge__principles {
  margin: 0 !important;
}

.tarvos-tool-knowledge__principle-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  border: 0 !important;
}

.tarvos-tool-knowledge__principle-list article {
  display: block !important;
  min-height: 190px !important;
  padding: 24px 24px 26px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--tr-surface-soft) !important;
}

.tarvos-tool-knowledge__principle-list article > span:not(.tarvos-tool-knowledge__number) {
  display: none !important;
}

.tarvos-tool-knowledge__number {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tr-brand) !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
}

.tarvos-tool-knowledge__principle-list h4,
.tarvos-tool-knowledge__workflow-grid h4 {
  margin: 0 !important;
  color: var(--tr-ink) !important;
  font-size: 1rem !important;
  font-weight: 790 !important;
  letter-spacing: -.022em !important;
  line-height: 1.35 !important;
}

.tarvos-tool-knowledge__principle-list p,
.tarvos-tool-knowledge__workflow-grid p {
  margin: 8px 0 0 !important;
  color: #667188 !important;
  font-size: .86rem !important;
  line-height: 1.62 !important;
}

/* Nota importante en tono neutro, no alerta roja. */
.tarvos-tool-knowledge__errors {
  display: grid !important;
  grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr) !important;
  gap: clamp(24px, 4vw, 54px) !important;
  align-items: start !important;
  margin-top: 16px !important;
  padding: clamp(24px, 3vw, 34px) !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #f5f2fb !important;
}

.tarvos-tool-knowledge__note {
  display: inline-block !important;
  margin-bottom: 10px !important;
  color: var(--tr-brand-strong) !important;
  font-size: .66rem !important;
  font-weight: 820 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
}

.tarvos-tool-knowledge__errors h3 {
  margin: 0 !important;
  color: var(--tr-ink) !important;
  font-size: 1.08rem !important;
  font-weight: 790 !important;
  letter-spacing: -.025em !important;
}

.tarvos-tool-knowledge__errors ul {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  color: #606b80 !important;
  font-size: .82rem !important;
  line-height: 1.58 !important;
}

.tarvos-tool-knowledge__errors li {
  position: relative !important;
  padding-left: 16px !important;
}
.tarvos-tool-knowledge__errors li::before {
  position: absolute !important;
  top: .62em !important;
  left: 0 !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: var(--tr-brand) !important;
  content: "" !important;
}
.tarvos-tool-knowledge__errors li::marker { content: "" !important; }

.tarvos-tool-knowledge__workflow {
  margin-top: clamp(56px, 6vw, 78px) !important;
  padding: 0 !important;
  border: 0 !important;
}

.tarvos-tool-knowledge__workflow > header {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 28px !important;
  margin-bottom: 22px !important;
}

.tarvos-tool-knowledge__workflow > header h3,
.tarvos-tool-faq__heading h3 {
  color: var(--tr-ink) !important;
  font-size: 1.22rem !important;
  font-weight: 790 !important;
  letter-spacing: -.028em !important;
}

.tarvos-tool-knowledge__workflow > header p,
.tarvos-tool-faq__heading p {
  margin: 0 !important;
  color: var(--tr-muted) !important;
  font-size: .82rem !important;
}

.tarvos-tool-knowledge__workflow-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
}

.tarvos-tool-knowledge__workflow-grid article {
  min-height: 170px !important;
  padding: 24px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px #e9eaf0 !important;
}

.tarvos-tool-knowledge__step-number {
  display: block !important;
  margin-bottom: 26px !important;
  color: #9a8acb !important;
  font-size: .75rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

/* FAQ: bloques suaves, no cuatro líneas horizontales largas. */
.tarvos-tool-faq {
  display: grid !important;
  grid-template-columns: minmax(230px, .42fr) minmax(0, 1fr) !important;
  gap: clamp(36px, 6vw, 78px) !important;
  margin-top: clamp(64px, 7vw, 90px) !important;
  padding: clamp(28px, 3.2vw, 40px) !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--tr-surface-soft) !important;
}

.tarvos-tool-faq__heading p { margin-top: 8px !important; }
.tarvos-tool-faq__list {
  display: grid !important;
  gap: 9px !important;
  border: 0 !important;
}

.tarvos-tool-faq details {
  border: 0 !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(17, 20, 38, .02) !important;
}

.tarvos-tool-faq summary {
  min-height: 0 !important;
  padding: 16px 48px 16px 18px !important;
  font-size: .91rem !important;
  font-weight: 750 !important;
}

.tarvos-tool-faq summary::after {
  right: 14px !important;
  width: 25px !important;
  height: 25px !important;
  border: 0 !important;
  background: #f4f1fd !important;
  color: var(--tr-brand-strong) !important;
  font-size: .92rem !important;
}

.tarvos-tool-faq details p {
  max-width: 780px !important;
  margin: -2px 0 0 !important;
  padding: 0 48px 18px 18px !important;
  color: #657086 !important;
  font-size: .86rem !important;
  line-height: 1.65 !important;
}

.tarvos-resource-page .tarvos-error-report-entry {
  margin-top: 18px !important;
}

@media (max-width: 980px) {
  .tarvos-tool-knowledge__heading {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 16px !important;
  }
  .tarvos-tool-knowledge__principle-list,
  .tarvos-tool-knowledge__workflow-grid {
    grid-template-columns: 1fr !important;
  }
  .tarvos-tool-knowledge__principle-list article,
  .tarvos-tool-knowledge__workflow-grid article {
    min-height: 0 !important;
  }
  .tarvos-tool-knowledge__number,
  .tarvos-tool-knowledge__step-number { margin-bottom: 16px !important; }
  .tarvos-tool-knowledge__errors {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .tarvos-tool-knowledge__errors ul {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .tarvos-tool-faq {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
}

@media (max-width: 720px) {
  .tarvos-tool-hero {
    display: block !important;
    min-height: 0 !important;
    padding-top: 38px !important;
    padding-bottom: 54px !important;
  }
  .tarvos-tool-hero h1 {
    font-size: clamp(2.45rem, 11.8vw, 3.35rem) !important;
    letter-spacing: -.05em !important;
  }
  .tarvos-tool-hero__lead { margin-top: 18px !important; }
  .tarvos-tool-hero__jump { margin-top: 22px !important; }
  .tarvos-tool-workspace { padding-bottom: 48px !important; }
  .tarvos-tool-knowledge { margin-top: 66px !important; }
  .tarvos-tool-knowledge__heading { margin-bottom: 30px !important; }
  .tarvos-tool-knowledge__heading h2 { font-size: clamp(2rem, 9vw, 2.65rem) !important; }
  .tarvos-tool-knowledge__principle-list article { padding: 21px !important; }
  .tarvos-tool-knowledge__errors { padding: 21px !important; }
  .tarvos-tool-knowledge__workflow { margin-top: 48px !important; }
  .tarvos-tool-knowledge__workflow > header {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  .tarvos-tool-faq {
    margin-top: 50px !important;
    padding: 20px !important;
    border-radius: 18px !important;
  }
}

/* =========================================================
   TARVOS · PUENTE EDITORIAL · 2026-09-17
   Conversión contextual sin convertir una herramienta gratuita
   en un banner comercial intrusivo.
   ========================================================= */
.tarvos-tool-course-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 34px;
  align-items: center;
  margin-top: clamp(38px, 5vw, 58px);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #faf9ff 100%);
}
.tarvos-tool-course-bridge > div > span {
  display: block;
  margin-bottom: 7px;
  color: #6550c7;
  font-size: .7rem;
  font-weight: 840;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tarvos-tool-course-bridge strong {
  display: block;
  max-width: 48rem;
  color: #172033;
  font-size: clamp(1rem, .96rem + .2vw, 1.13rem);
  line-height: 1.35;
}
.tarvos-tool-course-bridge p {
  max-width: 49rem;
  margin: 7px 0 0;
  color: #667085;
  font-size: .82rem;
  line-height: 1.55;
}
.tarvos-tool-course-bridge > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid #d6cff5;
  border-radius: 999px;
  color: #4e35b6;
  background: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.tarvos-tool-course-bridge > a:hover,
.tarvos-tool-course-bridge > a:focus-visible {
  border-color: #bfb2ee;
  background: #f7f4ff;
}
@media (max-width: 720px) {
  .tarvos-tool-course-bridge { grid-template-columns: 1fr; gap: 16px; }
  .tarvos-tool-course-bridge > a { width: 100%; }
}
