:root {
  --color-ux-navy: #252c3b;
  --color-ux-lavender: #dee3ec;
  --color-ux-gray: #6d727d;
  --font-ux: "Open Sans", -apple-system, "Segoe UI", sans-serif;
}

.main-nav a.is-current {
  font-weight: 700;
}

/* Hero */

.qs-hero {
  position: relative;
  background: linear-gradient(to bottom, var(--color-brown) 46.101%, #94370a 100%);
}

.qs-social-float {
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.15));
}

@media (min-width: 901px) {
  .qs-hero > .container.qs-hero-inner {
    padding-right: calc(var(--container-pad) + 36px);
  }
}

.qs-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 34px;
}

.qs-hero-copy {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--color-white);
}

.qs-hero-copy h1 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-orange);
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.25;
  margin: 0;
}

.qs-hero-copy p {
  font-family: var(--font-body);
  font-size: 16px;
  margin: 0;
}

.qs-hero-illustration {
  flex: 0 0 auto;
  width: 447px;
  max-width: 40%;
  aspect-ratio: 447 / 228;
  border-radius: 12px;
  overflow: hidden;
}

.qs-hero-illustration picture {
  display: contents;
}

.qs-hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layout */

.qs-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-block: 34px 24px;
}

.qs-toc {
  position: sticky;
  /* Clear the 96px sticky header so the top edge (reading progress) shows */
  top: 112px;
  flex: 0 0 260px;
  background: #f1f3f7;
  border-top: 3px solid var(--color-black);
  border-radius: 8px;
  box-shadow: 0 1px 2.55px rgba(32, 43, 51, 0.27);
  padding: 24px 16px;
}

.qs-toc-title {
  font-family: var(--font-ux);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-brown);
  margin: 0 0 16px;
}

.qs-toc nav ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.qs-toc nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  font-family: var(--font-ux);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-ux-navy);
  padding: 4px 0 4px 9px;
  border-left: 2px solid transparent;
}

.qs-toc nav a.is-active-section {
  border-left-color: var(--color-orange);
  color: var(--color-orange);
}

.qs-toc nav a img {
  display: none;
}

.qs-brand-text {
  display: none;
}

.qs-share-bar {
  display: none;
}

.qs-toc nav a:hover {
  color: var(--color-orange);
}

.qs-content {
  flex: 1 0 0;
  min-width: 0;
}

.qs-divider {
  border: none;
  border-top: 1px solid var(--color-brown);
  margin: 27px 0;
}

/* Section base typography */

.qs-section {
  font-family: var(--font-ux);
  color: var(--color-gray);
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-margin-top: 112px;
}

.qs-section h2 {
  font-family: var(--font-ux);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.35px;
  margin: 0;
}

.qs-section p {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.18px;
  margin: 0;
}

.qs-subheading {
  font-family: var(--font-ux);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.26px;
  margin: 8px 0 0;
}

.qs-panel {
  background-color: var(--color-cream);
  background-image: url(../assets/quienes-somos/images/nuestro-enfoque-bg.png);
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;

  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Intro row (Quienes Somos) */

.qs-intro-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.qs-intro-row > p {
  flex: 1 1 0;
  min-width: 0;
}

.qs-intro-row--reverse {
  align-items: flex-start;
}

.qs-decor-box {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ux-lavender);
  border-radius: 12px;
  padding: 80px 10px;
}

.qs-decor-box--tall {
  align-self: stretch;
  padding: 0;
  min-height: 264px;
}

.qs-decor-box img {
  width: 68px;
  height: 68px;
}

.qs-decor-box--photo {
  padding: 0;
  overflow: hidden;
}

.qs-decor-box--photo img {
  width: 100%;
  height: 100%;
  min-height: 228px;
  object-fit: cover;
}

.qs-goal-block {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-brown);
  border: 1px solid var(--color-orange);
  border-radius: 16px;
  padding: 24px 34px;
}

.qs-goal-icon {
  flex-shrink: 0;
  width: 118px;
  height: 108px;
  object-fit: contain;
}

