/* Sobre mí.
   Las 3 Polaroid de los destacados de Inicio (#featuredStage) usan este mismo diseño
   (.about-inner, .about-photos, .about-photo), por eso sus reglas también están acá. */

#featuredStage .about-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--esperanza-page-gutter,24px);
  padding-right: var(--esperanza-page-gutter,24px);
}

@media (max-width: 760px) {
  #featuredStage .about-inner {
    padding-left: var(--esperanza-page-gutter-mobile,16px) !important;
    padding-right: var(--esperanza-page-gutter-mobile,16px) !important;
  }

  #featuredStage .about-copy {
    order: 1;
    padding-top: 0 !important;
  }

  #featuredStage .about-photos {
    order: 2;
    height: clamp(390px,112vw,560px);
    margin: 18px auto 0;
    overflow: visible;
  }

  #featuredStage .about-photo {
    opacity: var(--fp-opacity,0);
    transform: translate3d(0,var(--fp-lift,72vh),0) rotate(var(--rot,0deg));
    transition: box-shadow .35s ease,opacity .10s linear;
    will-change: transform,opacity;
  }

  .about-section {
    min-height: auto !important;
  }

  .about-inner {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    overflow: visible !important;
    padding: 28px 16px 70px !important;
  }

  .about-photos {
    position: relative !important;
    width: 100% !important;
    align-self: stretch !important;
  }

  .about-copy {
    min-height: 0 !important;
    align-self: stretch !important;
    justify-content: flex-start !important;
    padding: 20px 0 0 !important;
  }

  .about-bio-reveal {
    max-width: none !important;
  }

  .about-photo {
    width: min(68vw,300px) !important;
  }

  .about-photo:nth-child(1) {
    left: 1% !important;
    top: 1% !important;
  }

  .about-photo:nth-child(2) {
    left: 14% !important;
    top: 7% !important;
  }

  .about-photo:nth-child(3) {
    left: 27% !important;
    top: 13% !important;
  }
}

.about-section {
  position: relative;
  display: block;
  min-height: 430vh;
  background: #fff;
  color: #111;
  border-top: 1px solid #eee;
}

.about-inner {
  position: sticky;
  top: var(--header-h,64px);
  height: calc(100vh - var(--header-h,64px));
  margin: 0 auto;
  padding: clamp(34px,5vh,58px) 28px 42px;
  display: grid;
  grid-template-columns: minmax(300px,.86fr) minmax(430px,1.14fr);
  gap: clamp(44px,6vw,96px);
  align-items: center;
  overflow: hidden;
}

.about-copy {
  position: relative;
  align-self: center;
  z-index: 5;
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 12px;
}

.about-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #777;
  margin-bottom: 18px;
}

.about-text {
  display: none;
}

.about-bio-reveal {
  margin-top: 4px;
  max-width: 610px;
  opacity: 0;
  transform: translateY(30vh);
  will-change: transform,opacity;
  pointer-events: none;
}

.about-bio-reveal p {
  margin: 0 0 15px;
  font-size: clamp(14px,1.08vw,17px);
  line-height: 1.48;
  letter-spacing: -.01em;
  font-style: normal;
}

.about-photos {
  position: relative;
  height: min(70vh,660px);
  width: 100%;
  align-self: center;
}

.about-photo {
  position: absolute;
  width: min(39vw,330px,calc((100vh - var(--header-h,64px) - 190px) * .78));
  aspect-ratio: 4/5;
  background: #fff;
  padding: 9px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 45px rgba(0,0,0,.16),0 3px 12px rgba(0,0,0,.08);
  overflow: hidden;
  will-change: transform,opacity;
  transition: box-shadow .35s ease,opacity .12s linear;
  transform: translate(var(--x,0px),calc(var(--y,0px) + var(--lift,90vh))) rotate(var(--rot,0deg));
}

.about-photo:nth-child(1) {
  --x: 0%;
  --y: 0%;
  --rot: -2deg;
  left: 8%;
  top: 2%;
  z-index: 1;
}

.about-photo:nth-child(2) {
  --x: 0%;
  --y: 0%;
  --rot: 1.7deg;
  left: 22%;
  top: 8%;
  z-index: 2;
}

.about-photo:nth-child(3) {
  --x: 0%;
  --y: 0%;
  --rot: -.8deg;
  left: 35%;
  top: 14%;
  z-index: 3;
}

