/*==============================
=         Global Styles        =
==============================*/
body {
  font-family: "Inter", sans-serif;
  background: #f8f9fb;
  color: #222;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
  letter-spacing: 0.5px;
}

a {
  color: #149ddd;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: #37b3ed; }

/*==============================
=       Back to top button     =
==============================*/
.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  background: #149ddd;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s;
}
.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}
.back-to-top:hover { background: #2eafec; }
.back-to-top.active { visibility: visible; opacity: 1; }

/*==============================
=           Header             =
==============================*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  padding: 0 15px;
  background: #040b14;
  overflow-y: auto;
  z-index: 9997;
  transition: all 0.5s;
}

.profile {
  text-align: center;
  padding: 30px 15px;
}
.profile img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(77,163,255,0.4);
  box-shadow: 0 0 20px rgba(77,163,255,0.25);
  transition: 0.3s;
}
.profile img:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(77,163,255,0.5); }
.profile h1 { font-size: 20px; margin-top: 15px; font-weight: 600; color: #fff; }
.profile .subtitle { font-size: 13px; color: #9fb3c8; margin-top: 5px; letter-spacing: 0.5px; }

#main { margin-left: 300px; }

/*==============================
=       Navigation Menu        =
==============================*/
.nav-menu {
  background-color: #0b1b2b;
  padding: 25px 18px;
  border-radius: 10px;
  margin-top: 20px;
}
.nav-menu * { margin: 0; padding: 0; list-style: none; }
.nav-menu ul li { margin: 6px 0; }
.nav-menu ul li a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  color: #a5b4fc;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.nav-menu ul li a i {
  font-size: 20px;
  margin-right: 12px;
  color: #7dd3fc;
  transition: all 0.3s ease;
}
.nav-menu ul li a:hover {
  color: #fff;
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 12px rgba(0,212,255,0.15);
  transform: translateX(4px);
}
.nav-menu ul li a:hover i { color: #00d4ff; transform: scale(1.15); text-shadow: 0 0 10px rgba(0,212,255,0.8); }
.nav-menu ul li a.active {
  color: #fff;
  background: rgba(0,212,255,0.12);
  box-shadow: 0 0 15px rgba(0,212,255,0.3);
  border-left: 3px solid #00d4ff;
}
.nav-menu ul li a.active i { color: #00d4ff; text-shadow: 0 0 12px rgba(0,212,255,1); }

/* Mobile Nav */
.mobile-nav-toggle {
  position: fixed;
  right: 15px; top: 15px;
  width: 40px; height: 40px;
  background: #ffb84d;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 24px; border: 0; cursor: pointer;
  z-index: 9998; transition: all 0.4s;
}
.mobile-nav-active { overflow: hidden; }
.mobile-nav-active #header { left: 0; }

/*==============================
=           Sections           =
==============================*/
section { padding: 60px 0; overflow: hidden; }
.section-bg { background: #f5f8fd; }

.section-title { padding-bottom: 30px; }
.section-title h2 {
  font-size: 32px; margin-bottom: 20px;
  position: relative; text-transform: uppercase;
  letter-spacing: 2px; font-weight: bold; color: #1a3c6e;
}
.section-title p { margin-bottom: 0; }


/*==============================
=       Hero Section           =
==============================*/
/* Hero full-screen con imagen de fondo */
.hero {
  height: 100vh; /* toda la pantalla */
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
  background: url('./img/jet-disk.jpg') no-repeat center center;
  background-size: cover; /* cubre toda la sección */
}

/* Opcional: overlay para que el texto se lea mejor */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* capa semi-transparente sobre la imagen */
  z-index: 1;
}

/* Texto encima de la imagen */
.hero .container, .hero .hero-text {
  position: relative;
  z-index: 2;
}

.hero .hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #00bfff;
}

.hero .hero-text p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #cfd8dc;
}

.hero .btn-nasa {
  background-color: #0077cc;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.hero .btn-nasa:hover {
  background-color: #005fa3;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .hero-text {
    text-align: center;
  }
}

