/* =========================
   VARIABLES (COLORS & FONT)
   ========================= */

:root {
  --bg-main: #0b0e11;           /* fondo oscuro */
  --bg-section: #12161c;        /* secciones */
  --text-main: #e6e6e6;         /* texto principal */
  --text-muted: #b0b8c1;

  /* accentss  */
  --accent-primary: #5fa8d3;    /* whispy blue */
  --accent-secondary: #3a5f5f;  /* shady glade */
  --accent-highlight: #8fb8a2;  /* viridis-ish */

  --max-width: 1100px;
}

/* =========================
   BASIC RESET 
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* =========================
   BODY & GENERAL TEXT
   ========================= */

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.caveat-brush-regular {
  font-family: "Caveat Brush", cursive;
  font-weight: 400;
  font-style: normal;
}

.rochester-regular {
  font-family: "Rochester", cursive;
  font-weight: 400;
  font-style: normal;
}

.jetbrains-mono {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

/* =========================
   HEADER & NAV
   ========================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem; /* grande al inicio */
  background-color: #0b2d2b;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease; /* transición suave */
}

/* ===== Header Sticky ===== */
header {
  top: 0;
  z-index: 1000;
  background-color: #0b2d2b; /* tu color de header */
}

.header-left {
  display: flex;
  align-items: center; /* esto alinea piojito, lab-block y logo VT verticalmente */
  gap: 1.5rem; /* espacio horizontal entre columnas */
}

/* Piojito */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 55px;
  transition: width 0.3s ease;
}

/* Bloque de Allen Lab + VT debajo */
.lab-block {
  display: flex;
  flex-direction: column;
}

.lab-name {
/*  font-family: "Caveat Brush", cursive ; */
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 600;
  color: #e0f2ef;
}

.lab-logo-university {
  font-size: 1rem;
  color: #a8dadc;
  text-decoration: none;
}

/* Logo VT */
.vt-logo-container {
  display: flex;
  align-items: center; /* esto hace que quede alineado verticalmente con el header */
}

.uni-logo {
  width: 280px;
  height: auto;
  transition: width 0.3s ease;
}


/* Shrinking */


.site-header.shrink {
  padding: 0.7rem 3rem; /* más delgado */
}

/* Piojito */
.site-header.shrink .logo-img {
  width: 36px;
}

/* Allen Lab */
.site-header.shrink .lab-name {
  font-size: 1.5rem;
}

/* VT · Julie Allen debajo de Allen Lab */
.site-header.shrink .lab-logo-university {
  font-size: 0.8rem;
}

/* Logo VT a la derecha */
.site-header.shrink .uni-logo {
  width: 170px; 
}


.header-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #e0f2ef;
  font-size: 0.9rem;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #a8dadc;
  transition: width 0.3s ease;
}

.header-nav a:hover::after {
  width: 100%;
}





/* =========================
   sub-HEADER 
   ========================= */

.header-intro {
  background-color: #e0f2ef;
  text-align: center;
  padding: 0.1rem 1.1rem 1rem;
}

.header-intro p {
  max-width: 850px;
  margin: 0 auto 1rem auto;
  font-size: 1rem;
  color: #e0ecea;
}


.intro-tagline {
    display: block;
    max-width: 800px;
    margin-bottom: 1rem;
    color: #106144;
    font-size: 2.5rem;
    line-height: 1.25;
    letter-spacing: 0.02rem;
    font-family: "JetBrains Mono", monospace;
}

.intro-description {
    display: block;
    max-width: 680px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #49625E;
}

