body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header, footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
}

nav a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
}

main {
  padding: 2rem;
}

h1, h2 {
  color: #003366;
}


/* === Estilo del título principal del sitio === */
header h1 a {
  color: white;           /* texto blanco */
  font-weight: bold;      /* en negrita */
  text-decoration: none;  /* sin subrayado */
}

/* Cambia color al pasar el mouse */
header h1 a:hover {
  color: #ffcc00; /* opcional: color dorado al pasar el cursor */
}

/* === Estilo del enlace UNSAAC dentro del texto === */
a.unsaac-link {
  color: black;           /* texto negro */
  font-weight: bold;      /* en negrita */
  text-decoration: none;  /* sin subrayado */
}

a.unsaac-link:hover {
  color: #b30000;         /* cambia a rojo oscuro al pasar el mouse */
  text-decoration: underline; /* subrayado opcional al pasar el cursor */
}

/* === Layout principal (sidebar + contenido) === */
.main {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

/* Columna izquierda (sidebar) */
.sidebar {
  flex: 1 1 280px;
  max-width: 300px;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.sidebar img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.sidebar p {
  margin: 6px 0;
  font-size: 14px;
  color: #333;
}

.sidebar a {
  color: #004080;
  text-decoration: none;
  font-weight: bold;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* Columna derecha (contenido principal) */
.content {
  flex: 3 1 600px;
  background-color: #ffffff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

/* Ajustes visuales generales */
body {
  background-color: #f5f5f5; /* solo color de fondo, no reescribir fuente si ya está definida */
}

/* Título principal (primer h2 dentro de content) */
.content h2:first-of-type {
  color: white;
  font-weight: bold;
  background-color: #004080;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

/* Encabezados y links (no sobrescribir reglas globales ya existentes) */
.content h2 {
  color: #004080;
  margin-top: 0;
}

.content a {
  color: #004080;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

/* Listas */
.content ul {
  list-style-type: square;
  margin-left: 20px;
}

/* Media query para pantallas pequeñas */
@media (max-width: 800px) {
  .main {
    flex-direction: column;
    padding: 12px;
  }
  .sidebar, .content {
    max-width: 100%;
    flex: 1 1 100%;
  }
}


/* === Publicaciones científicas === */
#publications {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#publications h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 20px;
}

.publication-list {
  margin-left: 1.2em;
}

.publication-list li {
  margin-bottom: 25px;
  line-height: 1.6;
}

.publication-list a {
  color: #004080;
  font-weight: bold;
  text-decoration: none;
}

.publication-list a:hover {
  text-decoration: underline;
}


/* ================================
   Estilos de la página de miembros
   ================================ */

.members-section {
  padding: 2rem;
  text-align: center;
}

.members-section h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #003366;
}

.members-section h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  color: #005fa3;
  border-bottom: 2px solid #ddd;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.member-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #005fa3;
}

.member-card h3 {
  margin-bottom: 0.5rem;
  color: #003366;
}

.member-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.member-links li {
  margin: 0.2rem 0;
}

.member-links a {
  color: #0078d7;
  text-decoration: none;
}

.member-links a:hover {
  text-decoration: underline;
}



/* ================================
   Estilos de la página de Projects
   ================================ */



.projects {
  padding: 60px 20px;
  background-color: #f9fafc;
  color: #333;
}

.projects .container {
  max-width: 900px;
  margin: 0 auto;
}

.projects h1 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #003366;
}

.projects h2 {
  color: #0055aa;
  margin-bottom: 15px;
}

.projects .project {
  background: #ffffff;
  border-left: 4px solid #0055aa;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.projects .project h3 {
  margin: 0;
  color: #666;
  font-weight: 600;
}

.projects .project h4 {
  margin: 10px 0;
  color: #003366;
  font-weight: 700;
}

.projects .project p {
  line-height: 1.6;
  text-align: justify;
}


/* ================================
   Estilos de la página de Awards
   ================================ */

   .awards {
  padding: 60px 20px;
  background-color: #f5f8fc;
  color: #333;
}

.awards .container {
  max-width: 900px;
  margin: 0 auto;
}

.awards h1 {
  text-align: center;
  font-size: 2.2em;
  color: #003366;
  margin-bottom: 40px;
}

.awards .award {
  background: #ffffff;
  border-left: 4px solid #0077cc;
  padding: 20px 25px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.awards .award h3 {
  color: #003366;
  margin-bottom: 10px;
  font-weight: 700;
}

.awards .award p {
  margin: 5px 0;
  line-height: 1.6;
  text-align: justify;
}




/* ================================
   Estilos de la página de CONTACT
   ================================ */


.contact {
  padding: 60px 20px;
  background-color: #f9fbff;
  color: #333;
}

.contact .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact h1 {
  font-size: 2.2em;
  color: #003366;
  margin-bottom: 30px;
}

.contact-info h2 {
  font-size: 1.3em;
  color: #003366;
  margin-bottom: 15px;
}

.contact-info p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.contact-info h3 {
  margin-top: 25px;
  font-size: 1.1em;
  color: #0077cc;
}

.contact-info strong {
  color: #003366;
}

.contact-image {
  margin: 30px 0;
}

.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
