/* =========================
   Base
   ========================= */
:root{
  --ink: #0f1a2a;
  --muted: rgba(15,26,42,0.85);
  --brand: #0b6b77;
  --brand2: #0b3c6d;
  --bg: #ffffff;
  --card: #ffffff;
  --shadow: 0 10px 26px rgba(0,0,0,0.08);
  --shadow2: 0 16px 34px rgba(0,0,0,0.12);
  --radius: 18px;
  --container: min(1100px, 92%);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

body{
  background: var(--bg);
  color: var(--ink);
}

/* =========================
   Navbar
   ========================= */
.navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.navbar.scrolled{
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.97);
}

.logo img{
  height: 65px;
  width: auto;
}

/* links */
nav a{
  position: relative;
  color: var(--ink);
  text-decoration: none;
  margin-left: 18px;
  font-size: 1.15rem;
  font-weight: 600;
  padding-bottom: 6px;
  transition: color 0.25s ease;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:2px;
  background: var(--brand2);
  transition: width 0.25s ease;
}

nav a:hover{
  color: var(--brand2);
}
nav a:hover::after{
  width: 100%;
}

/* active */
nav a.is-active{
  color: var(--brand2);
}
nav a.is-active::after{
  width: 100%;
}

/* button */
nav .btn{
  padding: 10px 16px;
  border-radius: 25px;
  background: var(--brand);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
nav .btn::after{ display:none; }
nav .btn:hover{
  background: #09837d;
  box-shadow: 0 4px 10px rgba(11,109,84,0.35);
  transform: translateY(-2px);
  color: #fff;
}

/* =========================
   Titles / Typography
   ========================= */
.section-title{
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 3.3rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
  color: #1f1f1f;
}

.section-title::before{
  content:"";
  position:absolute;
  left:0;
  bottom:-12px;
  width:100%;
  height:3px;
  background-color: var(--brand);
}

.content{
  width: min(980px, 92%);
  margin: 50px auto;
  line-height: 1.65;
}

#content p{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  margin-bottom: 1rem;
}

/* =========================
   Hero + Carousel (index)
   ========================= */
.hero {
  height: 85vh;
  width: 100%;
  position: relative;
  margin-top: 80px;
  overflow: hidden;
  background: var(--bg);
}

.carousel {
  position: absolute;
  inset: 0;
  /* CAMBIO: De 85% a 100% para ocupar todo el ancho */
  width: 100%; 
  margin: 0 auto;
  z-index: 0;
}

/* EFECTO DE DIFUMINADO LATERAL */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%; /* Ajusta este porcentaje según qué tan ancho quieras el difuminado */
  z-index: 5; /* Por encima de las slides y flechas */
  pointer-events: none; /* Permite hacer clic en las flechas si están debajo */
}

.carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.slide {
  position: absolute;
  inset: 0;
  /* CAMBIO: 'cover' asegura que la imagen llene todo el espacio sin dejar huecos */
  background-size: cover; 
  background-repeat: no-repeat;
  background-position: center center;
  background-color: var(--bg);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active {
  opacity: 1;
}

/* Ajuste de flechas para que no queden ocultas por el difuminado */
.carousel-arrow {
  z-index: 10; 
}

.wave{
  position:absolute;
  bottom:-1px;
  left:0;
  width:100%;
  height:40px;
  overflow:hidden;
  z-index:4;
}
.wave svg{ width:100%; height:100%; }
.wave path{ fill: var(--bg); }

.hero-content{
  position:absolute;
  top: 97px;
  left: 50%;
  transform: translateX(-50%);
  z-index:3;
  text-align:center;
  padding: 0 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  color:#fff;
  text-shadow: 2px 2px 5px #000;
}

.hero-content h1{
  font-size: 55px;
  letter-spacing: 2px;
  line-height: 1.05;
}

/* carousel controls */
.carousel-arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px;
  height:44px;
  border:none;
  border-radius:999px;
  background: rgba(255,255,255,0.85);
  color:#111;
  font-size:28px;
  cursor:pointer;
  z-index:2;
  display:grid;
  place-items:center;
  transition: transform .15s ease, background .15s ease;
}
.carousel-arrow:hover{ background: rgba(255,255,255,0.95); }
.carousel-arrow:active{ transform: translateY(-50%) scale(0.98); }
.carousel-arrow.prev{ left:14px; }
.carousel-arrow.next{ right:14px; }

