/*
 * Layout: page-level structure — header, footer, section rhythm and the
 * per-section grids. Reusable widgets live in components.css.
 */

/* ============================ HEADER ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.header.is-stuck {
  border-bottom-color: var(--color-line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  padding-inline: var(--gutter-frame);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--color-ink);
}

.header__logo img {
  display: block;
  height: 34px;
  max-height: 34px;
  width: auto;
  max-width: 100%;
  aspect-ratio: 273 / 56;
  object-fit: contain;
}

.header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-3);
}

/* ============================ HERO ============================ */
.hero {
  padding-top: var(--space-4);
}

/* Hero panel horizontal frame gutter */
.hero .container,
.find-out-hero .container,
.about-hero .container,
.transform-hero .container,
.training-hero .container {
  padding-inline: var(--gutter-frame);
}

/* Shared full-panel overlay hero structure: about_us, find_out, transform, overlay_cta */
.about-hero__frame,
.find-out-hero__frame,
.transform-hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 731;
  min-height: clamp(380px, 52vw, 731px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.about-hero__img,
.find-out-hero__img,
.transform-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.about-hero__overlay,
.find-out-hero__overlay,
.transform-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-hero__content,
.find-out-hero__content,
.transform-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 4.5vw, 3.5rem);
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Wraps the image + title so the title centres on the image, not the whole
   frame (which also holds the promo card, stacked below on mobile). */
.hero__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero__img {
  width: 100%;
  aspect-ratio: 1400 / 905;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  transform: scale(1.1);
  transform-origin: center center;
  will-change: transform;
}

.hero__overline,
.hero__tag,
.about-hero__tag,
.find-out-hero__tag,
.transform-hero__tag {
  display: block;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-hero-overline);
  font-weight: var(--fw-regular);
  font-style: normal;
  line-height: var(--lh-label);
  letter-spacing: 0;
  color: #000000;
}