.about-photo img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform .65s cubic-bezier(.22,.75,.18,1),filter .35s ease;
}

.about-photo.bw img {
  filter: grayscale(1);
}

.about-photo:hover img,
.about-photo:active img {
  transform: scale(1.035);
}

.about-photo:hover {
  box-shadow: 0 22px 54px rgba(0,0,0,.20),0 4px 14px rgba(0,0,0,.10);
}

.about-photo-caption {
  display: flex;
  flex: 0 0 48px;
  flex-direction: column;
  justify-content: center;
  padding: 6px 6px 2px;
  background: #fff;
  color: #111;
  line-height: 1.08;
}

.about-photo-caption.empty {
  visibility: hidden;
}

.about-photo-name {
  font-family: Poppins,Arial,sans-serif;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 3px;
}

.about-photo-role {
  font-family: Poppins,Arial,sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #666;
}

html[data-theme="dark"] .about-section {
  background: #111;
  color: #f4f4f4;
  border-top-color: #292929;
}

html[data-theme="dark"] .about-kicker {
  color: #aaa;
}

html[data-theme="dark"] .about-photo {
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.50),0 3px 12px rgba(0,0,0,.32);
}

html[data-theme="dark"] .about-photo-caption {
  background: #fff;
  color: #111;
}

html[data-theme="dark"] .about-photo-role {
  color: #666;
}

@media (max-width: 900px) {
  .about-section {
    min-height: 445vh;
  }

  .about-inner {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
    padding: 34px 16px 24px;
  }

  .about-copy {
    min-height: auto;
    justify-content: flex-start;
  }

  .about-bio-reveal {
    max-width: 100%;
  }

  .about-bio-reveal p {
    font-size: 14px;
    line-height: 1.44;
    margin-bottom: 10px;
  }

  .about-photos {
    height: 52vh;
    margin-top: 4px;
  }

  .about-photo {
    width: min(56vw,275px,calc((100vh - var(--header-h,64px) - 300px) * .78));
  }

  .about-photo:nth-child(1) {
    left: 3%;
    top: 1%;
  }

  .about-photo:nth-child(2) {
    left: 17%;
    top: 7%;
  }

  .about-photo:nth-child(3) {
    left: 31%;
    top: 13%;
  }
}

@media (max-width: 560px) {
  .about-bio-reveal p {
    font-size: 13px;
  }

  .about-photo-name {
    font-size: 15px;
  }

  .about-photo-role {
    font-size: 12px;
  }
}

#about .about-copy h2 {
  font-family: Poppins,Arial,sans-serif !important;
  font-size: var(--esperanza-title-size) !important;
  line-height: .96 !important;
  letter-spacing: -.05em !important;
  font-weight: 500 !important;
  margin: 0 0 34px;
}

@media (max-width: 760px) {
  #about .about-copy h2 {
    font-size: var(--esperanza-title-mobile) !important;
  }

  #about.about-section {
    min-height: auto !important;
    overflow: visible;
  }

  #about .about-photos {
    position: relative !important;
    height: clamp(390px,112vw,560px);
    margin: 0 auto 18px;
    overflow: visible;
  }

  #about .about-bio-reveal {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  #about .about-photo {
    opacity: var(--mobile-opacity,0) !important;
    transform: translate3d(0,var(--mobile-lift,72vh),0) rotate(var(--rot,0deg));
    transition: box-shadow .35s ease,opacity .10s linear;
    will-change: transform,opacity;
  }
}

#about .about-inner {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--esperanza-page-gutter);
  padding-right: var(--esperanza-page-gutter);
}

@media (max-width: 760px) {
  #about .about-inner {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding-left: var(--esperanza-page-gutter-mobile) !important;
    padding-right: var(--esperanza-page-gutter-mobile) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #about .about-copy {
    order: 2;
    position: relative;
    padding-top: 22px !important;
    display: contents;
  }

  #about #aboutKicker {
    order: 1;
    align-self: stretch;
    margin: 0 0 14px;
  }

  #about #aboutTitle {
    order: 2;
    align-self: stretch;
    margin: 0 0 28px !important;
  }

  #about #aboutPhotos {
    order: 3;
    align-self: stretch !important;
  }

  #about #aboutText {
    order: 4;
    display: none;
  }

  #about #aboutBioReveal {
    order: 5;
    align-self: stretch;
    margin: 22px 0 0;
  }
}
