/* CSS Específico para Score Alternativo Riesgo - Estilos Externos */
@import url('/styles/pymes/pymes.css?v=16');

/* Contenedores y Layout General */
.score-riesgo-container-max {
  max-width: 1320px;
}

.score-riesgo-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.score-riesgo-badge-icon {
  margin-bottom: 12px;
}

/* ========================================================
   Hero Flujo Interactivo (Transparente y Ajuste Completo)
   ======================================================== */
.score-hero-interactive-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  position: relative;
  overflow: visible;
  width: 100%;
}

.score-hero-flow-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.score-flow-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.score-flow-card--solicitante {
  animation: floatSoft 4s ease-in-out infinite 0s;
  flex: 1;
  min-width: 0;
}

.score-flow-card--familias {
  animation: floatSoft 4s ease-in-out infinite 1.3s;
  flex: 1.8;
  min-width: 0;
}

.score-flow-card--result {
  animation: floatSoft 4s ease-in-out infinite 2.6s;
  flex: 1.1;
  min-width: 0;
}

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.score-flow-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: #3B82F6;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.score-flow-card__header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.score-flow-card__title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.score-flow-badge--red {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.score-flow-list {
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.score-flow-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #F8FAFC;
  padding: 4px 5px;
  border-radius: 6px;
  border: 1px solid #F1F5F9;
  font-size: 10.5px;
  text-align: center;
}

.score-flow-tag {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid #BFDBFE;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.score-flow-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
}

.score-flow-pill {
  background: #EEF2FF;
  color: #3730A3;
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 700;
  padding: 5px 3px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #E0E7FF;
  transition: all 0.2s ease;
  text-align: center;
  word-break: normal;
}

.score-flow-pill:hover {
  background: #E0E7FF;
  color: #1E1B4B;
}

.score-flow-pill--full {
  grid-column: 1 / -1;
}

.score-flow-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3B82F6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  margin-bottom: 6px;
}

.score-flow-badge-bottom {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  color: #047857;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 20px;
  width: 100%;
  text-align: center;
  border: 1px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.25;
}

.score-gauge-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 2px auto 8px auto;
}

.score-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-gauge-bg {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 8;
}