.hero__title {
  position: absolute;
  top: 50%;
  left: clamp(1.5rem, 4vw, 3.5rem);
  transform: translateY(-50%);
  color: var(--color-invert);
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.hero__title,
.about-hero__title,
.find-out-hero__title,
.transform-hero__title,
.training-hero__title,
.hero__title--fluid,
.fluid-type {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-h1);
  font-weight: var(--fw-regular);
  font-style: normal;
  line-height: var(--lh-display-wrap);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (max-width: 480px) {
  .hero__title,
  .about-hero__title,
  .find-out-hero__title,
  .transform-hero__title,
  .training-hero__title,
  .hero__title--fluid,
  .fluid-type {
    font-size: clamp(1.375rem, 6.8vw, 2rem);
  }
}

.hero__title--single,
.fluid-type--single {
  line-height: var(--lh-display-single);
}

.hero__card {
  position: absolute;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  width: min(300px, 70%);
}

/* ============================ SECTION HELPERS ============================ */
.display-word {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-display-single);
  text-align: center;
  letter-spacing: -0.02em;
  color: #a9b3b3; /* fallback if background-clip:text is unsupported */
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .display-word {
    background: var(--gradient-display);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

/* Content blocks horizontal gutter */
.text-block .container {
  padding-inline: var(--gutter-content);
}

/* ============================ TALENTO ============================ */
.talento {
  position: relative;
  overflow-x: clip;
  overflow-y: visible; /* decorative glow trails behind the cards */
  padding-bottom: 0;
}

/* Soft mint blur that trails off the right side, behind the cards. */
.talento__glow {
  position: absolute;
  z-index: 0;
  top: 32%;
  right: 0;
  width: min(70%, 900px);
  max-width: 100%;
  aspect-ratio: 1160 / 665; /* SVG has no intrinsic size (100% w/h), so reserve it here */
  height: auto;
  pointer-events: none;
  user-select: none;
}

.talento .container {
  position: relative;
  z-index: 1;
}

.talento__intro {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  margin-bottom: var(--section-gap); /* match the section's top padding */
}

.talento__lead {
  max-width: 46rem;
  font-size: var(--fs-lead);
  color: var(--color-text);
}

/* Full-bleed infinite marquee photo strip */
.talento-strip {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  margin-bottom: var(--section-gap);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
}

.talento-strip__track {
  display: flex;
  width: max-content;
  animation: strip-marquee 45s linear infinite;
  will-change: transform;
}

@keyframes strip-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.cards-row {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards-row li {
  flex: 0 0 24vw;
  min-width: 24vw;
  overflow: hidden;
}

.cards-row__img {
  display: block;
  width: 100%;
  height: clamp(340px, 32vw, 500px);
  object-fit: cover;
  filter: grayscale(1);
  background: var(--color-surface-alt);
  transition: filter 250ms ease-out, transform 250ms ease-out;
}

.cards-row__img:hover {
  filter: grayscale(0);
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .talento-strip {
    overflow-x: auto;
  }

  .talento-strip__track {
    animation: none !important;
  }

  .cards-row__img {
    transition: filter 250ms ease-out, transform 250ms ease-out !important;
  }

  .catedra-card.is-active .catedra-card__name,
  .catedra-card.is-active .catedra-card__desc,
  .catedra-card.is-active .catedra-card__uni-wrap,
  .catedra-card.is-active .team__member {
    animation: none !important;
  }

  .testi-card {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ============================ DESCUBRE ============================ */
.descubre {
  padding-top: 0;
  padding-bottom: 0;
}

.descubre__intro {
  text-align: left;
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.descubre__intro .display-word {
  text-align: left;
}

.descubre__subtitle,
.descubre__subtitle p,
.descubre__subtitle div {
  font-family: 'Inter Tight', var(--font-sans, sans-serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2rem, 4.4vw, 64px);
  color: #8a9091; /* matches the dark stop of the display gradient */
  line-height: var(--lh-display-wrap);
  letter-spacing: 0;
  max-width: 16ch;
  margin: 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-4), 2vw, var(--space-6));
}

/* Collaborators strip */
.collaborators {
  margin-top: var(--space-9);
  text-align: center;
  padding-bottom: var(--section-gap);
}

.collaborators__title {
  color: var(--color-text-soft);
  font-size: var(--fs-lead);
  margin-bottom: var(--space-6);
}

.collaborators__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.alliance-logo,
.collaborators__list img {
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 300ms ease-out, opacity 300ms ease-out;
}

.collaborators__list img {
  height: clamp(40px, 3.5vw, 64px);
  max-height: 64px;
  max-width: 240px;
}

.collaborators__list a,
.about-alliances__logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.collaborators__list a:hover img,
.collaborators__list img:hover,
.about-alliances__logos a:hover .alliance-logo,
.alliance-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 1023px) {
  .collaborators__list,
  .about-alliances__logos,
  .about-alliances .about-alliances__logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 4.75rem;
    place-items: center;
    gap: 2rem;
  }

  .collaborators__list > li,
  .collaborators__list a,
  .about-alliances__logos > a,
  .about-alliances .about-alliances__logos > a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-width: 0;
  }

  .collaborators__list > li:last-child:nth-child(odd),
  .about-alliances__logos > :last-child:nth-child(odd),
  .about-alliances .about-alliances__logos > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .collaborators__list img,
  .about-alliances__logos .alliance-logo,
  .about-alliances .about-alliances__logos .alliance-logo {
    height: auto;
    max-height: 42px;
    width: auto;
    max-width: 116px;
    object-fit: contain;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .collaborators__list,
  .about-alliances__logos,
  .about-alliances .about-alliances__logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .collaborators__list > li:last-child:nth-child(odd),
  .about-alliances__logos > :last-child:nth-child(odd),
  .about-alliances .about-alliances__logos > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .collaborators__list > li:last-child:nth-child(3n + 1),
  .about-alliances__logos > :last-child:nth-child(3n + 1),
  .about-alliances .about-alliances__logos > :last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .collaborators__list > li:nth-last-child(2):nth-child(3n + 1),
  .collaborators__list > li:last-child:nth-child(3n + 2),
  .about-alliances__logos > :nth-last-child(2):nth-child(3n + 1),
  .about-alliances__logos > :last-child:nth-child(3n + 2),
  .about-alliances .about-alliances__logos > :nth-last-child(2):nth-child(3n + 1),
  .about-alliances .about-alliances__logos > :last-child:nth-child(3n + 2) {
    position: relative;
    left: calc(50% + 1rem);
  }
}

/* ============================ CÁTEDRAS ============================ */
.catedras {
  padding-top: var(--space-6);
  overflow-x: clip;
}

.catedras__title {
  text-align: right;
  color: var(--color-muted);
  line-height: var(--lh-display-wrap);
  max-width: 34rem;
  margin-left: auto;
  margin-bottom: var(--space-7);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.catedras__carousel {
  --peek: clamp(1.25rem, 7vw, 7rem);
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--peek);
  padding-inline: var(--peek);
  padding-bottom: var(--space-3);
  scrollbar-width: none;
}

.catedras__carousel::-webkit-scrollbar {
  display: none;
}

.catedras__carousel .catedra-card {
  flex: 0 0 calc(100% - 2 * var(--peek));
  scroll-snap-align: start;
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

/* The two off-centre cards read as dimmed/hidden. */
.catedras__carousel .catedra-card:not(.is-active) {
  opacity: 0.4;
  cursor: pointer;
  transform: scale(0.98);
}

.catedra-card.is-active .catedra-card__name,
.catedra-card.is-active .catedra-card__desc,
.catedra-card.is-active .catedra-card__uni-wrap {
  animation: catedra-fade-slide 500ms ease-out forwards;
}

.catedra-card.is-active .team__member {
  animation: catedra-fade-slide 500ms ease-out forwards;
}
.catedra-card.is-active .team__member:nth-child(1) { animation-delay: 80ms; }
.catedra-card.is-active .team__member:nth-child(2) { animation-delay: 160ms; }
.catedra-card.is-active .team__member:nth-child(3) { animation-delay: 240ms; }

@keyframes catedra-fade-slide {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================ DESARROLLO ============================ */
.desarrollo {
  background: radial-gradient(90% 78% at 62% 76%, rgba(198, 231, 224, 0.55) 0%, rgba(210, 228, 236, 0.28) 42%, rgba(253, 253, 253, 0) 72%);
}

/* Two-column: text left, whole-card snap carousel right. */
.desarrollo__layout {
  display: grid;
  grid-template-columns: minmax(240px, 30%) 1fr;
  align-items: center;
  gap: clamp(var(--space-5), 4vw, var(--space-8));
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.desarrollo__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  line-height: var(--lh-display-wrap);
  letter-spacing: -0.01em;
  color: #939b9c; /* fallback if background-clip:text is unsupported */
}

.desarrollo__title span {
  display: block;
  color: #939b9c;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .desarrollo__title,
  .desarrollo__title span {
    background: linear-gradient(115deg, #939b9c 0%, #939b9c 38%, #d4dde3 74%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .desarrollo__title:has(> span) {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

.desarrollo__title span:nth-child(2) { padding-left: 1em; }
.desarrollo__title span:nth-child(3) { padding-left: 2em; }

.desarrollo__subtitle,
.desarrollo__subtitle p,
.desarrollo__subtitle div {
  margin-top: var(--space-6);
  font-size: var(--fs-lead);
  color: var(--color-text);
}

.desarrollo__subtitle p,
.desarrollo__subtitle div {
  margin-top: 0;
}

.desarrollo__text .btn {
  margin-top: var(--space-6);
}

.desarrollo__carousel {
  min-width: 0;
  overflow-x: clip;
}

.feature-grid {
  display: flex;
  gap: clamp(var(--space-4), 2vw, var(--space-5));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  transition: transform 220ms ease-out;
}

.feature-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  transition: none;
}

.feature-grid.is-dragging * {
  cursor: grabbing !important;
}

.feature-grid::-webkit-scrollbar {
  display: none;
}

.feature {
  flex: 0 0 min(440px, 72%);
  min-width: 0;
  scroll-snap-align: start;
  transition: transform 400ms ease-out, opacity 400ms ease-out;
}

.desarrollo__carousel[data-carousel-snap="cards"] {
  --carousel-per-view: 2;
  --carousel-gap: clamp(var(--space-4), 2vw, var(--space-5));
}

.desarrollo__carousel[data-carousel-snap="cards"] .feature-grid {
  gap: var(--carousel-gap);
  scroll-snap-type: x mandatory;
}

.desarrollo__carousel[data-carousel-snap="cards"] .feature {
  flex: 0 0 calc((100% - (var(--carousel-per-view) - 1) * var(--carousel-gap)) / var(--carousel-per-view));
  max-width: calc((100% - (var(--carousel-per-view) - 1) * var(--carousel-gap)) / var(--carousel-per-view));
  min-width: 0;
  scroll-snap-align: start;
}

.carousel-dots {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-line);
  cursor: pointer;
  transition: width 250ms ease-out, background-color 250ms ease-out, transform 250ms ease-out;
}

.carousel-dots button.is-active {
  width: 24px;
  background: var(--color-ink);
  transform: none;
}

.carousel-dots button.is-collapsed,
.carousel-dots button[hidden] {
  display: none;
}

/* ============================ RAZÓN / CONSTRUYENDO ============================ */
.razon__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.razon__img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1400 / 619;
  object-fit: cover;
  object-position: left center;
  background: var(--color-surface-alt);
}

.razon__content {
  position: absolute;
  inset: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  text-align: right;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}

.razon__title {
  min-width: 0;
  max-width: min(18ch, 100%);
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  color: var(--color-invert);
}

.razon__bottom {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-5);
}

.razon__text {
  min-width: 0;
  max-width: min(34ch, 100%);
  color: var(--color-invert);
  font-size: var(--fs-body);
  opacity: 0.9;
}

/* ============================ TESTIMONIOS ============================ */
.testimonios {
  background: var(--gradient-dark);
  border-radius: var(--radius-lg);
  color: var(--color-on-dark);
  overflow: hidden;
}

.testimonios__head {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.testimonios__title {
  color: var(--color-on-dark);
}

.testimonios__head-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.testimonios__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonios__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full, 9999px);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-on-dark, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.testimonios__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.testimonios__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.testimonios__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

.testi-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: var(--space-4);
  padding-inline: var(--container-pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.testi-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.testi-card {
  scroll-snap-align: start;
  transition: transform 400ms ease-out, opacity 400ms ease-out, box-shadow 400ms ease-out;
  opacity: 0.85;
}

.testi-card.is-active {
  opacity: 1;
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

/* ============================ NEWSLETTER ============================ */
.newsletter {
  padding-block: var(--space-6);
  overflow-x: clip;
}

.newsletter__frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.newsletter__panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(144deg, #d4dde3 34%, #fcfcfc 100%);
}

.newsletter__kicker,
.newsletter__title {
  min-width: 0;
}

.newsletter__title {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: var(--fw-regular);
  line-height: var(--lh-card);
  color: #555758;
}

.newsletter__form {
  min-width: 0;
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.newsletter__form .field,
.newsletter__form .field__row,
.newsletter__form .field__input,
.newsletter__form .checkbox {
  min-width: 0;
}

.newsletter__feedback {
  margin-top: auto;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.newsletter__feedback--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: var(--fw-medium);
}

.newsletter__feedback--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  margin-bottom: var(--space-2);
}

.newsletter__media {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.newsletter__media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  background: var(--color-surface-alt);
}

/* ============================ MAIN CONTENT & RHYTHM ============================ */
#main {
  display: flow-root;
}

/* ============================ FOOTER ============================ */
.site-footer {
  position: relative;
  z-index: 50;
  padding-block: var(--space-6) var(--space-6);
}

.site-footer__card {
  background: var(--color-footer);
  color: var(--color-invert);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(var(--space-6), 4vw, var(--space-9));
}

.site-footer__logo {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-5);
}

.site-footer__about {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  opacity: 0.92;
  max-width: 34ch;
}

.site-footer__contact {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-5);
  font-style: normal;
  font-size: var(--fs-sm);
}

.site-footer__social-label {
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  opacity: 0.92;
}

.social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-invert);
  transition: background var(--transition);
}

.social a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
}

.footer-col {
  min-width: 0;
  overflow-wrap: break-word;
}

.footer-col h2 {
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  color: var(--color-invert);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: grid;
  gap: var(--space-3);
}

.footer-col a,
.footer-col .footer-link--pending {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
}

.footer-col a:hover {
  color: var(--color-invert);
}

.social a img,
.social__icon {
  width: 20px;
  height: 20px;
}

.social a img {
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.social__icon {
  display: inline-block;
  flex-shrink: 0;
  background-color: var(--color-invert);
  -webkit-mask-image: var(--social-icon);
  mask-image: var(--social-icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mask-mode: alpha;
}

.site-footer__bar {
  margin-top: var(--space-3);
  background: var(--color-footer-bar);
  color: var(--color-on-dark-muted);
  border-radius: var(--radius-card);
  padding: var(--space-4) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
}

.site-footer__legal a {
  color: var(--color-on-dark-muted);
}

.site-footer__legal a:hover {
  color: var(--color-invert);
}