.intro-links {
    display: flex;
    justify-content: center;
    margin-top: 1.8 rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.intro-links a {
    text-decoration: none;

    font-size: 0.8rem;
    letter-spacing: 0.04rem;
    text-transform: uppercase;

    color: #0b2d2b;
    background-color: #A8DCDD;

    padding: 0.55rem 1rem;
    border-radius: 4px;

    transition:
        background-color 0.25s ease,
        transform 0.2s ease;
}

.intro-links a:hover {
    background-color: #e68b26;
    transform: translateY(-2px);
}

html {
    scroll-behavior: smooth;
}


/* =========================
   MAIN & SECTIONS
   ========================= */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

section {
  background-color: var(--bg-section);
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  border-radius: 10px;
}

section {
  scroll-margin-top: 90px; /* un poquito más que el header para dar espacio */
}

.full-section > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.full-width {
  width: 100vw;             /* ⬅️ fuerza ancho total */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;         /* ⬅️ quita esquinas redondas */
  padding: 3rem 2rem;
}


/* ============ Gonoides video section ============= */ 

.ct-section {
  position: relative;
  overflow: hidden;
  background-color: #000000;
  margin-top: 0;
  padding-top: 0;
}

.ct-video {
  width: 100%;
  max-width: 100%;
  transform: scale(0.5); /* escala inicial */
  transition: transform 0.1s linear, opacity 0.5s ease;
  opacity: 0;
  display: block;
}

/* cuando entra en pantalla */
.ct-video.visible {
  opacity: 1;
}

/* ===== Flechita abajo ===== */
.ct-section .scroll-arrow {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: rgba(255,255,255,0.7);
  animation: bounce 1.5s infinite;
}

/* animación de sube-baja */
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}





/* ============ Julie section ============= */ 
.about-bg {
  background-color: #f2f6f5;
  color: #12161c;
}

.pi-container {
  display: flex;
  font-size: 1.2rem;
  line-height: 2;
  align-items: center;      /* alinea verticalmente */
  gap: 2rem;                /* espacio entre texto y foto */
  flex-wrap: wrap;          /* en pantallas pequeñas la foto baja debajo */
}

.pi-container p {
  flex: 1;                  /* ocupa todo el espacio disponible */
  min-width: 250px;         /* evita que se haga demasiado pequeño en pantallas pequeñas */
}


/* ============= RESEARCH SECTION ====== */


/* Research block para que tengan siempre el mismo tamaño */

#research {
    padding: 0.1rem 2rem;
    background-color: #0b0e11;
}

.research-block {
    position: relative;
    min-height: 420px;
    padding: 3.5rem;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 4rem;
    scroll-margin-top: 140px;
    margin-bottom: 3rem;
    margin-left: 0;
    margin-right: 0;
}



.research-content {
    position: relative;
    z-index: 1;
    color: #cfdad9;
}




.research-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.6s ease,
        opacity 0.4s ease,
        margin-top 0.4s ease;
}


.research-details a {
    color: #b67ce4;
    font-weight: bold;
    text-decoration: none;
    text-underline-offset: 3px;
}

.research-details a:hover {
    color: #dfcfe7;
}


.research-block.open .research-details {
    max-height: 800px;
    opacity: 1;
    margin-top: 1.5rem;
}

/* ======== Learn more button ======== */

.learn-more {
    margin-top: 1.5rem;
    padding: 0.65rem 1.4rem;

    border: 1px solid #a8dadc;
    border-radius: 4px;

    background-color: #a8dadc;
    color: #005057;

    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}

.learn-more:hover {
    background-color: #e68b26;
    border-color: #e28f60;
    color: #005057;
    transform: translateY(-2px);
}

/* ======== Research text ======== */

#research h2 {
  font-size: 3rem;              /* más grande que otros títulos */
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.1rem;
  color: #b8c0ff;               /* un tono que destaque */
  text-transform: uppercase;
}

.research-block h3 {
    font-size: 2rem;
    line-height: 1.2;
}

.research-block .research-summary {
    font-size: 1.15rem;
    line-height: 1.7;
}

.research-block .research-details {
    font-size: 1rem;
    line-height: 1.7;
}

/* ======== RESEARCH SECTION BLOCK 1   ========*/
/* Block 1: host-parasite */