.score-gauge-fill {
  fill: none;
  stroke: url(#scoreGaugeGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 60;
  animation: fillScoreGauge 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fillScoreGauge {
  from {
    stroke-dashoffset: 251.2;
  }
  to {
    stroke-dashoffset: 60;
  }
}

.score-gauge-val {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.score-result-pd {
  font-size: 10.5px;
  color: #475569;
  font-weight: 700;
  margin-bottom: 5px;
  background: #F8FAFC;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
}

.score-result-status {
  font-size: 13.5px;
  font-weight: 900;
  color: #059669;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #A7F3D0;
  animation: pulseStatus 2.5s infinite ease-in-out;
  white-space: nowrap;
}

@keyframes pulseStatus {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.score-result-caption {
  font-size: 10px;
  color: #64748B;
  margin-top: 5px;
  font-weight: 500;
  white-space: nowrap;
}

.score-flow-connector {
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.score-flow-line {
  width: 100%;
  height: 2.5px;
  background: repeating-linear-gradient(
    90deg,
    #3B82F6,
    #3B82F6 5px,
    transparent 5px,
    transparent 10px
  );
  background-size: 20px 2.5px;
  animation: flowLine 1.2s linear infinite;
}

@keyframes flowLine {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 20px 0;
  }
}

.score-flow-connector::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: #2563EB;
  border-radius: 50%;
  box-shadow: 0 0 6px #3B82F6;
  animation: movePacket 1.5s ease-in-out infinite;
}

@keyframes movePacket {
  0% {
    left: 0%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.score-hero-flow-footnote {
  text-align: center;
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
  margin-top: 16px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ========================================================
   Diagrama Exacto de Embudo (Centrado Horizontalmente)
   ======================================================== */
.score-exact-funnel-wrap {
  margin: 48px auto 0 auto;
  width: 100%;
  max-width: 820px;
  text-align: left;
}

.score-exact-funnel-stage {
  position: relative;
  width: 100%;
  min-height: 230px;
}

.score-funnel-svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.score-exact-funnel-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  width: 100%;
}

.score-exact-bars-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.score-count-num {
  display: inline-block;
  font-weight: 900;
  transition: all 0.2s ease;
}

.score-exact-bar {
  height: 54px;
  border-radius: 16px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  padding-left: 18px;
  padding-right: 18px;
  box-shadow: 0 4px 16px rgba(46, 101, 255, 0.16);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background-color 0.35s ease;
}

.score-exact-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: barShimmer 2.8s infinite ease-in-out;
}

@keyframes barShimmer {
  0% { left: -100%; }
  40%, 100% { left: 100%; }
}

.score-exact-bar:hover {
  transform: translateX(6px) scale(1.03);
  box-shadow: 0 10px 28px rgba(46, 101, 255, 0.35);
}

.score-exact-bar--100,
.score-exact-bar--62,
.score-exact-bar--38,
.score-exact-loss-box--1,
.score-exact-loss-box--2 {
  opacity: 0;
}

.score-exact-bar--100 {
  background: linear-gradient(135deg, #2E65FF 0%, #1D4ED8 100%);
  width: 280px;
}

.score-exact-bar--62 {
  background: linear-gradient(135deg, #4F80FF 0%, #3B82F6 100%);
  width: 215px;
}

.score-exact-bar--38 {
  background: linear-gradient(135deg, #7C9EFF 0%, #60A5FA 100%);
  width: 165px;
}

/* Staggered Elastic Entrance Triggered by .is-animated */
.score-exact-funnel-wrap.is-animated .score-exact-bar--100 {
  animation: barFlyIn100 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, barPulseGlow100 4s ease-in-out infinite 0.9s;
}

.score-exact-funnel-wrap.is-animated .score-exact-bar--62 {
  animation: barFlyIn62 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards, barPulseGlow62 4s ease-in-out infinite 1.1s;
}

.score-exact-funnel-wrap.is-animated .score-exact-bar--38 {
  animation: barFlyIn38 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards, barPulseGlow38 4s ease-in-out infinite 1.3s;
}

.score-exact-funnel-wrap.is-animated .score-exact-loss-box--1 {
  animation: lossBoxPopIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s forwards, lossBoxBreathing 3.2s ease-in-out infinite 1.45s;
}

.score-exact-funnel-wrap.is-animated .score-exact-loss-box--2 {
  animation: lossBoxPopIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s forwards, lossBoxBreathing 3.2s ease-in-out infinite 1.65s;
}

@keyframes barFlyIn100 {
  0% { opacity: 0; transform: translateX(-90px) scale(0.6) rotate(-2deg); width: 0px; }
  70% { opacity: 1; transform: translateX(10px) scale(1.05) rotate(0.5deg); width: 290px; }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); width: 280px; }
}

@keyframes barFlyIn62 {
  0% { opacity: 0; transform: translateX(-90px) scale(0.6) rotate(-2deg); width: 0px; }
  70% { opacity: 1; transform: translateX(8px) scale(1.05) rotate(0.5deg); width: 223px; }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); width: 215px; }
}

@keyframes barFlyIn38 {
  0% { opacity: 0; transform: translateX(-90px) scale(0.6) rotate(-2deg); width: 0px; }
  70% { opacity: 1; transform: translateX(6px) scale(1.05) rotate(0.5deg); width: 171px; }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); width: 165px; }
}

@keyframes lossBoxPopIn {
  0% { opacity: 0; transform: translateX(90px) scale(0.7) rotate(3deg); }
  70% { opacity: 1; transform: translateX(-8px) scale(1.04) rotate(-0.5deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); }
}

/* SVG Line Flowing Animation & Active Energy Pulse */
.score-funnel-svg-lines path.score-path-bg {
  stroke: #FCA5A5;
  stroke-width: 2;
  opacity: 0.4;
}

.score-funnel-svg-lines path.score-path-pulse {
  stroke: #E86C5E;
  stroke-width: 2.8;
  stroke-dasharray: 8 8;
  animation: dashFlowPulse 1s linear infinite;
  filter: drop-shadow(0 0 3px rgba(232, 108, 94, 0.6));
}

@keyframes dashFlowPulse {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -32;
  }
}

