/* ============================================================
   BYE MULTAS — Reporte premium (topbar oscuro en resultado; sidebar en servicio)
   ============================================================ */

/* Tipografías y acento: markus-theme.css (Markus IP) */

body.page-reporte {
  --rp-navy: #1e3a5f;
  --rp-navy-mid: #2d4a6f;
  --rp-cream: #fafafa;
  --rp-canvas: #fafafa;
  --rp-white: #ffffff;
  --rp-ink: #1e293b;
  --rp-muted: #64748b;
  --rp-soft: #94a3b8;
  --rp-red: #dc2626;
  --rp-red-glow: rgba(220, 38, 38, 0.25);
  --rp-blue: #ff006e;
  --rp-blue-soft: rgba(255, 0, 110, 0.12);
  --rp-green: #059669;
  --rp-green-soft: rgba(5, 150, 105, 0.12);
  --rp-gold: #ff006e;
  --rp-radius: 12px;
  --rp-radius-lg: 12px;
  --font-ui: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;

  font-family: var(--font-ui);
  background: var(--rp-canvas) !important;
  color: var(--rp-ink);
  color-scheme: light;
  min-height: 100vh;
}

body.page-reporte .reporte-empty-inner .alert-ok {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.22);
  color: #047857;
}

body.page-reporte::before,
body.page-reporte::after {
  display: none !important;
}

body.page-reporte .site-footer {
  background: var(--rp-navy);
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

body.page-reporte .site-footer-markus {
  font-size: inherit;
}

body.page-reporte a {
  color: var(--rp-blue);
}

/* —— App shell (resultado: barra superior + contenido; servicio: sigue con sidebar) —— */
.reporte-app {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 52px);
  min-height: calc(100vh - 52px);
  width: 100%;
  max-width: min(1440px, 100%);
  margin: 0 auto;
}

body.page-servicio .reporte-app {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
}

/* Header resultado: mismo patrón que inicio + tema azul (.site-header--navy en main/markus) */

@media (max-width: 960px) {
  body.page-servicio .reporte-app {
    grid-template-columns: 1fr;
  }
  .reporte-sidebar {
    position: relative;
    min-height: auto;
  }
  .reporte-sticky-cta {
    position: relative;
    bottom: auto;
  }
}

/* —— Sidebar —— */
.reporte-sidebar {
  background: linear-gradient(180deg, var(--rp-navy) 0%, #0a121d 100%);
  color: #fff;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
}

.reporte-sidebar .reporte-site-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 0 0.85rem;
}

.reporte-sidebar .reporte-site-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.reporte-sidebar .reporte-site-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.reporte-sidebar .reporte-site-links a.is-active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reporte-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.reporte-brand-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.reporte-brand-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.reporte-brand-mark:hover {
  opacity: 0.92;
}

.reporte-brand-img {
  display: block;
  height: clamp(2.03rem, 4.85vw, 2.6rem);
  width: auto;
  max-width: min(214px, 90%);
  object-fit: contain;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.reporte-brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.2;
}