/* ======== Research section 1 media ======== */

.research-section1 .research-media {
    width: 32%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.research-section1 .research-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.research-section1 .research-content {
    flex: 1;
    position: relative;
    z-index: 2;
    opacity: 1;
}

.research-section1 .research-media,
.research-section1 .research-content {
    position: relative;
    z-index: 1;
}

/* ======== Research section 1  ======== */

.research-block.research-section1 h3 { color: #fe9a3e; /* color aguamarina */ }

.research-block.research-section1 {
    background-color: rgba(0, 93, 101, 0.92);  
    position: relative;  /* necesario para ::before */
    overflow: hidden;
    isolation: isolate;
}
.research-block.research-section1::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/pattern_flowers.svg");
    background-repeat: repeat;
    background-size: 220px;
    opacity: 0.4;       /* aquí bajas la opacidad del SVG */
    pointer-events: none;
    z-index: -1;
}




/* ======== RESEARCH SECTION BLOCK 2   ========*/
/* Bloque 2: molecular-ecology */

/* ======== Research section 2 media ======== */

.research-section2 .research-media {
    width: 32%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.research-section2 .research-media video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.research-section2 .research-content {
    flex: 1;
    position: relative;
    z-index: 2;
    opacity: 1;
}

.research-section2 .research-media,
.research-section2 .research-content {
    position: relative;
    z-index: 1;
}


/* ======== carousel  ======== */


.research-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background-color: #ffffff;
    transform: scale(1.25);
}

.carousel-dot:hover {
    background-color: #ffffff;
}


/* ======== Research section 2  ======== */

.research-block.research-section2 h3 { color: #a8dadc; /* color aguamarina */ }

.research-block.research-section2 {
    flex-direction: row-reverse;
    background-color: rgba(66, 52, 106, 0.9);  /* morado oscuro base */
    position: relative;  /* necesario para ::before */
    overflow: hidden;
}
.research-block.research-section2::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/dna_small.svg");
    background-repeat: repeat;
    background-size: 220px;
    opacity: 0.4;       /* aquí bajas la opacidad del SVG */
    pointer-events: none;
    z-index: 0;
}


/* ======== RESEARCH SECTION BLOCK 3   ========*/
/* evolutionary-genomics*/

/* ======== Research section 3 media ======== */

.research-section3 .research-media {
    width: 32%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.research-section3 .research-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.research-section3 .research-content {
    flex: 1;
    position: relative;
    z-index: 2;
    opacity: 1;
}

.research-section3 .research-media,
.research-section3 .research-content {
    position: relative;
    z-index: 1;
}

/* ======== Research section 3  ======== */

.research-block.research-section3 h3 {
    color: #ffd166; /* color mostaza */
}
.research-block.research-section3 {
    background-color: rgba(33, 97, 65, 0.9);  /* verde */
    position: relative;  /* necesario para ::before */
    overflow: hidden;
}
.research-block.research-section3::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/lice_pattern.svg");
    background-repeat: repeat;
    background-size: 220px;
    opacity: 0.4;       /* aquí bajas la opacidad del SVG */
    pointer-events: none;
    z-index: 0;
}



/* ===== Publications ===== */


.publications-bg {
    background-color: #0b2d2b;
    color: #e0ecea;
    padding: 5rem 2rem;
}

.publications-container {
    max-width: 1100px;
    margin: 0 auto;
}

.publications-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 3rem;
}

.publications-label {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: #a8dadc;
}

.publications-header h2 {
    margin: 0;
    font-size: 2.8rem;
    line-height: 1.1;
    color: #e0ecea;
}

.scholar-link {
    color: #fefca6;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.04rem;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.scholar-link:hover {
    color: #cfe7e3;
}


/* Individual papers */

.papers {
    display: flex;
    flex-direction: column;
}

.paper {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(168, 218, 220, 0.25);
}

