/* Equipo e instalaciones */

.ft-ei-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(28rem, 58vh, 36rem);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #0f2348;
}

.ft-ei-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ft-ei-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: ft-ei-ken 20s ease-in-out infinite alternate;
}

.ft-ei-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 24, 48, 0.94) 0%, rgba(14, 30, 58, 0.8) 48%, rgba(14, 30, 58, 0.35) 72%, rgba(14, 30, 58, 0.2) 100%),
    radial-gradient(ellipse at 18% 26%, rgba(224, 35, 41, 0.15), transparent 42%);
}

.ft-ei-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 3.75rem;
}

.ft-ei-hero-copy {
  max-width: 48rem;
}

.ft-ei-hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 4.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ft-ei-hero-title .ft-heart {
  color: var(--ft-red);
  margin-left: 0.35rem;
  font-size: 0.72em;
  vertical-align: middle;
  display: inline-flex;
  animation: ft-ei-pulse 2.4s ease-in-out infinite;
}

.ft-ei-hero-lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.ft-ei-hero-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.ft-ei-hero-features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  opacity: 0;
  transform: translateY(0.55rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ft-ei-hero-features li.is-visible {
  opacity: 1;
  transform: none;
}

.ft-ei-hero-feature-icon {
  display: inline-flex;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.ft-ei-hero-features strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.18rem;
}

.ft-ei-hero-features span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.ft-ei-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  line-height: 0;
  color: #f5f7fb;
  pointer-events: none;
}

.ft-ei-hero-wave svg {
  width: 100%;
  height: 70px;
  display: block;
}

.ft-ei-hero + .ft-subnav {
  position: relative;
  z-index: 6;
  margin-top: -2.55rem;
  background: transparent;
  border: 0;
  padding: 0 1rem 0.35rem;
}

.ft-ei-hero + .ft-subnav .ft-subnav-inner {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: max-content;
  margin: 0 auto;
  padding: 0.45rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(18, 38, 72, 0.12);
}

/* Main split */
.ft-ei-main {
  padding: 2.75rem 0 1.5rem;
  background: #f5f7fb;
}

.ft-ei-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.ft-ei-team,
.ft-ei-facilities,
.ft-ei-people-head,
.ft-ei-person {
  opacity: 0;
  transform: translateY(0.7rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ft-ei-team.is-visible,
.ft-ei-facilities.is-visible,
.ft-ei-people-head.is-visible,
.ft-ei-person.is-visible {
  opacity: 1;
  transform: none;
}

.ft-ei-kicker {
  margin: 0 0 0.5rem;
  color: var(--ft-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ft-ei-team-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ft-navy);
}

.ft-ei-team-title span {
  color: var(--ft-red);
}

.ft-ei-team-text {
  margin: 0 0 1.15rem;
  max-width: 30rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--ft-text-soft);
}

.ft-ei-stats {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ft-ei-stat {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 0.9rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 40, 80, 0.07);
  box-shadow: 0 10px 22px rgba(18, 38, 72, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ft-ei-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(18, 38, 72, 0.1);
}

.ft-ei-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  font-size: 1rem;
  line-height: 1;
}

.ft-ei-stat-icon .ft-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 1em;
  line-height: 1;
}

.ft-ei-stat[data-tone='red'] .ft-ei-stat-icon { background: var(--ft-green-soft); color: var(--ft-red); }
.ft-ei-stat[data-tone='blue'] .ft-ei-stat-icon { background: #e8effc; color: #3b6bb3; }
.ft-ei-stat[data-tone='green'] .ft-ei-stat-icon { background: #e8f7ef; color: #2f9d63; }
.ft-ei-stat[data-tone='gold'] .ft-ei-stat-icon { background: #fff3d8; color: #d4a017; }

.ft-ei-stat[data-tone='red'] strong { color: var(--ft-red); }
.ft-ei-stat[data-tone='blue'] strong { color: #3b6bb3; }
.ft-ei-stat[data-tone='green'] strong { color: #2f9d63; }
.ft-ei-stat[data-tone='gold'] strong { color: #d4a017; }

.ft-ei-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.ft-ei-stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ft-text-soft);
}

.ft-ei-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.15rem 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--ft-navy);
  background: #fff;
  color: var(--ft-navy);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.ft-ei-btn:hover {
  background: var(--ft-navy);
  color: #fff;
  transform: translateY(-2px);
}

.ft-ei-btn-icon {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(15, 40, 80, 0.08);
}

.ft-ei-btn:hover .ft-ei-btn-icon {
  background: rgba(255, 255, 255, 0.18);
}

.ft-ei-facilities-head {
  margin-bottom: 0.9rem;
}

.ft-ei-facilities-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: var(--ft-navy);
}

.ft-ei-facilities-head h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--ft-red);
}

