/* =========================================================
   Home · Sección Equipo
   Componente aislado: carrusel editorial + modal biográfico
   ========================================================= */

html.home-anchor-entry {
  scroll-behavior: auto !important;
}

html.home-anchor-entry .home-page .intro-overlay {
  display: none !important;
}

html.home-anchor-entry #equipo [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

html {
  scrollbar-gutter: stable;
}

html.team-modal-lock,
body.team-modal-open {
  overflow: auto;
}

body.team-modal-open {
  position: static;
  width: auto;
  padding-right: 0;
}

body.team-modal-open .site-header {
  padding-right: 0;
}

.team-section {
  --team-copper: #b87333;
  --team-copper-soft: #d49a5c;
  --team-ink: #35241c;
  --team-text: #5f4b40;
  --team-muted: #80695b;
  --team-line: rgba(74, 52, 40, .13);
  --team-surface: rgba(255, 253, 251, .985);
  --team-ease: cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}

.team-section-head {
  position: relative;
  align-items: end;
  margin-bottom: clamp(18px, 1vw, 28px);
  padding-top: 18px;
}

.team-section-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(70px, 8vw, 104px);
  height: 2px;
  background: linear-gradient(90deg, var(--team-copper), rgba(184, 115, 51, 0));
}

.team-section-head>div:first-child {
  max-width: 790px;
}

.team-section-head h2 {
  max-width: 790px;
  text-wrap: balance;
}

.team-section-intro {
  width: min(100%, 380px);
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid rgba(184, 115, 51, .30);
  color: var(--team-text);
  font-size: 15px;
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.team-carousel {
  position: relative;
  width: min(100%, 1440px);
  margin: 0 auto;
  outline: none;
}

.team-carousel:focus-visible {
  outline: 2px solid rgba(184, 115, 51, .36);
  outline-offset: 10px;
}

.team-viewport {
  position: relative;
  overflow: visible;
  padding: 10px 0 30px;
  touch-action: pan-y pinch-zoom;
}

.team-viewport::before,
.team-viewport::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.team-track {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 2.2vw, 30px);
  will-change: transform;
  transition: none;
}

.team-slide {
  flex: 0 0 min(92%, 1160px);
  min-width: 0;
  opacity: 0;
  filter: blur(2px) saturate(.72);
  transform: perspective(1200px) scale(.80);
  transform-origin: center;
  pointer-events: none;
  transition: none;
}

.team-carousel.is-ready .team-track {
  transition: transform .76s var(--team-ease);
}

.team-carousel.is-ready .team-slide {
  transition:
    opacity .42s ease,
    filter .42s ease,
    transform .76s var(--team-ease);
}

/* Previews laterales: tarjeta completa, pequeña y lejana */
.team-slide.is-prev,
.team-slide.is-next {
  z-index: 1;
  display: flex;
  align-items: center;
  opacity: .20;
  filter: blur(1.9px) saturate(.68);
  pointer-events: auto;
}

.team-slide.is-prev {
  justify-content: flex-end;
  transform: perspective(1200px) translateX(24px) rotateY(5deg) scale(.54);
  transform-origin: right center;
}

.team-slide.is-next {
  justify-content: flex-start;
  transform: perspective(1200px) translateX(-24px) rotateY(-5deg) scale(.54);
  transform-origin: left center;
}

.team-slide.is-active {
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: perspective(1200px) scale(1);
  pointer-events: auto;
}

.team-slide.is-away {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.team-member-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(460px, .94fr);
  min-height: 515px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .955), rgba(251, 247, 242, .88));
  border: 1px solid rgba(74, 52, 40, .105);
  box-shadow: 0 18px 42px rgba(74, 52, 40, .075);
  cursor: pointer;
  transform: translateZ(0) scale(1);
  transition:
    border-color .25s ease,
    box-shadow .28s ease,
    transform .34s var(--team-ease);
}

.team-member-card::after {
  display: none !important;
  content: none !important;
}

.team-slide.is-prev .team-member-card,
.team-slide.is-next .team-member-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(205px, .95fr);
  width: clamp(520px, 42vw, 650px);
  min-height: 355px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(251, 247, 242, .52));
  border-color: rgba(184, 115, 51, .15);
  box-shadow: 0 18px 46px rgba(74, 52, 40, .095);
}

.team-slide.is-prev .team-member-card {
  margin-left: auto;
}

