/* ==================================================
   1. COLORS AND GENERAL SETTINGS
   ================================================== */

:root {
  --navy: #10243e;
  --blue: #1479a8;
  --turquoise: #31b6b8;
  --light-background: #f4f2ed;
  --white: #ffffff;
  --text: #17202a;
  --gray: #66717e;
  --border: #d9dee3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}


/* ==================================================
   2. NAVIGATION
   ================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--white);
  font-weight: bold;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.photo-card img {
  max-width: 100%;     /* Se adapta al contenedor */
  height: auto;        /* Mantiene la proporción */
  display: block;      /* Elimina espacio extra debajo */
}

.nav-links a {
  color: #45515f;
  font-size: 14px;
  font-weight: bold;
}

.nav-links a:hover {
  color: var(--blue);
}


/* ==================================================
   3. HOME
   ================================================== */

.hero {
  background: linear-gradient(110deg, #f7f6f2, #eaf5f4);
}

.hero-content {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 70px;
  padding: 80px 0;
}

.label {
  margin-top: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 25px;
  color: var(--navy);
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -4px;
}

h1 span {
  display: block;
  color: var(--blue);
}

.introduction {
  max-width: 650px;
  color: #4e5b67;
  font-size: 18px;
  line-height: 1.7;
}

.buttons {
  margin-top: 25px;
}

.button {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 14px 20px;
  border-radius: 5px;
  font-weight: bold;
}

.button-primary {
  background-color: var(--navy);
  color: var(--white);
}

.button-secondary {
  color: var(--navy);
  border: 1px solid #8c9aa7;
}

.button:hover {
  transform: translateY(-2px);
}

.photo-card {
  min-height: 400px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 160px 160px 18px 18px;
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
  box-shadow: 22px 22px 0 rgba(49, 182, 184, 0.2);
}

.initials {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  font-size: 42px;
  font-weight: bold;
}

.photo-card p {
  max-width: 180px;
  opacity: 0.7;
  line-height: 1.5;
}


/* ==================================================
   4. GENERAL SECTIONS
   ================================================== */

.section {
  padding: 95px 0;
}

.section-light {
  background-color: var(--light-background);
}

.two-columns {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}

.section-title {
  margin: 12px 0 40px;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.section-text {
  color: #4e5b67;
  font-size: 17px;
  line-height: 1.8;
}


/* ==================================================
   5. EDUCATION AND PUBLICATIONS
   ================================================== */

.information-list {
  border-top: 1px solid var(--border);
}

.information-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.information-item > span {
  color: var(--blue);
  font-weight: bold;
}

.information-item h3 {
  margin: 0;
  color: var(--navy);
}

.information-item p {
  margin-bottom: 0;
  color: var(--gray);
  line-height: 1.6;
}

.profile-link {
  display: inline-block;
  margin-top: 25px;
  color: var(--blue);
  font-weight: bold;
}

.note {
  margin-top: 20px;
  color: #8a4a3b;
  font-size: 13px;
  font-style: italic;
}


/* ==================================================
   6. RESEARCH AND TEACHING CARDS
   ================================================== */

.research-section {
  color: var(--white);
  background-color: var(--navy);
}

.research-section .label {
  color: var(--turquoise);
}

.research-section .section-title,
.research-section h3 {
  color: var(--white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.card {
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card span {
  color: var(--turquoise);
  font-size: 13px;
  font-weight: bold;
}

.card h3 {
  margin-top: 28px;
  font-size: 22px;
}

.card p {
  color: #bbcad8;
  line-height: 1.6;
}

.teaching-card {
  padding: 25px;
  border-top: 3px solid var(--turquoise);
  background-color: var(--light-background);
}

.teaching-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.teaching-card p {
  color: var(--gray);
  line-height: 1.6;
}


/* ==================================================
   7. CONTACT AND FOOTER
   ================================================== */

.contact-section {
  background-color: var(--turquoise);
}

.contact-section .section-title {
  color: #092a34;
}

.contact-information {
  padding-left: 30px;
  border-left: 1px solid rgba(9, 42, 52, 0.3);
}

.contact-information small {
  display: block;
  margin-top: 22px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-information a,
.contact-information strong {
  display: block;
  margin-top: 8px;
}

.footer {
  padding: 25px 0;
  background-color: #091a2d;
  color: #b6c2ce;
  font-size: 13px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ==================================================
   8. RESPONSIVE DESIGN
   ================================================== */

@media (max-width: 850px) {
  .nav-links {
    display: none;
  }

  .hero-content,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .photo-card {
    width: min(430px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 70px 0;
  }

  h1 {
    font-size: 50px;
    letter-spacing: -3px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .information-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-information {
    padding: 25px 0 0;
    border-top: 1px solid rgba(9, 42, 52, 0.3);
    border-left: 0;
  }

  .footer-content {
    flex-direction: column;
  }
}
