
    /* Mismo estilo que en index.html */
    body, ul {
      margin: 0;
      padding: 0;
    }
    body {
      font-family: Arial, sans-serif;
      background-color: #f9f9f9;
    }
    nav {
      background-color: #004080;
      padding: 10px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    nav ul {
      list-style: none;
      display: flex;
      gap: 20px;
    }
    nav ul li a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      padding: 8px 12px;
      border-radius: 4px;
      transition: background-color 0.3s ease;
    }
    nav ul li a:hover,
    nav ul li a.active {
      background-color: #003060;
    }
    .flags {
      display: flex;
      gap: 10px;
    }
    .flags img {
      width: 24px;
      height: 16px;
      cursor: pointer;
      border: 2px solid transparent;
      border-radius: 3px;
      transition: border-color 0.3s ease;
    }
    .flags img:hover {
      border-color: white;
    }
    section {
      padding: 40px 20px;
      width:80%;
      max-width: 1200px;
      margin: auto;
    }
    section h2 {
      color: #004080;
      margin-bottom: 15px;
    }
    section p {
      line-height: 1.6;
      color: #333;
    }

    nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

nav ul li {
  position: relative; /* necesario para el submen� */
}

nav ul li a {
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  color: #f9f9f9;
}

/* Submen� oculto por defecto */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%; /* justo debajo del men� principal */
  left: 0;
  background-color: #f9f9f9;
  padding: 0;
  margin: 0;
  list-style: none;
  min-width: 150px;
  border: 1px solid #ccc;
}

/* Estilo de los enlaces del submen� */
nav ul li ul li a {
  padding: 8px 12px;
  color: #000;
}

/* Mostrar submen� al pasar el mouse */
nav ul li:hover > ul {
  display: block;
}

/* Efecto hover en enlaces */
nav ul li a:hover {
  background-color: #ddd;
}

.profile-container {
    display: flex;
    align-items: flex-start;
    gap: 30px; /* espacio entre la foto y el texto */
    flex-wrap: wrap; /* permite que se acomode en pantallas pequeñas */
    }

    .profile-photo {
      flex: 0 0 200px; /* ancho fijo para la foto */
    }

    .profile-photo img {
      width: 100%;
      height: auto;
      border-radius: 50%;
      object-fit: cover;
    }

    .profile-text {
      flex: 1; /* el texto ocupa el resto del espacio */
    }

    .profile-text p {
      text-align: justify;
      line-height: 1.6;
      color: #333;
    }

    p {
  text-align: justify;
}
/* =========================
   GRANTS SECTION
========================= */

.grants-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.grant-card {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.grant-content {
  flex: 1;
}

.grant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.grant-header h3 {
  margin: 0;
  color: #004080;
  font-size: 1.3rem;
}

.grant-status {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.grant-status.active {
  background-color: #e6f4ea;
  color: #1e7e34;
}

.grant-meta {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #555;
  line-height: 1.6;
}

.grant-content p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 12px;
  text-align: justify;
}

/* Imagen */

.grant-image {
  flex: 0 0 200px;
}

.grant-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Responsive */

@media (max-width: 900px) {
  .grant-card {
    flex-direction: column;
  }

  .grant-image {
    width: 100%;
  }
}
/* =========================
   CONFERENCES SECTION
========================= */

.conference-container {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.conference-card {
  display: flex;
  gap: 30px;
  background: #ffffff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  border: 1px solid #eef1f5;
}

.conference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
}

.conference-year {
  font-size: 1.4rem;
  font-weight: bold;
  color: #004080;
  min-width: 60px;
}

.conference-content {
  flex: 1;
}

.conference-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: #222;
}

.conference-location {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.conference-paper {
  margin-bottom: 12px;
}

.paper-title {
  font-weight: 600;
  margin: 0;
  color: #333;
}

.paper-authors {
  margin: 3px 0 0 0;
  font-size: 0.9rem;
  color: #666;
}

.conference-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #004080;
  font-weight: 600;
}

.conference-link:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 800px) {
  .conference-card {
    flex-direction: column;
  }

  .conference-year {
    margin-bottom: 10px;
  }
}
/* =========================
   TEACHING COURSES SECTION
========================= */

.courses-section h3 {
  color: #004080;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.6rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 5px;
}

.courses-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 30px;
}

.course-card {
  background: #ffffff;
  border: 1px solid #dde1e6;
  border-radius: 12px;
  padding: 20px 25px;
  flex: 1 1 calc(50% - 25px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.03);
  transition: box-shadow 0.25s ease;
}

.course-card h4 {
  margin-top: 0;
  color: #002d5c;
  font-size: 1.2rem;
}

.course-card p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 10px 0 0 0;
}

.syllabus-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: #004080;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #004080;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.syllabus-btn:hover {
  background-color: #004080;
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 800px) {
  .course-card {
    flex: 1 1 100%;
  }
}
/* =========================
   THESES SECTION
========================= */

.theses-table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.theses-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  background-color: #fff;
  border: 1px solid #dce0e6;
  border-radius: 8px;
  overflow: hidden;
}

.theses-table th, .theses-table td {
  padding: 12px 15px;
  text-align: left;
}

.theses-table thead {
  background-color: #004080;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.theses-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

.theses-table tbody tr:nth-child(even) {
  background-color: #f7f9fc;
}

.theses-table tbody tr:hover {
  background-color: #e6f0ff;
}

.theses-table td {
  font-size: 0.95rem;
  color: #333;
}

@media (max-width: 800px) {
  .theses-table th, .theses-table td {
    padding: 10px 8px;
  }
}