/* --- Estilos generales --- */
body {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9fafc;
  color: #222;
  line-height: 1.6;
}

/* --- Encabezado --- */
header {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #0b132b;
  color: #fff;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

header p {
  margin-top: 0.5rem;
  color: #a9bcd0;
  font-weight: 300;
}

nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* --- Secciones --- */
section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

section h2 {
  border-left: 4px solid #3a86ff;
  padding-left: 10px;
  color: #0b132b;
}

/* --- Enlaces y pie de página --- */
a {
  color: #3a86ff;
}

footer {
  text-align: center;
  background-color: #0b132b;
  color: #a9bcd0;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

figure {
  text-align: center;
  margin: 2rem auto;
}

/* --- Botón de cambio de idioma --- */
.language-switch {
  position: absolute;
  top: 15px;
  right: 20px;
}

.language-switch a {
  color: #a9bcd0;
  background-color: #1c2541;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.language-switch a:hover {
  background-color: #3a86ff;
  color: #fff;
}

/* --- LOGO DE FONDO --- */
body::before {
  content: "";
  position: fixed;
  top: 200px;          /* bajar el logo para que no choque con el header */
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/logo.jpeg'); /* cambia por la ruta de tu logo */
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 59%; /* ajusta tamaño del logo */
  opacity: 0.075;        /* transparencia del logo */
  z-index: -1;          /* lo envía detrás de todo */
  pointer-events: none; /* evita que interfiera con clics */
}

.pub-list {
  list-style-type: none;    /* quita las viñetas */
  padding-left: 0;
  margin: 1.5rem 0;
}

/* Estilo de los laboratorios */
.labs-section {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.lab-entry {
  display: grid;
  grid-template-columns: 30% 70%;
  align-items: center;
  gap: 20px;
}

.lab-entry img {
  width: 100%;
  border-radius: 8px; /* opcional */
}

.lab-info h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.lab-info a {
  text-decoration: none;
  color: inherit; /* mantiene tus colores actuales */
}
