/* ═══════════════════════════════════════════════════════════════════
   Calculadora LRT Argentina — Hoja de estilos
   Fuente: Syne + Space Grotesk (display) + DM Mono (valores)
   Paleta: Azul marino institucional + Lima eléctrico + Crema
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.lrt-wrap {
  --lrt-navy: #0095EB;
  --lrt-navy-mid: #0085D9;
  --lrt-navy-light: #00D4FF;
  --lrt-lime: #00D4FF;
  --lrt-lime-dark: #0095EB;
  --lrt-cream: #f7fafc;
  --lrt-cream-dark: #edf2f7;
  --lrt-white: #ffffff;
  --lrt-muted: #718096;
  --lrt-borde: #e2e8f0;
  --lrt-verde: #059669;
  --lrt-verde-bg: #ecfdf5;
  --lrt-amber: #8b5e00;
  --lrt-amber-bg: #fdf4dc;
  --lrt-danger: #a32d2d;
  --lrt-danger-bg: #fdf0f0;
  --lrt-radius: 24px;
  --lrt-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  color: #2d3748;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--lrt-radius);
  overflow: hidden;
  box-shadow: var(--lrt-shadow);
  margin: 0 auto;
  position: relative;
  backdrop-filter: blur(10px);
}

/* ── HEADER ── */
.lrt-header {
  background: linear-gradient(135deg, #0095EB, #00D4FF);
  color: #fff;
  padding: 28px 32px 24px;
  position: relative;
  overflow: hidden;
}

.lrt-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #00D4FF;
  opacity: .07;
}

.lrt-header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 40%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #00D4FF;
  opacity: .05;
}

.lrt-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.lrt-header h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -.5px;
  line-height: 1.1;
}

.lrt-header h1,
.lrt-header h1 span {
  color: #fff;
}

.lrt-subtitle {
  color: #fff;
  font-size: 13px;
  opacity: 1;
  letter-spacing: .3px;
  line-height: 1.5;
}

.lrt-badge-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.lrt-badge {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.lrt-badge.vigente {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}

.lrt-badge.normativa {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}

.lrt-header-meta {
  color: #fff;
  font-size: 12.5px;
  opacity: 1;
  letter-spacing: .2px;
}

/* ── CUERPO ── */
.lrt-data-status {
  margin: 16px 20px 0;
  padding: 14px;
  border: 1px solid var(--lrt-borde);
  border-left: 4px solid var(--lrt-verde);
  border-radius: 8px;
  background: #f8fafc;
}

.lrt-data-status-title {
  margin-bottom: 10px;
  color: var(--lrt-navy);
  font-weight: 700;
}

.lrt-data-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lrt-data-status-item {
  padding: 10px;
  border: 1px solid #dbe3ea;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  line-height: 1.45;
}

.lrt-data-status-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--lrt-navy);
  font-size: 13px;
}

.lrt-data-status-note {
  margin-top: 8px;
  color: #6b7280;
  font-size: 11px;
}

@media (max-width: 700px) {
  .lrt-data-status-grid { grid-template-columns: 1fr; }
}

.lrt-body {
  padding: 28px 32px 32px;
}

/* ── SECCIÓN ── */
.lrt-section {
  background: var(--lrt-white);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
  transition: all .3s ease;
}

.lrt-section:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 149, 235, 0.1);
  border-color: #0095EB;
}

.lrt-section-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #0095EB;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.lrt-num {
  width: 22px;
  height: 22px;
  background: #0095EB;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lrt-opt {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--lrt-muted);
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
}

/* ── GRIDS ── */
.lrt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.lrt-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.lrt-grid-2:last-child,
.lrt-grid-3:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {

  .lrt-grid-2,
  .lrt-grid-3 {
    grid-template-columns: 1fr;
  }

  .lrt-body {
    padding: 20px 16px 24px;
  }

  .lrt-header {
    padding: 20px 16px 18px;
  }
}

/* ── CAMPOS ── */
.lrt-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lrt-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lrt-navy);
  letter-spacing: .2px;
}

.lrt-hint {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--lrt-muted);
  margin-top: 1px;
}

