/* Estilos generales de la sección NIR */
.nir-grid-section {
  padding-top: 10px;
}

.nir-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

@media (max-width: 992px) {
  .nir-grid-container {
    grid-template-columns: 1fr;
  }
}

.nir-col-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nir-col-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c243c;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

/* Cabecera superior de estados oficial */
.nir-model-topbar {
  display: grid;
  grid-template-columns: 1.1fr 2fr 2fr 1.1fr;
  gap: 3px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
}
.nmt-cell {
  padding: 8px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}
.nmt-blue { background-color: #3b82f6; }
.nmt-green { background-color: #22c55e; }
.nmt-yellow { background-color: #f59e0b; color: #1e293b; }
.nmt-red { background-color: #ef4444; }

/* Contenedor del perfil de riesgo */
.nir-exact-profile-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px;
  transition: all 0.3s ease;
}
.nir-exact-profile-box:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-color: #94a3b8;
}

.nep-risk-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.bg-green-tag { background-color: #d1fae5; color: #065f46; }
.bg-yellow-tag { background-color: #fef3c7; color: #92400e; }
.bg-red-tag { background-color: #fee2e2; color: #991b1b; }

/* Secuencia de bloques de meses con forma de flecha lateral angular */
.nep-arrow-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  height: 42px;
  border-radius: 4px;
  overflow: hidden;
}

.neaf-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  position: relative;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}

/* Efecto de punta de flecha angular en el último bloque */
.chevron-pointer {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  padding-right: 8px;
}

/* Efecto de parpadeo suave y moderno para la ventana activa */
@keyframes modernPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(0.995); filter: brightness(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
.active-pulse {
  animation: modernPulse 2.2s infinite ease-in-out;
}

.nep-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #334155;
}

.nep-left .nep-title {
  font-style: italic;
  color: #64748b;
  display: inline-block;
  margin-right: 4px;
}
.nep-left .nep-val {
  font-weight: 700;
  color: #0c243c;
}

/* Colores institucionales vibrantes */
.bg-green { background-color: #22c55e !important; color: #fff !important; }
.bg-yellow { background-color: #f59e0b !important; }
.bg-red { background-color: #ef4444 !important; }

/* Tabla de prioridades */
.nir-custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.nir-custom-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}
.nir-custom-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.badge-pill-custom {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}
.bg-light-green { background-color: #d1fae5; color: #065f46; }
.bg-light-yellow { background-color: #fef3c7; color: #92400e; }
.bg-light-red { background-color: #fee2e2; color: #991b1b; }
.nir-info-note {
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
  padding: 12px;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #475569;
}
/* Estilo de tarjeta blanca centrada para el encabezado NIR */
.alvm-nir-intro-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
/* Tarjeta superior con texto centrado */
.alvm-nir-intro-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  text-align: center !important;
}

.alvm-nir-intro-card h2,
.alvm-nir-intro-card p {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* Círculos / "Pelotitas" de color indicadoras en la tabla */
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-green { background-color: #22c55e; }
.dot-yellow { background-color: #f59e0b; }
.dot-red { background-color: #ef4444; }

/* Tarjeta superior con texto centrado a nivel absoluto */
.alvm-nir-intro-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  text-align: center !important;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.alvm-nir-intro-card h2,
.alvm-nir-intro-card p {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* Grilla de dos columnas */
.nir-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

@media (max-width: 992px) {
  .nir-grid-container {
    grid-template-columns: 1fr;
  }
}

.nir-col-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nir-col-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c243c;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

/* Cabecera superior de estados oficial */
.nir-model-topbar {
  display: grid;
  grid-template-columns: 1.1fr 2fr 2fr 1.1fr;
  gap: 3px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
}
.nmt-cell {
  padding: 8px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}
.nmt-blue { background-color: #3b82f6; }
.nmt-green { background-color: #22c55e; }
.nmt-yellow { background-color: #f59e0b; color: #1e293b; }
.nmt-red { background-color: #ef4444; }

/* Contenedor del perfil de riesgo */
.nir-exact-profile-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px;
  transition: all 0.3s ease;
}
.nir-exact-profile-box:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-color: #94a3b8;
}

.nep-risk-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.bg-green-tag { background-color: #d1fae5; color: #065f46; }
.bg-yellow-tag { background-color: #fef3c7; color: #92400e; }
.bg-red-tag { background-color: #fee2e2; color: #991b1b; }

/* Secuencia de bloques de meses con forma de flecha lateral angular */
.nep-arrow-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  height: 42px;
  border-radius: 4px;
  overflow: hidden;
}

.neaf-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  position: relative;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}

.chevron-pointer {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  padding-right: 8px;
}

@keyframes modernPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(0.995); filter: brightness(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
.active-pulse {
  animation: modernPulse 2.2s infinite ease-in-out;
}

.nep-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #334155;
}

.nep-left .nep-title {
  font-style: italic;
  color: #64748b;
  display: inline-block;
  margin-right: 4px;
}
.nep-left .nep-val {
  font-weight: 700;
  color: #0c243c;
}

.bg-green { background-color: #22c55e !important; color: #fff !important; }
.bg-yellow { background-color: #f59e0b !important; }
.bg-red { background-color: #ef4444 !important; }

/* Tabla de prioridades */
.nir-custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.nir-custom-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}
.nir-custom-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

/* Círculos / Pelotitas indicadoras de color */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-green { background-color: #22c55e; }
.dot-yellow { background-color: #f59e0b; }
.dot-red { background-color: #ef4444; }

.badge-pill-custom {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}
.bg-light-green { background-color: #d1fae5; color: #065f46; }
.bg-light-yellow { background-color: #fef3c7; color: #92400e; }
.bg-light-red { background-color: #fee2e2; color: #991b1b; }
.nir-info-note {
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
  padding: 12px;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #475569;
}