.score-exact-loss-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 10px;
}

.score-exact-loss-box {
  background: linear-gradient(135deg, #FFF5F5 0%, #FDF0EE 100%);
  border-radius: 16px;
  padding: 18px 24px;
  width: 330px;
  border: 1px solid rgba(232, 108, 94, 0.28);
  border-left: 5px solid #E86C5E;
  box-shadow: 0 4px 16px rgba(232, 108, 94, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.score-exact-loss-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(232, 108, 94, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.score-exact-loss-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(232, 108, 94, 0.22);
  border-color: rgba(232, 108, 94, 0.5);
}

.score-exact-loss-box:hover::before {
  opacity: 1;
}

.score-exact-loss-box--1 {
  margin-bottom: 24px;
  animation: lossBoxBreathing 3.2s ease-in-out infinite;
}

.score-exact-loss-box--2 {
  margin-top: 4px;
  animation: lossBoxBreathing 3.2s ease-in-out infinite 0.9s;
}

@keyframes lossBoxBreathing {
  0%, 100% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 4px 16px rgba(232, 108, 94, 0.08);
  }
  50% {
    transform: translateY(-4px) scale(1.018);
    box-shadow: 0 10px 24px rgba(232, 108, 94, 0.18);
  }
}

.score-exact-loss-title {
  color: #E05246;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.score-exact-loss-sub {
  color: #7A6F77;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.score-exact-funnel-footnote {
  color: #6B7280;
  font-size: 14.5px;
  font-weight: 400;
  margin-top: 36px;
  line-height: 1.5;
  text-align: left;
}

/* ========================================================
   Métricas Gigantes en "Lo que Gana Tu Operación"
   ======================================================== */
.score-benefit-big-metric {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-top: 14px;
  margin-bottom: 4px;
}

.score-benefit-metric--blue {
  color: #2563EB;
}

.score-benefit-metric--green {
  color: #059669;
}

.score-benefit-metric--purple {
  color: #7C3AED;
}

.score-benefit-metric--amber {
  color: #D97706;
}

.score-benefit-metric-tag {
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

/* Grid de Métricas Clave */
.score-riesgo-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.score-riesgo-metric-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.score-riesgo-metric-card:hover {
  transform: translateY(-4px);
  border-color: #3B82F6;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.1);
}

.score-riesgo-metric-val {
  font-size: 26px;
  font-weight: 800;
  color: #2563EB;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.score-riesgo-metric-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* Tabla Comparativa */
.score-riesgo-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  margin-top: 28px;
}

.score-riesgo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.score-riesgo-table th {
  background: #F8FAFC;
  color: #0F172A;
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 2px solid #E2E8F0;
  white-space: nowrap;
}

.score-riesgo-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #F1F5F9;
  color: #475569;
}

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

.score-riesgo-table .col-finvero {
  background: #EFF6FF;
  color: #1E3A8A;
  font-weight: 700;
}

.score-riesgo-table th.col-finvero {
  background: #DBEAFE;
  color: #1E40AF;
  font-size: 15px;
}

/* Grid Quién Lo Usa */
.score-riesgo-sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.score-riesgo-sector-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.score-riesgo-sector-card:hover {
  transform: translateY(-4px);
  border-color: #2563EB;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.score-riesgo-sector-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin-bottom: 8px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-riesgo-sector-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ========================================================
   Testimonios en Quién Lo Usa
   ======================================================== */
.score-testimonials-wrap {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #E2E8F0;
}

.score-testimonials-heading {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin-bottom: 24px !important;
}

.score-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.score-testimonial-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
  position: relative;
}

.score-testimonial-card:hover {
  transform: translateY(-4px);
  border-color: #3B82F6;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.score-testimonial-accent {
  width: 4px;
  background: #2563EB;
  border-radius: 4px;
  flex-shrink: 0;
}

.score-testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.score-testimonial-quote {
  font-size: 15px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.5;
  margin-bottom: 16px;
  font-style: italic;
}

.score-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #DBEAFE;
  flex-shrink: 0;
}

.score-testimonial-role {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.score-testimonial-sector {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
}

/* Adaptabilidad Responsiva */
@media (max-width: 991px) {
  .score-hero-flow-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 16px;
  }

  .score-exact-funnel-grid {
    flex-direction: column;
    gap: 24px;
  }

  .score-funnel-svg-lines {
    display: none;
  }

  .score-exact-bar--100,
  .score-exact-bar--62,
  .score-exact-bar--38,
  .score-exact-loss-box {
    width: 100%;
  }

  .score-flow-card--solicitante,
  .score-flow-card--familias,
  .score-flow-card--result {
    animation: none;
    width: 100%;
  }

  .score-flow-connector {
    width: 2.5px;
    height: 24px;
    flex: 0 0 24px;
  }

  .score-flow-line {
    width: 2.5px;
    height: 100%;
    background: repeating-linear-gradient(
      180deg,
      #3B82F6,
      #3B82F6 5px,
      transparent 5px,
      transparent 10px
    );
    background-size: 2.5px 20px;
    animation: flowLineVert 1.2s linear infinite;
  }

  @keyframes flowLineVert {
    from {
      background-position: 0 0;
    }
    to {
      background-position: 0 20px;
    }
  }

  .score-flow-connector::after {
    animation: movePacketVert 1.5s ease-in-out infinite;
  }

  @keyframes movePacketVert {
    0% {
      top: 0%;
      opacity: 0;
    }
    20% {
      opacity: 1;
    }
    80% {
      opacity: 1;
    }
    100% {
      top: 100%;
      opacity: 0;
    }
  }
}

@media (max-width: 768px) {
  .score-riesgo-metrics-grid,
  .score-riesgo-sectors-grid,
  .score-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .score-benefit-big-metric {
    font-size: 32px;
  }
}


/* ========================================================
   Diagrama Embudo Invertido: Dónde se atora un cambio de política
   ======================================================== */
.de-stuck-funnel-wrap {
  margin-top: 48px;
  background: transparent !important;
  border-radius: 0;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
}

.de-stuck-funnel-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 32px;
  text-align: left;
}