.reporte-brand-text small {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.reporte-brand a {
  color: inherit;
  text-decoration: none;
}
.reporte-brand a:hover {
  opacity: 0.9;
}

/* Trust card */
.reporte-trust {
  margin-top: auto;
  padding: 1rem 1rem;
  border-radius: var(--rp-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.reporte-trust::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rp-green-soft);
  color: #34d399;
  font-weight: 800;
  font-size: 0.65rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* —— Plate + debt (sidebar) —— */
.reporte-side-debt {
  border-radius: var(--rp-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  padding: 1.1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.reporte-plate {
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  border-radius: 10px;
  padding: 0.65rem 0.85rem 0.5rem;
  text-align: center;
  margin-bottom: 1rem;
  border: 2px solid #1e3a5f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reporte-plate-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #0a0a0a;
  font-variant-numeric: tabular-nums;
}

.reporte-plate-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rp-blue);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.reporte-adeudo-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.35rem;
}

.reporte-adeudo-monto {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 800;
  color: #ff6b6b;
  text-shadow: 0 0 40px var(--rp-red-glow);
  letter-spacing: -0.02em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.reporte-adeudo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.reporte-adeudo-meta strong {
  color: #fff;
  font-weight: 700;
}

.reporte-uc-pill {
  margin-top: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.reporte-uc-pill code {
  font-family: ui-monospace, monospace;
  font-size: 0.72em;
  color: rgba(255, 255, 255, 0.75);
}

.reporte-alert-side {
  margin-top: 1rem;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.35);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #fecaca;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.reporte-alert-side::before {
  content: "!";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.4);
  color: #fff;
  font-weight: 800;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Resumen principal (sustituye bento: tarjeta navy única, referencia 2ª captura) */
.reporte-hero-deuda {
  border-radius: var(--rp-radius-lg);
  background: linear-gradient(165deg, #1e3a5f 0%, #152d4d 52%, #101e30 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 48px rgba(30, 58, 95, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: clamp(1.2rem, 3.2vw, 1.65rem);
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
}

.reporte-hero-deuda .reporte-plate {
  margin-bottom: 1.15rem;
}

.reporte-hero-deuda .reporte-adeudo-label {
  color: rgba(255, 255, 255, 0.48);
}

.reporte-hero-deuda .reporte-adeudo-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.56);
}

.reporte-hero-deuda .reporte-uc-pill {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reporte-hero-deuda .reporte-alert-side {
  background: rgba(12, 18, 28, 0.55);
  border-color: rgba(220, 38, 38, 0.4);
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 480px) {
  .reporte-hero-deuda {
    padding: 1rem 1rem 1.15rem;
    margin-inline: 0;
    max-width: none;
  }
}

/* —— Main canvas —— */
.reporte-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--rp-cream);
  background-image:
    linear-gradient(rgba(13, 27, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 42, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

body.page-reporte .reporte-main {
  flex: 1;
  min-height: 0;
}

.reporte-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}

.reporte-main-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--rp-navy);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reporte-main-head .text-muted {
  font-size: 0.85rem;
  color: var(--rp-muted);
  margin-top: 0.25rem;
}

.reporte-head-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(13, 27, 42, 0.2);
  background: var(--rp-white);
  color: var(--rp-navy);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.btn-outline-navy:hover {
  border-color: var(--rp-navy);
  box-shadow: 0 4px 16px rgba(13, 27, 42, 0.08);
}

.reporte-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-left: max(clamp(1.25rem, 3vw, 2rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.25rem, 3vw, 2rem), env(safe-area-inset-right, 0px));
  padding-bottom: 6.5rem;
  overflow-x: hidden;
}

/* Bento grid */
.reporte-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .reporte-bento {
    grid-template-columns: 1fr;
  }
}

.reporte-card {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.06);
  padding: 1.25rem 1.35rem;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.reporte-card:hover {
  box-shadow: 0 8px 32px rgba(13, 27, 42, 0.09);
}

.reporte-card--alert .reporte-card-tag {
  color: var(--rp-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.reporte-card-stat {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--rp-navy);
  letter-spacing: -0.02em;
}

.reporte-card-break {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

@media (max-width: 520px) {
  .reporte-card-break {
    grid-template-columns: 1fr;
  }
}

.reporte-mini-stat {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f8f7f4;
  border: 1px solid rgba(13, 27, 42, 0.06);
  font-size: 0.78rem;
  color: var(--rp-muted);
}

.reporte-mini-stat strong {
  display: block;
  font-size: 0.95rem;
  color: var(--rp-navy);
  margin-top: 0.15rem;
}

.reporte-card--lock {
  background: linear-gradient(145deg, var(--rp-navy) 0%, #152535 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.reporte-card--lock h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reporte-card--lock h3::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff006e' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
}

.reporte-lock-list {
  list-style: none;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.reporte-lock-list li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
}

.reporte-lock-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rp-red);
}

/* Legal solution wide card */
.reporte-solution {
  grid-column: 1 / -1;
  border-radius: var(--rp-radius-lg);
  padding: 1.5rem 1.5rem;
  background: linear-gradient(135deg, #1e3a5f 0%, var(--rp-navy) 55%, #0a1628 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(13, 27, 42, 0.25);
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .reporte-solution {
    grid-template-columns: 1fr;
  }
}

.reporte-solution-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--rp-green-soft);
  color: #6ee7b7;
  margin-bottom: 0.65rem;
}