.team-slide.is-next .team-member-card {
  margin-right: auto;
}

.team-slide.is-prev .team-member-copy,
.team-slide.is-next .team-member-copy {
  display: flex;
  justify-content: center;
  padding: 34px 30px 36px 38px;
}

.team-slide.is-prev .team-member-copy::after,
.team-slide.is-next .team-member-copy::after {
  display: none;
}

.team-slide.is-prev .team-member-copy h3,
.team-slide.is-next .team-member-copy h3 {
  font-size: 33px;
  line-height: 1.1;
}

.team-slide.is-prev .team-member-role,
.team-slide.is-next .team-member-role {
  margin-top: 13px;
  font-size: 11px;
  line-height: 1.38;
  letter-spacing: .055em;
}

.team-slide.is-prev .team-member-excerpt,
.team-slide.is-next .team-member-excerpt {
  max-width: 300px;
  margin-top: 16px;
  font-size: 13.8px;
  line-height: 1.62;
}

.team-slide.is-prev .team-member-cta,
.team-slide.is-next .team-member-cta {
  margin-top: 17px;
  font-size: 9.5px;
  letter-spacing: .11em;
}

.team-slide.is-prev .team-member-visual,
.team-slide.is-next .team-member-visual {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px 28px 24px 16px;
  background: linear-gradient(145deg, rgba(74, 52, 40, .012), rgba(184, 115, 51, .018));
}

.team-slide.is-prev .team-portrait-frame,
.team-slide.is-next .team-portrait-frame {
  width: min(205px, 86%);
  padding: 7px;
  overflow: hidden;
  border-color: rgba(184, 115, 51, .28);
  box-shadow: 0 12px 26px rgba(74, 52, 40, .08);
}

.team-slide.is-prev .team-portrait-frame img,
.team-slide.is-next .team-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .86;
}

.team-slide.is-prev .team-portrait-frame.is-initials,
.team-slide.is-next .team-portrait-frame.is-initials {
  display: grid;
  place-items: center;
}

.team-slide.is-prev .team-portrait-frame.is-initials .team-portrait-initials,
.team-slide.is-next .team-portrait-frame.is-initials .team-portrait-initials {
  width: 102px;
  font-size: 34px;
}

.team-slide.is-active .team-member-card:hover,
.team-slide.is-active .team-member-card:focus-visible {
  transform: translateZ(0) scale(1.018);
  border-color: rgba(184, 115, 51, .27);
  box-shadow: 0 30px 76px rgba(74, 52, 40, .15);
  outline: none;
}

.team-slide.is-prev .team-member-card:hover,
.team-slide.is-next .team-member-card:hover {
  transform: translateZ(0) scale(1.02);
  box-shadow: 0 22px 54px rgba(74, 52, 40, .14);
}

.team-member-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(36px, 3.6vw, 52px) clamp(52px, 5.4vw, 76px) clamp(40px, 4vw, 56px) clamp(60px, 6vw, 88px);
}

.team-member-copy::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(184, 115, 51, .11), transparent);
}

.team-member-number,
.team-member-more,
.team-member-hint {
  display: none;
}

.team-member-bio-label {
  display: none;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 24px 0 14px;
  color: var(--team-copper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1;
  text-transform: uppercase;
}

.team-member-bio-label::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(184, 115, 51, .46);
  border-radius: 50%;
  background: rgba(255, 251, 247, .86);
  box-shadow: 0 0 0 4px rgba(184, 115, 51, .055);
  color: var(--team-copper);
  font-size: 9px;
  font-weight: 800;
}