.de-stuck-funnel-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.de-stuck-funnel-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.de-stuck-funnel-stage {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 4px;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.de-stuck-funnel-stage:hover {
  transform: scale(1.02);
}

.de-stuck-stage-1 {
  width: 100%;
  background: #0A192F;
  clip-path: polygon(0 0, 100% 0, 91% 100%, 9% 100%);
}

.de-stuck-stage-2 {
  width: 82%;
  background: #1D4ED8;
  clip-path: polygon(0 0, 100% 0, 89% 100%, 11% 100%);
}

.de-stuck-stage-3 {
  width: 64%;
  background: #2563EB;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.de-stuck-stage-4 {
  width: 46%;
  background: #60A5FA;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.de-stuck-notes-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.de-stuck-note-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 52px;
  justify-content: flex-start;
}

.de-stuck-connector-line {
  display: flex;
  align-items: center;
  gap: 0px;
  margin-top: 18px;
  flex-shrink: 0;
}

.de-stuck-line {
  width: 32px;
  height: 2px;
  background: #EA580C;
}

.de-stuck-dot {
  width: 10px;
  height: 10px;
  background: #EA580C;
  border-radius: 50%;
  flex-shrink: 0;
}

.de-stuck-note-body {
  display: flex;
  flex-direction: column;
}

.de-stuck-note-h {
  font-size: 0.95rem;
  font-weight: 800;
  color: #C2410C;
  line-height: 1.3;
}

.de-stuck-note-h--dark {
  color: #0F172A;
}

.de-stuck-note-sub {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 500;
  margin-top: 2px;
}

@media (max-width: 991px) {
  .de-stuck-funnel-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .de-stuck-note-item {
    height: auto;
  }
}


/* ========================================================
   Diagrama: Cada banda trae su acción y su oferta
   ======================================================== */
.de-bands-diagram-wrap {
  margin-top: 48px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.de-bands-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 28px;
  text-align: left;
}

.de-bands-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.de-bands-header-row {
  display: grid;
  grid-template-columns: 120px 1.5fr 2fr;
  gap: 24px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #64748B;
  text-transform: uppercase;
  padding-bottom: 10px;
}

.de-bands-row {
  display: grid;
  grid-template-columns: 120px 1.5fr 2fr;
  gap: 24px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}

.de-bands-row:last-child {
  border-bottom: none;
}

.de-band-badge {
  width: 90px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #FFFFFF;
}

.de-band-badge--a {
  background: linear-gradient(135deg, #15803D 0%, #16A34A 100%);
}

.de-band-badge--b {
  background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
}

.de-band-badge--c {
  background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
}

.de-band-badge--d {
  background: linear-gradient(135deg, #B91C1C 0%, #DC2626 100%);
}

.de-bands-action-col {
  display: flex;
  flex-direction: column;
}

.de-bands-action-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0F172A;
}

.de-bands-action-sub {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 500;
  margin-top: 2px;
}

.de-bands-motor-text {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
}


/* ========================================================
   Semáforo Bands Diagram Styles (Círcuolos y Línea Vertical)
   ======================================================== */
.de-semaforo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.de-semaforo-line {
  position: absolute;
  left: 18px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, #059669 0%, #34D399 30%, #F59E0B 65%, #EF4444 100%);
  border-radius: 1px;
  z-index: 1;
}

.de-semaforo-circle-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
}

.de-band-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.de-band-circle:hover {
  transform: translateY(-2px) scale(1.08);
}

.de-band-circle--a {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  box-shadow: 0 0 0 3px #FFFFFF, 0 4px 12px rgba(16, 185, 129, 0.25);
}

.de-band-circle--b {
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  box-shadow: 0 0 0 3px #FFFFFF, 0 4px 12px rgba(52, 211, 153, 0.25);
}

.de-band-circle--c {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  box-shadow: 0 0 0 3px #FFFFFF, 0 4px 12px rgba(245, 158, 11, 0.25);
}

.de-band-circle--d {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  box-shadow: 0 0 0 3px #FFFFFF, 0 4px 12px rgba(239, 68, 68, 0.25);
}


/* ========================================================
   Mobile Responsiveness for DE Diagrams
   ======================================================== */
@media (max-width: 768px) {
  /* Funnel Diagram Mobile Adjustments */
  .de-stuck-funnel-wrap {
    margin-top: 32px;
  }

  .de-stuck-funnel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .de-stuck-funnel-stage {
    width: 100% !important;
    clip-path: none !important;
    border-radius: 10px !important;
    font-size: 0.88rem;
    padding: 0 12px;
  }
  
  .de-stuck-notes-col {
    gap: 16px;
  }

  .de-stuck-note-item {
    height: auto;
    gap: 10px;
  }

  .de-stuck-connector-line {
    margin-top: 4px;
  }

  .de-stuck-line {
    width: 16px;
  }

  /* Semáforo Bands Diagram Mobile Adjustments */
  .de-bands-diagram-wrap {
    margin-top: 36px;
  }

  .de-bands-header-row {
    display: none;
  }

  .de-bands-row {
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding: 16px 0;
    align-items: flex-start;
  }

  .de-bands-motor-text {
    margin-top: 6px;
  }

  .de-semaforo-line {
    left: 18px;
    top: 20px;
    bottom: 20px;
  }
}


/* ==========================================================================
   CÓMO FUNCIONA DIAGRAM - Componente unificado con fondo gris (Stepper + Definición)
   ========================================================================== */
.fv-fine-kpi-bar,
.fv-fine-kpi-card,
.fv-pipeline-step,
.fv-pipeline-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.fv-fine-kpi-card {
    padding: 12px 0 !important;
}

/* El contenedor principal engloba el stepper y la definición dentro del fondo gris */
.fv-pipeline-showcase {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px !important;
    padding: 28px 24px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.fv-pipeline-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.fv-pipeline-content-window {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* ==========================================================================
   CIRCLES & ICON BADGES - Diseño gráfico refinado para círculos
   ========================================================================== */
.fv-pipeline-circle,
.fv-fine-kpi-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%) !important;
    color: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    border: 2px solid #FFFFFF !important;
    outline: 1px solid rgba(37, 99, 235, 0.2) !important;
    transition: all 0.3s ease !important;
}

.fv-pipeline-step.active .fv-pipeline-circle {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
    outline-color: rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.08) !important;
}