/* Variante badge azul info */
.reporte-solution-badge--info {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

/* Variante badge advertencia (amarillo) para caso no viable */
.reporte-solution-badge--warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* Variante pricing para sección descuento (sin fondo oscuro extra) */
.reporte-solution-pricing--descuento {
  background: rgba(255, 255, 255, 0.05);
}

.reporte-solution h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.reporte-solution-lead {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42rem;
}

.reporte-solution-lead .hl {
  color: #93c5fd;
  font-weight: 600;
}

.reporte-solution-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.15rem;
}

@media (max-width: 640px) {
  .reporte-solution-features {
    grid-template-columns: 1fr;
  }
}

.reporte-sfeat {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.reporte-sfeat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.reporte-solution-pricing {
  min-width: 200px;
  padding: 1.1rem 1.2rem;
  border-radius: var(--rp-radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reporte-solution-pricing .label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.reporte-honorarios-formula {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.25rem 0 0.1rem;
  line-height: 1.35;
}

.reporte-solution-pricing .price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0.2rem 0 0.35rem;
}

.reporte-savings {
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: var(--rp-green-soft);
  border: 1px solid rgba(52, 211, 153, 0.25);
  font-size: 0.75rem;
  color: #a7f3d0;
}

.reporte-savings strong {
  color: #fff;
}

/* Timeline */
.reporte-timeline-block {
  margin-bottom: 1rem;
}

.reporte-timeline-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rp-muted);
  margin-bottom: 0.85rem;
}

.reporte-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 0.25rem;
}

.reporte-tl-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.75rem;
  padding-bottom: 1.1rem;
  position: relative;
}

.reporte-tl-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--rp-blue) 0%, rgba(37, 99, 235, 0.15) 100%);
}

.reporte-tl-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--rp-blue);
  background: var(--rp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1;
}

.reporte-tl-body strong {
  display: block;
  font-size: 0.92rem;
  color: var(--rp-navy);
  margin-bottom: 0.2rem;
}

.reporte-tl-body span {
  font-size: 0.8rem;
  color: var(--rp-muted);
  line-height: 1.45;
}

/* Docs bento */
.reporte-docs-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rp-muted);
  margin: 1.25rem 0 0.75rem;
}

.reporte-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 800px) {
  .reporte-docs-grid {
    grid-template-columns: 1fr;
  }
}

.reporte-doc-card {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  border: 2px dashed rgba(37, 99, 235, 0.25);
  padding: 1.1rem 1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.reporte-doc-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: var(--rp-blue-soft);
}

.reporte-doc-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.reporte-doc-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rp-navy);
  margin-bottom: 0.35rem;
}

.reporte-doc-card p {
  font-size: 0.75rem;
  color: var(--rp-muted);
  line-height: 1.45;
}

/* Table section override (sin overflow:hidden: en iOS impide scroll horizontal en .table-wrapper) */
body.page-reporte #tablaSection.reporte-card {
  padding: 0;
  overflow: visible;
}

body.page-reporte #tablaSection.reporte-card > h3 {
  padding: 1rem 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--rp-navy);
}

