/* Empresas e instituciones */

.ft-emp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(28rem, 58vh, 36rem);
  background: linear-gradient(135deg, #0f2348 0%, #1a3260 58%, #243e72 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.ft-emp-hero-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  flex: 1 1 auto;
  min-height: 0;
}

.ft-emp-hero-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 4.75rem 0 1.5rem;
}

.ft-emp-hero-copy {
  width: 100%;
  max-width: 40rem;
  padding-left: clamp(1.25rem, 6vw, 5rem);
  padding-right: 1.5rem;
}

.ft-emp-hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ft-emp-hero-title .ft-heart {
  color: var(--ft-red);
  margin-left: 0.35rem;
  font-size: 0.82em;
  vertical-align: middle;
}

.ft-emp-hero-title .ft-heart .ft-icon {
  width: 1em;
  height: 1em;
  font-size: 1em;
}

.ft-emp-hero-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.ft-emp-hero-features-wrap {
  position: relative;
  z-index: 3;
  padding: 0 clamp(1.25rem, 5vw, 4.5rem) 2.75rem;
}

.ft-emp-hero-features {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 72rem;
}

.ft-emp-hero-features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: center;
  opacity: 0;
  transform: translateY(0.55rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ft-emp-hero-features li.is-visible {
  opacity: 1;
  transform: none;
}

.ft-emp-hero-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  color: #fff;
  flex-shrink: 0;
  line-height: 0;
}

.ft-emp-hero-svg {
  display: block;
  width: 2.95rem;
  height: 2.95rem;
}

.ft-emp-hero-feature-icon .ft-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  font-size: 2.1rem;
  line-height: 1;
}

.ft-emp-hero-feature-copy strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.22rem;
  color: #fff;
}

.ft-emp-hero-feature-copy span {
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.ft-emp-hero-media {
  position: relative;
  min-height: 100%;
}

.ft-emp-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.ft-emp-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  line-height: 0;
  color: #fff;
  pointer-events: none;
}

.ft-emp-hero-wave svg {
  width: 100%;
  height: 70px;
  display: block;
}

.ft-emp-hero + .ft-subnav {
  position: relative;
  z-index: 6;
  margin-top: -2.55rem;
  background: transparent;
  border: 0;
  padding: 0 1rem 0.35rem;
}

.ft-emp-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);
}

/* About */
.ft-emp-about {
  padding: 3rem 0 1.5rem;
  background: #fff;
}

.ft-emp-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  opacity: 0;
  transform: translateY(0.85rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ft-emp-about-layout.is-visible {
  opacity: 1;
  transform: none;
}

.ft-emp-about-kicker {
  margin: 0 0 0.65rem;
  color: var(--ft-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ft-emp-about-title {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ft-navy);
}

.ft-emp-about-title span {
  color: var(--ft-red);
}

.ft-emp-about-text {
  margin: 0 0 1.35rem;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ft-text-soft);
}

.ft-emp-about-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--ft-navy);
  background: #fff;
  color: var(--ft-navy);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ft-emp-about-cta .ft-icon {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.25rem;
}

.ft-emp-about-cta:hover {
  background: var(--ft-navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 38, 72, 0.16);
}

.ft-emp-about-visual {
  position: relative;
}

.ft-emp-about-media {
  margin: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 40, 80, 0.14);
}

.ft-emp-about-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.ft-emp-about-layout:hover .ft-emp-about-media img {
  transform: scale(1.04);
}

.ft-emp-about-quote {
  position: absolute;
  right: -0.75rem;
  bottom: 1.25rem;
  z-index: 2;
  width: min(16.5rem, 78%);
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 30px rgba(18, 38, 72, 0.16);
  animation: ft-emp-float 4.5s ease-in-out infinite;
}

.ft-emp-about-quote-mark {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ft-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.ft-emp-about-quote p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ft-navy);
}

.ft-emp-about-quote-heart {
  color: var(--ft-red);
  font-size: 1.1rem;
}

.ft-emp-about-quote-heart .ft-icon {
  width: 1.1rem;
  height: 1.1rem;
  font-size: 1.1rem;
}

/* Stats */
.ft-emp-stats {
  padding: 1.5rem 0 1rem;
  background: #fff;
}

.ft-emp-stats-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: 1.15rem;
  background: #f4f7fb;
  border: 1px solid rgba(15, 40, 80, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(0.7rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ft-emp-stats-panel.is-visible {
  opacity: 1;
  transform: none;
}

.ft-emp-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 1.25rem 1.15rem;
  transition: background 0.25s ease;
}

.ft-emp-stat + .ft-emp-stat {
  border-left: 1px solid rgba(15, 40, 80, 0.08);
}

.ft-emp-stat:hover {
  background: #fff;
}

.ft-emp-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
}

.ft-emp-stat-icon .ft-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  font-size: 1.45rem;
  line-height: 1;
}

.ft-emp-stat-icon .ft-icon::before {
  line-height: 1;
}