.team-member-copy h3 {
  margin: 0;
  color: var(--team-ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(32px, 3.25vw, 46px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.026em;
  text-wrap: balance;
}

.team-member-copy h3::after {
  display: none;
  content: none;
}

.team-member-role {
  margin: 17px 0 0;
  color: var(--team-copper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .062em;
  line-height: 1.45;
  text-transform: uppercase;
}

.team-member-excerpt {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--team-text);
  font-size: clamp(15.2px, 1.16vw, 16.4px);
  line-height: 1.82;
  text-wrap: pretty;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.team-member-excerpt p {
  margin: 0;
  text-align: justify;
  text-align-last: left;
}

.team-member-excerpt p+p {
  margin-top: 8px;
}

.team-member-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin-top: 24px;
  color: var(--team-copper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
  transition: color .22s ease, gap .28s var(--team-ease), transform .28s var(--team-ease);
}

.team-member-cta::after {
  content: "→";
  display: inline-block;
  color: currentColor;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .28s var(--team-ease), opacity .22s ease;
}

.team-slide.is-active .team-member-card:hover .team-member-cta,
.team-slide.is-active .team-member-card:focus-visible .team-member-cta {
  gap: 12px;
  color: #9f622f;
  transform: translateX(2px);
}

.team-slide.is-active .team-member-card:hover .team-member-cta::after,
.team-slide.is-active .team-member-card:focus-visible .team-member-cta::after {
  transform: translate(4px, -1px);
}

.team-member-visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 0;
  padding: clamp(24px, 2.4vw, 34px) clamp(54px, 4.9vw, 72px) clamp(28px, 2.8vw, 38px) clamp(54px, 4.9vw, 72px);
  background: linear-gradient(145deg, rgba(74, 52, 40, .012), rgba(184, 115, 51, .026));
}

.team-member-visual::before {
  display: none !important;
  content: none !important;
}

.team-portrait-frame {
  position: relative;
  z-index: 1;
  width: clamp(330px, 27vw, 382px);
  aspect-ratio: 4 / 5;
  padding: 10px;
  overflow: visible;
  background: linear-gradient(135deg, rgba(255, 253, 249, .98), rgba(245, 220, 190, .86));
  border: 1px solid rgba(184, 115, 51, .34);
  box-shadow: 0 15px 32px rgba(74, 52, 40, .10);
  transition: transform .34s var(--team-ease), box-shadow .28s ease, border-color .25s ease;
}

.team-portrait-frame::after {
  display: none;
}

.team-slide.is-active .team-member-card:hover .team-portrait-frame,
.team-slide.is-active .team-member-card:focus-visible .team-portrait-frame {
  transform: scale(1.006);
  border-color: rgba(184, 115, 51, .72);
  box-shadow: 0 18px 38px rgba(74, 52, 40, .14);
}

.team-portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  background: #e9ded3;
}

.team-photo-benjamin {
  object-position: 50% center;
}

.team-photo-francisco {
  object-position: 50% center;
}

.team-photo-lorena {
  object-position: 50% center;
}

.team-portrait-initials {
  display: none;
}

.team-portrait-frame.is-initials {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 176, 111, .15), transparent 36%),
    linear-gradient(145deg, #f6efe8, #e6d3c1);
}

.team-portrait-frame.is-initials .team-portrait-initials {
  display: grid;
  place-items: center;
  width: 134px;
  aspect-ratio: 1;
  color: var(--team-ink);
  border: 1px solid rgba(184, 115, 51, .34);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 42px;
  letter-spacing: -.04em;
}

.team-visual-signature {
  display: none;
}

.team-control {
  position: absolute;
  z-index: 9;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(74, 52, 40, .16);
  border-radius: 50%;
  background: rgba(255, 253, 251, .96);
  color: var(--team-ink);
  box-shadow: 0 10px 22px rgba(74, 52, 40, .10);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    opacity .22s ease,
    visibility .22s ease,
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .24s ease,
    transform .28s var(--team-ease);
}

.team-control[hidden],
.team-control.is-disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.team-control svg {
  width: 20px;
  height: 20px;
}

.team-control-prev {
  left: -12px;
}

.team-control-next {
  right: -12px;
}

.team-control:hover,
.team-control:focus-visible {
  color: #fff;
  background: var(--team-copper);
  border-color: var(--team-copper);
  box-shadow: 0 14px 28px rgba(184, 115, 51, .22);
  outline: none;
}

.team-control-prev:hover,
.team-control-prev:focus-visible {
  transform: translate(-1px, -50%) scale(1.03);
}

.team-control-next:hover,
.team-control-next:focus-visible {
  transform: translate(1px, -50%) scale(1.03);
}

.team-carousel-footer {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) auto minmax(60px, 1fr);
  align-items: center;
  gap: 18px;
  width: min(92%, 1160px);
  margin: 0 auto;
}

.team-footer-rule {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 52, 40, .13));
}

.team-footer-rule-right {
  background: linear-gradient(90deg, rgba(74, 52, 40, .13), transparent);
}

.team-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.team-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(74, 52, 40, .24);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: width .28s var(--team-ease), border-color .2s ease, background-color .2s ease;
}