.carousel-pagination{
  position:absolute;
  left:50%;
  bottom:18px;
  transform: translateX(-50%);
  display:flex;
  gap:6px;
  z-index:2;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
}
.carousel-pagination button{
  width:26px;
  height:26px;
  border:none;
  border-radius:6px;
  background: rgba(255,255,255,0.75);
  color:#111;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.carousel-pagination button:hover{ background: rgba(255,255,255,0.9); }
.carousel-pagination button.is-active{
  background: #f2c94c;
  color:#111;
}

/* =========================
   Research Areas
   ========================= */
.research-areas{
  width: var(--container);
  margin: 90px auto;
  text-align:center;
}

.areas-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.area-card{
  background: var(--card);
  border-radius: 0px;
  overflow:hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  text-align:left;
}
.area-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.12);
}
.area-card img{
  width:100%;
  height:180px;
  object-fit: cover;
}
.area-card h3{
  margin: 18px 20px 8px;
  font-size: 1.15rem;
}
.area-card p{
  margin: 0 20px 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.9;
}

/* =========================
   Scroll to top
   ========================= */
#scrollTopBtn{
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: #0e8168;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
  z-index: 9999;
}
#scrollTopBtn.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: floatUp 1.6s ease-in-out infinite;
}
#scrollTopBtn:hover{
  background-color: #490734;
  transform: scale(1.08);
}

/* =========================
   People
   ========================= */
.people{
  width: var(--container);
  margin: 90px auto 70px;
}

/* grid */
.people-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.pi-grid{
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.people-accordion-body .people-grid.pi-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-content: center;
}

/* card */
.person-card{
  background: var(--card);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.person-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow2);
}
.person-card img{
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #f3f6fb;
}
.pi-card img{
  height: 260px; /* vuelve al look anterior */
}

.person-body{
  padding: 16px 16px 18px;
}
.person-body h4{
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.person-role{
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 10px;
}
.person-line{
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.9;
  min-height: 2.9em;
}

.person-links{
  display:flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid rgba(15,26,42,0.15);
  color: var(--ink);
  background: rgba(255,255,255,0.9);
  transition: transform .15s ease, background .15s ease;
}
.pill:hover{ transform: translateY(-1px); background: rgba(11,60,109,0.08); }
.pill-rg{ border-color: rgba(11,60,109,0.35); }
.pill-orcid{ border-color: rgba(2,166,110,0.35); }

/* PI hover overlay + button float */
.pi-card--fx{ position: relative; }
.pi-card--fx::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0);
  transition: background .25s ease;
  z-index: 1;
  pointer-events:none;
}
.pi-card--fx:hover::before{ background: rgba(0,0,0,0.30); }
.pi-card--fx:hover{
  transform: translateY(-7px);
  box-shadow: 0 22px 46px rgba(0,0,0,0.16);
}
.pi-card--fx img,
.pi-card--fx .person-body{
  position: relative;
  z-index: 2;
}

/* profile details inside cards */
.details-float{ margin-top: 12px; }
.details-float summary.viewmore-btn{
  list-style:none;
  cursor:pointer;
  position:absolute;
  top:14px;
  right:14px;
  z-index:3;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.55);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.details-float summary.viewmore-btn::-webkit-details-marker{ display:none; }
.pi-card--fx:hover .details-float summary.viewmore-btn{
  opacity: 1;
  transform: translateY(0);
}
.details-float summary.viewmore-btn:hover{ background: rgba(255,255,255,0.98); }

.person-details summary{
  cursor:pointer;
  font-weight: 700;
  color: var(--brand);
  margin-top: 10px;
}
.person-details[open] summary{ margin-bottom: 10px; }

.person-details-content{
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,26,42,0.10);
  border-radius: 14px;
  padding: 12px;
}
.person-details-content ul{
  padding-left: 18px;
  margin-bottom: 10px;
}
.person-details-content li{ margin-bottom: 4px; }

.profile-page-link{
  display:inline-block;
  margin-top: 10px;
  text-decoration:none;
  font-weight: 800;
  color: var(--brand);
}
.profile-page-link:hover{ text-decoration: underline; }

/*cards de Postodctoral */
.person-card h4{
  text-align: center;
}
.person-role{
  text-align: center;
}
.person-line{
  text-align: justify;
}



/* =========================
   People Accordion
   ========================= */
.people-accordion{
  margin-top: 18px;
  border-radius: 0px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid rgba(15,26,42,0.08);
}