.lrt-field input:focus,
.lrt-field select:focus {
  border-color: var(--lrt-lime-dark);
  box-shadow: 0 0 0 3px rgba(181, 229, 80, .2);
}

.lrt-input-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--lrt-borde);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.lrt-input-prefix:focus-within {
  border-color: var(--lrt-lime-dark);
  box-shadow: 0 0 0 3px rgba(181, 229, 80, .2);
}

.lrt-input-prefix span {
  padding: 10px 12px;
  background: var(--lrt-cream-dark);
  color: var(--lrt-navy-light);
  font-weight: 700;
  font-size: 15px;
  border-right: 1.5px solid var(--lrt-borde);
  flex-shrink: 0;
}

.lrt-input-prefix input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  min-width: 0;
  box-shadow: none !important;
}

.lrt-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 0;
}

.lrt-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0095EB;
  flex-shrink: 0;
}

/* ── ALERTAS / INFO ── */
.lrt-info-text {
  font-size: 12.5px;
  color: var(--lrt-muted);
  margin: 10px 0 0;
  line-height: 1.6;
  border-left: 3px solid #0095EB;
  padding-left: 10px;
}

.lrt-alert {
  background: var(--lrt-amber-bg);
  border: 1px solid #f0c040;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--lrt-amber);
  margin-bottom: 12px;
  line-height: 1.5;
}

.lrt-alert strong {
  font-weight: 700;
}

/* ── BOTONES ── */
.lrt-btn-primary {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #0095EB, #00D4FF);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: pointer;
  letter-spacing: .5px;
  transition: all .3s ease;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}

.lrt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 149, 235, 0.3);
}

.lrt-btn-primary:active {
  transform: scale(.99);
}

.lrt-btn-sm {
  padding: 8px 16px;
  background: transparent;
  color: var(--lrt-navy);
  border: 1.5px solid var(--lrt-borde);
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.lrt-btn-sm:hover {
  background: var(--lrt-cream-dark);
}

.lrt-spinner {
  text-align: center;
  padding: 14px;
  color: var(--lrt-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lrt-spinner::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--lrt-borde);
  border-top-color: #0095EB;
  border-radius: 50%;
  animation: lrt-spin .7s linear infinite;
}

@keyframes lrt-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── RESULTADO ── */
.lrt-resultado {
  border-top: 3px solid #0095EB;
  padding: 28px 32px 32px;
  background: var(--lrt-cream);
  animation: lrt-fade-in .3s ease;
}

@keyframes lrt-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .lrt-resultado {
    padding: 20px 16px 24px;
  }
}

.lrt-res-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.lrt-res-titulo {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--lrt-navy);
  letter-spacing: -.3px;
}

.lrt-aviso {
  font-size: 12px;
  color: var(--lrt-muted);
  font-style: italic;
  max-width: 260px;
  text-align: right;
}

/* Cards de totales */
.lrt-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.lrt-card {
  background: var(--lrt-white);
  border: 1.5px solid var(--lrt-borde);
  border-radius: var(--lrt-radius);
  padding: 16px;
}

.lrt-card.principal {
  background: linear-gradient(135deg, #0095EB, #00D4FF);
  border-color: #0095EB;
  grid-column: span 2;
}

@media (max-width: 480px) {
  .lrt-card.principal {
    grid-column: span 1;
  }
}

.lrt-card.verde {
  background: var(--lrt-verde-bg);
  border-color: #9fd5c2;
}

.lrt-card-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--lrt-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
}

.lrt-card.principal .lrt-card-label {
  color: rgba(255, 255, 255, .55);
}

.lrt-card.verde .lrt-card-label {
  color: var(--lrt-verde);
}

.lrt-card-valor {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 500;
  color: var(--lrt-navy);
  letter-spacing: -.5px;
}

.lrt-card.principal .lrt-card-valor {
  color: var(--lrt-lime);
  font-size: 25px;
}

.lrt-card.verde .lrt-card-valor {
  color: var(--lrt-verde);
}

.lrt-card-sub {
  font-size: 11px;
  color: var(--lrt-muted);
  margin-top: 4px;
}