.ft-emp-stat--red .ft-emp-stat-icon { background: #ffe8ea; color: #e02329; }
.ft-emp-stat--blue .ft-emp-stat-icon { background: #e8f0ff; color: #2563eb; }
.ft-emp-stat--green .ft-emp-stat-icon { background: #e6f7ef; color: #22a06b; }
.ft-emp-stat--orange .ft-emp-stat-icon { background: #fff0e4; color: #e07020; }

.ft-emp-stat-copy strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ft-navy);
  line-height: 1.1;
}

.ft-emp-stat-copy span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ft-text-soft);
}

/* Partners carousel */
.ft-emp-partners {
  padding: 2.5rem 0 3.5rem;
  background: #fff;
}

.ft-emp-partners-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.35rem;
}

.ft-emp-partners-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--ft-navy);
}

.ft-emp-partners-title .ft-icon {
  color: var(--ft-red);
  width: 1.45rem;
  height: 1.45rem;
  font-size: 1.45rem;
}

.ft-emp-partners-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #3b6bb3;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.ft-emp-partners-link .ft-icon,
.ft-emp-partners-link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.ft-emp-partners-link:hover {
  color: var(--ft-red);
}

.ft-emp-partners-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.ft-emp-partners-viewport {
  overflow: hidden;
  border-radius: 1rem;
}

.ft-emp-partners-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ft-emp-partner-card {
  flex: 0 0 clamp(9.5rem, 16vw, 11.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.15rem 0.9rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 40, 80, 0.08);
  box-shadow: 0 10px 24px rgba(20, 40, 80, 0.06);
  text-decoration: none;
  color: inherit;
  text-align: center;
  opacity: 0;
  transform: translateY(0.7rem);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.45s ease, border-color 0.25s ease;
}

.ft-emp-partner-card.is-visible {
  opacity: 1;
  transform: none;
}

.ft-emp-partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(20, 40, 80, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

.ft-emp-partner-logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 3.5rem;
}

.ft-emp-partner-logo img {
  max-width: 100%;
  max-height: 3rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ft-emp-partner-wordmark {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #1a3260, #2a4d8c);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ft-emp-partner-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ft-navy);
  line-height: 1.3;
}

.ft-emp-partner-sector {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ft-text-soft);
}

.ft-emp-partners-nav {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--ft-navy);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(18, 38, 72, 0.18);
  transition: background 0.25s ease, transform 0.25s ease;
}

.ft-emp-partners-nav:hover {
  background: var(--ft-red);
  transform: scale(1.06);
}

/* Actividades y convenios */
.ft-emp-activities {
  padding: 1rem 0 3.75rem;
  background: #f5f7fb;
}

.ft-emp-activities-head {
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.ft-emp-activities-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--ft-navy);
  line-height: 1.25;
}

.ft-emp-activities-title .ft-icon {
  color: var(--ft-red);
  width: 1.45rem;
  height: 1.45rem;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.ft-emp-activities-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ft-text-soft);
}

.ft-emp-activities-grid .ft-card {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.3s ease;
}

.ft-emp-activities-grid .ft-card.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes ft-emp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1024px) {
  .ft-emp-stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-emp-stat:nth-child(3),
  .ft-emp-stat:nth-child(4) {
    border-top: 1px solid rgba(15, 40, 80, 0.08);
  }

  .ft-emp-stat:nth-child(odd) {
    border-left: 0;
  }

  .ft-emp-stat:nth-child(even) {
    border-left: 1px solid rgba(15, 40, 80, 0.08);
  }
}

@media (max-width: 900px) {
  .ft-emp-hero {
    min-height: 0;
  }

  .ft-emp-hero-top {
    grid-template-columns: 1fr;
  }

  .ft-emp-hero-media {
    min-height: 15rem;
    order: -1;
  }

  .ft-emp-hero-media img {
    position: relative;
    height: 15rem;
    clip-path: none;
  }

  .ft-emp-hero-panel {
    padding: 2.5rem 0 1rem;
  }

  .ft-emp-hero-features {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    max-width: 28rem;
    margin-left: 0;
  }

  .ft-emp-hero-features-wrap {
    padding-bottom: 3.25rem;
  }

  .ft-emp-about-layout {
    grid-template-columns: 1fr;
  }

  .ft-emp-about-quote {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .ft-emp-hero + .ft-subnav .ft-subnav-inner {
    border-radius: 1.25rem;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .ft-emp-hero-features {
    max-width: none;
  }

  .ft-emp-stats-panel {
    grid-template-columns: 1fr;
  }

  .ft-emp-stat,
  .ft-emp-stat + .ft-emp-stat,
  .ft-emp-stat:nth-child(even),
  .ft-emp-stat:nth-child(3),
  .ft-emp-stat:nth-child(4) {
    border-left: 0;
    border-top: 1px solid rgba(15, 40, 80, 0.08);
  }

  .ft-emp-stat:first-child {
    border-top: 0;
  }

  .ft-emp-partners-nav--prev {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-emp-about-quote,
  .ft-emp-hero-features li,
  .ft-emp-about-layout,
  .ft-emp-stats-panel,
  .ft-emp-partner-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