.qs-goal-block p {
  color: var(--color-white);
  font-weight: 700;
  font-size: 18px;
}

.qs-target-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qs-target-block-inner {
  background: linear-gradient(to bottom, #ffffff 0.12%, #ff6a20 342.13%);
  border-radius: 8px;
  box-shadow: 0 4px 8.7px rgba(74, 87, 101, 0.25);
  padding: 12px 24px;
}

.qs-target-block-inner p {
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.18px;
  color: var(--color-brown);
}

/* Card rows (Misión/Visión/Valores, Nuestro Enfoque, Impacto y Logros) */

.qs-carousel {
  position: relative;
}

.qs-carousel::after,
.qs-carousel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 4px;
  width: 56px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.qs-carousel::after {
  right: 0;
  background: linear-gradient(to right, transparent, var(--color-white) 85%);
}

.qs-carousel::before {
  left: 0;
  opacity: 0;
  background: linear-gradient(to left, transparent, var(--color-white) 85%);
}

.qs-carousel.is-scrolled::before {
  opacity: 1;
}

.qs-carousel.is-at-end::after {
  opacity: 0;
}

.qs-carousel--on-lavender::after {
  background: linear-gradient(to right, transparent, var(--color-ux-lavender) 85%);
}

.qs-carousel--on-lavender::before {
  background: linear-gradient(to left, transparent, var(--color-ux-lavender) 85%);
}

.qs-card-row {
  display: block;
}

.qs-slide {
  display: none;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.qs-slide.is-active {
  display: flex;
}

.qs-uxcard {
  flex: 1 1 240px;
  background: var(--color-ux-lavender);
  border-top: 4px solid var(--color-ux-navy);
  border-radius: 16px;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#mision-vision .qs-uxcard:first-child {
  flex-grow: 1.3;
}

.qs-uxcard--wide {
  flex-basis: 100%;
}

.qs-uxcard img {
  width: 48px;
  height: 48px;
}

.qs-uxcard-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.qs-uxcard-head img {
  flex: 0 0 auto;
}

.qs-uxcard-head h3 {
  font-family: var(--font-ux);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
}

.qs-uxcard-text {
  font-size: 14px;
  line-height: 1.5;
}

.qs-uxcard-text--strong {
  font-weight: 600;
  font-size: 16px;
}

.qs-uxcard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ux-navy);
  color: var(--color-white);
  font-weight: 700;
  font-size: 20px;
  border-radius: 8px;
  padding: 12px 16px;
  align-self: flex-start;
}

/* Misión, Visión y Valores: orange-filled / white-with-orange-border cards,
   matching Figma (nodes 744:8368, 744:8358, 744:8355) instead of the
   generic lavender treatment. */

#mision-vision-cards .qs-uxcard-head h3 {
  font-family: var(--font-display);
}

#mision-vision-cards .qs-uxcard--orange {
  background: var(--color-orange);
  border-top: none;
}

#mision-vision-cards .qs-uxcard--orange .qs-uxcard-head h3,
#mision-vision-cards .qs-uxcard--orange .qs-uxcard-text {
  color: var(--color-white);
}

#mision-vision-cards .qs-uxcard--outline {
  background: var(--color-white);
  border-top: none;
  border: 1px solid var(--color-orange);
}

#mision-vision-cards .qs-uxcard--outline .qs-uxcard-head h3 {
  color: var(--color-orange);
}

#mision-vision-cards .qs-uxcard--outline .qs-uxcard-text {
  color: var(--color-black);
}

/* Impacto y Logros: cards alternate orange fill / white with orange border,
   matching Figma (node 744:8571) instead of the generic lavender treatment. */

#impacto-logros-cards .qs-uxcard {
  background: var(--color-orange);
  border-top: none;
}

#impacto-logros-cards .qs-uxcard-text {
  color: var(--color-white);
}

.qs-uxcard-text--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.qs-uxcard-text--clamp.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.qs-uxcard-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin-top: -8px;
  font-family: var(--font-ux);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-white);
  text-decoration: underline;
  cursor: pointer;
}