.fv-pipeline-step:hover .fv-pipeline-circle,
.fv-fine-kpi-card:hover .fv-fine-kpi-icon {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
}

/* ==========================================================================
   PASTEL CIRCLES FOR EXECUTIVE KPI CARDS
   ========================================================================== */
.fv-fine-kpi-icon--pastel-blue {
    background: #EEF2FF !important;
    color: #3730A3 !important;
    border: 1.5px solid #C7D2FE !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.fv-fine-kpi-icon--pastel-green {
    background: #ECFDF5 !important;
    color: #065F46 !important;
    border: 1.5px solid #A7F3D0 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.fv-fine-kpi-icon--pastel-purple {
    background: #F3E8FF !important;
    color: #6B21A8 !important;
    border: 1.5px solid #DDD6FE !important;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}


/* ==========================================================================
   CÓMO FUNCIONA DIAGRAM - Componente unificado con fondo gris (Stepper + Definición)
   ========================================================================== */
.fv-fine-kpi-bar {
    gap: 8px !important;
    margin-bottom: 16px !important;
}

.fv-fine-kpi-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 6px 8px !important;
    gap: 10px !important;
}

.fv-fine-kpi-val {
    margin-bottom: 1px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}

.fv-fine-kpi-lbl {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
}

.fv-pipeline-step,
.fv-pipeline-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* El contenedor principal engloba el stepper y la definición dentro del fondo gris */
.fv-pipeline-showcase {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px !important;
    padding: 24px 20px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.fv-pipeline-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.fv-pipeline-content-window {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* ==========================================================================
   CIRCLES & ICON BADGES - Diseño gráfico refinado para círculos
   ========================================================================== */
.fv-pipeline-circle,
.fv-fine-kpi-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%) !important;
    color: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    border: 2px solid #FFFFFF !important;
    outline: 1px solid rgba(37, 99, 235, 0.2) !important;
    transition: all 0.3s ease !important;
}