.lrt-card.principal .lrt-card-sub {
  color: rgba(255, 255, 255, .4);
}

/* Detalle de cálculo */
.lrt-detalle {
  background: var(--lrt-white);
  border: 1.5px solid var(--lrt-borde);
  border-radius: var(--lrt-radius);
  padding: 6px 2px;
  margin-bottom: 16px;
}

.lrt-detalle-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--lrt-borde);
  font-size: 14px;
  gap: 12px;
}

.lrt-detalle-fila:last-child {
  border-bottom: none;
}

.lrt-dl {
  color: var(--lrt-muted);
  flex: 1;
}

.lrt-dv {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--lrt-navy);
  text-align: right;
  white-space: nowrap;
}

.lrt-detalle-fila.total-fila {
  background: linear-gradient(135deg, #0095EB, #00D4FF);
  margin: 0 -2px -6px;
  border-radius: 0 0 8px 8px;
  padding: 12px 18px;
  border: none;
}

.lrt-detalle-fila.total-fila .lrt-dl {
  color: #fff;
  font-weight: 700;
}

.lrt-detalle-fila.total-fila .lrt-dv {
  color: #fff;
  font-size: 16px;
}

.lrt-detalle-fila.highlight-fila .lrt-dl,
.lrt-detalle-fila.highlight-fila .lrt-dv {
  font-weight: 600;
  color: var(--lrt-navy);
}

.lrt-detalle-fila.highlight-suma {
  background: #f0fdf4;
  border-left: 4px solid var(--lrt-verde);
  padding: 10px 16px;
  margin: 4px 0;
  border-bottom: 1px solid #c8e6d9;
}

.lrt-detalle-fila.highlight-suma .lrt-dl {
  color: var(--lrt-verde);
  font-weight: 600;
}

.lrt-detalle-fila.highlight-suma .lrt-dv {
  color: var(--lrt-verde);
  font-weight: 600;
  font-size: 14px;
}

/* Intereses */
.lrt-interes-box {
  background: #f0f9ff;
  border: 1.5px solid #bfe1f7;
  border-radius: var(--lrt-radius);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.lrt-interes-titulo {
  font-size: 13px;
  font-weight: 700;
  color: #1a5c82;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.lrt-interes-valor {
  font-family: 'DM Mono', monospace;
  font-size: 21px;
  font-weight: 500;
  color: #1a5c82;
}

.lrt-interes-sub {
  font-size: 12px;
  color: #5a8fa8;
  margin-top: 4px;
}

/* Tabla derechohabientes */
.lrt-dh-tabla {
  margin-bottom: 16px;
}

.lrt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lrt-table th {
  background: var(--lrt-navy);
  color: var(--lrt-lime);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.lrt-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--lrt-borde);
  font-family: 'DM Mono', monospace;
}

.lrt-table td:first-child {
  font-family: inherit;
}

.lrt-table tr:last-child td {
  border-bottom: none;
}

.lrt-table tr:nth-child(even) td {
  background: var(--lrt-cream);
}

.lrt-table-wrap {
  background: var(--lrt-white);
  border: 1.5px solid var(--lrt-borde);
  border-radius: var(--lrt-radius);
  overflow: hidden;
  margin-top: 8px;
}

/* Normativa */
.lrt-normativa {
  background: var(--lrt-amber-bg);
  border: 1px solid #f0c040;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 12.5px;
  color: var(--lrt-amber);
  margin-bottom: 20px;
  line-height: 1.6;
}

.lrt-normativa strong {
  font-weight: 700;
}

/* Acciones */
.lrt-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lrt-service-credit {
  width: 100%;
  margin: 12px 0 0;
  text-align: center;
  color: var(--lrt-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.lrt-service-credit strong {
  font-weight: 700;
  color: var(--lrt-navy);
}

.lrt-btn-pdf {
  flex: 1;
  padding: 13px 20px;
  background: linear-gradient(135deg, #059669, #34d399);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: pointer;
  transition: all .3s ease;
}

.lrt-btn-pdf:hover {
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Tabs en resultado */
.lrt-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--lrt-borde);
  margin-bottom: 20px;
}

.lrt-tab {
  padding: 9px 18px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--lrt-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s;
}

.lrt-tab.active {
  color: #0095EB;
  border-bottom-color: #0095EB;
}

.lrt-tab-panel {
  display: none;
}

.lrt-tab-panel.active {
  display: block;
}

/* Indicador de piso aplicado */
.lrt-piso-tag {
  display: inline-block;
  background: #fff0c0;
  color: #8a6200;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── RIPTE INFO ── */
.lrt-ripte-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.lrt-ripte-chip {
  background: var(--lrt-cream-dark);
  border: 1px solid var(--lrt-borde);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
}

.lrt-ripte-chip strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--lrt-muted);
  margin-bottom: 2px;
}

.lrt-ripte-chip span {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  color: var(--lrt-navy);
}

/* Baremo apply btn */
#lrt-baremo-apply {
  align-self: flex-end;
  padding: 10px 16px;
  background: var(--lrt-navy);
  color: var(--lrt-lime);
  border: none;
  border-radius: 7px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background .15s;
}

#lrt-baremo-apply:hover {
  background: var(--lrt-navy-light);
}

