/* Quiénes somos – Funidea (dinámico) */

/* ---------- Hero (estilo Inicio) ---------- */
.fi-qs-hero {
  --qs-navy: #0d2140;
  --qs-orange: #f27a21;
  --qs-muted: #5a6b84;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(34rem, 78vh, 44rem);
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 88% 12%, rgba(242, 122, 33, 0.12), transparent 42%),
    radial-gradient(ellipse at 8% 80%, rgba(13, 33, 64, 0.05), transparent 45%),
    linear-gradient(155deg, #f8fbff 0%, #eef3f9 48%, #f7fafc 100%);
}

.fi-qs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fi-qs-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%);
}

.fi-qs-hero__glow {
  position: absolute;
  inset: auto -12% -30% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(242, 122, 33, 0.14), transparent 62%);
  animation: fi-qs-glow 8s ease-in-out infinite alternate;
}

.fi-qs-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}

.fi-qs-hero__orb--a {
  width: 140px;
  height: 140px;
  top: 18%;
  right: 42%;
  background: radial-gradient(circle, rgba(242, 122, 33, 0.28), transparent 70%);
  animation: fi-qs-float 9s ease-in-out infinite;
}

.fi-qs-hero__orb--b {
  width: 90px;
  height: 90px;
  bottom: 22%;
  left: 8%;
  background: radial-gradient(circle, rgba(13, 33, 64, 0.16), transparent 70%);
  animation: fi-qs-float 11s ease-in-out infinite reverse;
}

.fi-qs-hero__dots {
  position: absolute;
  inset: 12% 8% auto auto;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(13, 33, 64, 0.14) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.45;
}

.fi-qs-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: calc(var(--fi-header-height, 5.5rem) + 1rem) 0 4.25rem;
}

.fi-qs-hero__copy {
  justify-self: end;
  width: 100%;
  max-width: 34rem;
  padding-left: clamp(1.25rem, 5vw, 3.5rem);
  padding-right: 0.5rem;
}

.fi-qs-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qs-orange);
}

.fi-qs-hero__label-icon {
  display: inline-flex;
  color: var(--qs-orange);
}

.fi-qs-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 5vw, 3.55rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--qs-navy);
}

.fi-qs-hero__title-lead {
  display: block;
  font-family: var(--fi-font-script);
  font-weight: 700;
  font-size: 0.78em;
  letter-spacing: -0.01em;
  color: var(--qs-orange);
  line-height: 1.15;
  margin-bottom: 0.1em;
}

.fi-qs-hero__title-main {
  display: inline;
  color: var(--qs-navy);
}

.fi-qs-hero__heart {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.28rem;
  color: var(--qs-orange);
  animation: fi-qs-pulse 2.2s ease-in-out infinite;
}

.fi-qs-hero__heart svg {
  width: 0.5em;
  height: 0.5em;
  fill: currentColor;
  stroke: none;
}

.fi-qs-hero__lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--qs-muted);
}

.fi-qs-hero__accent {
  color: var(--qs-orange);
  font-weight: 700;
}

.fi-qs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.fi-qs-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fi-qs-hero__pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(13, 33, 64, 0.08);
  box-shadow: 0 8px 20px rgba(13, 33, 64, 0.05);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--qs-navy);
}

.fi-qs-hero__pills i {
  color: var(--qs-orange);
  font-size: 0.75rem;
}

/* Stage collage */
.fi-qs-hero__stage {
  position: relative;
  min-height: clamp(320px, 42vw, 460px);
}

.fi-qs-hero__portrait {
  position: absolute;
  inset: 4% 8% 8% 18%;
  margin: 0;
  border-radius: 1.6rem 1.6rem 1.6rem 42%;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(13, 33, 64, 0.18);
}

.fi-qs-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

.fi-qs-hero__stage:hover .fi-qs-hero__portrait img {
  transform: scale(1.06);
}

.fi-qs-hero__mosaic {
  position: absolute;
  width: clamp(140px, 28%, 190px);
  aspect-ratio: 1;
  left: 0;
  bottom: 6%;
  z-index: 2;
}

.fi-qs-hero__mosaic-ring {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 2px dashed rgba(242, 122, 33, 0.45);
  animation: fi-qs-spin 18s linear infinite;
}

.fi-qs-hero__mosaic-photo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 18px 40px rgba(13, 33, 64, 0.18);
}

.fi-qs-hero__mosaic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.fi-qs-hero__mosaic:hover .fi-qs-hero__mosaic-photo img {
  transform: scale(1.08);
}

