.calculadora-credito {
  max-width: 800px;
  margin: 20px 0;
  font-family: Arial, sans-serif;
}

.calculadora-credito h3 {
  color: #333;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.credito-form {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.form-group input {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group input:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.btn-calcular {
  background: #0073aa;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-calcular:hover {
  background: #005a87;
}

.resumen-credito {
  background: #e8f4f8;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #0073aa;
}

.resumen-credito h4 {
  margin-top: 0;
  color: #333;
}

.resumen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.resumen-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: white;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.resumen-item .label {
  font-weight: bold;
  color: #555;
}

.resumen-item .valor {
  color: #0073aa;
  font-weight: bold;
}

.tabla-amortizacion h4 {
  color: #333;
  margin-bottom: 15px;
}

.tabla-container {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.amortizacion-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.amortizacion-table th {
  background: #0073aa;
  color: white;
  padding: 12px 8px;
  text-align: left;
  font-weight: bold;
}

.amortizacion-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
}

.amortizacion-table tbody tr:hover {
  background: #f5f5f5;
}

.amortizacion-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.amortizacion-table tbody tr:nth-child(even):hover {
  background: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
  .calculadora-credito {
    padding: 0 10px;
  }

  .resumen-grid {
    grid-template-columns: 1fr;
  }

  .amortizacion-table {
    font-size: 14px;
  }

  .amortizacion-table th,
  .amortizacion-table td {
    padding: 8px 4px;
  }
}