.team-dot.is-active {
  width: 25px;
  border-color: var(--team-copper);
  border-radius: 99px;
  background: var(--team-copper);
}

.team-dot:focus-visible {
  outline: 2px solid rgba(184, 115, 51, .48);
  outline-offset: 3px;
}

.team-member-full-bio[hidden],
.team-modal[hidden] {
  display: none !important;
}

/* Modal biográfico */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .22s;
}

.team-modal.is-backdrop-ready,
.team-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}

.team-modal-backdrop {
  position: fixed;
  inset: 0;
  opacity: 0;
  background: rgba(31, 21, 15, .68);
  -webkit-backdrop-filter: blur(4px) saturate(.94);
  backdrop-filter: blur(4px) saturate(.94);
  transform: translateZ(0);
  will-change: opacity;
  transition: opacity .10s linear;
}

.team-modal.is-backdrop-ready .team-modal-backdrop,
.team-modal.is-open .team-modal-backdrop {
  opacity: 1;
}

.team-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, .80fr) minmax(0, 1.20fr);
  width: min(1020px, 100%);
  height: min(78vh, 620px);
  max-height: min(78vh, 620px);
  overflow: hidden;
  background: linear-gradient(140deg, rgba(255, 255, 255, .995), rgba(248, 241, 234, .985));
  border: 1px solid rgba(245, 196, 130, .36);
  box-shadow: 0 34px 82px rgba(0, 0, 0, .30);
  opacity: 0;
  transform: scale(.985);
  transform-origin: center;
  transition: transform .30s var(--team-ease), opacity .22s ease;
}

.team-modal.is-open .team-modal-dialog {
  opacity: 1;
  transform: scale(1);
}

.team-modal-dialog::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  width: 1px;
  height: 132px;
  background: linear-gradient(180deg, rgba(184, 115, 51, .68), transparent);
  pointer-events: none;
}

.team-modal-close {
  position: absolute;
  z-index: 7;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(53, 36, 28, .72);
  cursor: pointer;
  transition: color .18s ease, opacity .18s ease;
}

.team-modal-close svg {
  width: 20px;
  height: 20px;
}

.team-modal-close:hover,
.team-modal-close:focus-visible {
  color: #b33a2b;
  background: transparent;
  box-shadow: none;
  outline: none;
  transform: none;
}

.team-modal-close:active {
  color: #8f2d22;
}

.team-modal-visual {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 0;
  padding: 42px 36px 38px;
  background:
    radial-gradient(circle at 50% 33%, rgba(232, 176, 111, .12), transparent 36%),
    linear-gradient(145deg, #3a281f, #21150f);
  color: #fff;
  text-align: center;
}

.team-modal-visual::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 196, 130, .54), transparent);
  pointer-events: none;
}

.team-modal-portrait {
  position: relative;
  z-index: 1;
  width: min(314px, 88%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #efe5dc;
  border: 1px solid rgba(245, 196, 130, .64);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.team-modal-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(255, 255, 255, .30);
  pointer-events: none;
  opacity: .58;
}

.team-modal-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  background: #e8ddd2;
}

.team-modal-portrait img.team-photo-benjamin {
  object-position: 50% center;
}

.team-modal-portrait img.team-photo-francisco {
  object-position: 50% center;
}

.team-modal-portrait img.team-photo-lorena {
  object-position: 50% center;
}

.team-modal-initials {
  display: none;
}

.team-modal-portrait.is-initials {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 176, 111, .18), transparent 36%),
    linear-gradient(145deg, #f5eee7, #e3cfbc);
}

.team-modal-portrait.is-initials img {
  display: none;
}

.team-modal-portrait.is-initials .team-modal-initials {
  display: grid;
  place-items: center;
  width: 138px;
  aspect-ratio: 1;
  color: var(--team-ink);
  border: 1px solid rgba(184, 115, 51, .38);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 45px;
  letter-spacing: -.04em;
}

.team-modal-person {
  position: relative;
  z-index: 1;
  width: min(300px, 90%);
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid rgba(245, 196, 130, .28);
}

.team-modal-person strong {
  display: block;
  color: #fff;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 400;
  line-height: 1.24;
  text-wrap: balance;
}

.team-modal-person span {
  display: block;
  margin-top: 10px;
  color: rgba(245, 196, 130, .92);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.team-modal-person::after {
  content: "";
  display: block;
  width: 74px;
  height: 1px;
  margin: 17px auto 0;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 130, .52), transparent);
}

