/* ==========================================
   ESTILOS PARA SIMULADORES
   ========================================== */

/* Calculadora Wrapper */
.calculadora-wrapper {
  max-width: 800px;
  margin: 0 auto 0;
}

.calculadora-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.card-header h2 {
  font-size: 2rem;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-weight: 600;
  pointer-events: none;
  font-size: 1rem;
}

.input-wrapper input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-wrapper input::placeholder {
  color: #d1d5db;
}

/* Subtotales */
.subtotal-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  font-size: 1rem;
}

.subtotal-box.ingreso {
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  color: #065f46;
}

.subtotal-box.gasto {
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #991b1b;
}

.subtotal-box strong {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Botón Calcular */
.btn-calc {
  width: 100%;
  padding: 1.125rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Resultados */
.resultados {
  max-width: 800px;
  margin: 0.5rem auto;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resultado-principal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 3px solid #667eea;
}

.resultado-principal h2 {
  font-size: 1.75rem;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.resultado-grid {
  display: grid;
  gap: 1.5rem;
}

.resultado-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.resultado-item:last-child {
  border-bottom: none;
}

.resultado-item.destacado {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  border-radius: 12px;
  border-bottom: none;
  margin-top: 0.5rem;
}

.resultado-label {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

.resultado-item.destacado .resultado-label {
  color: #1f2937;
  font-weight: 600;
  font-size: 1.125rem;
}

.resultado-valor {
  font-size: 1.75rem;
  font-weight: 700;
}

.resultado-valor.positivo {
  color: #10b981;
}

.resultado-valor.negativo {
  color: #ef4444;
}

.resultado-item.destacado .resultado-valor {
  font-size: 2.25rem;
  color: #667eea;
}

/* Distribución */
.distribucion-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.distribucion-section h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
}

.distribucion-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dist-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.dist-porcentaje {
  color: #667eea;
  font-size: 1.125rem;
}

.progress-bar {
  width: 100%;
  height: 28px;
  background: #f3f4f6;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
}

.progress-fill.fijos {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.progress-fill.variables {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-fill.disponible {
  background: linear-gradient(90deg, #10b981, #059669);
}

.dist-monto {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: right;
}

/* Recomendaciones */
.recomendaciones-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.recomendaciones-section h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
}

#recomendaciones-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recomendacion-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  border-left: 4px solid;
  background: #f9fafb;
}

.recomendacion-item.success {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.recomendacion-item.warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.recomendacion-item.danger {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.recomendacion-item.info {
  border-left-color: #667eea;
  background: #f0f4ff;
}

.recomendacion-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.recomendacion-text {
  flex: 1;
}

.recomendacion-text strong {
  display: block;
  margin-bottom: 0.375rem;
  color: #1f2937;
  font-size: 1rem;
}

.recomendacion-text p {
  margin: 0;
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Guía de Uso */
.guia-uso {
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.guia-uso h2 {
  font-size: 2rem;
  text-align: center;
  color: #1f2937;
  margin-bottom: 2rem;
}

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.paso-item {
  background: white;
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paso-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.paso-numero {
  width: 48px;
  height: 48px;
  border:solid #0f172a 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.paso-item h3 {
  font-size: 1.125rem;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.paso-item p {
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.consejos-box {
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.consejos-box h3 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem 0;
}

.consejos-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.consejos-box li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.consejos-box li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Otros Simuladores */
.otros-simuladores {
    margin-top: -90px;
}

.otros-simuladores h2 {
  font-size: 2rem;
  text-align: center;
  color: #1f2937;
  margin-bottom: 2rem;
  margin-top: 25px;
}

.simuladores-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.simulador-mini-card {
  background: white;
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.simulador-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.simulador-mini-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.simulador-mini-card h3 {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.simulador-mini-card p {
  color: #6b7280;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .calculadora-card {
    padding: 1.5rem;
  }

  .resultado-principal {
    padding: 1.5rem;
  }

  .resultado-principal h2 {
    font-size: 1.5rem;
  }

  .resultado-valor {
    font-size: 1.5rem;
  }

  .resultado-item.destacado .resultado-valor {
    font-size: 1.875rem;
  }

  .pasos-grid {
    grid-template-columns: 1fr;
  }

  .simuladores-mini-grid {
    grid-template-columns: 1fr;
  }
}

.mensaje-alerta {
  padding: 12px 16px;
  margin-top: 20px;
  border-radius: 8px;
  font-weight: 500;
}

.mensaje-alerta.error {
  background-color: #ffe5e5;
  color: #b00020;
  border: 1px solid #ffb3b3;
}

.mensaje-alerta.warning {
  background-color: #fff4cc;
  color: #8a6d00;
  border: 1px solid #ffe08a;
}

.input-no-prefix {
  padding-left: 1rem !important;
  padding-right: 5rem !important;
}

.input-suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-weight: 600;
  pointer-events: none;
  font-size: 1rem;
}

.input-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

.timeline-info {
  margin-bottom: 1.5rem;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.timeline-label {
  font-size: 0.9375rem;
  color: #6b7280;
  font-weight: 500;
}

.timeline-valor {
  font-size: 1rem;
  color: #1f2937;
  font-weight: 600;
}

.timeline-bar {
  width: 100%;
  height: 12px;
  background: #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin: 1rem 0;
}

.timeline-progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 6px;
  width: 0%;
  transition: width 1s ease;
}

.plazo-info {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.plazo-info p {
  margin: 0.5rem 0;
  color: #374151;
  font-size: 0.9375rem;
}

.plazo-info span {
  color: #667eea;
  font-weight: 600;
}

/* Estilos adicionales para Fondo de Emergencia */

.slider-container {
  margin: 1rem 0;
}

#meses-colchon {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #fef2f2, #fffbeb, #f0fdf4);
  outline: none;
}

#meses-colchon::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

#meses-colchon::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

#meses-colchon::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

#meses-colchon::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.slider-labels span {
  text-align: center;
  font-weight: 500;
}

.slider-labels small {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.slider-value {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #1f2937;
}

.slider-value strong {
  font-size: 2rem;
  color: #667eea;
  font-weight: 700;
}

.progreso-visual {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
}

.progreso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #374151;
}

.progreso-porcentaje {
  font-size: 1.5rem;
  color: #667eea;
}

.progress-bar-large {
  width: 100%;
  height: 40px;
  background: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin: 1rem 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill-large {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 20px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.progreso-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  color: #6b7280;
  margin-top: 0.75rem;
}

.progreso-footer span:first-child {
  font-weight: 600;
  color: #10b981;
  font-size: 1.125rem;
}

.plan-timeline {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.plan-timeline h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.plan-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.plan-stat {
  text-align: center;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.plan-stat-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.plan-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #667eea;
}

@media (max-width: 768px) {
  .slider-labels {
    font-size: 0.75rem;
  }
  
  .slider-labels small {
    font-size: 0.6875rem;
  }

  .slider-value strong {
    font-size: 1.75rem;
  }

  .plan-stats {
    grid-template-columns: 1fr;
  }
}

/* Estilos adicionales para Interés Simple */

.tipo-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.tipo-btn {
  padding: 1rem;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.tipo-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

.tipo-btn.active {
  border-color: #667eea;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.tiempo-inputs {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.select-tiempo {
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #374151;
  font-weight: 500;
}

.select-tiempo:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-suffix-small {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-weight: 500;
  pointer-events: none;
  font-size: 0.9rem;
}

.desglose-temporal {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.desglose-temporal h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.desglose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.desglose-item {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.desglose-periodo {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.desglose-monto {
  font-size: 1.125rem;
  color: #667eea;
  font-weight: 700;
}

/* Fórmula Box */
.formula-box {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.formula-box h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.formula {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.formula code {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.formula-explicacion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.formula-explicacion p {
  margin: 0;
  font-size: 0.9375rem;
  color: #374151;
}

.formula-ejemplo {
  background: #f0fdf4;
  padding: 1.25rem;
  border-radius: 8px;
  border-left: 4px solid #10b981;
}

.formula-ejemplo p {
  margin: 0.5rem 0;
  color: #065f46;
  font-size: 0.9375rem;
}

.formula-ejemplo strong {
  color: #059669;
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .tipo-selector {
    grid-template-columns: 1fr;
  }

  .tiempo-inputs {
    grid-template-columns: 1fr;
  }

  .desglose-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .formula code {
    font-size: 1.25rem;
  }

  .formula-explicacion {
    grid-template-columns: 1fr;
  }
}

/* Estilos adicionales para Tamaño de Posición */

.riesgo-calculado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  border-radius: 10px;
  margin-top: 1.5rem;
  border: 2px solid #667eea;
}

.riesgo-calculado span {
  color: #374151;
  font-weight: 500;
}

.riesgo-calculado strong {
  color: #667eea;
  font-size: 1.5rem;
  font-weight: 700;
}

.distancia-calculada {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dist-item {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.dist-item span {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.dist-item strong {
  display: block;
  font-size: 1.25rem;
  color: #1f2937;
  font-weight: 700;
}

.resumen-trading {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.resumen-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.resumen-item:last-child {
  border-bottom: none;
}

.resumen-label {
  font-size: 0.9375rem;
  color: #6b7280;
}

.resumen-valor {
  font-size: 1.125rem;
  color: #1f2937;
  font-weight: 600;
}

.resumen-valor.destaca {
  color: #667eea;
  font-size: 1.25rem;
  font-weight: 700;
}

.capital-visual {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.capital-visual h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.capital-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.capital-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.capital-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}

.capital-bar-label span:last-child {
  color: #667eea;
}

@media (max-width: 768px) {
  .distancia-calculada {
    grid-template-columns: 1fr;
  }

  .riesgo-calculado {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
/* Estilos adicionales para Riesgo/Beneficio */

.distancias-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dist-info-item {
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.dist-info-item.riesgo {
  background: #fef2f2;
  border: 2px solid #fecaca;
}

.dist-info-item.beneficio {
  background: #f0fdf4;
  border: 2px solid #a7f3d0;
}

.dist-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.dist-info-item.riesgo strong {
  display: block;
  font-size: 1.5rem;
  color: #dc2626;
  font-weight: 700;
}

.dist-info-item.beneficio strong {
  display: block;
  font-size: 1.5rem;
  color: #059669;
  font-weight: 700;
}

.rr-valor {
  font-size: 3rem !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grafico-rr {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.grafico-niveles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nivel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.nivel.tp {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
}

.nivel.entrada {
  background: #f0f4ff;
  border-left: 4px solid #667eea;
}

.nivel.sl {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
}

.nivel-label {
  font-size: 0.9375rem;
  color: #6b7280;
}

.nivel-precio {
  font-size: 1.25rem;
  color: #1f2937;
}

.grafico-barras {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.barra-beneficio,
.barra-riesgo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.barra-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}

.barra-visual {
  height: 40px;
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.barra-visual.beneficio {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.barra-visual.riesgo {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.barra-monto {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: right;
}

.win-rate-info {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.win-rate-info h4 {
  color: #1f2937;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.win-rate-info p {
  color: #374151;
  font-size: 1rem;
  margin: 0;
}

.win-rate-info strong {
  color: #667eea;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .distancias-info {
    grid-template-columns: 1fr;
  }

  .rr-valor {
    font-size: 2.5rem !important;
  }

  .grafico-rr {
    padding: 1.5rem;
  }

  .nivel {
    padding: 0.75rem 1rem;
  }

  .nivel-precio {
    font-size: 1.125rem;
  }
}
/* Estilos adicionales para Win Rate Necesario */

.input-with-prefix-text {
  padding-left: 3rem !important;
}

.ratio-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.preset-btn {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.preset-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.preset-btn.active {
  border-color: #667eea;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.winrate-valor {
  font-size: 4rem !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tabla-winrates {
  overflow-x: auto;
}

.winrate-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.winrate-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.winrate-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
}

.winrate-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9375rem;
}

.winrate-table tbody tr:hover {
  background: #f9fafb;
}

.winrate-table tbody tr.actual {
  background: #f0f4ff;
  font-weight: 600;
}

.estado-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.estado-badge.excelente {
  background: #d1fae5;
  color: #065f46;
}

.estado-badge.bueno {
  background: #dbeafe;
  color: #1e40af;
}

.estado-badge.aceptable {
  background: #fef3c7;
  color: #92400e;
}

.estado-badge.dificil {
  background: #fee2e2;
  color: #991b1b;
}

.escenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.escenario-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.escenario-header {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.escenario-header.break-even {
  background: #fef3c7;
  border-bottom: 2px solid #fbbf24;
}

.escenario-header.conservador {
  background: #dbeafe;
  border-bottom: 2px solid #60a5fa;
}

.escenario-header.realista {
  background: #d1fae5;
  border-bottom: 2px solid #34d399;
}

.escenario-header h4 {
  font-size: 1.125rem;
  color: #1f2937;
  margin: 0;
}

.escenario-winrate {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.escenario-body {
  padding: 1.25rem;
}

.escenario-body p {
  margin: 0 0 1rem 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.escenario-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.stat:last-child {
  border-bottom: none;
}

.stat.destacada {
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  margin-top: 0.5rem;
}

.stat.destacada.positiva {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.stat.destacada .stat-value {
  font-size: 1.25rem;
  color: #059669;
}

@media (max-width: 768px) {
  .ratio-presets {
    grid-template-columns: repeat(3, 1fr);
  }

  .winrate-valor {
    font-size: 3rem !important;
  }

  .escenarios-grid {
    grid-template-columns: 1fr;
  }

  .winrate-table {
    font-size: 0.875rem;
  }

  .winrate-table th,
  .winrate-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Estilos adicionales para Expectativa de Trading */

.info-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  margin-top: 1.5rem;
}

.info-box p {
  margin: 0;
  color: #374151;
  font-size: 0.9375rem;
}

.expectativa-valor {
  font-size: 4rem !important;
}

.expectativa-valor.positiva {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.expectativa-valor.negativa {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.expectativa-valor.neutral {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.interpretacion-box {
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.interpretacion-box.positiva {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #10b981;
}

.interpretacion-box.negativa {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
}

.interpretacion-box.neutral {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
}

.interpretacion-titulo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.interpretacion-texto {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.proyeccion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.proyeccion-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.proyeccion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.proyeccion-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.proyeccion-valor {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
}

.proyeccion-valor.destacada {
  font-size: 2.25rem;
  color: #667eea;
}

.simulacion-100-trades {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.simulacion-100-trades h4 {
  color: #1f2937;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.simulacion-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sim-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.sim-stat.destacada-sim {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  border: 2px solid #667eea;
  padding: 1rem;
  margin-top: 0.5rem;
}

.sim-label {
  font-size: 0.9375rem;
  color: #6b7280;
  font-weight: 500;
}

.sim-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}

.sim-value.positivo {
  color: #10b981;
}

.sim-value.negativo {
  color: #ef4444;
}

.sim-value.grande {
  font-size: 1.5rem;
  color: #667eea;
}

@media (max-width: 768px) {
  .expectativa-valor {
    font-size: 3rem !important;
  }

  .proyeccion-grid {
    grid-template-columns: 1fr;
  }

  .proyeccion-valor {
    font-size: 1.5rem;
  }

  .proyeccion-valor.destacada {
    font-size: 1.875rem;
  }
}
/* Estilos adicionales para Calculadora de Meta */

.select-meta {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #374151;
  font-weight: 500;
}

.select-meta:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.progreso-inicial {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: 8px;
  border: 2px solid #a7f3d0;
}

.progreso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #065f46;
  font-weight: 600;
}

.progreso-header strong {
  font-size: 1.25rem;
  color: #059669;
}

.timeline-visual {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.timeline-punto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.punto-circulo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-punto.fin .punto-circulo {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.punto-info {
  text-align: center;
  white-space: nowrap;
}

.punto-info strong {
  display: block;
  font-size: 0.875rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.punto-info span {
  font-size: 0.8125rem;
  color: #6b7280;
}

.timeline-linea {
  flex: 1;
  position: relative;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.timeline-progreso {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 1s ease;
  width: 0%;
}

.timeline-meses {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #667eea;
  font-weight: 600;
  white-space: nowrap;
}

.desglose-ahorro {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
}

.desglose-ahorro h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.desglose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.desglose-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.desglose-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.desglose-item.destacado {
  border-color: #667eea;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.desglose-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.desglose-valor {
  display: block;
  font-size: 1.5rem;
  color: #1f2937;
  font-weight: 700;
}

.desglose-item.destacado .desglose-valor {
  font-size: 1.75rem;
  color: #667eea;
}

@media (max-width: 768px) {
  .timeline-visual {
    flex-direction: column;
    padding: 1.5rem;
  }

  .timeline-linea {
    width: 100%;
    height: 80px;
  }

  .timeline-progreso {
    width: 100% !important;
    height: 0%;
    transition: height 1s ease;
  }

  .timeline-meses {
    top: 50%;
    left: auto;
    right: -60px;
    transform: translateY(-50%);
  }

  .desglose-grid {
    grid-template-columns: 1fr;
  }

  .punto-info {
    white-space: normal;
  }
}
/* Estilos adicionales para Tiempo para Objetivo */

.falta-por-ahorrar {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 10px;
  border: 2px solid #fdba74;
}

.falta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9a3412;
  font-weight: 600;
}

.falta-header strong {
  font-size: 1.5rem;
  color: #ea580c;
}

.tiempo-valor {
  font-size: 3.5rem !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fecha-objetivo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.fecha-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  min-width: 200px;
}

.fecha-card.hoy {
  background: #f0f4ff;
  border: 2px solid #667eea;
}

.fecha-card.meta {
  background: #f0fdf4;
  border: 2px solid #10b981;
}

.fecha-icono {
  font-size: 2.5rem;
}

.fecha-info {
  display: flex;
  flex-direction: column;
}

.fecha-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.fecha-info strong {
  font-size: 1.125rem;
  color: #1f2937;
}

.fecha-flecha {
  font-size: 2rem;
  color: #667eea;
  font-weight: 700;
}

.progreso-tiempo {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.progreso-mes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.5rem;
}

.mes-box {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.mes-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mes-box.completado {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #10b981;
}

.mes-numero {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.mes-monto {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
}

.mes-box.completado .mes-monto {
  color: #059669;
}

.tabla-acumulacion {
  overflow-x: auto;
}

.acumulacion-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.acumulacion-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.acumulacion-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
}

.acumulacion-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9375rem;
}

.acumulacion-table tbody tr:hover {
  background: #f9fafb;
}

.acumulacion-table tbody tr.hito {
  background: #f0fdf4;
  font-weight: 600;
}

.porcentaje-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.porcentaje-badge.bajo {
  background: #fee2e2;
  color: #991b1b;
}

.porcentaje-badge.medio {
  background: #fef3c7;
  color: #92400e;
}

.porcentaje-badge.alto {
  background: #dbeafe;
  color: #1e40af;
}

.porcentaje-badge.completo {
  background: #d1fae5;
  color: #065f46;
}

@media (max-width: 768px) {
  .fecha-objetivo {
    flex-direction: column;
    gap: 1rem;
  }

  .fecha-card {
    min-width: 100%;
  }

  .fecha-flecha {
    transform: rotate(90deg);
  }

  .tiempo-valor {
    font-size: 2.5rem !important;
  }

  .progreso-mes {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  }

  .acumulacion-table {
    font-size: 0.875rem;
  }

  .acumulacion-table th,
  .acumulacion-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Estilos adicionales para Ahorro Automático */

.regla-503020 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.regla-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.regla-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.regla-item.necesidades {
  border-color: #fbbf24;
}

.regla-item.deseos {
  border-color: #a78bfa;
}

.regla-item.ahorro {
  border-color: #10b981;
}

.regla-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.regla-icono {
  font-size: 2rem;
}

.regla-info strong {
  display: block;
  font-size: 1.125rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.regla-info span {
  font-size: 0.875rem;
  color: #6b7280;
}

.regla-valores {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.regla-ideal,
.regla-actual {
  text-align: center;
}

.regla-ideal span,
.regla-actual span {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.regla-ideal strong,
.regla-actual strong {
  font-size: 1.25rem;
  color: #1f2937;
}

.regla-status {
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.regla-status.bien {
  background: #d1fae5;
  color: #065f46;
}

.regla-status.ajustado {
  background: #fef3c7;
  color: #92400e;
}

.regla-status.excedido {
  background: #fee2e2;
  color: #991b1b;
}

.escenarios-ahorro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.escenario-ahorro {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.escenario-ahorro:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.escenario-badge {
  padding: 0.75rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.escenario-badge.minimo {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.escenario-badge.recomendado {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.escenario-badge.agresivo {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.escenario-contenido {
  padding: 1.5rem;
  text-align: center;
}

.escenario-porcentaje {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.escenario-monto {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.escenario-contenido p {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
}

.regla-explicacion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.regla-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.regla-card-header {
  padding: 1.25rem;
  color: white;
  text-align: center;
}

.regla-card-header.necesidades-color {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.regla-card-header.deseos-color {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.regla-card-header.ahorro-color {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.regla-card-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.regla-card ul {
  list-style: none;
  padding: 1.5rem;
  margin: 0;
}

.regla-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #374151;
  font-size: 0.9375rem;
}

.regla-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

@media (max-width: 768px) {
  .regla-503020 {
    grid-template-columns: 1fr;
  }

  .escenarios-ahorro {
    grid-template-columns: 1fr;
  }

  .regla-explicacion {
    grid-template-columns: 1fr;
  }

  .escenario-porcentaje {
    font-size: 2rem;
  }

  .escenario-monto {
    font-size: 1.5rem;
  }
}