.fv-pipeline-step.active .fv-pipeline-circle {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
    outline-color: rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.08) !important;
}

.fv-pipeline-step:hover .fv-pipeline-circle,
.fv-fine-kpi-card:hover .fv-fine-kpi-icon {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
}

/* ==========================================================================
   PASTEL CIRCLES FOR EXECUTIVE KPI CARDS
   ========================================================================== */
.fv-fine-kpi-icon--pastel-blue {
    background: #EEF2FF !important;
    color: #3730A3 !important;
    border: 1.5px solid #C7D2FE !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.fv-fine-kpi-icon--pastel-green {
    background: #ECFDF5 !important;
    color: #065F46 !important;
    border: 1.5px solid #A7F3D0 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.fv-fine-kpi-icon--pastel-purple {
    background: #F3E8FF !important;
    color: #6B21A8 !important;
    border: 1.5px solid #DDD6FE !important;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.fv-fine-kpi-icon--pastel-amber {
    background: #FFFBEB !important;
    color: #92400E !important;
    border: 1.5px solid #FDE68A !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}


/* ==========================================================================
   TIGHT HORIZONTAL SPACING FOR EXECUTIVE KPI BAR CARDS
   ========================================================================== */
.fv-fine-kpi-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 12px !important;
    margin-bottom: 24px !important;
}