.qs-uxcard-more::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../assets/quienes-somos/icons/icon-chevron-down-white.svg") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.qs-uxcard-more.is-expanded::after {
  transform: rotate(180deg);
}

#impacto-logros-cards .qs-uxcard-badge {
  background: var(--color-white);
  color: var(--color-orange);
  border-radius: 100px;
}

#impacto-logros-cards .qs-uxcard:not(.qs-uxcard--stat) {
  background: var(--color-white);
  border: 1px solid var(--color-orange);
}

#impacto-logros-cards .qs-uxcard:not(.qs-uxcard--stat) .qs-uxcard-text {
  color: var(--color-black);
}

/* Checklist (Misión) */

.qs-check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: white;
}

.qs-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.qs-check-list img {
  flex: 0 0 auto;
  width: 16px;
  height: 15px;
  margin-top: 3px;
}

/* Nuestra Historia: barriers */

.qs-barrier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.qs-barrier {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-cream);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 8.7px rgba(74, 87, 101, 0.25);
}

.qs-barrier img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}

.qs-barrier p {
  margin: 0;
  color: var(--color-brown);
}

/* Stat panel */

.qs-stat-panel {
  position: relative;
  background: var(--color-cream);
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: hidden;
}

.qs-stat-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/quienes-somos/images/stat-panel-texture.png");
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  pointer-events: none;
}

.qs-stat-panel > * {
  position: relative;
}

.qs-stat-panel-title {
  font-weight: 700;
  color: var(--color-brown);
}

.qs-stat-panel > p {
  color: var(--color-black);
}

.qs-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.qs-stat {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.qs-stat-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-brown);
  color: var(--color-cream);
  font-weight: 700;
  font-size: 17px;
  border-radius: 100px;
}

.qs-stat-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}

.qs-stat p {
  margin: 0;
  color: var(--color-brown);
}

/* Cost row */

.qs-cost-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.qs-cost-row > p {
  flex: 1 1 380px;
}

.qs-cost-card {
  flex: 1 1 320px;
  background: var(--color-cream);
  border-radius: 8px;
  box-shadow: 0 4px 8.7px rgba(74, 87, 101, 0.25);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qs-cost-headline {
  font-weight: 600;
  color: var(--color-brown);
}

.qs-cost-detail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qs-cost-icon-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  background: var(--color-brown);
}

.qs-cost-icon-wrap img {
  width: 16px;
  height: 29px;
}

.qs-cost-detail p {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  color: var(--color-brown);
}

/* Milestones */

.qs-milestone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.qs-milestone {
  position: relative;
  flex: 1 1 360px;
  background: var(--color-white);
  border: 2px solid var(--color-orange);
  border-radius: 16px;
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qs-milestone-year {
  position: absolute;
  top: -16px;
  left: 20px;
  display: inline-flex;
  background: var(--color-white);
  padding: 0 8px;
  color: var(--color-orange);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
}

.qs-milestone p {
  font-size: 16px;
  color: var(--color-black);
}

.qs-hitos-controls {
  display: none;
}

/* Accordions */

.qs-accordions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
}

.qs-accordion {
  border-radius: 8px;
  overflow: hidden;
}

.qs-accordion-header {
  display: flex;
  align-items: center;
  gap: 17px;
  background: var(--color-ux-lavender);
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.qs-accordion-header::-webkit-details-marker {
  display: none;
}

.qs-accordion-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--color-ux-navy);
  color: var(--color-white);
  border-radius: 100px;
  font-weight: 700;
}

.qs-accordion-icon {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
}