.lrt-baremo-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.lrt-baremo-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1.5px solid var(--lrt-borde);
  border-radius: 8px;
  color: var(--lrt-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.lrt-baremo-option input {
  accent-color: var(--lrt-navy);
}

.lrt-baremo-option.active {
  background: #f0f9ff;
  border-color: var(--lrt-navy);
  color: var(--lrt-navy);
}

.lrt-baremo-active {
  margin: 0 0 14px;
  color: var(--lrt-muted);
  font-size: 12.5px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN IBM — Toggle y grilla de remuneraciones
   ═══════════════════════════════════════════════════════════════════ */

/* Toggle manual / detallado */
.lrt-ibm-toggle {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--lrt-borde);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}

.lrt-toggle-btn {
  padding: 9px 18px;
  background: transparent;
  color: var(--lrt-muted);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.lrt-toggle-btn+.lrt-toggle-btn {
  border-left: 1.5px solid var(--lrt-borde);
}

.lrt-toggle-btn.active {
  background: var(--lrt-navy);
  color: var(--lrt-lime);
}

.lrt-toggle-btn:not(.active):hover {
  background: var(--lrt-cream-dark);
  color: var(--lrt-navy);
}

/* Placeholder cuando no hay fecha PMI */
.lrt-rem-placeholder {
  background: var(--lrt-cream-dark);
  border: 1.5px dashed var(--lrt-borde);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: var(--lrt-muted);
  font-size: 14px;
}

/* Grilla de remuneraciones */
.lrt-rem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

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

/* Celda de mes individual */
.lrt-mes-cell {
  background: var(--lrt-white);
  border: 1.5px solid var(--lrt-borde);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .15s;
}

.lrt-mes-cell:focus-within {
  border-color: var(--lrt-lime-dark);
  box-shadow: 0 0 0 2px rgba(181, 229, 80, .2);
}

.lrt-mes-cell.fuera-periodo {
  opacity: .4;
  pointer-events: none;
}

.lrt-mes-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--lrt-navy-light);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lrt-mes-label .lrt-mes-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--lrt-muted);
}

.lrt-mes-cell input[type="number"] {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid var(--lrt-borde);
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--lrt-navy);
  background: var(--lrt-cream);
  outline: none;
  transition: border-color .15s;
}

.lrt-mes-cell input:focus {
  border-color: var(--lrt-lime-dark);
  background: #fff;
}

.lrt-mes-cell input.tiene-valor {
  background: #fff;
  border-color: var(--lrt-lime-dark);
  color: var(--lrt-navy);
  font-weight: 500;
}