/*==============================
=           About              =
==============================*/
.about .content h3 { font-weight: 700; font-size: 26px; color: #173b6c; }
.about .content ul { list-style: none; padding: 0; }
.about .content ul li { display: flex; align-items: center; margin-bottom: 20px; }
.about .content ul strong { margin-right: 10px; }
.about .content ul i { font-size: 16px; color: #149ddd; line-height: 0; margin-right: 5px; }
.about .content p:last-child { margin-bottom: 0; }

/*==============================
=           Resume             =
==============================*/
.resume { padding: 0 0 20px 20px; margin-top: -2px; border-left: 2px solid #1f5297; position: relative; }
.resume-nasa {
  background-color: #0b1e3d; color: #f0f0f0; padding: 60px 0; font-family: 'Roboto', sans-serif;
}
.resume-nasa .section-title h2 { color: #00bfff; font-size: 36px; margin-bottom: 10px; }
.resume-nasa .section-title p { color: #cfd8dc; font-size: 16px; margin-bottom: 10px; }

.timeline { position: relative; margin-left: 20px; }
.timeline-section { margin: 40px 0 20px; color: #00bfff; font-size: 24px; font-weight: bold; border-bottom: 1px solid #00bfff; display: inline-block; padding-bottom: 5px; }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 20px; z-index: 1; }
.timeline-item::before { content: ''; position: absolute; left: 24px; top: 5px; width: 12px; height: 12px; background: #00bfff; border-radius: 50%; border: 2px solid #fff; }
.timeline-date { position: absolute; left: -120px; width: 100px; min-width: 90px; text-align: right; font-weight: 500; font-size: 13px; color: #9fb3ff; }
.timeline-content h4 { color: #fff; font-size: 15px; margin: 0 0 5px 0; }
.timeline-content p, .timeline-content ul { color: #cfd8dc; margin: 5px 0; }
.timeline-content ul { padding-left: 18px; }
.timeline-content li { font-size: 13px; margin-bottom: 3px; }

/*==============================
=           Research           =
==============================*/
/*==============================
=       Research Section       =
==============================*/

/* Contenedor principal */
.research-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Research Grid */
.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .research-grid {
    grid-template-columns: 1fr 1fr; /* Dos columnas grandes */
  }
}

/* Research Item */
.research-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(145deg, #ffffff, #f0f4f8);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Zigzag en pantallas grandes */
@media (min-width: 992px) {
  .research-grid .research-item:nth-child(even) {
    flex-direction: row-reverse;
  }
  .research-grid .research-item:nth-child(even) .research-content {
    text-align: right;
  }
}

/* Hover */
.research-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.08);
}

/* Imagen */
.research-img {
  flex: 0 0 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #0077cc, #00bfff);
  padding: 3px; /* margen para degradado */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.research-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}

.research-item:hover .research-img img {
  transform: scale(1.07);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Contenido */
.research-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.research-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 16px;
  margin-bottom: 8px;
  color: #1a3c6e;
}

.research-content p {
  font-size: 14.5px;
  margin-bottom: 6px;
  line-height: 1.6;
  color: #555;
}

/* Botón */
.research-content .btn-nasa,
.research-content .link-nasa {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #0077cc;       /* Azul suave */
  text-decoration: underline;
  background: none;
  padding: 0;
  border: none;
  transition: color 0.3s;
}

.research-content .btn-nasa:hover,
.research-content .link-nasa:hover {
  color: #005fa3;       /* Azul un poco más oscuro al hover */
  text-decoration: none; /* Opcional: quita subrayado al pasar el mouse */
  transform: none;       /* Sin movimiento para discreción */
}

/* Compact mode */
.research-item.compact .research-img {
  flex: 0 0 200px;
  height: 200px;
  margin-right: 1rem;
}

.research-item.compact .research-content {
  flex: 1;
}
/*==============================
=           Students           =
==============================*/
.authors-journal,
.authors {
  font-size: 0.8em;
  color: #e0eaff;  /* casi blanco con un ligero tinte azul */
  display: block;
}

.journal {
  font-size: 12px;
  color: #b0cfff;  /* azul claro suave, legible sobre azul oscuro */
  margin-top: 2px;
  display: block;
}
.student-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:40px;}
.student-card{background-color:#10294a;padding:15px;border-radius:8px;flex:1 1 250px;box-shadow:0 0 10px rgba(0,191,255,0.2);transition:transform 0.2s;}
.student-card:hover{transform:translateY(-3px);}
.student-card .role{font-style:italic;color:#a0cfff;margin-bottom:5px;font-size:0.9em;}
.student-card .topic{color:#cfd8dc;font-size:0.95em;margin-top:5px;}
.link-nasa{color:#1a3b70;text-decoration:none;font-weight:500;transition:all 0.3s;}
.link-nasa:hover{text-decoration:underline;color:#2a4d90;}
.section-subtitle{margin:30px 0 15px;color:#1a3c6e;}
.section-nasa{background-color:#0b1e3d;color:#f0f0f0;padding:60px 0;}
.section-nasa .section-title h2{color:#00bfff;font-size:36px;margin-bottom:10px;}
.section-nasa .section-title p{color:#cfd8dc;font-size:16px;margin-bottom:30px;}
.selected-group{margin-bottom:30px;}
.selected-group h3 {
  font-size: 18px;
  color: #00bfff;
  padding-bottom: 4px;
  margin-bottom: 10px;
}
.highlight {
  color: #00bfff;          /* color brillante para destacar */
  border-bottom: 2px solid #00bfff; /* subrayado solo en la palabra */
  padding-bottom: 2px;      /* separa el subrayado del texto */
}

.paper-count {
  font-size: 0.8em;
  color: #cfd8dc;          /* gris claro para que sea discreto */
  font-weight: normal;
  margin-left: 6px;
}
.pub-list li {
  margin-bottom: 8px;          /* espacio discreto entre artículos */
  padding-bottom: 4px;         /* respiración interna */
  border-bottom: 1px solid rgba(255,255,255,0.15); /* línea sutil de separación */
}

.pub-list li:last-child {
  border-bottom: none;         /* quitar línea en el último artículo */
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Autores y journals más claros para fondo oscuro */
.pub-list .authors {
  font-size: 0.85em;
  color: #d0e4ff;              /* azul claro para contrastar con fondo oscuro */
  margin-top: 2px;
}

.pub-list .journal {
  font-size: 0.8em;
  color: #a0cfff;              /* azul ligeramente más oscuro que los autores */
  margin-top: 2px;
}

/* Links de título más visibles */
.pub-list a {
  color: #ffffff;               /* blanco para destacar sobre fondo azul */
  text-decoration: none;
}

.pub-list a:hover {
  text-decoration: underline;
  color: #00bfff;               /* azul vivo al pasar el mouse */
}

details summary {
  font-weight: normal;   /* Quita la negrita */
  cursor: pointer;       /* Mantiene el icono de desplegable */
  color: #ffffff;        /* Ajusta según tu fondo */
  margin-bottom: 5px;    /* Espacio con la lista de papers */
  font-size: 16px;       /* Tamaño más consistente */
}