.paper:last-child {
    border-bottom: 1px solid rgba(168, 218, 220, 0.25);
}

.paper-year {
    font-size: 1rem;
    letter-spacing: 0.08rem;
    color: #a8dadc;
    padding-top: 0.2rem;
}

.paper-content p {
    margin: 0;
    max-width: 900px;
    font-size: 1rem;
    line-height: 1.75;
    color: #cfe0dd;
}

.paper-content strong {
    color: #f2f6f5;
}

.paper-content em {
    color: #a8dadc;
}

.paper-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: #a8dadc;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.paper-link:hover {
    color: #fefca6;
}


@media (max-width: 700px) {

    .publications-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .publications-header h2 {
        font-size: 2.2rem;
    }

    .scholar-link {
        white-space: normal;
    }

    .paper {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .paper-year {
        font-size: 0.85rem;
    }

    .paper-content p {
        font-size: 0.95rem;
    }
}






/* ============ People section ============= */ 


/* ===== Lab Life Section ===== */

.lab-section {
  background-color: #f4f7f6;
  padding: 5rem 2rem;
}

.lab-container {
  max-width: 1100px;
  margin: 0 auto;
}

.lab-section h2 {
  margin-bottom: 3rem;
  text-align: center;
}

/* ===== Mosaico layout ===== */



.lab-grid {
  column-count: 3;
  column-gap: 1rem;
}

.lab-item {
  position: relative;   /* MUY IMPORTANTE para q salga el caption*/
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

.lab-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== Gallery expansion ===== */

.lab-item:nth-child(n+7) {
  display: none;
}

.lab-grid.show-all .lab-item {
  display: block;
}

.gallery-toggle {
  display: block;
  margin: 2.5rem auto 0;
  padding: 0.7rem 1.5rem;

  border: 1px solid #557f78;
  border-radius: 4px;

  background-color: #557f78;
  color: #ffffff;

  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

.gallery-toggle:hover {
  background-color: #2f6259;
  border-color: #2f6259;
  transform: translateY(-2px);
}

/* ===== Hover effect ===== */

.lab-item:hover img {
  transform: scale(1.08);
}

.lab-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.25),  /* mucho más claro */
    rgba(0, 0, 0, 0.1),
    transparent
  );
  color: white; /* default por si acaso */
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}


/* Colores alternados para el título h3 dentro de cada item del mosaico */
.lab-item:nth-child(odd) .caption h3 {
  color: #d8fcfe; 
}

.lab-item:nth-child(odd) .caption h3 {
  text-shadow: 2px 2px 3px rgba(1, 1, 1, 0.8);}

.lab-item:nth-child(even) .caption h3 {
  color: #efeafd; 
}
.lab-item:nth-child(even) .caption h3 {
  text-shadow: 2px 2px 3px rgba(1, 1, 1, 0.8);}


.lab-item:hover .caption {
  opacity: 1;
}

.caption h3 {
  margin: 0;
  font-size: 1.1rem;
}

.caption p {
  margin: 0.3rem 0 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
  .lab-grid {
    column-count: 2; 
  }

  .caption {
    padding: 0.8rem;
  }

  .caption h3 {
    font-size: 0.7rem;
  }

  .caption p {
    font-size: 0.5rem;
  }
}



/* ======= PEOPLE - Lab Members ========= */




.people-bg {
  background-color: #cee0dd;
  color: #12161c;
  padding: 2rem 2rem 0.1rem;
}

.people-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;  
  color: #700000;
}



/* ====== lab members ===== */

.lab-members-container h2 {
  text-align: center;
}

.lab-members-section {
    background-color: #0b0e11;
    color: #e0ecea;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: rgba(0, 80, 87, 0.9);
  padding: 1.2rem;           
  border-radius: 12px;
  margin-bottom: 2rem;
  flex-direction: row;
  max-width: 1200px;           /* da el tamaño de hasta donde va a los lados */
  width: 100%;                /* ocupa todo el ancho disponible hasta el máximo */
  margin-left: auto;           /* centra la tarjeta */
  margin-right: auto;
  box-sizing: border-box;      /* incluye padding dentro del ancho */
}