/* Indicador RIPTE por mes */
.lrt-mes-ripte {
  font-size: 11px;
  color: var(--lrt-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.lrt-mes-ripte strong {
  color: var(--lrt-navy);
  font-weight: 600;
}

/* Preview IBM calculado */
.lrt-ibm-preview {
  background: var(--lrt-navy);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lrt-ibm-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.lrt-ibm-preview-valor {
  font-family: 'DM Mono', monospace;
  font-size: 27px;
  font-weight: 500;
  color: var(--lrt-lime);
  letter-spacing: -.5px;
}

.lrt-ibm-preview-det {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.6;
  margin-top: 4px;
}

.lrt-ibm-preview-det strong {
  color: rgba(255, 255, 255, .8);
}

/* SAC row */
.lrt-sac-row {
  padding-top: 14px;
  border-top: 1.5px dashed var(--lrt-borde);
}

.lrt-sac-row .lrt-section-title {
  align-items: flex-start;
  line-height: 1.35;
}

.lrt-sac-row .lrt-section-title .lrt-num {
  margin-top: 0;
}

.lrt-sac-row .lrt-grid-2 {
  align-items: start;
}

.lrt-sac-row .lrt-field {
  min-width: 0;
}

.lrt-sac-row .lrt-input-prefix {
  width: 100%;
}

.lrt-sac-row .lrt-input-prefix input {
  width: 100%;
}

/* Tab IBM en resultado */
.lrt-ibm-tabla {
  background: var(--lrt-white);
  border: 1.5px solid var(--lrt-borde);
  border-radius: var(--lrt-radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.lrt-ibm-tabla table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lrt-ibm-tabla th {
  background: var(--lrt-navy);
  color: var(--lrt-lime);
  padding: 9px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.lrt-ibm-tabla td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--lrt-borde);
  font-family: 'DM Mono', monospace;
}

.lrt-ibm-tabla td:first-child {
  font-family: inherit;
  color: var(--lrt-navy);
  font-weight: 500;
}

.lrt-ibm-tabla tr:last-child td {
  border-bottom: none;
}

.lrt-ibm-tabla tr:nth-child(even) td {
  background: var(--lrt-cream);
}

.lrt-ibm-tabla tr.sac-row td {
  background: #fef9ec;
}

.lrt-ibm-tabla tr.total-row td {
  background: var(--lrt-navy);
  color: var(--lrt-lime);
  font-weight: 700;
  font-size: 14px;
}

.lrt-ibm-tabla tr.total-row td:first-child {
  font-family: 'DM Mono', monospace;
}

@media (max-width: 640px) {
  .lrt-section-title {
    align-items: flex-start;
    gap: 8px;
    line-height: 1.35;
  }

  .lrt-section-title .lrt-num {
    margin-top: 1px;
  }

  .lrt-opt {
    flex-basis: 100%;
    margin-left: 31px;
  }

  .lrt-ibm-toggle {
    width: 100%;
    flex-direction: column;
  }

  .lrt-toggle-btn {
    width: 100%;
    padding: 11px 12px;
  }

  .lrt-toggle-btn+.lrt-toggle-btn {
    border-left: none;
    border-top: 1.5px solid var(--lrt-borde);
  }

  .lrt-sac-row {
    margin-top: 16px !important;
  }

  .lrt-sac-row .lrt-section-title {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .lrt-sac-row .lrt-section-title .lrt-num {
    width: 28px;
    height: 28px;
    margin: 0;
  }

  .lrt-sac-row .lrt-grid-2 {
    gap: 16px;
  }

  .lrt-sac-row .lrt-field label {
    line-height: 1.35;
  }

  .lrt-sac-row .lrt-input-prefix span {
    padding: 11px 12px;
  }

  .lrt-sac-row .lrt-input-prefix input {
    min-width: 0;
    font-size: 14px;
  }

  .lrt-res-header {
    align-items: flex-start;
  }

  .lrt-aviso {
    max-width: none;
    text-align: left;
  }

  .lrt-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 2px;
  }

  .lrt-tab {
    flex: 0 0 auto;
    padding: 10px 12px;
    white-space: nowrap;
    font-size: 13px;
  }

  .lrt-detalle {
    border-radius: 12px;
    overflow: hidden;
  }

  .lrt-detalle-fila {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 11px 14px;
  }

  .lrt-detalle-fila.highlight-suma {
    padding: 11px 14px;
  }

  .lrt-dl,
  .lrt-dv {
    width: 100%;
    min-width: 0;
  }

  .lrt-dv {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .lrt-detalle-fila.total-fila {
    margin: 0 -2px -6px;
    padding: 14px;
  }

  .lrt-detalle-fila.total-fila .lrt-dv {
    font-size: 17px;
  }

  .lrt-interes-box {
    border-radius: 12px;
    padding: 14px;
  }

  .lrt-interes-titulo,
  .lrt-interes-sub {
    overflow-wrap: anywhere;
  }

  .lrt-interes-valor {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .lrt-table-wrap,
  .lrt-ibm-tabla {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lrt-table,
  .lrt-ibm-tabla table {
    min-width: 620px;
  }

  .lrt-table th,
  .lrt-table td,
  .lrt-ibm-tabla th,
  .lrt-ibm-tabla td {
    padding: 9px 10px;
    white-space: nowrap;
  }

  .lrt-ibm-tabla td[colspan],
  .lrt-table td[colspan] {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ================================================================
   CARDS RESUMEN — estilos adicionales (agregar al CSS del plugin)
   ================================================================ */

/* Card de ancho completo (Total estimado) */
.lrt-cards-grid .lrt-card.lrt-card-full {
  grid-column: 1 / -1;
  /* ocupa todas las columnas del grid */
}

/* Breakdown de conceptos dentro de la card Total */
.lrt-card-breakdown {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  /* sobre card principal (fondo oscuro) */
}

/* Si la card principal tiene fondo claro, ajustar borde */
.lrt-card:not(.principal) .lrt-card-breakdown {
  border-top-color: #e2e8f0;
}

.lrt-card-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.88;
}

.lrt-card-breakdown-row span:last-child {
  font-weight: 600;
  white-space: nowrap;
}

/* Card de acento (valor por punto de incapacidad) */
.lrt-card.lrt-card-accent {
  border-left: 4px solid #2563eb;
  background: #f0f7ff;
}

.lrt-card.lrt-card-accent .lrt-card-label {
  color: #1e40af;
}

.lrt-card.lrt-card-accent .lrt-card-valor {
  color: #1d4ed8;
}

/* Segunda línea de .lrt-card-sub con margin-top inline — asegurar legibilidad */
.lrt-card .lrt-card-sub strong {
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   BANER PROMOCIONAL BAREMO 549/2025
   ═══════════════════════════════════════════════════════════════════ */
.lrt-baremo-promo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(0, 149, 235, 0.05) 0%, rgba(0, 212, 255, 0.02) 100%);
  border: 1px solid rgba(0, 149, 235, 0.15);
  border-left: 4px solid var(--lrt-navy);
  border-radius: 12px;
  padding: 14px 20px;
  margin: 12px 0 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 149, 235, 0.02);
}

.lrt-baremo-promo-banner:hover {
  border-color: rgba(0, 149, 235, 0.35);
  box-shadow: 0 4px 16px rgba(0, 149, 235, 0.08);
  transform: translateY(-2px);
}

.lrt-baremo-promo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 149, 235, 0.1);
  color: var(--lrt-navy);
  flex-shrink: 0;
  animation: lrt-pulse 2s infinite ease-in-out;
}

@keyframes lrt-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 149, 235, 0.25);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 149, 235, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 149, 235, 0);
  }
}

.lrt-baremo-promo-content {
  flex: 1;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

.lrt-baremo-promo-content strong {
  font-weight: 700;
  color: #0085D9;
}

.lrt-baremo-promo-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #0095EB, #00D4FF);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 149, 235, 0.15);
}

.lrt-baremo-promo-action:hover {
  background: linear-gradient(135deg, #0085D9, #0095EB);
  box-shadow: 0 4px 12px rgba(0, 149, 235, 0.3);
  transform: translateY(-1px);
}

.lrt-baremo-promo-action::after {
  content: ' ➜';
  font-size: 11px;
  transition: transform 0.2s ease;
}

.lrt-baremo-promo-action:hover::after {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .lrt-baremo-promo-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .lrt-baremo-promo-icon {
    display: none;
  }

  .lrt-baremo-promo-action {
    width: 100%;
    justify-content: center;
    padding: 11px;
  }
}
