/* ============================================================
   VETRO — Mi Póliza V3 (Product Ready, 2026-08-22)
   Reconstruido sobre v2.css (mismo sistema de diseño dark-aurora que
   v2/index.html y v2/agente.html) -- REUSE BACKEND, REBUILD EXPERIENCE
   WHEN CLEANER (ADR-035 v1.2.0). El anterior mi-vetro.html usaba un
   sistema de diseño V1 completamente distinto (cream/navy/teal, Plus
   Jakarta Sans/DM Sans) desconectado de V2/V3.
   ============================================================ */

.mp-body { min-height: 100dvh; }

.v2-header { position: static; padding: 1.3rem 1.5rem; }

.mp-main {
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
}
.mp-container { width: 100%; max-width: 640px; }

/* ── Estados de carga/error ── */
.mp-loading, .mp-message {
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--muted);
}
.mp-spinner {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  border-top-color: var(--aurora);
  animation: mp-spin .8s linear infinite;
  margin-bottom: 1rem;
}
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mp-message-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.mp-message-title {
  font-family: var(--f-display); font-size: 1.4rem; font-weight: 300;
  color: var(--fg); margin-bottom: .6rem; text-wrap: balance;
}
.mp-message-body { font-size: .88rem; line-height: 1.6; max-width: 40ch; margin: 0 auto; }

/* ── Encabezado de página ── */
.mp-eyebrow {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--aurora); margin-bottom: .9rem;
}
.mp-title {
  font-family: var(--f-display); font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 300; line-height: 1.2; letter-spacing: -.02em; margin-bottom: .6rem;
  text-wrap: balance;
}
.mp-sub { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: 2rem; max-width: 48ch; }

/* ACCEPTANCE ITERATION (2026-08-26) -- badge de procedencia del precio,
   mismo patrón que v2.js renderQuoteCard (.v2-quote-badge). Este es el
   momento de mayor peso de confianza del journey (elegir una opción real)
   -- antes no había ninguna señal visual de si el precio viene de un PDF
   real de la aseguradora o de captura manual del agente. */
.mp-badge {
  display: inline-block;
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  background: var(--card); border: 1px solid var(--border-2);
  border-radius: var(--radius-pill); padding: .2rem .6rem;
  margin-left: .5rem; vertical-align: middle;
}
.mp-badge--firm { color: var(--aurora-ink); background: var(--aurora); border-color: var(--aurora); }

/* ── Live Status (CEO DIRECTIVE "CLOSE VETRO AUTO SELLABLE V1", 2026-08-26) ──
   Vertical tracker a propósito, no la tira horizontal de v2.js: acá es una
   página de estado (se lee de arriba a abajo), no una franja decorativa
   dentro del hero -- evita repetir el bug de overlap móvil que esa franja
   horizontal tuvo que corregir en su propio ciclo (PR #78). */
.mp-stage-track { display: flex; flex-direction: column; gap: 0; margin: 1.4rem 0 1.6rem; }
.mp-stage-step {
  display: flex; align-items: center; gap: .7rem; padding: .5rem 0;
  font-size: .85rem; color: var(--muted); position: relative;
}
.mp-stage-step:not(:last-child)::before {
  content: ''; position: absolute; left: 5px; top: 1.6rem; bottom: -.5rem;
  width: 1px; background: var(--border);
}
.mp-stage-dot {
  width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border-2); z-index: 1;
}
.mp-stage-step--done .mp-stage-dot { background: var(--aurora); border-color: var(--aurora); }
.mp-stage-step--done { color: var(--fg); }
.mp-stage-step--active .mp-stage-dot {
  background: var(--aurora); border-color: var(--aurora);
  box-shadow: 0 0 0 4px var(--aurora-dim);
}
.mp-stage-step--active .mp-stage-label { color: var(--fg); font-weight: 600; }
.mp-stage-agente {
  font-size: .85rem; color: var(--fg); background: var(--aurora-dim);
  border: 1px solid var(--aurora); border-radius: .7rem; padding: .7rem .9rem;
  margin-bottom: 1.2rem;
}

/* ── Tarjetas ── */
.mp-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 1.4rem 1.5rem; margin-bottom: 1rem;
}
.mp-dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.2rem; font-size: .85rem; }
.mp-dl dt { color: var(--muted); }
.mp-dl dd { color: var(--fg); font-family: var(--f-mono); font-size: .82rem; text-align: right; }

/* ── Barra de vigencia ── */
.mp-progress-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.mp-progress-track { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.mp-progress-fill { height: 100%; background: var(--aurora); border-radius: 3px; transition: width .6s ease; }

/* ── Opciones de cotización (elegir) ── */
.mp-options { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.5rem; }
.mp-option {
  display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 1.15rem;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--border);
  cursor: pointer; transition: all .2s ease;
}
.mp-option:hover { border-color: var(--border-2); }
.mp-option--selected { border-color: rgba(127, 227, 196, .5); background: var(--aurora-dim); }
.mp-option-radio {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem; border-radius: 50%;
  border: 1.5px solid var(--border-2); display: grid; place-items: center; transition: all .2s ease;
}
.mp-option--selected .mp-option-radio { border-color: var(--aurora); background: var(--aurora); }
.mp-option--selected .mp-option-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--aurora-ink); }
.mp-option-plan { font-weight: 600; color: var(--fg); font-size: .92rem; margin-bottom: .2rem; }
.mp-option-price { font-family: var(--f-mono); font-size: .82rem; color: var(--aurora); }
.mp-option-desc { font-size: .78rem; color: var(--muted); margin-top: .3rem; line-height: 1.5; }

.mp-freq-group { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.mp-freq-label {
  display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--fg);
  cursor: pointer; padding: .5rem .9rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--card);
}
.mp-freq-label input { accent-color: var(--aurora); }

.mp-status-line { text-align: center; font-size: .8rem; color: var(--muted); margin-top: .9rem; min-height: 1.2em; }

/* ── Descarga PDF ── */
.mp-download {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  margin-top: 1.5rem; padding: 1rem 1.5rem; border-radius: var(--radius-pill);
  background: var(--aurora); color: var(--aurora-ink); font-size: .9rem; font-weight: 600;
  text-decoration: none; transition: all .25s ease;
}
.mp-download:hover { box-shadow: 0 0 28px rgba(127, 227, 196, .35); }

/* ── Alerta de siniestro activo ── */
.mp-claim-alert {
  display: flex; align-items: center; gap: .6rem; font-size: .84rem; color: var(--attention);
  background: var(--attention-dim); border: 1px solid rgba(255, 178, 122, .3);
  border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .mp-main { padding: 1.5rem 1.1rem 3rem; }
  .mp-card { padding: 1.1rem 1.2rem; }
}