.person-info {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
}

/* Alternar automáticamente izquierda/derecha usando nth-child */
.people-container .person-card:nth-child(even) {
  flex-direction: row-reverse;
}

.person-photo {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.person-info h3 {
  margin: 0 0 0.3rem 0;
  color: rgb(189, 196, 255);
}

.person-info p {
  margin: 0.2rem 0;
  color: #e0ecea;
  font-size: 0.9rem;
}

/* ====== Texto dentro de cada persona ===== */
.person-info .position {
  font-family: 'Roboto', sans-serif; /* Fuente clara, sin serifas */
  font-weight: 600;                  /* Negrita ligera */
  font-size: 1rem;                   /* Tamaño de letra */
  color: #0081a9;                    /* Color suave */
  text-transform: uppercase;         /* Opcional: todo en mayúsculas */
  letter-spacing: 0.5px;             /* Espaciado entre letras */
}

.person-info .bio {
  font-family: 'Open Sans', sans-serif; /* Fuente más “amigable” para leer */
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.4;                     /* Altura de línea para mejor lectura */
  color: #e0ecea;
  margin-top: 0.3rem;
  text-align: justify;
}

.person-info .education {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: #c5d0d8;
  margin-top: 0.2rem;
  padding-left: 1.2rem; /* espacio para la viñeta */
}

.person-info .education li {
  margin-bottom: 0.2rem; /* separa cada grado un poquito */
  list-style-type: disc; /* usa viñetas clásicas */
}



/* Contenedor de nombre + foto */
.person-info h3 a,
.person-card .person-photo {
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

/* Quitamos subrayado azul del link del nombre */
.person-info h3 a {
    color: rgb(189, 196, 255);
    text-decoration: none;
    display: inline-block; /* para que transform funcione bien */
}

/* Efecto hover coordinado */
.person-info h3 a:hover,
.person-card .person-photo:hover {
    transform: scale(1.05);    /* ligero zoom */
    color: rgb(150, 160, 255); /* solo aplica al nombre */
    opacity: 0.9;              /* solo aplica a la foto */
    cursor: pointer;
}




/* Responsive: apilar en móviles */
@media (max-width: 768px) {
  .person-card {
    flex-direction: column;
    text-align: center;
  }
  
  .person-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 0.8rem;
  }
}



/* =========================
  IMAGES
   ========================= */
.profile-image {
  width: 500px;
  border-radius: 5%;
}


.section-image {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.bubble img {
  width: 180px;       /* ⬅️ ajusta aquí */
  height: 180px;      /* ⬅️ igual que width */
  object-fit: cover;  /* recorta sin deformar */
  border-radius: 50%;
  border: 4px solid #6fa8a6;
}


/* =========================================================
   ALUMNI & FORMER RESEARCHERS
   ========================================================= */

.alumni-section {
    background-color: #f2f6f5;
    color: #12161c;
    padding: 3rem 2rem;
}

.alumni-container {
    max-width: 1100px;
    margin: 0 auto;
}


/* ---------- Intro ---------- */

.alumni-intro {
    max-width: 850px;
    margin-bottom: 4rem;
}

.alumni-intro .section-label,
.alumni-group-header .section-label {
    margin: 0 0 0.6rem;
    margin-left: 2rem;
    font-size: 1rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #557f78;
}



.alumni-intro h2 {
    margin: 0 0 1.5rem;
    font-size: 3rem;
    line-height: 1.15;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: #0d5ab7;
    text-align: center
}

.alumni-intro > p:last-child {
    max-width: 780px;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #364542;
}


/* =========================================================
   PhD graduates
   ========================================================= */

.alumni-group {
    margin-top: 4rem;
}

.alumni-group-header {
    margin-bottom: 2rem;
}

.alumni-group-header h3 {
    margin: 0;
    margin-left: 2rem;
    font-size: 2.2rem;
    line-height: 1.2;
    color: #e28700;
}


/* ---------- Graduate cards ---------- */

.graduate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.graduate-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    background-color: rgba(0, 80, 87, 0.95);

    padding: 1.2rem;
    border-radius: 12px;

    min-width: 0;
    box-sizing: border-box;
}


/* ---------- Photo ---------- */

.graduate-card > a:first-child {
    display: block;
    flex-shrink: 0;
}

.graduate-card img {
    width: 145px;
    height: 145px;
    object-fit: cover;
    display: block;

    border-radius: 8px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.graduate-card > a:first-child:hover img {
    transform: scale(1.03);
    opacity: 0.9;
}

.graduate-placeholder {
    width: 145px;
    height: 145px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #557f78;
    color: #e7efed;
    text-decoration: none;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
}

.graduate-initials {
    display: block;
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.1rem;
    transform: translateY(40px);
}

/* ---------- Text ---------- */

.graduate-info {
    min-width: 0;
}

.graduate-info h4 {
    margin: 0 0 0.4rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.graduate-info h4 a {
    color: #e0f2ef;
    text-decoration: none;
    transition: color 0.25s ease;
}

.graduate-info h4 a:hover {
    color: #a8dadc;
}

.graduate-years {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    letter-spacing: 0.12rem;
    color: #a8dadc;
}

.graduate-info p:last-child {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cfe0dd;
}


/* =========================================================
   POSTDOCS
   ========================================================= */

.alumni-list {
    margin-top: 2rem;
    margin-left: 3rem;
    margin-right: 3rem;
    border-top: 1px solid rgba(0, 80, 87, 0.15);
}

.alumni-item {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    column-gap: 2rem;
    row-gap: 0.25rem;

    padding: 0.7rem 0;

    border-bottom: 1px solid rgba(0, 80, 87, 0.15);

    position: relative;
}

.alumni-name {
    font-size: 1.15rem;
    font-weight: 500;
    color: #005057;
}

.alumni-years {
    font-size: 1rem;
    letter-spacing: 0.08rem;
    color: #557f78;
    text-align: right;
    white-space: nowrap;
}

.alumni-note {
    font-size: 1rem;
    font-style: italic;
    color: #687875;
}



/* =========================================================
   UNDERGRADUATES
   ========================================================= */

.undergraduate-alumni {
    margin-top: 3rem;
}

.institution-group {
    margin-top: 1.2rem;
    margin-left: 3rem;
  margin-right: 3rem;
}

.institution-group h4 {
    margin: 0 0 1rem;

    font-size: 1.45rem;
    font-weight: 500;
    color: #680070;
}


/* ---------- Individual programs ---------- */

.program-group {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    column-gap: 2rem;

    padding: 0.25rem 0;

    border-top: 1px solid rgba(0, 80, 87, 0.15);
}

.program-group:last-child {
    border-bottom: 1px solid rgba(0, 80, 87, 0.15);
}

.program-label {
    margin: 0;

    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.12rem;
    text-transform: uppercase;

    color: #23544c;
}

.program-years {
    margin: 0;

    font-size: 1rem;
    letter-spacing: 0.05rem;

    color: #687875;
    text-align: right;
    white-space: nowrap;
}


/* ---------- Names ---------- */

.program-members {
    grid-column: 1 / -1;

    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.2rem;

    margin-top: 0.75rem;
}

.program-members span {
    position: relative;

    font-size: 1.05rem;
    line-height: 1.6;

    color: #364542;
}


/* little separators between names */

.program-members span:not(:last-child)::after {
    content: "·";

    position: absolute;
    right: -0.75rem;

    color: #9db9b4;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .alumni-item {
        grid-template-columns: 1fr auto;
        column-gap: 1rem;
    }

    .alumni-name {
        font-size: 1rem;
    }

    .alumni-years {
        font-size: 0.75rem;
    }

    .program-group {
        grid-template-columns: 1fr;
        row-gap: 0.35rem;
    }

    .program-years {
        text-align: left;
    }

    .program-members {
        margin-top: 0.5rem;
        gap: 0.35rem 1rem;
    }

    .program-members span {
        font-size: 0.95rem;
    }

    .program-members span:not(:last-child)::after {
        right: -0.65rem;
    }
}



/* =========================
   GLOBAL CONNECTIONS
   ========================= */

.global-connections-section {
  background-color: #dadfde;
  padding: 4rem 2rem 5rem;
  color: #12161c;
}

.global-connections-container {
  max-width: 1200px;
  margin: 0 auto;
}

.global-connections-container h3 {
  font-size: 3rem;
  text-align: center;
  margin: 0 0 1rem;
  letter-spacing: 0.1rem;
}

.global-connections-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.world-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.world-map {
  width: 100%;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive countries */

.world-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-country {
  fill: #aebfbc;
  stroke: #cee0dd;
  stroke-width: 0.7;
  transition:
    fill 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.map-country.has-connection {
  fill: #078a88;
  cursor: pointer;
}

.map-country.has-connection:hover {
  fill: #2f6259;
}

/* Country information card */

.country-card {
  position: absolute;
  top: 50%;
  right: 2%;
  width: 280px;
  background: #fffdf8;
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 12px 35px rgba(18, 22, 28, 0.18);
  z-index: 10;
  transform: translateY(-50%);
  animation: countryCardIn 0.2s ease;
}

.country-card.hidden {
  display: none;
}

.country-card h3 {
  margin: 0 2rem 1.2rem 0;
  font-size: 1.6rem;
  letter-spacing: 0.03rem;
}

.country-card-section {
  margin-bottom: 1rem;
}

.country-card-section:last-child {
  margin-bottom: 0;
}

.country-card-section h4 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: #557f78;
}

.country-card-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.country-card-section li {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.country-card-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  border: none;
  background: none;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: #12161c;
  padding: 0.2rem;
}

.country-card-close:hover {
  opacity: 0.6;
}

@keyframes countryCardIn {
  from {
    opacity: 0;
    transform: translateY(-45%);
  }

  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

/* Mobile */

@media (max-width: 768px) {

  .global-connections-section {
    padding: 3rem 1rem 4rem;
  }

  .global-connections-container h2 {
    font-size: 2.3rem;
  }

  .world-map {
    min-height: 280px;
  }

  .country-card {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: auto;
    margin: 1rem 0 0;
  }

  @keyframes countryCardIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}



/* ============ Teaching section ============= */

#teaching h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.1rem;
  color: #0081a9;
  text-transform: uppercase;
}


.teaching-bg {
    background-color: #e7efed;
    color: #12161c;
}

.teaching-container {
    max-width: 1100px;
    margin: 0 auto;
}


/* ----- Course header ----- */

.teaching-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2rem;
}

.teaching-header h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    color: #005057;
}
.teaching-label {
    margin: 0 0 0.5rem;
    font-size: 1.18rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: #557f78;
}

.teaching-header h2 {
    margin: 0;
    font-size: 2.8rem;
    line-height: 1.1;
    color: #005057;
}

.course-codes {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.course-codes span {
    padding: 0.45rem 0.8rem;
    border: 2px solid #9db9b4;
    border-radius: 4px;
    font-size: 1.2rem;
    letter-spacing: 0.08rem;
    color: #557f78;
}


/* ----- Description ----- */

.teaching-description {
    max-width: 850px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #364542;
}


/* ----- Focus area ----- */

.teaching-focus {
    margin-top: 2rem;
}

.teaching-focus-label {
    margin: 0 0 1.2rem;
    font-size: 1.08rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: #557f78;
}


/* ----- Learning areas ----- */

.teaching-network {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.teaching-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.teaching-icon {
    width: 85px;
    height: 85px;
    border: 2px solid #005057;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 1rem;

    color: #005057;
    background-color: #f2f6f5;
}

.teaching-node span {
    max-width: 130px;
    font-size: 1.rem;
    line-height: 1.4;
    color: #364542;
}

.teaching-icon {
    width: 85px;
    height: 85px;
    border: 2px solid #005057;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 1rem;

    color: #005057;
    background-color: #f2f6f5;
    box-sizing: border-box;
}

.teaching-icon svg {
    display: block;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;
}


/* ----- Responsive ----- */

@media (max-width: 900px) {
    .teaching-network {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 2.5rem;
    }
}

@media (max-width: 600px) {

    .teaching-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .teaching-header h2 {
        font-size: 2.2rem;
    }

    .course-codes {
        justify-content: flex-start;
    }

    .teaching-description {
        font-size: 1rem;
    }

    .teaching-network {
        grid-template-columns: repeat(2, 1fr);
    }

    .teaching-icon {
        width: 70px;
        height: 70px;
    }
}

/* Teaching careers */

.teaching-careers {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #b7cbc7;
}

.careers-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2rem;
}

.careers-header .teaching-focus-label {
    margin-bottom: 0.5rem;
}

.careers-header h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    color: #005057;
}

.career-code {
    padding: 0.45rem 0.8rem;
    border: 2px solid #9db9b4;
    border-radius: 4px;
    font-size: 1.2rem;
    letter-spacing: 0.08rem;
    color: #557f78;
    white-space: nowrap;
}



.careers-description {
    max-width: 900px;
    margin: 0 0 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #364542;
}

.careers-description:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {

    .careers-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .careers-header h3 {
        font-size: 1.7rem;
    }

    .careers-description {
        font-size: 1rem;
    }
}


/* =========================
   HEADINGS
   ========================= */

h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--accent-highlight);
}