.team-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  justify-content: center;
  padding: clamp(44px, 4.7vw, 58px) clamp(44px, 5.4vw, 72px) clamp(40px, 4.2vw, 54px);
}

.team-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 17px;
  color: var(--team-copper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

.team-modal-kicker::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(184, 115, 51, .46);
  border-radius: 50%;
  background: rgba(255, 251, 247, .86);
  box-shadow: 0 0 0 4px rgba(184, 115, 51, .055);
  color: var(--team-copper);
  font-size: 9px;
  font-weight: 800;
}

.team-modal-kicker::after {
  content: "";
  position: absolute;
  left: 25px;
  bottom: 0;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 115, 51, .58), rgba(184, 115, 51, 0));
}

.team-modal-bio {
  flex: 0 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: visible;
  padding: 0;
  color: var(--team-text);
  font-size: 15.5px;
  line-height: 1.92;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 115, 51, .56) rgba(74, 52, 40, .06);
}

.team-modal-bio::-webkit-scrollbar {
  width: 9px;
}

.team-modal-bio::-webkit-scrollbar-track {
  background: rgba(74, 52, 40, .06);
}

.team-modal-bio::-webkit-scrollbar-thumb {
  background: rgba(184, 115, 51, .56);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.team-modal-bio p {
  margin: 0 0 19px;
  text-align: justify;
  text-align-last: left;
  text-wrap: pretty;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.team-modal-bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .team-slide {
    flex-basis: 92%;
  }

  .team-member-card {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
  }

  .team-carousel-footer {
    width: min(92%, 1160px);
  }

  .team-portrait-frame {
    width: min(340px, 84%);
  }
}

@media (max-width: 920px) {
  .team-section-head {
    align-items: start;
  }

  .team-section-intro {
    width: 100%;
    max-width: 680px;
  }

  .team-slide {
    flex-basis: 94%;
  }

  .team-member-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .88fr);
    min-height: 480px;
  }

  .team-member-copy {
    padding: 34px 34px 38px 42px;
  }

  .team-member-visual {
    padding: 26px 32px;
  }

  .team-portrait-frame {
    width: min(286px, 82%);
  }

  .team-slide.is-prev,
  .team-slide.is-next {
    opacity: .16;
    filter: blur(2px) saturate(.64);
  }

  .team-slide.is-prev {
    transform: perspective(1200px) translateX(18px) rotateY(4deg) scale(.46);
  }

  .team-slide.is-next {
    transform: perspective(1200px) translateX(-18px) rotateY(-4deg) scale(.46);
  }

  .team-slide.is-prev .team-member-card,
  .team-slide.is-next .team-member-card {
    width: clamp(455px, 48vw, 560px);
    min-height: 330px;
  }

  .team-slide.is-prev .team-member-copy,
  .team-slide.is-next .team-member-copy {
    padding: 30px 26px 32px 34px;
  }

  .team-slide.is-prev .team-portrait-frame,
  .team-slide.is-next .team-portrait-frame {
    width: min(182px, 84%);
  }

  .team-modal-dialog {
    grid-template-columns: minmax(290px, .84fr) minmax(0, 1.16fr);
  }

  .team-modal-portrait {
    width: min(284px, 84%);
  }
}

