/* Fondo con degradado */
@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

body {
  background: linear-gradient(140deg, #313338, #1F1F1F);
  /* Degradado gris claro */
  font-family: 'Roboto', sans-serif;
  /* Tipografía moderna */
  color: #212529;
  /* Texto oscuro */
  line-height: 1.6;
}

/* Contenedor principal */
.container {
  max-width: 1400px;
  /* Ampliar el ancho */
  margin: auto;
  padding: 1.5rem 2rem 2rem 2rem;
}

/* Títulos */
h1,
h2,
h4 {
  font-weight: 700;
  text-align: center;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Sombras */
  background: #fafafa;
  /* Fondo blanco */
}

/* Flexbox para tabla y gráfico */
.d-flex {
  display: flex;
}

.w-100 {
  width: 100%;
}

.w-lg-50 {
  width: 50%;
}

@media (max-width: 768px) {
  .w-lg-50 {
    width: 100%; 
  }
}

.me-lg-3 {
  margin-right: 1rem;
}

/* Formularios */
.form-control,
.form-select {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.25);
}

/* Tablas */
.table {
  background: #fafafa;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.table th {
  background-color: #0d6efd;
  color: white;
  text-transform: uppercase;
}

.table tbody tr:nth-of-type(odd) {
  background-color: #f8f9fa;
}

.table tbody tr:hover {
  background-color: #e9ecef;
}

/* Gráfico */
#comparisonChart {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.graficoDiv {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tilteH1{
  color:#fff;
}

.calcularBtnDiv{
  display: flex;
  justify-content: center;
}

#calculateMortgage{
  min-width: 28rem;
} 

@media (max-width: 600px) {
  #calculateMortgage {
    min-width: auto;
  }
}

.resumenDivP p {
  background-color: #FFFFFF; /* Fondo inicial para pares */
  padding: 10px;
  border-radius: 0.5rem;
  margin-bottom: 5px; /* Espaciado entre filas */
}

.resumenDivP p:nth-child(even) {
  background-color: #F2F1F2; /* Fondo para impares */
}