.qs-accordion-title {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.qs-chevron {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.qs-accordion[open] .qs-chevron {
  transform: rotate(180deg);
}

.qs-accordion-body {
  background: var(--color-ux-gray);
  color: var(--color-white);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qs-accordion-body p {
  font-size: 16px;
  margin: 0;
}

/* Hitos Importantes (Nuestra Historia) accordions: white/orange outline
   treatment, matching Figma (node 744:8518) instead of the filled
   lavender/dark style used by the Nuestro Equipo accordion. */

#nuestra-historia .qs-accordion-header {
  background: var(--color-white);
  border: 1px solid var(--color-orange);
  border-radius: 8px;
}

#nuestra-historia .qs-accordion-number {
  background: var(--color-white);
  border: 1px solid var(--color-brown);
  color: var(--color-brown);
}

#nuestra-historia .qs-accordion-body {
  background: var(--color-white);
  color: var(--color-gray);
}

.qs-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.qs-group-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qs-group-item-head {
  display: flex;
  align-items: center;
  gap: 17px;
}

.qs-group-item-head img {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
}

.qs-group-item-title {
  font-weight: 600;
  margin: 0;
}

/* Team */

.qs-team-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.qs-team-card {
  flex: 1 1 220px;
  border: 1px solid var(--color-ux-gray);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.qs-team-card img {
  width: 87px;
  height: 87px;
}

.qs-team-name {
  font-weight: 700;
  margin: 0;
}

.qs-team-role {
  font-size: 14px;
  margin: 0;
}

.qs-team-country {
  font-weight: 600;
  font-size: 12px;
  margin: 0;
}

/* Nuestro Enfoque feature cards */

.qs-card-row--bordered .qs-feature-card {
  position: relative;
  flex: 1 1 240px;
  border: 1px solid var(--color-ux-gray);
  border-radius: 16px;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.qs-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/card-avances-overlay.png");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}

.qs-feature-card img,
.qs-feature-card p {
  position: relative;
  z-index: 1;
}

.qs-feature-card img {
  width: 44px;
  height: 44px;
}

.qs-feature-card p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.qs-feature-card--orange {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

.qs-feature-card--orange p {
  color: var(--color-white);
}

.qs-feature-card--light {
  background: var(--color-white);
  border-color: var(--color-orange);
}

.qs-feature-card--light p {
  color: var(--color-black);
}

/* Alianzas */

.qs-quote-box {
  background: var(--color-brown);
  border: 1px solid var(--color-orange);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.qs-quote-box-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 100px;
  background: var(--color-cream);
}

.qs-quote-box-icon img {
  width: 60px;
  height: 70px;
  object-fit: contain;
}

.qs-quote-box p {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-white);
  text-align: left;
  margin: 0;
}

.qs-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 29px;
  width: 100%;
}

.qs-logo {
  height: 54px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qs-logo img {
  max-height: 54px;
  max-width: 100%;
  width: auto;
  height: auto;
}

.qs-logo--cisneros {
  background: #ff5256;
}

.qs-logo--cisneros span {
  color: var(--color-white);
  font-weight: 700;
  font-size: 14px;
}

.qs-logo--stacked {
  flex-direction: column;
  gap: 3px;
}

.qs-logo--stacked img {
  max-height: 23px;
}

.qs-logo--stacked span {
  font-size: 8px;
  text-align: center;
  color: var(--color-ux-navy);
}

/* Explore tools band (brand style, reused from homepage) */

.explore-tools {
  background: var(--color-brown);
  padding-block: 64px;
}

.explore-tools h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--color-white);
  text-align: center;
  margin: 0 0 48px;
}

.explore-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.explore-cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explore-card {
  position: relative;
  min-width: 0;
  background: var(--color-orange);
  border-radius: 16px;
  padding: 34px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.explore-card-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.5;
  pointer-events: none;
}

.explore-card-icon {
  position: relative;
  width: 48px;
  height: 48px;
}

.explore-card h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-white);
  margin: 0;
  overflow-wrap: anywhere;
}

/* Middle card ("Herramientas") uses a white/dark treatment in Figma
   (node 744:8430), matching the home page's highlight-card pattern. */

.explore-card--light {
  background: var(--color-white);
}

.explore-card--light h3 {
  color: var(--color-black);
}