@media (max-width: 820px) {
  .team-section-head {
    margin-bottom: 26px;
  }

  .team-section-intro {
    padding-left: 16px;
    font-size: 14px;
  }

  .team-carousel {
    width: 100%;
  }

  .team-viewport {
    overflow: hidden;
    padding: 12px 0 30px;
  }

  .team-slide {
    flex-basis: calc(100% - 42px);
    opacity: .12;
    filter: blur(1px) saturate(.8);
    transform: scale(.9);
  }

  .team-slide.is-prev,
  .team-slide.is-next {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(.86);
  }

  .team-member-card {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }

  .team-member-copy {
    padding: 30px 26px 34px;
  }

  .team-member-copy::after {
    display: none;
  }

  .team-member-visual {
    min-height: 340px;
    padding: 28px 24px 26px;
    border-bottom: 1px solid rgba(74, 52, 40, .08);
  }

  .team-portrait-frame {
    width: min(286px, 76vw);
  }

  .team-member-copy h3 {
    font-size: clamp(27px, 8.2vw, 36px);
  }

  .team-member-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .team-control {
    top: 226px;
    width: 42px;
    height: 42px;
  }

  .team-control-prev {
    left: -2px;
  }

  .team-control-next {
    right: -2px;
  }

  .team-carousel-footer {
    width: calc(100% - 44px);
    gap: 12px;
  }

  .team-modal {
    align-items: start;
    padding: 12px;
    overflow-y: auto;
    transition: visibility 0s linear .18s;
  }

  .team-modal.is-backdrop-ready,
  .team-modal.is-open {
    transition: visibility 0s linear 0s;
  }

  .team-modal-backdrop {
    opacity: 0;
    background: rgba(31, 21, 15, .74);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: none;
  }

  .team-modal.is-backdrop-ready .team-modal-backdrop,
  .team-modal.is-open .team-modal-backdrop {
    opacity: 1;
  }

  .team-modal-dialog {
    grid-template-columns: 1fr;
    width: min(560px, 100%);
    height: auto;
    max-height: none;
    overflow: visible;
    transition: transform .22s var(--team-ease), opacity .14s ease;
  }

  .team-modal-close {
    z-index: 12;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    color: rgba(255, 253, 249, .92);
    background: rgba(38, 24, 17, .38);
    border: 1px solid rgba(245, 196, 130, .34);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    box-shadow: none;
  }

  .team-modal-close:hover,
  .team-modal-close:focus-visible {
    color: #fff;
    background: #b33a2b;
    border-color: #b33a2b;
    box-shadow: none;
    outline: none;
    transform: none;
  }

  .team-modal-close:active {
    color: #fff;
    background: #8f2d22;
    border-color: #8f2d22;
  }

  .team-modal-visual {
    padding: 42px 26px 34px;
  }

  .team-modal-portrait {
    width: min(274px, 74vw);
  }

  .team-modal-person {
    width: min(290px, 82vw);
  }

  .team-modal-content {
    justify-content: flex-start;
    padding: 34px 28px 32px;
  }

  .team-modal-bio {
    max-height: min(46vh, 370px);
    overflow-y: auto;
    padding-right: 10px;
  }
}

@media (max-width: 820px) and (hover: none) {
  .team-modal-close:hover {
    color: rgba(255, 253, 249, .92);
    background: rgba(38, 24, 17, .38);
    border-color: rgba(245, 196, 130, .34);
  }
}

@media (max-width: 430px) {
  .team-member-copy {
    padding: 28px 22px 32px;
  }

  .team-member-role {
    font-size: 11.5px;
  }

  .team-member-bio-label {
    font-size: 10px;
    letter-spacing: .13em;
  }

  .team-member-excerpt {
    margin-top: 20px;
    font-size: 14.5px;
    line-height: 1.74;
  }

  .team-member-cta {
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: .12em;
  }

  .team-control {
    top: 218px;
    width: 39px;
    height: 39px;
  }

  .team-control-prev {
  left: 4px;
}

.team-control-next {
  right: 4px;
}

  .team-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .team-modal-close svg {
    width: 18px;
    height: 18px;
  }

  .team-carousel-footer {
    width: calc(100% - 30px);
    grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
    gap: 10px;
  }

  .team-modal-content {
    padding-inline: 22px;
  }

  .team-modal-kicker {
    font-size: 10px;
    letter-spacing: .14em;
  }

  .team-member-visual {
    min-height: 310px;
    padding: 24px 20px 22px;
  }

  .team-portrait-frame {
    width: min(260px, 74vw);
  }
}


/* Estado final aprobado: sin tarjetas anterior/siguiente visibles */
.team-viewport {
  overflow: hidden;
}

.team-slide.is-prev,
.team-slide.is-next {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  filter: none !important;
}

.team-slide.is-prev .team-member-card,
.team-slide.is-next .team-member-card {
  pointer-events: none !important;
}

/* Limpieza final de fondos y pseudo-elementos del carrusel */
.team-viewport::before,
.team-viewport::after,
.team-member-card::after,
.team-member-visual::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

@media (prefers-reduced-motion: reduce) {

  .team-track,
  .team-slide,
  .team-member-card,
  .team-portrait-frame,
  .team-control,
  .team-dot,
  .team-modal,
  .team-modal-dialog,
  .team-modal-close {
    transition-duration: .01ms !important;
  }

  .team-modal-backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}