/* ==========================================================================
   Metodología (/metodologia-intap). Prefijo mt-. Depende de rediseno.css.
   Fuente: Metodologia.dc.html (solo trae el artboard de escritorio: en celular la lista de
   pasos pasa a una fila deslizable sobre el detalle, el patrón de los selectores de la home).

   Trampas heredadas de styles.css: `p { text-align: justify; color: gray }` y
   `h1,h2,h3 { line-height: .8 !important }`, además de `button` sin reset.
   ========================================================================== */

/* ---------- portada ---------- */
.mt-hero { padding-bottom: 76px; }
.mt-hero__in { max-width: 860px; }
.mt-hero .mt-lead { max-width: 700px; text-align: left; }

/* ---------- los diez pasos ---------- */
.mt-sec { padding: 64px var(--rd-px) 108px; background: var(--intap-white); color: var(--intap-ink); }
.mt-stepper { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 20px; align-items: start; }
.mt-rail { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mt-step {
  display: flex; align-items: center; gap: 18px; width: 100%; margin: 0; padding: 16px 20px;
  border: 0; border-left: 2px solid rgba(0, 33, 69, 0.12); background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.mt-step:hover { background: rgba(31, 113, 184, 0.05); border-left-color: rgba(31, 113, 184, 0.45); }
.mt-step.is-on { border-left-color: var(--intap-blue); background: rgba(57, 226, 240, 0.10); }
.mt-step__n { flex: none; min-width: 26px; font-family: var(--intap-font-display); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--intap-ink-gray); }
.mt-step.is-on .mt-step__n { color: var(--intap-blue); }
.mt-step__t { font-family: var(--intap-font-display); font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--intap-ink); }
.mt-step.is-on .mt-step__t { font-weight: 600; }

.mt-panels { min-width: 0; }
.mt-panel {
  min-height: 480px; padding: 52px 56px; border: 1px solid rgba(31, 113, 184, 0.28); border-radius: var(--intap-r-card);
  background: rgba(57, 226, 240, 0.07); animation: mt-in .35s var(--rd-ease);
}
.mt-panel[hidden] { display: none; }
@keyframes mt-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mt-panel__n { font-family: var(--intap-font-display); font-size: 82px; font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; color: rgba(31, 113, 184, 0.24); }
.rd .mt-panel__t { margin: 18px 0 0; font-family: var(--intap-font-display); font-size: 38px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1 !important; color: var(--intap-ink); }
.mt-panel__b { max-width: 620px; margin-top: 26px; font-size: 17.5px; line-height: 1.74; text-align: left; color: var(--intap-ink); opacity: 0.82; }
/* en inglés hay pasos sin texto todavía: el párrafo vacío no ocupa espacio */
.mt-panel__b:empty { display: none; }
.mt-bar { display: flex; align-items: center; gap: 14px; margin-top: 46px; }
.mt-bar__lbl { display: flex; gap: 6px; flex: none; font-family: var(--intap-font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--intap-ink-gray); }
.mt-bar__track { flex: 1; height: 2px; position: relative; background: rgba(0, 33, 69, 0.14); }
.mt-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--intap-cyan); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1279.98px) {
  .mt-stepper { grid-template-columns: 340px minmax(0, 1fr); }
  .mt-panel { padding: 40px 36px; }
}

@media (max-width: 991.98px) {
  .mt-sec { padding-top: 44px; padding-bottom: 80px; }
  .mt-stepper { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* la lista de pasos se vuelve una fila deslizable */
  .mt-rail { flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .mt-step { flex: none; width: auto; gap: 10px; padding: 12px 16px; border: 1px solid rgba(0, 33, 69, 0.14); border-radius: var(--intap-r-pill); scroll-snap-align: start; white-space: nowrap; }
  .mt-step:hover { border-color: rgba(31, 113, 184, 0.45); }
  .mt-step.is-on { border-color: var(--intap-blue); }
  .mt-step__n { min-width: 0; }
  .mt-step__t { font-size: 14.5px; }
  .mt-panel { min-height: 0; padding: 34px 28px; }
  .mt-panel__n { font-size: 64px; }
  .rd .mt-panel__t { font-size: 32px; }
}

@media (max-width: 575.98px) {
  .mt-sec { padding-top: 32px; padding-bottom: 64px; }
  .mt-panel { padding: 28px 22px; }
  .mt-panel__n { font-size: 52px; }
  .rd .mt-panel__t { font-size: 27px; }
  .mt-panel__b { font-size: 16px; line-height: 1.7; margin-top: 20px; }
  .mt-bar { margin-top: 32px; }
}

/* ==========================================================================
   Todo el movimiento se apaga con prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .mt-panel { animation: none !important; }
  .mt-step { transition: none !important; }
}
