/* ═══════════════════════════════════════════════════════════
   LuMdoM — Informe CSS v2.0
   Paleta: #1a1a2e · #6366f1 · #f8f9ff · #ffffff
           #16a34a · #d97706 · #dc2626 · #f1f2f8
═══════════════════════════════════════════════════════════ */

:root {
  --dark:         #1a1a2e;
  --dark-mid:     #252540;
  --indigo:       #6366f1;
  --indigo-soft:  rgba(99,102,241,0.10);
  --indigo-mid:   rgba(99,102,241,0.18);
  --bg:           #f2f3fb;
  --white:        #ffffff;
  --green:        #16a34a;
  --green-bg:     rgba(22,163,74,0.09);
  --orange:       #d97706;
  --orange-bg:    rgba(217,119,6,0.09);
  --red:          #dc2626;
  --red-bg:       rgba(220,38,38,0.09);
  --gray-bg:      #f1f2f8;
  --text:         #1f2937;
  --text-mid:     #4b5563;
  --text-light:   #6b7280;
  --border:       rgba(99,102,241,0.13);
  --shadow-sm:    0 2px 8px rgba(26,26,46,0.07);
  --shadow:       0 4px 20px rgba(26,26,46,0.09);
  --shadow-lg:    0 8px 40px rgba(26,26,46,0.13);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
}

/* ─── BASE ─────────────────────────────────────────────── */
.lumdom-report {
  font-family: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  max-width: 100%;
  overflow-x: hidden;
}

.lumdom-report * { box-sizing: border-box; margin: 0; padding: 0; }
.lumdom-report p, .lumdom-report li { margin: 0; }

/* ─── CABECERA ──────────────────────────────────────────── */
.lr-cabecera {
  background: var(--dark);
  padding: 40px 44px 36px;
  position: relative;
  overflow: hidden;
}

.lr-cabecera::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.lr-cabecera::after {
  content: '';
  position: absolute;
  bottom: -50px; left: 30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(14,165,233,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.lr-cabecera-label {
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
  display: block;
  opacity: 0.95;
}

.lr-cabecera-dir {
  font-family: 'Sora', sans-serif;
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  position: relative;
}

.lr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.lr-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.lr-chip-accent {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
  font-weight: 600;
}

/* ─── SECCIONES ─────────────────────────────────────────── */
.lr-section {
  padding: 28px 32px;
  border-bottom: 1px solid rgba(99,102,241,0.07);
}

.lr-section:last-of-type { border-bottom: none; }

.lr-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lr-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--indigo-soft);
}

/* ─── BARÓMETRO ─────────────────────────────────────────── */
.lr-barometro {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.lr-baro-barra {
  display: flex;
  gap: 3px;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
  height: 8px;
}

.lr-baro-seg {
  flex: 1;
  height: 100%;
  background: var(--gray-bg);
}
.lr-baro-seg:first-child { border-radius: 100px 0 0 100px; }
.lr-baro-seg:last-child  { border-radius: 0 100px 100px 0; }

.lr-baro-1 { background: var(--red); box-shadow: 0 0 12px rgba(220,38,38,0.45); }
.lr-baro-2 { background: #f59e0b; box-shadow: 0 0 12px rgba(245,158,11,0.4); }
.lr-baro-3 { background: var(--orange); box-shadow: 0 0 12px rgba(217,119,6,0.4); }
.lr-baro-4 { background: #65a30d; box-shadow: 0 0 12px rgba(101,163,13,0.4); }
.lr-baro-5 { background: var(--green); box-shadow: 0 0 12px rgba(22,163,74,0.45); }
.lr-baro-inactive { background: rgba(203,213,225,0.5); }

.lr-baro-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.lr-baro-lbl {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 500;
  text-align: center;
  flex: 1;
}

.lr-baro-lbl-active {
  font-weight: 700;
  color: var(--text);
}

.lr-veredicto-txt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.lr-vt-positivo {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}

.lr-vt-cautela {
  background: var(--orange-bg);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}

.lr-precio-objetivo {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lr-precio-objetivo::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
}

.lr-po-label {
  font-family: 'Sora', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  display: block;
}

.lr-po-precio {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.lr-po-argumento {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto;
}

.lr-po-velocidad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.75);
  margin-top: 12px;
  font-weight: 500;
}

/* ─── DATOS CLAVE ───────────────────────────────────────── */
.lr-datos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .lr-datos-grid { grid-template-columns: repeat(2, 1fr); }
}

.lr-dato-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.lr-dato-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.lr-dato-icon {
  font-size: 20px;
  margin-bottom: 8px;
  display: block;
}

.lr-dato-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
  display: block;
}

.lr-dato-valor {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  display: block;
}

.lr-dato-valor.lr-ok  { color: var(--green); }
.lr-dato-valor.lr-warn{ color: var(--orange); }
.lr-dato-valor.lr-bad { color: var(--red); }

/* ─── ANÁLISIS DE PLANO ─────────────────────────────────── */
.lr-plano {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.lr-plano-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) { .lr-plano-grid { grid-template-columns: 1fr; } }

.lr-plano-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lr-plano-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  background: var(--gray-bg);
}

.lr-plano-item.lr-ok {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
}

.lr-plano-item.lr-warn {
  background: var(--orange-bg);
  border-left: 3px solid var(--orange);
}