h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-primary);
}

/* =========================
   LISTS
   ========================= */

ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

/* =========================
   SPECIAL TEXT
   ========================= */

.map-note {
  margin-top: 2rem;
  font-style: italic;
  color: var(--accent-secondary);
}

/* =========================
   FOOTER
   ========================= */



.forest-divider {
  color: #5c8f8c;   /* color del logo */
  width: 100vw;  
  line-height: 0;
    margin: 0;
    padding: 0;
    position: relative;/*estas dos líneas obligan a la imagen a montarse 1px en el footer*/
    top:1px;
}

.forest-divider svg {
  width: 100%;       /* escala con el contenedor */
  height: auto;      /* mantiene la proporción */
  display: block;    /* elimina pequeños espacios debajo del SVG */
}

footer {
  background-color: #5c8f8c;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 0;
    
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}



/* ======= contact info ======== */
#contact {
    background-color: #082627;  /* el color que quieras */
    color: #8acbc1;             /* color del texto */
}


#contact h2 {
  margin-bottom: 1rem;
  color: #ededed
}

/* ===== Contact card ===== */

.contact-card {
  margin: 0 auto 3rem;
  padding: 2rem 1.6rem;
  border-radius: 20px;
}

.footer-dept {
  font-weight: 600;
  color: #e0f2ef;
  margin-bottom: 0.6rem;
}

.footer-item {
  color: #cfe7e3;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.footer-item a {
  color: #a8dadc;
  text-decoration: none;
}

.footer-item a:hover {
  text-decoration: underline;
}

/* ===== Copyright ===== */

.footer-copy {
  font-size: 0.8rem;
  color: #9bbebe;
  margin: 0;
}


/* =========================
   RESPONSIVE (BASIC)
   ========================= */

@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 2rem 1.5rem;
  }

  nav {
    flex-wrap: wrap;
  }
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: clip;
}
