/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 100%;
  height: 100%;
}
body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  color: #1f1f1f;
  background: #FFFFFF;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 0;
}
ul {
  list-style: none;
}

/* TOP BAR */
.topbar {
  background: #f3f2ee;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: .8rem 1rem;
  border-bottom: 1px solid #e0ded6;
}
.topbar .wrap {
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 24px;
  width: auto;
}

/* BUTTONS */
.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 100;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s;
}
.btn-dark {
  background: #1c1c1c;
  color: #fff;
}
.btn-dark:hover {
  background: #000;
}
.btn-light {
  background: #f3f2ee;
  color: #1c1c1c;
}
.btn-light:hover {
  font-weight: 300;
}

.link-btn {
  background: none;
  border: none;
  color: #7c7a76;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  margin-bottom: 1.25rem;
}

/* TOGGLE + INFO */
.more-info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .6s ease, opacity .6s ease;
}

.more-info.open {
  max-height: 2000px; /* valor suficientemente grande */
  opacity: 1;
}

.toggle-btn2, .toggle-btn {
  background: none;
  border: none;
  color: #7c7a76;
  cursor: pointer;
  font-size: .8rem;
}
.toggle-btn2 {
  margin-top: .1rem;
  margin-bottom: 0.25rem;
  margin-left: 0.8rem;
}
.toggle-btn {
  margin-right: 1.5rem;
  vertical-align: middle;
}

/* chips dentro de expand */
.more-info a {
  display: inline-block;
  white-space: nowrap;
  margin-right: .5rem;
  margin-bottom: .4rem;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
}

/* LAYOUT */
.layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.main {
  padding: 2rem 1rem;
  background: #fff;
}
.container {
  width: 90%;
  max-width: 1240px;
  margin: auto;
}
.hero {
  padding: 0.25rem 0 0.5rem 0;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media(min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 2fr;
  }
}
.hero-image {
  order: 1;
}
.hero-text {
  order: 2;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem 0;
  text-wrap: balance;
}
html {
  -webkit-text-size-adjust: 100%;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 1.10rem;
  margin: 1.4rem 0;
  max-width: 702px;
}
.hero h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: .9rem;
  margin: .8rem 0;
  max-width: 702px;
}
.hero h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: .9rem;
  margin: 1.25rem 0;
  max-width: 702px;
}
.hero h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: .8rem;
  margin: 0.7rem 0;
  max-width: 702px;
}
.hero p {
  max-width: 700px;
  margin-bottom: 2.4rem;
  font-size: 13px;
  font-weight: 100;
}
.figure {
  margin: 1rem 1rem;
  max-width: 200px;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.social-links svg {
  width: 24px;
  height: 24px;
  opacity: .60;
}

/* FOOTER */
.footer {
  background: #fff;
  margin-top: auto;
  padding: 2.6rem 0;
  text-align: left;
  font-size: .75rem;
  opacity: .50;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .actions a.btn { display: none; }
  .hamburger { display: flex; }
}

/* Imagen de perfil responsiva */
.hero-image img {
  max-width: 100%;
  height: auto;
}
@media (min-width: 768px) {
  .hero-image img { max-width: 250px; }
}

/* CTA buttons */
.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 1rem 0;
}
.cta .toggle-btn {
  display: inline-block;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .cta {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem 1rem;
    flex-wrap: nowrap;
  }
}

/* Section titles */
.hero-text h1.section-maintitle {
  margin: 0.5rem 0 1rem;
  font-size: clamp(22px, 3.2vw, 28px);
}
.section-maintitle {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 28px);
}

/* Backdrop */
#side-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(243,242,238,0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
  z-index: 3000;
}
body.side-open #side-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* HAMBURGER ANIMATION */
.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all .3s ease;
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Research mobile tweaks */
@media (max-width: 768px) {
  .hero h2 { margin: 1rem 0 .5rem; }
  .hero h3 { margin: .75rem 0 .5rem; }
  .hero-text { margin-top: .25rem; }
}
@media (max-width: 768px) {
  .hero-text h2 { margin-top: .75rem; margin-bottom: .75rem; }
  .hero-text h3 { margin-top: .4rem; margin-bottom: .6rem; }
  .section-maintitle { margin-top: .25rem; }
}

/* Extra panel/backdrop fixes */
body.side-open { overflow: hidden !important; }

/* Drawer panel */
#side-nav {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
  z-index: 3001;
  background: transparent;
  padding: 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem; /* separación entre enlaces */
}
body.side-open #side-nav {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#side-nav a {
  font-family: 'Playfair Display', serif;
  font-weight: 100;
  font-size: clamp(20px, 3vw, 28px);
  color: #000;
  text-decoration: none;
  line-height: 1.2;
}

/* Topbar siempre por encima del overlay */
.topbar { z-index: 5000; }