/* ─── ANÁLISIS FOTOGRÁFICO ──────────────────────────────── */
.lr-fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.lr-foto-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.lr-foto-card-header {
  background: var(--dark);
  padding: 10px 14px;
  font-family: 'Sora', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
}

.lr-foto-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.lr-foto-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 12px 4px;
  border-bottom: 1px solid var(--border);
}

.lr-foto-col-title.lr-ok   { color: var(--green); }
.lr-foto-col-title.lr-warn { color: var(--orange); }

.lr-foto-item {
  font-size: 12.5px;
  padding: 8px 12px;
  line-height: 1.5;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.lr-foto-item:last-child { border-bottom: none; }

/* ─── PRECIO EN ZONA ────────────────────────────────────── */
.lr-precio-zona {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.lr-precio-zona > div:first-child {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.lr-pz-dato {
  text-align: center;
  padding: 14px 10px;
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
}

.lr-pz-dato-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
  display: block;
}

.lr-pz-dato-valor {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.lr-pz-dato-valor.lr-ok  { color: var(--green); }
.lr-pz-dato-valor.lr-warn{ color: var(--orange); }
.lr-pz-dato-valor.lr-bad { color: var(--red); }

.lr-pz-conclusion {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  padding: 12px 14px;
  background: var(--indigo-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--indigo);
}

/* ─── TABLAS ────────────────────────────────────────────── */
.lr-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.lr-tabla th {
  background: var(--gray-bg);
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.lr-tabla td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: var(--text-mid);
  line-height: 1.5;
}

.lr-tabla tr:last-child td { border-bottom: none; }
.lr-tabla tr:hover td { background: rgba(99,102,241,0.03); }

.lr-tabla-total {
  background: var(--dark) !important;
}

.lr-tabla-total td {
  border-bottom: none !important;
  padding: 14px 14px !important;
}

.lr-tabla-total-label {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.lr-tabla-total-valor {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-align: right;
}

/* ─── ENTORNO ───────────────────────────────────────────── */
.lr-entorno-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 520px) { .lr-entorno-grid { grid-template-columns: 1fr; } }

.lr-entorno-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.lr-entorno-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.lr-entorno-txt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mid);
}

.lr-entorno-txt strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}

.lr-score {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.lr-score-label {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  flex: 1;
}

.lr-score-valor {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}

/* ─── LO QUE OCULTA ─────────────────────────────────────── */
.lr-oculta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.lr-oculta-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.lr-oculta-num {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--indigo);
  flex-shrink: 0;
  width: 28px;
  line-height: 1;
  margin-top: 2px;
}

.lr-transparencia {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 14px 18px;
  border: 1px solid var(--border);
}

.lr-transparencia-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  flex: 1;
  letter-spacing: 0.5px;
}

.lr-transparencia-dots {
  display: flex;
  gap: 5px;
}

.lr-transparencia-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(99,102,241,0.18);
}

.lr-transparencia-dot.lr-filled {
  background: var(--indigo);
}

/* ─── BALANCE TÉCNICO ───────────────────────────────────── */
.lr-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) { .lr-balance-grid { grid-template-columns: 1fr; } }

.lr-balance-col {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.lr-balance-col-title {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.lr-balance-col-title.lr-ok {
  background: var(--green-bg);
  color: var(--green);
  border-bottom: 1px solid rgba(22,163,74,0.15);
}

.lr-balance-col-title.lr-bad {
  background: var(--orange-bg);
  color: var(--orange);
  border-bottom: 1px solid rgba(217,119,6,0.15);
}

.lr-balance-item {
  font-size: 13px;
  padding: 10px 16px;
  line-height: 1.55;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.lr-balance-item:last-child { border-bottom: none; }

.lr-balance-item::before {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 12px;
}

.lr-balance-item.lr-ok::before   { content: '✓'; color: var(--green); font-weight: 700; }
.lr-balance-item.lr-warn::before { content: '⚠'; color: var(--orange); }
.lr-balance-item.lr-bad::before  { content: '✗'; color: var(--red); font-weight: 700; }

/* ─── PRÓXIMOS PASOS ────────────────────────────────────── */
.lr-preguntas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.lr-pregunta-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-mid);
}

.lr-pregunta-num {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--indigo);
  flex-shrink: 0;
  width: 22px;
  line-height: 1.55;
}

.lr-negociacion {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lr-negociacion::before {
  content: '';
  position: absolute;
  top: -50px; left: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
}

.lr-neg-label {
  font-family: 'Sora', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
  display: block;
}

.lr-neg-precio-original {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
  display: block;
  margin-bottom: 4px;
}

.lr-neg-precio-objetivo {
  font-family: 'Sora', sans-serif;
  font-size: clamp(30px, 5.5vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  position: relative;
}

.lr-neg-argumento {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

/* ─── PIE ───────────────────────────────────────────────── */
.lr-pie {
  background: var(--dark);
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lr-pie-logo {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.lr-pie-txt {
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 14px;
}

/* ─── ALERTA ────────────────────────────────────────────── */
.lr-alerta {
  background: var(--red-bg);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.lr-alerta-titulo {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.lr-alerta-txt {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 640px) {
  .lr-cabecera { padding: 28px 20px 24px; }
  .lr-section { padding: 20px 16px; }
  .lr-negociacion { padding: 22px 16px; }
  .lr-barometro { padding: 20px 16px; }
  .lr-precio-objetivo { padding: 18px 16px; }
  .lr-pie { padding: 16px 20px; }
  .lr-baro-lbl { font-size: 8.5px; }
}