.ft-ei-facilities-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ft-ei-featured {
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(18, 38, 72, 0.1);
}

.ft-ei-featured img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
}

.ft-ei-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.ft-ei-gallery-item {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.95rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(18, 38, 72, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ft-ei-gallery-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 28px rgba(18, 38, 72, 0.14);
}

.ft-ei-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.ft-ei-gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  background: linear-gradient(transparent, rgba(8, 18, 36, 0.78));
  color: #fff;
  text-align: left;
}

.ft-ei-gallery-icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ft-navy);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ft-ei-gallery-label {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

/* People */
.ft-ei-people {
  padding: 1.5rem 0 3.75rem;
  background: #fff;
}

.ft-ei-people-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.ft-ei-people-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--ft-navy);
}

.ft-ei-people-head p {
  margin: 0;
  color: var(--ft-text-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

.ft-ei-people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ft-ei-person {
  border-radius: 1.1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 40, 80, 0.07);
  box-shadow: 0 12px 28px rgba(18, 38, 72, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ft-ei-person:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(18, 38, 72, 0.12);
}

.ft-ei-person-media {
  overflow: hidden;
}

.ft-ei-person-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}

.ft-ei-person:hover .ft-ei-person-media img {
  transform: scale(1.06);
}

.ft-ei-person-body {
  padding: 0.95rem 1rem 1.1rem;
}

.ft-ei-person-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ft-navy);
}

.ft-ei-person-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ft-text-soft);
  font-weight: 600;
}

.ft-ei-board-head {
  margin-top: 3.25rem;
}

.ft-ei-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ft-ei-board-card {
  background: #fff;
  border: 1px solid rgba(18, 38, 72, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 24px rgba(18, 38, 72, 0.06);
}

.ft-ei-board-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ft-navy);
}

.ft-ei-board-body p {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  color: var(--ft-text-soft);
  font-weight: 600;
}

.ft-ei-board-phone {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ft-coral, #e85a4f);
  text-decoration: none;
}

.ft-ei-board-phone:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* Lightbox */
.ft-ei-lightbox {
  border: 0;
  padding: 0;
  max-width: min(64rem, calc(100vw - 1.5rem));
  background: transparent;
}

.ft-ei-lightbox::backdrop {
  background: rgba(8, 16, 32, 0.72);
  backdrop-filter: blur(5px);
}

.ft-ei-lightbox-panel {
  position: relative;
  background: #0f1b33;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ft-ei-lightbox-media {
  margin: 0;
}

.ft-ei-lightbox-media img {
  width: 100%;
  max-height: min(75vh, 40rem);
  object-fit: contain;
  display: block;
  background: #0b1528;
}

.ft-ei-lightbox-media figcaption {
  padding: 0.85rem 1.1rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.ft-ei-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ft-navy);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ft-ei-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ft-navy);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.ft-ei-lightbox-nav--prev { left: 0.75rem; }
.ft-ei-lightbox-nav--next { right: 0.75rem; }

@keyframes ft-ei-ken {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@keyframes ft-ei-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@media (max-width: 1100px) {
  .ft-ei-hero-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-ei-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-ei-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ft-ei-main-grid,
  .ft-ei-facilities-layout {
    grid-template-columns: 1fr;
  }

  .ft-ei-hero + .ft-subnav .ft-subnav-inner {
    border-radius: 1.25rem;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .ft-ei-hero-features,
  .ft-ei-stats,
  .ft-ei-people-grid,
  .ft-ei-board-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-ei-hero-bg img,
  .ft-ei-hero-title .ft-heart,
  .ft-ei-hero-features li,
  .ft-ei-team,
  .ft-ei-facilities,
  .ft-ei-people-head,
  .ft-ei-person {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
