/* Experiencia interactiva — ¿Quiénes somos? (GSAP) */
.quienes-somos-page,
.qs-hero-page {
  --inst-bg: #f8fafc;
  --inst-text-dark: #0f172a;
  --inst-text-muted: #64748b;
  --inst-water-primary: #0284c7;
  --inst-water-light: #38bdf8;
  --inst-water-bg: #f0f9ff;
  --inst-card-border: #e2e8f0;
  --inst-accent-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --site-header-h: 64px;
  --qs-shrink: 0;
}

.qs-hero-track {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - var(--site-header-h));
}

.qs-hero {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  height: calc(100svh - var(--site-header-h));
  min-height: 176px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  overflow-anchor: none;
  width: 100%;
}

.quienes-somos-page .qs-hero.has-photo {
  background: #07192c;
}

.qs-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.quienes-somos-page .qs-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(6, 22, 42, 0.82) 0%,
      rgba(8, 40, 78, 0.58) 42%,
      rgba(10, 37, 64, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(6, 18, 36, 0.18) 0%, rgba(6, 18, 36, 0.42) 100%);
}

.quienes-somos-page .qs-hero.has-photo::after {
  opacity: calc(0.45 - var(--qs-shrink) * 0.35);
}

.quienes-somos-page .qs-hero.has-photo .qs-hero-deco {
  opacity: calc(0.35 - var(--qs-shrink) * 0.3);
}

.qs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 46px,
    rgba(255, 255, 255, 0.045) 46px 47px
  );
  opacity: calc(1 - var(--qs-shrink) * 0.65);
}

.qs-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, calc(8vh - 4vh * var(--qs-shrink)), 96px) 1.5rem;
}

.qs-hero-title {
  font-size: clamp(2rem, calc(4.2rem - 2rem * var(--qs-shrink)), 4.2rem);
  margin: 0;
  max-width: 16ch;
  text-shadow: 0 8px 28px rgba(2, 16, 40, 0.28);
}

.qs-hero-accent {
  display: block;
  width: clamp(48px, calc(88px - 28px * var(--qs-shrink)), 88px);
  height: 5px;
  margin: 1.1rem 0 1.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #7dd3fc, #ffffff);
}

.qs-hero-subtitle {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(0.95rem, calc(1.2rem - 0.18rem * var(--qs-shrink)), 1.2rem);
  line-height: 1.65;
  color: rgba(219, 234, 254, 0.95);
  opacity: calc(1 - var(--qs-shrink) * 0.35);
}

.qs-hero-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: calc(1 - var(--qs-shrink));
}

.qs-hero-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.qs-hero-ring-1 {
  width: min(58vw, 640px);
  height: min(58vw, 640px);
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
}

.qs-hero-ring-2 {
  width: min(40vw, 430px);
  height: min(40vw, 430px);
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  border-color: rgba(125, 211, 252, 0.28);
}

.qs-hero-ring-3 {
  width: min(22vw, 240px);
  height: min(22vw, 240px);
  right: 16%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(0, 163, 224, 0.22), transparent 68%);
  border-color: rgba(255, 255, 255, 0.22);
}

.qs-hero-chevron {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  opacity: calc(1 - var(--qs-shrink) * 1.4);
  animation: qsHeroChevron 1.8s ease-in-out infinite;
}

@keyframes qsHeroChevron {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 8px; }
}

.qs-hero.is-compact .qs-hero-chevron,
.qs-hero.is-static .qs-hero-chevron {
  display: none;
}

.qs-hero.is-static {
  height: auto;
  min-height: 200px;
  position: relative;
  top: auto;
}

.quienes-somos-page.is-reduced-motion .qs-hero-track,
.qs-hero-page.is-reduced-motion .qs-hero-track,
.qs-hero-track:has(.qs-hero.is-static) {
  height: auto;
  overflow: visible;
}

.inst-about-progress-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 4px;
  background: rgba(224, 242, 254, 0.35);
}

.inst-about-progress-track {
  height: 100%;
}

.inst-about-progress-bar {
  height: 100%;
  width: 0;
  background: var(--inst-accent-gradient);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.45);
}

.inst-about-experience {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.08), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(6, 182, 212, 0.07), transparent 24%),
    var(--inst-bg);
  color: var(--inst-text-dark);
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  overflow-anchor: none;
  overflow-x: clip;
  max-width: 100%;
}

.inst-about-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 3.25rem;
}

.inst-about-section {
  margin-bottom: 2.1rem;
}

.inst-about-intro-card {
  background: #ffffff;
  border: 1px solid var(--inst-card-border);
  border-radius: 22px;
  padding: 1.6rem 1.7rem 1.75rem;
  box-shadow: 0 10px 30px -12px rgba(2, 40, 80, 0.08);
}

.inst-about-section--last {
  margin-bottom: 0;
}

.inst-about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--inst-water-bg);
  color: var(--inst-water-primary);
  border: 1px solid #bae6fd;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.inst-about-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--inst-water-primary);
  border-radius: 50%;
}

.inst-about-perspective-text {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--inst-text-dark);
  perspective: 1000px;
}

.inst-about-intro-block + .inst-about-intro-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.inst-about-intro-heading {
  margin: 0 0 0.85rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0A3B66;
}

