/* ===== OVERLAY FULL-SCREEN (patrón reusable: "ver más" en cualquier sección) ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.6s;
}

.overlay.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0s;
}

.overlay__close {
  position: sticky;
  margin: 32px 32px -76px auto;
  top: 32px;
  right: 32px;
  z-index: 101;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.overlay__close:hover {
  background: #f2f2ee;
  transform: rotate(90deg);
}

/* ----- Layout de 2 columnas: aside fijo + contenido que scrollea ----- */
.overlay__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.overlay__aside {
  position: sticky;
  top: 64px;
  align-self: start;
  padding-top: 64px;
}

.overlay__eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8a8a82;
}

.overlay__name {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111111;
  margin-bottom: 12px;
}

.overlay__role {
  font-size: 0.98rem;
  color: #6f6f68;
}

/* ----- Columna principal ----- */
.overlay__main {
  padding-top: 64px;
}

.overlay__text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #33332f;
  max-width: 620px;
  margin-bottom: 26px;
}

.overlay__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.overlay__list li {
  font-size: 1rem;
  color: #33332f;
  padding-left: 24px;
  position: relative;
}

.overlay__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111111;
}

.overlay__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.overlay__gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

/* ----- Formación académica / credenciales: pie con letras enormes ----- */
.overlay__credentials {
  padding-top: 48px;
  margin-top: 16px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}

.overlay__credentials-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #111111;
}

.overlay__credentials-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.overlay__credential {
  display: flex;
  align-items: center;
  gap: 20px;
}

.overlay__credential-placeholder {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border: 1.5px dashed rgba(17, 17, 17, 0.25);
  border-radius: 14px;
  background: #fafaf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(17, 17, 17, 0.35);
}

.overlay__credential-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overlay__credential-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111111;
}

.overlay__credential-detail {
  font-size: 0.92rem;
  color: #6f6f68;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .overlay__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 24px;
  }

  .overlay__aside {
    position: static;
    padding-top: 40px;
  }

  .overlay__main {
    padding-top: 16px;
  }

  .overlay__text {
    font-size: 1.05rem;
  }
}

@media (max-width: 700px) {
  .overlay__gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .overlay__credentials {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .overlay__credential {
    gap: 16px;
  }

  .overlay__credential-placeholder {
    width: 64px;
    height: 64px;
  }

  .overlay__close {
    margin: 20px 20px -60px auto;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}
