/* Misión, visión y valores – Funidea */

/* ---------- Subnav institucional (tabs flotantes) ---------- */
.fi-page-mision .fi-mv-hero + .fi-about-subnav-wrap {
  margin-top: -1.85rem;
  position: relative;
  z-index: 12;
  padding-bottom: 0.35rem;
}

.fi-page-mision .fi-about-subnav-wrap .fi-container {
  display: flex;
  justify-content: center;
}

.fi-page-mision .fi-about-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  gap: 0.2rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(26, 50, 96, 0.16);
}

.fi-page-mision .fi-about-subnav a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 6.25rem;
  padding: 0.8rem 1rem 0.7rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7b8798;
  text-decoration: none;
  border-radius: 999px;
  background: transparent;
  border: 0;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.fi-page-mision .fi-about-subnav a i {
  font-size: 1rem;
  line-height: 1;
}

.fi-page-mision .fi-about-subnav a:hover {
  color: #f58220;
  background: rgba(245, 130, 32, 0.06);
}

.fi-page-mision .fi-about-subnav a.is-active {
  color: #fff;
  background: linear-gradient(145deg, #f58220, #ff9a45);
  box-shadow: 0 8px 20px rgba(245, 130, 32, 0.32);
}

@media (max-width: 720px) {
  .fi-page-mision .fi-about-subnav {
    border-radius: 1.15rem;
    width: 100%;
  }

  .fi-page-mision .fi-about-subnav a {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0.7rem 0.45rem;
    font-size: 0.58rem;
  }
}

/* ---------- Hero light + cards + stats ---------- */
.fi-mv-hero--light {
  position: relative;
  isolation: isolate;
  background: #f7fafc;
  color: var(--fi-navy);
  overflow: visible;
}

.fi-mv-hero__stage {
  position: relative;
  overflow: visible;
  min-height: clamp(520px, 72vh, 640px);
  background:
    radial-gradient(ellipse at 12% 80%, rgba(125, 211, 252, 0.18), transparent 42%),
    linear-gradient(135deg, #f8fbff 0%, #eef4fb 55%, #f7fafc 100%);
}

.fi-mv-hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: min(58%, 760px);
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0 0 0 42px;
}

.fi-mv-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  will-change: transform;
}

.fi-mv-hero__soft {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #f7fafc 0%, #f7fafc 38%, rgba(247, 250, 252, 0.82) 52%, rgba(247, 250, 252, 0.2) 72%, transparent 88%),
    linear-gradient(180deg, transparent 70%, rgba(247, 250, 252, 0.65) 100%);
  pointer-events: none;
}

.fi-mv-hero__dots {
  position: absolute;
  left: 7%;
  bottom: 28%;
  width: 130px;
  height: 90px;
  z-index: 1;
  background-image: radial-gradient(rgba(26, 50, 96, 0.16) 1.4px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.55;
  pointer-events: none;
}

.fi-mv-hero__blob {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  filter: blur(0.2px);
}

.fi-mv-hero__blob--a {
  width: 120px;
  height: 80px;
  left: 34%;
  top: 18%;
  background: rgba(125, 211, 252, 0.28);
  border-radius: 60% 40% 50% 50%;
  animation: fi-mv-float 8s ease-in-out infinite;
}

.fi-mv-hero__blob--b {
  width: 70px;
  height: 70px;
  left: 8%;
  top: 42%;
  background: rgba(245, 130, 32, 0.1);
  animation: fi-mv-float 7s ease-in-out infinite;
  animation-delay: -2s;
}

.fi-mv-hero__inner {
  position: relative;
  z-index: 5;
  padding: calc(var(--fi-header-height) + 1.75rem) 0 0;
}

.fi-mv-hero__stage .fi-mv-hero__cards {
  margin-bottom: -2.75rem;
}

.fi-mv-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--fi-text-soft);
}

.fi-mv-hero__crumbs a {
  color: var(--fi-navy);
  text-decoration: none;
  font-weight: 600;
}

.fi-mv-hero__crumbs a:hover {
  color: var(--fi-orange);
}

.fi-mv-hero__copy {
  position: relative;
  max-width: 34rem;
}

.fi-mv-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 5vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fi-navy);
  max-width: 12ch;
}

.fi-mv-hero__accent {
  position: relative;
  display: inline-block;
  color: var(--fi-orange);
}

.fi-mv-hero__spark {
  position: absolute;
  left: calc(100% - 0.1rem);
  top: -0.55rem;
  color: var(--fi-orange);
}