.btn-outline-white {
  position: relative;
  align-self: flex-start;
  background: var(--color-white);
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.btn-outline-white:hover {
  opacity: 0.85;
}

/* Responsive */

@media (min-width: 641px) {
  #mision-vision-controls .slider-dot:nth-child(n + 3),
  #nuestro-enfoque-controls .slider-dot:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 1100px) {
  .qs-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .qs-hero-inner {
    flex-wrap: wrap;
  }

  .qs-hero-illustration {
    width: 100%;
    max-width: 100%;
  }

  .qs-social-float {
    display: none;
  }

  .qs-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .qs-share-bar {
    display: flex;
    align-items: center;
    gap: 26px;
    background: var(--color-ux-lavender);
    padding: 12px 20px;
  }

  .qs-share-bar p {
    font-family: var(--font-ux);
    font-weight: 700;
    font-size: 12px;
    color: var(--color-ux-navy);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
  }

  .qs-share-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
  }

  .qs-share-icons .social-icon {
    width: 51px;
    height: 51px;
  }

  .qs-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .qs-content {
    width: 100%;
  }
 

  .qs-toc {
    display: block;
    position: static;
    width: 100%;
    background: #f1f3f7;
    border-left: 3px solid var(--color-ux-navy);
    border-radius: 8px;
    box-shadow: 0 1px 2.55px rgba(32, 43, 51, 0.27);
    padding: 24px 16px;
  }

  .qs-toc nav a img {
    display: block;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 640px) {
  .explore-cards,
  .explore-cards--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .qs-layout {
    padding-block: 24px 16px;
  }

  .qs-section h2 {
    font-size: 26px;
  }

  /* Pull the pagination dots closer to their card row on mobile — the
     section's flex `gap` plus .slider-controls' own margin-bottom reads
     as too much separation on small screens (user feedback). */
  #mision-vision-controls,
  #nuestro-enfoque-controls {
    margin-top: -12px;
    margin-bottom: 8px;
  }

  .qs-intro-row,
  .qs-intro-row--reverse {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Mobile "Nuestra misión" box (node 744:8593): icon stacked above text
     instead of side-by-side. */
  .qs-goal-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .qs-goal-icon {
    align-self: center;
  }

  .qs-decor-box {
    width: 100%;
  }

  .qs-card-row,
  .qs-team-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .qs-card-row::-webkit-scrollbar,
  .qs-team-row::-webkit-scrollbar {
    display: none;
  }

  /* Hitos Importantes stacks vertically on mobile (not a horizontal
     carousel like the other card rows) — the year badge sits above the
     card via a negative top offset, and an overflow-x:auto ancestor would
     force overflow-y to clip it, so this stays a plain visible column. */
  #hitos-row {
    flex-direction: column;
  }

  .qs-panel {
    background-image: url(../assets/quienes-somos/images/nuestro-enfoque-bg-mobile.png);
  }

  /* Card rows swipe as a real slider: each swipe settles on a card.
     Slides stay real boxes in a row (iOS Safari doesn't snap to cards
     inside display: contents); card widths use the row's width (cqw). */
  .qs-card-row {
    container-type: inline-size;
    scroll-snap-type: x mandatory;
  }

  .qs-slide,
  .qs-slide.is-active {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 20px;
    width: auto;
  }

  .qs-uxcard--mobile-dup {
    display: none;
  }

  .qs-uxcard {
    flex: 0 0 74cqw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .qs-card-row--bordered .qs-feature-card {
    flex: 0 0 74cqw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* One full-width card at a time; :first-child also cancels the desktop
     flex-grow on Misión, which would stretch it to its text's width. */
  .qs-uxcard--wide,
  #mision-vision-cards .qs-uxcard,
  #mision-vision-cards .qs-uxcard:first-child {
    flex: 0 0 100cqw;
  }

  #hitos-row .qs-milestone {
    flex: none;
    width: 100%;
  }

  .qs-team-card {
    flex: 0 0 85%;
  }

  .qs-team-controls {
    display: flex;
    justify-content: center;
    margin-top: 16px;
  }

  .slider-arrows {
    display: none;
  }

  .qs-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .qs-logo {
    height: 46px;
  }

}
.qs-hero-btn {
  display: flex;
  width: fit-content;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;

  border-radius: 50px;
  border: 1px solid var(--UI-Colors-Naranja, #FF6A20);
  background: var(--UI-Colors-Blanco, #FFF);

  color: var(--UI-Colors-Naranja, #FF6A20);
  text-decoration: none;
  cursor: pointer;
}

.qs-hero-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Mobile page banners (Figma 744:8585) */
@media (max-width: 900px) {
  /* Orange banner titles share Figma's H2-Bold size on every page */
  .qs-hero-copy h1 {
    font-size: 32px;
    line-height: 40px;
  }

  /* Quiénes Somos: copy, full-width photo, then the share icons centered */
  .qs-hero--about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 32px 0 24px;
  }

  .qs-hero--about > .container.qs-hero-inner {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding-block: 0;
  }

  .qs-hero--about .qs-hero-copy {
    gap: 24px;
  }

  .qs-hero--about .qs-hero-illustration {
    width: auto;
    max-width: none;
    height: 228px;
    aspect-ratio: auto;
    margin-inline: calc(-1 * var(--container-pad));
  }

  .qs-hero--about .qs-social-float {
    position: static;
    transform: none;
    display: flex;
    flex-direction: row;
    gap: 12px;
    filter: none;
  }
}

/* "Contenidos de la página" box motion: entrance, sliding active bar,
   reading progress on the top edge, and hover nudges. */
.qs-toc nav ul {
  position: relative;
}

.qs-toc-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--color-orange);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.qs-toc.has-indicator nav a.is-active-section {
  border-left-color: transparent;
}

.qs-toc::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--color-orange);
  transform: scaleX(var(--toc-progress, 0));
  transform-origin: left center;
  transition: transform 0.15s linear;
  pointer-events: none;
}