.fi-qs-hero__spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qs-orange);
  box-shadow: 0 0 12px rgba(242, 122, 33, 0.55);
  animation: fi-qs-spark 2.8s ease-in-out infinite;
  z-index: 3;
}

.fi-qs-hero__spark--1 { top: 8%; right: 6%; }
.fi-qs-hero__spark--2 { top: 42%; right: -4%; width: 6px; height: 6px; animation-delay: -1s; }
.fi-qs-hero__spark--3 { bottom: 14%; right: 10%; width: 10px; height: 10px; background: #fbbf24; animation-delay: -2s; }

.fi-qs-hero__bubble {
  position: absolute;
  top: 4%;
  left: -2%;
  z-index: 3;
  max-width: 13.5rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 16px 36px rgba(13, 33, 64, 0.14);
  animation: fi-qs-float 6.5s ease-in-out infinite;
}

.fi-qs-hero__bubble-icon {
  display: inline-flex;
  color: var(--qs-orange);
  margin-bottom: 0.25rem;
}

.fi-qs-hero__bubble-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.fi-qs-hero__bubble p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--qs-navy);
}

.fi-qs-hero__bubble span {
  color: var(--qs-orange);
  font-style: italic;
}

.fi-qs-hero__chip {
  position: absolute;
  right: 2%;
  bottom: 2%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(13, 33, 64, 0.14);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--qs-navy);
}

.fi-qs-hero__chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 122, 33, 0.12);
  color: var(--qs-orange);
}

.fi-qs-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  line-height: 0;
  color: #fff;
  pointer-events: none;
}

.fi-qs-hero__wave svg {
  width: 100%;
  height: clamp(48px, 7vw, 80px);
  display: block;
}

@keyframes fi-qs-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes fi-qs-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fi-qs-glow {
  from { opacity: 0.55; transform: translateX(0); }
  to { opacity: 1; transform: translateX(-5%); }
}

@keyframes fi-qs-spin {
  to { transform: rotate(360deg); }
}

@keyframes fi-qs-spark {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ---------- Tabs flotantes ---------- */
.fi-qs-hero + .fi-about-subnav-wrap,
.fi-qs-tabs-wrap {
  margin-top: -2.35rem;
  position: relative;
  z-index: 12;
  padding-bottom: 0.35rem;
}

.fi-qs-tabs,
.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.14);
}

.fi-qs-tabs a,
.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-qs-tabs a i,
.fi-about-subnav a i {
  font-size: 1rem;
  line-height: 1;
}

.fi-qs-tabs a:hover,
.fi-about-subnav a:hover {
  color: var(--fi-orange);
  background: rgba(245, 130, 32, 0.06);
}

.fi-qs-tabs a.is-active,
.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);
}

/* ---------- History ---------- */
.fi-qs {
  background: #fff;
}

.fi-qs-history {
  padding: 3.25rem 0 2.25rem;
}

.fi-qs-history__layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 960px) {
  .fi-qs-history__layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.fi-qs-kicker {
  margin: 0 0 0.55rem;
  color: var(--fi-orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fi-qs-history__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fi-navy);
}

.fi-qs-history__title span {
  color: var(--fi-orange);
}

.fi-qs-history__title::after {
  content: '';
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: var(--fi-orange);
}

.fi-qs-history__copy p {
  margin: 0 0 0.95rem;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--fi-text-soft);
}

.fi-qs-history__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.2rem 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--fi-navy);
  color: var(--fi-navy);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.fi-qs-history__cta:hover {
  background: var(--fi-navy);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 50, 96, 0.18);
  text-decoration: none;
}

.fi-qs-history__cta-icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(26, 50, 96, 0.08);
}

.fi-qs-history__cta:hover .fi-qs-history__cta-icon {
  background: rgba(255, 255, 255, 0.18);
}

.fi-qs-history__cta-icon svg {
  width: 14px;
  height: 14px;
}

.fi-qs-history__visual {
  position: relative;
}

.fi-qs-history__media {
  margin: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(26, 50, 96, 0.16);
}

.fi-qs-history__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transition: transform 0.7s ease;
}

.fi-qs-history__visual:hover .fi-qs-history__media img {
  transform: scale(1.04);
}

.fi-qs-stats {
  list-style: none;
  margin: -2.15rem 1rem 0;
  padding: 1rem 0.85rem;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  background: #fff;
  border-radius: 1.1rem;
  border: 1px solid rgba(219, 234, 254, 0.95);
  box-shadow: 0 16px 40px rgba(26, 50, 96, 0.12);
}

