/* Estilo general del contenedor nav */
.barra-navegacion {
  display: flex;
  justify-content: space-between; /* Separa el logo de los enlaces */
  align-items: center; /* Centra los elementos verticalmente */
  background-color: #1e1e1e;
  padding: 15px 30px;
}

/* Estilo del texto del logo */
.logo a {
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
}

/* Quitar viñetas y alinear la lista de enlaces */
.enlaces {
  list-style: none;
  display: flex;
  gap: 20px; /* Espacio entre cada enlace */
  margin: 0;
  padding: 0;
}

/* Estilo de los enlaces individuales */
.enlaces a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease; /* Transición suave para el hover */
}

/* Efecto al pasar el mouse por encima */
.enlaces a:hover {
  color: #61dafb; /* Un azul claro al pasar el cursor */
}


body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    color: #111;
}

.layout {
    display: flex;
    gap: 20px;
    padding: 30px;
}

.panel {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

h2 {
    margin-top: 0;
}

input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

button.secondary {
    background: #10b981;
}

#resultado {
    margin-top: 10px;
    line-height: 1.8;
}

.recomendacion {
    margin-top: 15px;
    padding: 10px;
    background: #fef3c7;
    border-radius: 8px;
}


/* Estilos para tablas */
.tabla {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tabla th {
    background: #3b82f6;
    color: white;
    padding: 8px;
}

.tabla td {
    padding: 8px;
    border: 1px solid #ddd;
}

.mejor {
    background-color: #d1fae5; /* verde suave */
    font-weight: bold;
}