.fv-fine-kpi-card {
    flex: 0 0 auto !important;
    padding: 6px 14px !important;
    gap: 10px !important;
}


/* ==========================================================================
   Master FAQ Title & Accordion Styling matching plataforma-originacion-de-credito
   ========================================================================== */
.questionsSection {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto 100px auto !important;
}

.questionsSection .kpis-layout__title,
.questionsSection h6.kpis-layout__title,
.questionsSection h6,
.questionsSection h2,
h6.kpis-layout__title {
    font-size: 3rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #0b1121 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    margin-bottom: 2.5rem !important;
    display: block !important;
    width: 100% !important;
    letter-spacing: -0.5px !important;
}

.questionsSection .kpis-layout__title .services_text,
.questionsSection h6.kpis-layout__title .services_text,
.questionsSection h6 .services_text,
.questionsSection h2 .services_text,
h6.kpis-layout__title .services_text {
    color: #000000 !important;
    text-transform: uppercase !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

@media (max-width: 991px) {
    .questionsSection .kpis-layout__title,
    .questionsSection h6.kpis-layout__title,
    .questionsSection h6,
    .questionsSection h2,
    h6.kpis-layout__title {
        font-size: 2rem !important;
    }
}


/* ========================================================
   UNIVERSAL VOCES DE LA OPERACION / TESTIMONIALS STYLES
   ======================================================== */
.score-testimonials-wrap {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #E2E8F0;
  width: 100%;
}

.score-testimonials-heading {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin-bottom: 24px !important;
}

.score-testimonials-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
}

.score-testimonial-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  padding: 24px !important;
  display: flex !important;
  gap: 16px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.score-testimonial-card:hover {
  transform: translateY(-4px) !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08) !important;
}

.score-testimonial-accent {
  width: 4px !important;
  background: #2563EB !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
}

.score-testimonial-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.score-testimonial-quote {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important;
  font-style: italic !important;
}

.score-testimonial-author {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.score-testimonial-avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 2px solid #DBEAFE !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.score-testimonial-role {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #475569 !important;
}

.score-testimonial-sector {
  font-size: 12px !important;
  color: #94A3B8 !important;
  font-weight: 500 !important;
}

/* =========================================================
   DE METRICS SECTION (ESTILO CARDS INTRO + GRID 2x2)
   ========================================================= */
.de-metrics-section {
    padding-top: 50px !important;
    padding-bottom: 60px !important;
    background: #FFFFFF !important;
}

.de-metrics-intro-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 36px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.de-metrics-intro-text {
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 32px;
    font-weight: 500;
}

.de-metrics-cta-btn {
    background-color: #2563EB;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.de-metrics-cta-btn:hover {
    background-color: #1D4ED8;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.de-metric-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 28px 24px;
    text-align: left;
    height: 100%;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.de-metric-card:hover {
    transform: translateY(-4px);
    border-color: #3B82F6;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.1);
}

.de-metric-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #EFF6FF;
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.de-metric-val {
    font-size: clamp(1.8rem, 2.8vw, 2.2rem);
    font-weight: 900;
    color: #0F172A;
    line-height: 1.1;
    margin-bottom: 8px;
}

.de-metric-desc {
    font-size: 0.9rem;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