.fi-mv-hero__heart {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.15em;
  color: var(--fi-orange);
  animation: fi-mv-pulse 1.8s ease-in-out infinite;
}

.fi-mv-hero__heart svg {
  width: 0.5em;
  height: 0.5em;
  fill: currentColor;
  stroke: none;
}

.fi-mv-hero__doodle {
  position: absolute;
  right: -0.5rem;
  top: 2.4rem;
  opacity: 0.9;
  animation: fi-mv-float 6s ease-in-out infinite;
}

.fi-mv-hero__text {
  margin: 0;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fi-text-soft);
}

.fi-mv-hero__cards {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
  position: relative;
  z-index: 6;
}

@media (min-width: 800px) {
  .fi-mv-hero__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 52rem;
    margin-top: 2.75rem;
  }
}

.fi-mv-teaser {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.2rem 1.2rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  box-shadow: 0 16px 40px rgba(26, 50, 96, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fi-mv-teaser:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(26, 50, 96, 0.16);
  text-decoration: none;
  color: inherit;
}

.fi-mv-teaser__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.35rem;
  box-shadow: 0 8px 18px rgba(26, 50, 96, 0.16);
}

.fi-mv-teaser--orange .fi-mv-teaser__icon { background: linear-gradient(145deg, #f58220, #ff9a45); }
.fi-mv-teaser--blue .fi-mv-teaser__icon { background: linear-gradient(145deg, #2563eb, #3b82f6); }
.fi-mv-teaser--green .fi-mv-teaser__icon { background: linear-gradient(145deg, #16a34a, #22c55e); }

.fi-mv-teaser__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.fi-mv-teaser strong {
  font-size: 1.05rem;
  color: var(--fi-navy);
  font-weight: 800;
}

.fi-mv-teaser span:last-child {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--fi-text-soft);
}

/* Stats band */
.fi-mv-stats {
  position: relative;
  z-index: 2;
  margin-top: 0;
  background: linear-gradient(135deg, #0f2348 0%, #1a3260 55%, #243f72 100%);
  color: #fff;
  padding: 0 0 2.25rem;
}

.fi-mv-stats__wave {
  position: relative;
  z-index: 1;
  color: #f7fafc;
  line-height: 0;
  pointer-events: none;
}

.fi-mv-stats__wave svg {
  display: block;
  width: 100%;
  height: clamp(48px, 7vw, 90px);
}

.fi-mv-stats__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  padding-top: 2.5rem;
}

@media (min-width: 800px) {
  .fi-mv-stats__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .fi-mv-stats__item + .fi-mv-stats__item {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    padding-left: 1.5rem;
  }
}

.fi-mv-stats__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.35rem 0.25rem;
}

.fi-mv-stats__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.fi-mv-stats__item--orange .fi-mv-stats__icon { background: linear-gradient(145deg, #f58220, #ff9a45); }
.fi-mv-stats__item--blue .fi-mv-stats__icon { background: linear-gradient(145deg, #2563eb, #3b82f6); }
.fi-mv-stats__item--green .fi-mv-stats__icon { background: linear-gradient(145deg, #16a34a, #22c55e); }

.fi-mv-stats__icon svg {
  width: 18px;
  height: 18px;
}

.fi-mv-stats__number {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.fi-mv-stats__label {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.fi-mv-stats__note {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.fi-mv-stats__item--orange .fi-mv-stats__note {
  color: #ffb46a;
}

@media (max-width: 899px) {
  .fi-mv-hero__photo {
    width: 100%;
    height: 46%;
    opacity: 0.9;
    border-radius: 0;
  }

  .fi-mv-hero__soft {
    background:
      linear-gradient(180deg, transparent 0%, rgba(247, 250, 252, 0.35) 28%, #f7fafc 58%, #f7fafc 100%);
  }

  .fi-mv-hero__inner {
    padding-top: calc(var(--fi-header-height) + 42vw);
  }

  .fi-mv-hero__doodle {
    display: none;
  }

  .fi-mv-hero__stage .fi-mv-hero__cards {
    margin-bottom: -1.75rem;
  }

  .fi-mv-stats__inner {
    padding-top: 2.25rem;
  }
}

@keyframes fi-mv-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Pillars ---------- */
.fi-mv {
  background: #fff;
}

.fi-mv-pillars {
  padding: 3.25rem 0 1.5rem;
  background: #fff;
  margin-top: 0;
}

.fi-mv-pillars__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .fi-mv-pillars__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.fi-mv-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.85rem 1.6rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(219, 234, 254, 0.95);
  box-shadow: 0 14px 36px rgba(26, 50, 96, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.fi-mv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(26, 50, 96, 0.14);
}

.fi-mv-card__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
}

.fi-mv-card--mision .fi-mv-card__glow {
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.22), transparent 70%);
}

.fi-mv-card--vision .fi-mv-card__glow {
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
}

.fi-mv-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(26, 50, 96, 0.18);
}

.fi-mv-card--mision .fi-mv-card__icon {
  background: linear-gradient(145deg, #f58220, #ff9a45);
}

.fi-mv-card--vision .fi-mv-card__icon {
  background: linear-gradient(145deg, #2563eb, #3b82f6);
}

.fi-mv-card__kicker {
  margin: 0 0 0.45rem;
  color: var(--fi-orange);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fi-mv-card__kicker--light {
  color: rgba(255, 255, 255, 0.78);
}

.fi-mv-card h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--fi-navy);
  font-weight: 800;
  line-height: 1.2;
}

.fi-mv-card__text {
  margin: 0;
  color: var(--fi-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.fi-mv-purpose {
  display: grid;
  gap: 1.15rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.75rem 1.6rem;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 90% 20%, rgba(245, 130, 32, 0.22), transparent 45%),
    linear-gradient(125deg, #122648 0%, #1a3260 55%, #243f72 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(18, 38, 72, 0.28);
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .fi-mv-purpose {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 2rem 2.25rem;
  }
}

.fi-mv-purpose__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 130, 32, 0.95);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 10px 24px rgba(245, 130, 32, 0.35);
}

.fi-mv-purpose__copy h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
}

.fi-mv-purpose__copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  max-width: 48rem;
}

/* ---------- Values ---------- */
.fi-mv-values {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(245, 130, 32, 0.07), transparent 42%),
    radial-gradient(ellipse at 92% 40%, rgba(59, 130, 246, 0.07), transparent 40%),
    var(--fi-surface-muted);
}

.fi-mv-kicker {
  margin: 0 0 0.65rem;
  color: var(--fi-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fi-mv-values__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.fi-mv-values__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--fi-navy);
  font-weight: 800;
}

.fi-mv-values__head h2 span {
  color: var(--fi-orange);
}

.fi-mv-values__head p {
  margin: 0;
  color: var(--fi-text-soft);
  line-height: 1.65;
}

.fi-mv-values__grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 700px) {
  .fi-mv-values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .fi-mv-values__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fi-mv-value {
  position: relative;
  background: #fff;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 20px;
  padding: 1.45rem 1.25rem 1.35rem;
  box-shadow: 0 10px 28px rgba(26, 50, 96, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fi-mv-value:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 42px rgba(26, 50, 96, 0.12);
}

.fi-mv-value__num {
  position: absolute;
  right: 0.85rem;
  top: 0.65rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.08;
  color: var(--fi-navy);
}

.fi-mv-value__icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.9rem;
  box-shadow: 0 8px 18px rgba(26, 50, 96, 0.16);
}

.fi-mv-value--orange .fi-mv-value__icon { background: linear-gradient(145deg, #f58220, #ff9a45); }
.fi-mv-value--blue .fi-mv-value__icon { background: linear-gradient(145deg, #2563eb, #3b82f6); }
.fi-mv-value--green .fi-mv-value__icon { background: linear-gradient(145deg, #16a34a, #22c55e); }
.fi-mv-value--purple .fi-mv-value__icon { background: linear-gradient(145deg, #7c3aed, #8b5cf6); }
.fi-mv-value--teal .fi-mv-value__icon { background: linear-gradient(145deg, #0d9488, #14b8a6); }
.fi-mv-value--coral .fi-mv-value__icon { background: linear-gradient(145deg, #e11d48, #fb7185); }

.fi-mv-value h3 {
  margin: 0 0 0.45rem;
  color: var(--fi-navy);
  font-size: 1.08rem;
}

.fi-mv-value p {
  margin: 0;
  color: var(--fi-text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ---------- Reveal ---------- */
[data-fi-mv-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-fi-mv-reveal="left"] { transform: translateX(-28px); }
[data-fi-mv-reveal="right"] { transform: translateX(28px); }

[data-fi-mv-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes fi-mv-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

@media (prefers-reduced-motion: reduce) {
  .fi-mv-hero__photo img,
  .fi-mv-hero__heart,
  .fi-mv-hero__blob,
  .fi-mv-hero__doodle {
    animation: none;
  }

  [data-fi-mv-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