body.page-reporte #tablaSection .table-wrapper {
  border: none;
  border-radius: 0 0 var(--rp-radius) var(--rp-radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

body.page-reporte table th {
  background: var(--rp-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
}

body.page-reporte table td {
  color: var(--rp-muted);
  background: var(--rp-white);
}

body.page-reporte tr:hover td {
  background: #f8f7f4;
}

/* Sticky CTA */
.reporte-sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1.5rem, env(safe-area-inset-right, 0px)) calc(0.85rem + env(safe-area-inset-bottom, 0px)) max(1.5rem, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(13, 27, 42, 0.1);
  box-shadow: 0 -8px 32px rgba(13, 27, 42, 0.08);
}

.reporte-cta-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reporte-cta-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rp-navy), #3d5a80);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.reporte-cta-text {
  font-size: 0.8rem;
  color: var(--rp-muted);
}

.reporte-cta-text strong {
  display: block;
  color: var(--rp-navy);
  font-size: 0.88rem;
}

.reporte-cta-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(13, 27, 42, 0.15);
  background: var(--rp-white);
  color: var(--rp-navy);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #f0fdf4;
  border-color: var(--rp-green);
}

body.page-reporte .btn-primary {
  background: linear-gradient(165deg, var(--rp-navy) 0%, #152535 100%);
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.35);
  border-radius: 11px;
  padding: 0.75rem 1.35rem;
  font-size: 0.88rem;
}
body.page-reporte .btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(13, 27, 42, 0.4);
}

.reporte-lock-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--rp-soft);
  margin-top: 0.35rem;
}

/* Empty state (sin infracciones) */
.reporte-empty-shell {
  min-height: calc(100dvh - var(--header-h, 5.45rem));
  min-height: calc(100vh - var(--header-h, 5.45rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 env(safe-area-inset-right, 0px) 2rem env(safe-area-inset-left, 0px);
}

.reporte-empty-top {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(1.25rem, env(safe-area-inset-right, 0px)) 0 max(1.25rem, env(safe-area-inset-left, 0px));
  margin-bottom: 0.5rem;
}

.reporte-empty-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rp-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.reporte-empty-brand-img {
  display: block;
  height: clamp(1.9rem, 6.15vw, 2.5rem);
  width: auto;
  max-width: min(299px, 94vw);
  object-fit: contain;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.reporte-empty-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rp-muted);
}

.reporte-empty-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 1rem max(1.25rem, env(safe-area-inset-right, 0px)) 2rem max(1.25rem, env(safe-area-inset-left, 0px));
}

.reporte-empty-inner {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  background: var(--rp-white);
  border-radius: var(--rp-radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 16px 48px rgba(13, 27, 42, 0.08);
}

.reporte-empty-inner .reporte-plate {
  max-width: 220px;
  margin: 0 auto 1.25rem;
}

.reporte-empty-inner h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--rp-navy);
  margin-bottom: 0.75rem;
}

body.page-reporte .reporte-empty-inner .alert-ok {
  text-align: left;
  margin-bottom: 1.25rem;
}

.btn-nueva {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 11px;
  background: var(--rp-navy);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.btn-nueva:hover {
  opacity: 0.92;
}

.reporte-volver-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 1.15rem 1rem;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(13, 27, 42, 0.07);
  margin: 0;
}

.reporte-volver-foot a {
  color: var(--rp-blue);
  font-weight: 600;
  text-decoration: none;
}

.reporte-volver-foot a:hover {
  text-decoration: underline;
}

/* Urgencia + chips (captación) */
.reporte-urgencia-panel {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0.03) 100%);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--rp-radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.reporte-urgencia-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rp-red);
  margin: 0 0 0.5rem;
}

.reporte-urgencia-lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--rp-ink);
}

.reporte-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.reporte-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(13, 27, 42, 0.06);
  color: var(--rp-navy);
  border: 1px solid rgba(13, 27, 42, 0.1);
}

.reporte-chip--danger {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.22);
  color: #991b1b;
}

/* Desglose económico */
.reporte-desglose {
  margin-bottom: 1rem;
}

