@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600&display=swap');

:root {
  --main-bg: #fdfdfd;
  --main-text: #222222;
  --highlight: #0a4b78;
  --accent: #004d40;
  --light-gray: #f5f5f5;
}

/* GENERAL LAYOUT */
body {
  font-family: 'Crimson Pro', serif;
  margin: 0;
  background-color: var(--main-bg);
  color: var(--main-text);
  font-size: 18px;
  line-height: 1.7;
}

/* HERO IMAGE */
.hero-image {
  background-image: url('img/fondo.jpg');
  background-size: cover;
  background-position: center;
  height: 25vh;
  width: 100%;
}

/* TOP BAR */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background-color: var(--main-bg);
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 10;
}

.site-title {
  font-size: 19px;
  font-weight: bold;
  color: #000000;
}

nav {
  display: flex;
  justify-content: flex-end;
  font-size: 19px;
  font-weight: 600;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--highlight);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--highlight);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* CONTAINER */
.container {
  max-width: 850px;
  margin: auto;
  padding: 3rem 1.5rem;
}

/* INTRO */
.intro {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.profile-left {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* HEADINGS */
h1, h2 {
  color: var(--highlight);
}

h1 {
  font-size: 32px;
  margin-bottom: 0.6rem;
}

h2 {
  font-size: 24px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* SECTIONS */
section {
  margin-bottom: 3rem;
}

section p {
  text-align: justify;
}

/* EMAIL BUTTON UNDER PHOTO */
.email-button {
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--highlight);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.email-button:hover {
  background-color: var(--accent);
}

/* CONTACT SECTION ICONS */
#contact i {
  margin-right: 8px;
  color: var(--highlight);
}

#contact a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 500;
}

#contact a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-left {
    width: 160px;
    height: 160px;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  nav a {
    margin: 10px;
  }

  h1 {
    font-size: 28px;
  }

  body {
    font-size: 16px;
  }
}

.intro-paragraph {
  text-align: justify;
}

#contact i {
  margin-right: 8px;
  color: var(--highlight);
}

#contact a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 500;
}

#contact a:hover {
  text-decoration: underline;
}

/* PUBLICATIONS LIST */
.pub-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.pub-list li {
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.pub-list a {
  text-decoration: none;
  color: var(--highlight);
  font-weight: 500;
}

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

.pub-authors {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.3rem;
  margin-left: 0.5rem;
}