@media (max-width: 900px) {
  .qs-toc {
    position: relative;
  }
}

@keyframes qs-toc-in {
  from {
    opacity: 0;
    translate: -24px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes qs-toc-arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .qs-toc {
    animation: qs-toc-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }

  .qs-toc-title,
  .qs-toc nav li {
    animation: qs-toc-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .qs-toc-title {
    animation-delay: 0.35s;
  }

  .qs-toc nav li:nth-child(1) { animation-delay: 0.42s; }
  .qs-toc nav li:nth-child(2) { animation-delay: 0.49s; }
  .qs-toc nav li:nth-child(3) { animation-delay: 0.56s; }
  .qs-toc nav li:nth-child(4) { animation-delay: 0.63s; }
  .qs-toc nav li:nth-child(5) { animation-delay: 0.7s; }
  .qs-toc nav li:nth-child(6) { animation-delay: 0.77s; }

  .qs-toc nav a {
    transition: color 0.2s ease, translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .qs-toc nav a:hover {
    translate: 4px 0;
  }

  .qs-toc nav a:hover img {
    animation: qs-toc-arrow 0.8s ease-in-out infinite;
  }
}

/* Card-row sliders (Misión/Visión, Enfoque, Impacto) on desktop: the new
   group slides in from the side of the arrow that was pressed. */
@keyframes qs-slide-from-right {
  from {
    opacity: 0;
    translate: 48px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes qs-slide-from-left {
  from {
    opacity: 0;
    translate: -48px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (min-width: 641px) and (prefers-reduced-motion: no-preference) {
  .qs-card-row[data-dir="next"] .qs-slide.is-active > * {
    animation: qs-slide-from-right 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .qs-card-row[data-dir="prev"] .qs-slide.is-active > * {
    animation: qs-slide-from-left 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .qs-card-row[data-dir] .qs-slide.is-active > :nth-child(2) {
    animation-delay: 0.07s;
  }

  .qs-card-row[data-dir] .qs-slide.is-active > :nth-child(n + 3) {
    animation-delay: 0.14s;
  }
}