.reporte-desglose-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rp-navy);
  margin: 0 0 0.35rem;
}

.reporte-desglose-hint {
  font-size: 0.76rem;
  color: var(--rp-muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.reporte-desglose-rows {
  margin: 0;
}

.reporte-desglose-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
  font-size: 0.82rem;
}

.reporte-desglose-row:first-of-type {
  padding-top: 0;
}

.reporte-desglose-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.reporte-desglose-row dt {
  margin: 0;
  color: var(--rp-muted);
  font-weight: 500;
}

.reporte-desglose-row dd {
  margin: 0;
  text-align: right;
  color: var(--rp-navy);
}

.reporte-desglose-row--total {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 2px solid rgba(13, 27, 42, 0.12);
  border-bottom: none;
  font-size: 0.92rem;
}

.reporte-desglose-row--total dt {
  color: var(--rp-navy);
  font-weight: 700;
}

.reporte-desglose-note {
  font-weight: 400;
  color: var(--rp-soft);
  font-size: 0.72rem;
}

/* Captura de lead */
.reporte-captura {
  margin-bottom: 1.25rem;
}

.reporte-captura-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rp-navy);
  margin: 0 0 0.4rem;
}

.reporte-captura-lead {
  font-size: 0.82rem;
  color: var(--rp-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.reporte-captura-form .form-group {
  margin-bottom: 0.85rem;
}

.reporte-captura-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

@media (max-width: 640px) {
  .reporte-captura-grid {
    grid-template-columns: 1fr;
  }
}

.reporte-captura-span2 {
  grid-column: 1 / -1;
}

.reporte-captura-form label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rp-navy);
}

.reporte-captura-form input[type="text"],
.reporte-captura-form input[type="tel"],
.reporte-captura-form input[type="email"],
.reporte-captura-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(13, 27, 42, 0.15);
  font-size: 0.88rem;
  font-family: inherit;
  background: #fff;
  color: var(--rp-ink);
}

.reporte-captura-form textarea {
  resize: vertical;
  min-height: 3rem;
}

.reporte-captura-docs {
  border: 1px dashed rgba(37, 99, 235, 0.35);
  border-radius: var(--rp-radius);
  padding: 0.85rem 1rem 1rem;
  margin: 0 0 1rem;
  background: var(--rp-blue-soft);
}

.reporte-captura-docs legend {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rp-navy);
  padding: 0 0.35rem;
}

.reporte-captura-docs .hint {
  font-size: 0.72rem;
  margin: 0 0 0.65rem;
  color: var(--rp-muted);
}

.reporte-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--rp-muted);
  margin-bottom: 0.45rem;
  cursor: pointer;
}

.reporte-check-label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ── Bloques de documento con upload ─────────────────────── */
.reporte-doc-upload-block {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.reporte-doc-upload-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.reporte-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  margin-left: 1.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  border: 1px dashed rgba(37, 99, 235, 0.4);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--rp-navy);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.reporte-file-label:hover {
  background: #fff;
  border-color: var(--rp-blue);
}

.reporte-file-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.reporte-file-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22ch;
}

.reporte-file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.reporte-captura-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

body.page-reporte .reporte-captura .error-msg {
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.22);
}

body.page-reporte .reporte-captura .alert-ok {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.22);
  color: #047857;
}

body.page-reporte .reporte-captura .alert-ok a {
  color: var(--rp-blue);
  font-weight: 700;
}

/* Utility */
body.page-reporte .hidden {
  display: none !important;
}

/* ══ PREMIUM UPGRADES ══ */

/* Monto adeudo — tarjeta resumen (clampa en móvil para no desbordar) */
.reporte-adeudo-monto {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.35rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 20px rgba(255, 0, 110, 0.35);
  overflow-wrap: anywhere;
}

/* Bento card: gold border on alert card hover */
.reporte-card--alert {
  border-left: 3px solid #dc2626;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Main stat in alert card */
.reporte-card-stat {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.2rem) !important;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 700;
}