.inst-about-intro-p {
  margin: 0 0 0.95rem;
  color: #334155;
}

.inst-about-intro-p:last-child {
  margin-bottom: 0;
}

.inst-word-3d {
  display: inline-block;
  transform-origin: bottom center;
  transform: rotateX(-42deg) translateY(10px);
  opacity: 0.4;
  margin-right: 0.28em;
  will-change: transform, opacity;
}

.inst-about-experience.is-static .inst-word-3d {
  transform: none;
  opacity: 1;
}

.inst-about-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.inst-about-split-card {
  background: #ffffff;
  border: 1px solid var(--inst-card-border);
  padding: 1.65rem 1.7rem 1.8rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px -12px rgba(2, 40, 80, 0.08);
  position: relative;
  overflow: hidden;
}

.inst-about-split-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--inst-accent-gradient);
  transition: height 0.3s ease;
}

.inst-about-split-card.is-active-border::before {
  height: 100%;
}

.inst-about-split-card p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #334155;
  margin: 0;
}

.inst-char-word {
  display: inline-block;
  margin-right: 0.25em;
}

.inst-char-span {
  opacity: 0.42;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.inst-char-span.is-lit {
  opacity: 1;
  color: var(--inst-text-dark);
  font-weight: 600;
}

.inst-about-experience.is-static .inst-char-span {
  opacity: 1;
  font-weight: 400;
}

.inst-about-section-title {
  font-size: 1.65rem;
  margin: 0 0 1rem;
  color: var(--inst-text-dark);
  font-weight: 800;
}

.inst-about-valores {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inst-about-valor {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--inst-card-border);
  padding: 1.05rem 1.3rem;
  border-radius: 14px;
  align-items: center;
  opacity: 1;
  transform: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.inst-about-experience.is-static .inst-about-valor {
  opacity: 1;
  transform: none;
}

.inst-about-valor:hover {
  border-color: var(--inst-water-light);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.08);
}

.inst-about-valor-num {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--inst-water-primary);
}

.inst-about-valor-desc {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.5;
}

.inst-about-extra {
  margin-top: 3rem;
}

.inst-about-extra-blocks .content-card {
  border-radius: 20px;
}

@media (max-width: 900px) {
  .quienes-somos-page,
  .qs-hero-page {
    --site-header-h: 72px;
  }
}

@media (max-width: 768px) {
  .inst-about-split-grid {
    grid-template-columns: 1fr;
  }

  .inst-about-section {
    margin-bottom: 2.4rem;
  }

  .inst-about-valor {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .qs-hero-title {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .quienes-somos-page,
  .qs-hero-page {
    --site-header-h: 64px;
  }

  .inst-about-wrapper,
  .qs-hero-inner {
    padding-inline: 1rem;
  }

  .inst-about-intro-card,
  .inst-about-valor,
  .qs-story-copy {
    padding-inline: 1rem;
  }
}

.qs-story-lead {
  margin: 0 0 1.25rem;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 46rem;
}
.qs-story {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 1.1rem 1.4rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.qs-story-stage {
  position: relative;
  min-height: 320px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #0A3B66;
  cursor: zoom-in;
  box-shadow: 0 16px 36px rgba(10, 59, 102, 0.16);
}
.qs-story-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.qs-story-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.qs-story-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  object-fit: cover;
  display: block;
}
.qs-story-nav {
  position: absolute;
  z-index: 2;
  inset: auto 12px 14px auto;
  display: flex;
  gap: 8px;
}
.qs-story-arrow {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0A3B66;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.qs-story-arrow:hover {
  background: #00A3E0;
  color: #fff;
}
.qs-story-hint {
  position: absolute;
  left: 14px;
  right: 108px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  line-height: 1.25;
}
.qs-story-copy {
  background: #fff;
  border: 1px solid var(--inst-card-border);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.qs-story-index {
  margin: 0 0 0.55rem;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00A3E0;
}
.qs-story-copy h3 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0A3B66;
  line-height: 1.2;
}
.qs-story-copy p[data-qs-text] {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}
.qs-story-thumbs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.qs-story-thumb {
  border: 2px solid transparent;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 12px rgba(10, 59, 102, 0.08);
}
.qs-story-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.45);
  transition: filter 0.25s ease, transform 0.25s ease;
}
.qs-story-thumb span {
  display: block;
  padding: 8px 10px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0A3B66;
  line-height: 1.25;
}
.qs-story-thumb:hover img,
.qs-story-thumb.is-active img {
  filter: none;
  transform: scale(1.04);
}
.qs-story-thumb.is-active {
  border-color: #00A3E0;
}
.qs-story-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  position: relative;
}
.qs-story-lightbox::backdrop {
  background: rgba(6, 22, 40, 0.82);
}
.qs-story-lightbox img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
}
.qs-story-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0A3B66;
  cursor: pointer;
}
@media (max-width: 900px) {
  .qs-story {
    grid-template-columns: minmax(0, 1fr);
  }
  .qs-story-stage,
  .qs-story-copy,
  .qs-story-thumbs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .qs-story-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qs-story-thumb img { height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .qs-hero-chevron {
    animation: none;
  }
}