.people-accordion-title{
  list-style:none;
  cursor:pointer;
  padding: 14px 16px;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Times New Roman', Times, serif;
  color: #1f1f1f;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(11,60,109,0.04);
}

/* Ajusta el selector a tu clase real de card */
.people-accordion-body .person-card{
  border-radius: 4px;   /* 0px = totalmente cuadrada */
}

.people-accordion-title::-webkit-details-marker{ display:none; }
.people-accordion-title::after{
  content:"▾";
  font-size: 1.2rem;
  transition: transform .2s ease;
  opacity: .9;
}
.people-accordion[open] .people-accordion-title::after{ transform: rotate(180deg); }

.people-accordion-body{
  padding: 14px;
  overflow: hidden;
  height: 0; /* se anima por JS */
}
.people-accordion[open] .people-accordion-body{
  height: auto;
}

/* Grid de cards dentro del acordeón (SIEMPRE 4 en desktop) */
.people-accordion-body .people-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Responsive */
@media (max-width: 1100px){
  .people-accordion-body .people-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px){
  .people-accordion-body .people-grid{
    grid-template-columns: 1fr;
  }
}
/* =========================
   Publications
   ========================= */
.pubs{
  width: min(980px, 92%);
  margin: 50px auto;
}
.pubs-block{ margin-top: 22px; }
.pubs-subtitle{
  font-size: 1.35rem;
  margin: 8px 0 10px;
  color: var(--ink);
}
.pubs-note{
  opacity: .85;
  margin-bottom: 18px;
}
.pub-year{
  margin-top: 26px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,26,42,0.10);
}
.pub-year-title{
  text-align:center;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Times New Roman', Times, serif;
  margin: 12px 0 16px;
  color: #1f1f1f;
}
.pub-group{ margin: 14px 0 18px; }
.pub-type{
  font-size: 1.05rem;
  font-weight: 800;
  color: #09837d;
  margin-bottom: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pub-list{
  padding-left: 20px;
  line-height: 1.65;
}
.pub-list li{ margin-bottom: 10px; }
.pub-authors{ font-weight: 700; }
.pub-title{ font-style: italic; }
.pub-venue{ opacity: .9; }

/* =========================
   Contact page
   ========================= */
.contact{
  padding: 24px 18px 56px;
}

.contact-wrap{
  width: min(100%, 920px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-header{
  background: #fff;
  border: 1px solid rgba(15, 26, 42, 0.10);
  border-radius: 0px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.05);
  padding: 28px 24px;
  text-align: center;
}

.contact-name{
  margin-top: 14px;
  margin-bottom: 10px;
  line-height: 1.15;
}

.contact-affil{
  margin: 8px auto 0;
  max-width: 760px;
  color: rgba(15, 26, 42, 0.76);
  line-height: 1.55;
  font-size: 1rem;
}

.contact-photo{
  width: min(100%, 720px);
  margin: 18px auto 0;
  border-radius: 0px;
  overflow: hidden;
  border: 1px solid rgba(15, 26, 42, 0.10);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.contact-photo img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.contact-links{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-link{
  width: min(100%, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 14px 18px;
  border-radius: 0px;
  background: rgba(15, 26, 42, 0.03);
  border: 1px solid rgba(15, 26, 42, 0.10);
  color: inherit;
  text-decoration: none;
  line-height: 1.45;
  transition: 0.18s ease;
  word-break: break-word;
}

.contact-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  border-color: rgba(15, 26, 42, 0.18);
}

.contact-label{
  font-weight: 700;
}

.contact-invite{
  margin: 0;
  text-align: center;
  font-size: 1.02rem;
  color: rgba(15, 26, 42, 0.82);
}

.contact-map{
  width: auto;
  border-radius: 0px;
  overflow: hidden;
  border: 1px solid rgba(15, 26, 42, 0.10);
  box-shadow: 0 14px 34px rgba(0,0,0,0.05);
  background: #fff;
}

.contact-map iframe{
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px){
  .contact-header{
    padding: 24px 20px;
  }

  .contact-map iframe{
    height: 400px;
  }
}

@media (max-width: 640px){
  .contact{
    padding: 18px 14px 44px;
  }

  .contact-wrap{
    gap: 18px;
  }

  .contact-header{
    padding: 20px 16px;
    border-radius: 18px;
  }

  .contact-name{
    font-size: 1.55rem;
  }

  .contact-affil{
    font-size: 0.96rem;
  }

  .contact-link{
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .contact-map{
    border-radius: 18px;
  }

  .contact-map iframe{
    height: 320px;
  }
}

@media (max-width: 420px){
  .contact-name{
    font-size: 1.32rem;
  }

  .contact-affil{
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .contact-link{
    font-size: 0.90rem;
    line-height: 1.4;
  }

  .contact-map iframe{
    height: 260px;
  }
}

/* =========================
   Footer
   ========================= */
.footer{
  background: var(--ink);
  color: #e8eef8;
  padding: 40px 0 28px;
}

.footer-container{
  width: var(--container);
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
}

.footer h3{ margin-bottom: 12px; }
.footer p{ margin-bottom: 10px; opacity: 0.92; }
.footer-left p{ line-height: 1.25; }

.footer-credits{
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 0.75rem;
  line-height: 1.3;
  opacity: 0.85;
}

footer a{
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}
footer a:hover{ color: #02c5bb; }

/* =========================
   Animations
   ========================= */
@keyframes gradientMove{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}
@keyframes floatUp{
  0%{ transform: translateY(0); opacity: 1; }
  50%{ transform: translateY(-10px); opacity: 0.6; }
  100%{ transform: translateY(0); opacity: 1; }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px){
  .footer-container{ grid-template-columns: 1fr; }
  .hero-content h1{ font-size: 44px; }

  .carousel-arrow{
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
  .carousel-pagination button{
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}
/* =========================
   Responsive Navbar (Mobile)
   ========================= */

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle{
  display: none;                 /* se muestra en el @media */
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  cursor: pointer;

  /* CLAVE: apilar líneas */
  align-items: center;
  justify-content: center;
  flex-direction: column;        /* <-- esto las pone así: _ _ _ */
  gap: 6px;                      /* espacio entre líneas */
}

.nav-toggle span{
  display: block;
  width: 22px;
  height: 2.5px;
  background: #0b3c6d;           /* Azul profundo */
  border-radius: 999px;
  transition: none;              /* estático */
}

/* En móvil: menú se vuelve panel */
@media (max-width: 768px){
  .navbar{
    padding: 12px 16px;
    height: 72px; /* un poco más compacta */
  }

  .logo img{
    height: 52px;
  }

  /* Mostrar hamburguesa */
  .nav-toggle{
    display: inline-flex;
  }

  /* Menú oculto por defecto */
  .nav-menu{
    position: absolute;
    top: 72px;          /* justo debajo del header */
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(15,26,42,0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);

    display: grid;
    gap: 8px;
    padding: 12px 16px;

    /* Animación tipo “acordeón” */
    transform-origin: top;
    transform: scaleY(0.96);
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
  }

  /* Links en vertical */
  .nav-menu a{
    margin-left: 0;
    font-size: 1.05rem;
    padding: 10px 10px;
    border-radius: 12px;
  }

  .nav-menu a::after{
    display: none; /* en móvil es mejor sin subrayado animado */
  }

  .nav-menu a:hover{
    background: rgba(11,60,109,0.06);
  }

  /* Botón Contact se adapta */
  .nav-menu .btn{
    text-align: center;
    justify-self: start;
  }

  /* Estado abierto */
  .nav-menu.is-open{
    opacity: 1;
    pointer-events: auto;
    max-height: 420px;  /* suficiente para el menú */
    transform: scaleY(1);
  }
}

/* =========================
   Profile layout (AIM³ style)
   ========================= */
:root{
  --nav-h: 90px;
}

/* Desktop */
.profile-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 20px) 18px 60px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
}

.profile-sidebar{
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  align-self: start;
}

.profile-card{
  background: #fff;
  border: 1px solid rgba(15, 26, 42, 0.10);
  border-radius: 0px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.profile-photo-wrap{
  width: 170px;
  height: 170px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.08);
  overflow: hidden;
  background: #f3f4f6;
}

.profile-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name{
  margin: 10px 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  text-align: left;
}

.profile-role{
  margin: 0 0 6px;
  color: #374151;
  font-weight: 600;
}

.profile-affiliation{
  margin: 0;
  color: #6b7280;
  line-height: 1.35;
}

.profile-links{
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.profile-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

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

.profile-link .icon{
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(17,24,39,0.06);
}

/* ===== Right content ===== */
.profile-content{
  padding-top: 6px;
}

.group-title{
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 900;
  color: #111827;
}

.group-text{
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.7;
  max-width: 820px;
  text-align: justify;
}

.people-section{
  margin-top: 26px;
}

.people-section h2{
  margin: 0 0 10px;
  font-size: 1.50rem;
  font-weight: 850;
  font-family: 'Times New Roman', Times, serif;
  color: #111827;
}

.people-list{
  margin: 0;
  padding-left: 20px;
  color: #374151;
  line-height: 1.9;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .profile-page{
    grid-template-columns: 1fr;
    gap: 22px;
    padding: calc(var(--nav-h) + 20px) 18px 60px;
  }

  .profile-sidebar{
    position: static;
    top: 0;
  }

  .profile-name,
  .profile-role,
  .profile-affiliation{
    text-align: center;
  }

  .profile-links{
    justify-items: center;
  }
}

/* Ajusta este valor al alto real de tu navbar */
:root{
  --nav-h: 90px;
}

/* Solo para la página del profile */
.profile-page{
  padding-top: calc(var(--nav-h) + 20px); /* baja todo el contenido */
}

/* Para que la tarjeta izquierda (sticky) no quede debajo del navbar */
.profile-sidebar{
  top: calc(var(--nav-h) + 16px);
}

/* =========================
   Events (banners clicables)
   ========================= */
.events-gallery{
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-banner{
  display: block;
  width: 100%;
  border-radius: 0px;         /* si los quieres puntiagudos: pon 0px */
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  border: 1px solid rgba(15,26,42,0.10);
  text-decoration: none;       /* evita look de link */
}

.event-banner img{
  width: 100%;
  height: 210px;               /* ajusta según tus banners */
  object-fit: cover;           /* mantiene formato “banner” recortando */
  display: block;
}

.event-banner:hover{
  transform: translateY(-2px);
  transition: transform .15s ease;
}

/* =========================
   Projects (iLovePDF-like cards)
   ========================= */
.projects-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px 50px;
}

.projects-header{
  text-align: center;
  margin-bottom: 18px;
}

.projects-subtitle{
  margin-top: 6px;
  color: rgba(15, 26, 42, 0.72);
  font-size: 0.98rem;
}

/* Chips (filtros visuales) */
.projects-chips{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip{
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 0px;
  border: 1px solid rgba(15,26,42,0.12);
  background: #0b6b77;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  transition: 0.18s ease;
}

.chip:hover{
  transform: translateY(-1px);
  border-color: rgba(15,26,42,0.22);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.chip.is-active{
  border-color: rgba(15,26,42,0.28);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

/* Secciones */
.project-section{
  margin-top: 22px;
  padding-top: 12px;
}

.project-section-head{
  text-align: left;
  margin: 6px 0 12px;
}

.project-section-head h3{
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: 0.2px;
}

.project-section-head p{
  margin: 6px 0 0;
  color: rgba(15, 26, 42, 0.70);
  font-size: 0.95rem;
}

/* Grid tipo “cuadros pequeños” */
.project-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* Card */
.project-card{
  display: flex;
  flex-direction: column;   /* ahora todo va hacia abajo */
  align-items: flex-start;  /* todo alineado a la izquierda */
  gap: 12px;

  padding: 18px;
  border-radius: 0px;
  background: #fff;
  border: 1px solid rgba(15,26,42,0.10);
  box-shadow: 0 10px 26px rgba(0,0,0,0.05);

  text-decoration: none;
  color: inherit;
  transition: 0.18s ease;
  min-height: 140px;
}

.project-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
  border-color: rgba(15,26,42,0.18);
}

.card-icon{
  width: 60px;
  height: 60px;
  border-radius: 0px;
 /* border: 1px solid rgba(15,26,42,0.10);*/
  display: grid;
  place-items: center;
  background: rgba(15,26,42,0.02);
  overflow: hidden;

  align-self: flex-start; /* la deja pegada al lado izquierdo */
}

.card-icon img{
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.card-body{
  width: 100%;
}

.card-body h4{
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.card-body p{
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: rgba(15, 26, 42, 0.72);
  line-height: 1.35;
}

/* Responsive */
@media (max-width: 980px){
  .project-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 740px){
  .project-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px){
  .project-grid{ grid-template-columns: 1fr; }
  .project-card{ grid-template-columns: 60px 1fr; }
}

/* Titulo para todos pero resposive */

@media (max-width: 900px){
  .section-title{
    display: block;
    width: fit-content;
    margin: 0 auto 2.5rem auto;
    text-align: center;
  }
}