/* Honorarios box — navy + magenta (Markus IP) */
.honorarios-box {
  background: linear-gradient(135deg, #1e3a5f 0%, #152d4d 100%);
  border: 1px solid rgba(255, 0, 110, 0.28);
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.2), inset 0 1px 0 rgba(255, 0, 110, 0.12);
}

.honorarios-monto {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* Lead capture card */
.reporte-capture-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(10,14,26,0.08);
  box-shadow: 0 8px 40px rgba(10,14,26,0.07);
  padding: clamp(1.5rem, 3vw, 2rem);
}

/* Table premium */
#tablaInfracciones {
  font-size: 0.83rem;
}

#tablaInfracciones thead th {
  background: #0a0e1a;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  font-weight: 700;
}

#tablaInfracciones tbody tr {
  transition: background 0.12s;
}

#tablaInfracciones tbody tr:hover td {
  background: rgba(201,162,39,0.04);
}

#tablaInfracciones td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(10,14,26,0.06);
  vertical-align: middle;
}

/* Timeline upgrade */
.reporte-tl-dot {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4f3ef, #fff);
  border: 1.5px solid rgba(10,14,26,0.1);
  box-shadow: 0 4px 16px rgba(10,14,26,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Chips */
.reporte-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  background: rgba(10,14,26,0.06);
  border: 1px solid rgba(10,14,26,0.1);
  color: #3d4d5c;
}

.reporte-chip--danger {
  background: rgba(220,38,38,0.07);
  border-color: rgba(220,38,38,0.2);
  color: #b91c1c;
}

/* Propuesta card */
.propuesta-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(10,14,26,0.08);
  box-shadow: 0 8px 40px rgba(10,14,26,0.06);
  padding: clamp(1.5rem, 3vw, 2rem);
}

/* Franja magenta superior: premium.css (.reporte-sidebar::after, .site-header--navy::after) */

/* ══ RESPONSIVE MOBILE ══ */

/* Tabla: ancho mínimo dentro de .table-wrapper (scroll horizontal táctil) */
#tablaInfracciones {
  min-width: 560px;
}

@media (max-width: 640px) {
  #tablaInfracciones td:nth-child(4),
  #tablaInfracciones th:nth-child(4) {
    max-width: 12rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }
}

/* Sidebar servicio: compacto en mobile */
@media (max-width: 960px) {
  .reporte-sidebar {
    padding: 1rem 1rem 1.25rem;
    gap: 1.1rem;
  }

  .reporte-trust {
    display: none;
  }
}

/* CTA barra inferior en mobile: apilada */
@media (max-width: 640px) {
  .reporte-sticky-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem max(1rem, env(safe-area-inset-right, 0px)) calc(0.85rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  }

  .reporte-cta-actions {
    flex-direction: column;
  }

  .reporte-cta-actions .btn-primary,
  .reporte-cta-actions .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .reporte-scroll {
    padding-bottom: 10rem;
  }
}

/* Contenido principal: márgenes ajustados en mobile */
@media (max-width: 480px) {
  .reporte-scroll {
    padding: 1rem max(0.85rem, env(safe-area-inset-right, 0px)) 10rem max(0.85rem, env(safe-area-inset-left, 0px));
    gap: 1rem;
  }

  .reporte-main-head {
    padding: 0.85rem max(0.85rem, env(safe-area-inset-right, 0px)) 0.65rem max(0.85rem, env(safe-area-inset-left, 0px));
  }

  .reporte-card {
    padding: 1rem 0.85rem;
  }

  .reporte-bento {
    gap: 0.65rem;
  }

  .reporte-solution {
    padding: 1.15rem 1rem;
  }

  .reporte-solution-pricing {
    min-width: 0;
  }

  .reporte-empty-inner {
    padding: 1.75rem 1.25rem;
  }
}
