/* ==================================
   LOAN SIMULATOR COMPACT STYLES
   ================================== */

/* Resumen compacto del total */
.loan-summary-compact {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  text-align: center;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: slideInUp 0.5s ease-out;
}

.loan-total-label {
  font-size: 10px;
  opacity: 0.9;
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.loan-total-value {
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

/* Detalles compactos */
.loan-details-compact {
  background: white;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
}

/* Items individuales compactos */
.loan-item {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  margin-bottom: 3px;
  background: #fafbfc;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  line-height: 1.1;
}

.loan-item:hover {
  background: #f0f3f6;
  transform: translateX(1px);
}

.loan-item.highlight {
  background: linear-gradient(135deg, #e8f5e8, #d4ffe3);
  border-left-color: #4CAF50;
}

.loan-item.highlight-total {
  background: linear-gradient(135deg, #fff3cd, #fef7e0);
  border-left-color: #ff9500;
  border-left-width: 3px;
}

/* Iconos pequeños */
.item-icon {
  font-size: 12px;
  width: 16px;
  text-align: center;
  margin-right: 6px;
  flex-shrink: 0;
}

/* Labels compactos */
.item-label {
  font-size: 11px;
  color: #2c3e50;
  font-weight: 500;
  flex: 1;
  margin-right: 8px;
  text-align: left;
}

.item-label.strong {
  font-weight: 700;
  color: #1a252f;
}

.item-label small {
  color: #6c757d;
  font-size: 9px;
  font-style: italic;
}

/* Valores compactos */
.item-value {
  font-size: 11px;
  font-weight: 600;
  color: #2c3e50;
  text-align: left;
  flex-shrink: 0;
  min-width: 60px;
}

.item-value.primary {
  color: #4CAF50;
  font-weight: 700;
  font-size: 12px;
}

.item-value.total {
  color: #ff9500;
  font-weight: 700;
  font-size: 12px;
}

/* Botón animado de solicitar */
.btn-solicitar-animated {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin-top: 15px;
  width: 100%;
  max-width: 280px;
}

.btn-solicitar-animated:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-icon {
  position: relative;
  z-index: 2;
  font-size: 18px;
  animation: bounce 2s infinite;
}

.btn-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.btn-solicitar-animated:hover .btn-wave {
  width: 300px;
  height: 300px;
}

.btn-solicitar-animated:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* Animaciones */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .loan-summary-compact {
    padding: 12px 15px;
    margin-bottom: 12px;
  }
  
  .loan-total-value {
    font-size: 24px;
  }
  
  .loan-details-compact {
    padding: 10px;
  }
  
  .loan-item {
    padding: 6px 10px;
    margin-bottom: 5px;
  }
  
  .item-icon {
    font-size: 14px;
    width: 20px;
    margin-right: 8px;
  }
  
  .item-label {
    font-size: 13px;
    margin-right: 8px;
  }
  
  .item-value {
    font-size: 14px;
    min-width: 70px;
  }
  
  .item-value.primary,
  .item-value.total {
    font-size: 15px;
  }
  
  .btn-solicitar-animated {
    padding: 12px 25px;
    font-size: 15px;
    margin-top: 12px;
  }
  
  .btn-icon {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .loan-summary-compact {
    padding: 10px 12px;
  }
  
  .loan-total-value {
    font-size: 22px;
  }
  
  .loan-item {
    padding: 5px 8px;
    margin-bottom: 4px;
  }
  
  .item-label {
    font-size: 12px;
  }
  
  .item-value {
    font-size: 13px;
    min-width: 65px;
  }
  
  .btn-solicitar-animated {
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 10px;
  }
}

/* Sobreescribir estilos existentes */
.tabla-valores.loan-details-compact {
  margin: 0 0 15px 0;
  font-size: inherit;
}

.tabla-valores.loan-details-compact span {
  color: inherit;
}

.tabla-valores.loan-details-compact .valor {
  float: none;
  font-weight: inherit;
}

/* Notas de impuestos */
.tax-note {
  color: #6c757d;
  font-size: 12px;
  font-style: italic;
}

/* Corrección para páginas de registro/crear cuenta */
.flow-title {
  color: var(--color-primario-oscuro) !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}

.flow-card {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--color-neutro-claro) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Mejorar legibilidad de campos de formulario */
.flow-field-2 {
  background-color: white !important;
  color: var(--color-primario-oscuro) !important;
  border: 2px solid var(--color-neutro-claro) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
}

.flow-field-2:focus {
  border-color: var(--color-primario) !important;
  box-shadow: 0 0 0 3px rgba(0, 118, 149, 0.1) !important;
  outline: none !important;
}

.flow-field-2::placeholder {
  color: var(--color-neutro-oscuro) !important;
  opacity: 0.7 !important;
}

/* Mejorar paso activo */
.flow-paso.in-progress {
  background-color: var(--color-primario) !important;
  color: white !important;
  border: 3px solid var(--color-primario-claro) !important;
  animation: pulse-step 2s infinite;
}

@keyframes pulse-step {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Mejorar contraste del detalle del préstamo */
.loan-summary-compact {
  background: linear-gradient(135deg, var(--color-primario-oscuro), var(--color-primario)) !important;
  color: white !important;
}

/* Específico para página crear-cuenta - mejora del contraste */
.split .left .loan-summary-compact {
  background: linear-gradient(135deg, #003b56, #007695) !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  padding: 6px 10px !important;
  margin-bottom: 6px !important;
}

.split .left .loan-summary-compact .loan-total-value {
  font-size: 16px !important;
  line-height: 1 !important;
}

.split .left .loan-summary-compact .loan-total-label {
  font-size: 9px !important;
  margin-bottom: 1px !important;
}

.split .left .loan-details-compact {
  padding: 4px !important;
  margin-bottom: 4px !important;
}

.split .left .loan-details-compact .loan-item {
  background: rgba(255, 255, 255, 0.98) !important;
  color: #2c3e50 !important;
  border: 1px solid #e0e0e0 !important;
  padding: 3px 6px !important;
  margin-bottom: 2px !important;
  font-size: 10px !important;
}

.split .left .loan-details-compact .item-icon {
  font-size: 10px !important;
  width: 14px !important;
  margin-right: 4px !important;
}

.split .left .loan-details-compact .item-label {
  font-size: 10px !important;
  margin-right: 6px !important;
}

.split .left .loan-details-compact .item-value {
  color: #1a252f !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  text-align: left !important;
}

.split .left .loan-details-compact .highlight-total {
  background: linear-gradient(135deg, #e8f5e8, #d4ffe3) !important;
  border-left: 3px solid #4CAF50 !important;
}

.split .left .loan-details-compact .highlight {
  background: linear-gradient(135deg, #fff3cd, #fef7e0) !important;
  border-left: 3px solid #ff9500 !important;
}

/* Compactar aún más en pantallas pequeñas */
@media (max-width: 768px) {
  .split .left .loan-details-compact .loan-item {
    padding: 2px 4px !important;
    font-size: 9px !important;
  }
  
  .split .left .loan-summary-compact .loan-total-value {
    font-size: 14px !important;
  }
}

/* Animaciones eliminadas para ahorrar espacio */