.fi-qs-stats__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.3rem 0.35rem;
}

.fi-qs-stats__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  flex-shrink: 0;
}

.fi-qs-stats__icon svg {
  width: 18px;
  height: 18px;
}

.fi-qs-stats__item--orange .fi-qs-stats__icon { background: #fff0e6; color: var(--fi-orange); }
.fi-qs-stats__item--blue .fi-qs-stats__icon { background: #e8effc; color: #3b6bb3; }
.fi-qs-stats__item--green .fi-qs-stats__icon { background: #e8f7ef; color: #2f9d63; }
.fi-qs-stats__item--gold .fi-qs-stats__icon { background: #fff3d8; color: #d4a017; }

.fi-qs-stats__number {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--fi-navy);
  line-height: 1.15;
}

.fi-qs-stats__label {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--fi-text-soft);
  font-weight: 600;
}

/* ---------- Values ---------- */
.fi-qs-values {
  padding: 2.5rem 0 4rem;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(245, 130, 32, 0.08), transparent 42%),
    radial-gradient(ellipse at 92% 20%, rgba(59, 130, 246, 0.07), transparent 38%),
    var(--fi-surface-muted);
}

.fi-qs-values__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

.fi-qs-values__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--fi-navy);
}

.fi-qs-values__head h2 span {
  color: var(--fi-orange);
}

.fi-qs-values__head p {
  margin: 0;
  color: var(--fi-text-soft);
  line-height: 1.65;
}

.fi-qs-values__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .fi-qs-values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .fi-qs-values__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fi-qs-value {
  background: #fff;
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 1.1rem;
  padding: 1.35rem 1.2rem 1.3rem;
  box-shadow: 0 10px 28px rgba(26, 50, 96, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.fi-qs-value:hover {
  box-shadow: 0 18px 42px rgba(26, 50, 96, 0.12);
}

.fi-qs-value__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

.fi-qs-value--orange .fi-qs-value__icon { background: #fff0e6; color: var(--fi-orange); }
.fi-qs-value--blue .fi-qs-value__icon { background: #e8effc; color: #3b6bb3; }
.fi-qs-value--green .fi-qs-value__icon { background: #e8f7ef; color: #2f9d63; }
.fi-qs-value--purple .fi-qs-value__icon { background: #f1e9ff; color: #7a4fcf; }

.fi-qs-value h3 {
  margin: 0 0 0.4rem;
  color: var(--fi-navy);
  font-size: 1.02rem;
  font-weight: 800;
}

.fi-qs-value p {
  margin: 0;
  color: var(--fi-text-soft);
  font-size: 0.86rem;
  line-height: 1.52;
}

/* ---------- Reveal ---------- */
[data-fi-qs-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-fi-qs-reveal="right"] {
  transform: translateX(28px);
}

[data-fi-qs-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .fi-qs-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fi-qs-values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .fi-qs-hero {
    min-height: auto;
  }

  .fi-qs-hero__inner {
    grid-template-columns: 1fr;
    padding-bottom: 3.5rem;
  }

  .fi-qs-hero__copy {
    justify-self: stretch;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .fi-qs-hero__stage {
    min-height: 320px;
    order: -1;
  }

  .fi-qs-hero__portrait {
    inset: 6% 6% 10% 16%;
    border-radius: 1.35rem 1.35rem 38% 1.35rem;
  }

  .fi-qs-hero__bubble {
    left: 0;
    max-width: 12rem;
  }

  .fi-qs-hero__chip {
    right: 0.5rem;
  }

  .fi-qs-history__layout {
    grid-template-columns: 1fr;
  }

  .fi-qs-tabs,
  .fi-about-subnav {
    border-radius: 1.15rem;
    width: 100%;
  }

  .fi-qs-tabs a,
  .fi-about-subnav a {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0.7rem 0.5rem;
    font-size: 0.58rem;
  }
}

@media (max-width: 640px) {
  .fi-qs-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fi-qs-hero__actions .fi-btn {
    justify-content: center;
  }

  .fi-qs-hero__mosaic {
    width: 120px;
  }

  .fi-qs-hero__bubble {
    display: none;
  }

  .fi-qs-stats {
    grid-template-columns: 1fr;
    margin-left: 0.35rem;
    margin-right: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fi-qs-hero__glow,
  .fi-qs-hero__orb,
  .fi-qs-hero__heart,
  .fi-qs-hero__bubble,
  .fi-qs-hero__mosaic-ring,
  .fi-qs-hero__spark {
    animation: none !important;
  }

  [data-fi-qs-reveal],
  .fi-qs-value {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
