﻿/*!
Theme Name: rcd-gabriel
Author: Agencia Rompecabeza Digital
Author URI: https://www.rompecabeza.cl/
Description: Tema WordPress para Gabriel Jefferies.
Version: 1.44.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: rcd-gabriel
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready, rompecabeza
*/

:root {
  --gj-black: #1e1e1e;
  --gj-gray: #2f2f2f;
  --gj-cream: #f4f1eb;
  --gj-blue: #1010d6;
  --gj-blue-2: #2222fd;
  --gj-blue-3: #4747ff;
  --gj-white: #ffffff;
  --gj-text: #2f2f2f;
  --gj-max: 1440px;
  --gj-pad: 96px;
  --gj-pad-m: 24px;
  --gj-font: "Poppins", system-ui, -apple-system, sans-serif;
  --gj-header-h: 64px;
}

@media (min-width: 1024px) {
  :root {
    --gj-header-h: 102px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Offset anclas del menú: el H2 no queda bajo el header sticky */
  scroll-padding-top: calc(var(--gj-header-h) + 16px);
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: calc(var(--gj-header-h) + 24px);
  }
}

body {
  margin: 0;
  font-family: var(--gj-font);
  color: var(--gj-text);
  background: var(--gj-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gj-black);
  color: var(--gj-white);
}

.site-header--dark {
  background: var(--gj-black);
  color: var(--gj-white);
}

.site-header__inner {
  max-width: var(--gj-max);
  margin: 0 auto;
  min-height: 64px;
  padding: 0 var(--gj-pad-m);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 1024px) {
  .site-header__inner {
    min-height: 102px;
    padding: 0 var(--gj-pad);
  }
}

.site-header__logo {
  flex: 0 0 auto;
  color: var(--gj-white);
}

.site-header__logo img {
  width: 21px;
  height: 32px;
  display: block;
}

@media (min-width: 1024px) {
  .site-header__logo img {
    width: 31px;
    height: 53px;
  }
}

.site-header__nav {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
}

@media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header__menu a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: inherit;
  white-space: nowrap;
  padding-bottom: 6px;
}

.site-header__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gj-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .site-header__menu a:hover::after,
  .site-header__menu a:focus-visible::after {
    transform: scaleX(1);
  }
}

.site-header__menu a:focus-visible {
  outline: 2px solid var(--gj-blue);
  outline-offset: 4px;
}

.site-header__cta {
  display: none;
  min-width: 167px;
  height: 41px;
  padding: 0 28px;
  border: 2px solid currentColor;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

@media (min-width: 1024px) {
  .site-header__cta {
    display: inline-flex;
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-header--dark .site-header__cta:hover,
  .site-header--dark .site-header__cta:focus-visible {
    background: var(--gj-white);
    color: var(--gj-black);
    border-color: var(--gj-white);
  }
}

.site-header__cta:focus-visible {
  outline: 2px solid var(--gj-blue);
  outline-offset: 3px;
}

.site-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

@media (min-width: 1024px) {
  .site-header__toggle {
    display: none;
  }
}

.site-header__burger,
.site-header__burger::before,
.site-header__burger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.site-header__burger::before,
.site-header__burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header__burger::before {
  top: -7px;
}

.site-header__burger::after {
  top: 7px;
}

.site-header__close {
  position: absolute;
  width: 18px;
  height: 18px;
}

.site-header__close::before,
.site-header__close::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.site-header__close::before {
  transform: rotate(45deg);
}

.site-header__close::after {
  transform: rotate(-45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__burger {
  display: none;
}

.site-header__toggle[aria-expanded="true"] .site-header__close {
  display: block;
}

.site-header__drawer {
  display: block;
  position: fixed;
  top: var(--gj-header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  box-sizing: border-box;
  padding: 30px var(--gj-pad-m) 40px;
  background: var(--gj-black);
  color: var(--gj-white);
  overflow-y: auto;
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header__drawer.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

/* Mantener en flujo en mobile para animar el slide (atributo hidden de HTML). */
.site-header__drawer[hidden] {
  display: block !important;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__drawer {
    transition-duration: 0.01ms;
  }
}

@media (min-width: 1024px) {
  .site-header__drawer {
    display: none !important;
  }

  .site-header__drawer[hidden] {
    display: none !important;
  }
}

body.nav-open {
  overflow: hidden;
}

/* Menú móvil — Figma 251:165: siempre columna, sin separadores, paso de 54px */
.site-header__drawer ul,
.site-header__drawer-menu {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__drawer ul > li,
.site-header__drawer-menu > li {
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-header__drawer ul a,
.site-header__drawer-menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 18.75px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 16.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: inherit;
  white-space: normal;
  transition: opacity 0.25s ease;
}

.site-header__drawer ul a::after,
.site-header__drawer-menu a::after {
  display: none !important;
}

.site-header__drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 45px;
  margin-top: 27px;
  border: 2px solid currentColor;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  line-height: 16.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: inherit;
  transition: opacity 0.25s ease;
}

@media (min-width: 1024px) {
  .site-header__drawer-cta {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-header__drawer ul a:hover,
  .site-header__drawer ul a:focus-visible,
  .site-header__drawer-menu a:hover,
  .site-header__drawer-menu a:focus-visible,
  .site-header__drawer-cta:hover,
  .site-header__drawer-cta:focus-visible {
    opacity: 0.8;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--gj-blue);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--gj-blue);
  color: var(--gj-white);
  border-color: var(--gj-blue);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover,
  .btn--primary:focus-visible {
    background: var(--gj-black);
    color: var(--gj-cream);
    border-color: var(--gj-black);
    opacity: 1;
  }
}

.btn--white {
  background: var(--gj-white);
  color: var(--gj-blue);
  border-color: var(--gj-white);
}

@media (hover: hover) and (pointer: fine) {
  .btn--white:hover:not(:disabled),
  .btn--white:focus-visible:not(:disabled) {
    background: var(--gj-black);
    color: var(--gj-white);
    border-color: var(--gj-white);
    opacity: 1;
  }
}

.btn--white:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.btn--outline {
  border-color: var(--gj-gray);
  color: var(--gj-gray);
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .btn--outline:hover,
  .btn--outline:focus-visible {
    background: var(--gj-blue);
    color: var(--gj-white);
    border-color: var(--gj-blue);
  }
}

.btn--link {
  background: none;
  border: 0;
  color: var(--gj-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0;
  min-height: auto;
  transition: color 0.25s ease, opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn--link:hover,
  .btn--link:focus-visible {
    color: var(--gj-blue-2);
    opacity: 1;
  }
}

/* Section titles */
.section-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gj-black);
}

.section-title--light {
  color: var(--gj-white);
}

.section-title__accent {
  color: inherit;
}

.section-title--light .section-title__accent,
.section-title .section-title__accent {
  font-weight: 700;
}

/* Hero — Figma desktop 1440×693 / mobile 390×825 */
.hero {
  position: relative;
  background: var(--gj-black);
  color: var(--gj-white);
  overflow: hidden;
  margin-top: -64px;
  /* Mobile: alto natural para no cortar CTAs/scroll; mínimo 1 viewport */
  height: auto;
  min-height: 100svh;
  max-height: none;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .hero {
    margin-top: -102px;
    height: min(100svh, 693px);
    max-height: 693px;
    min-height: 0;
  }
}

.hero__track {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: var(--gj-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero__slide {
  display: none;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  padding: 92px var(--gj-pad-m) 56px;
  position: relative;
}

.hero__slide.is-active {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .hero__slide {
    /*
     * Figma: container left 80 + padding 48 = 128px al texto.
     * Derecha: padding del frame ≈ 96px (alineado al header).
     */
    padding: 102px var(--gj-pad) 0 128px;
  }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
}

@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
  }
}

.hero__copy {
  flex: 0 0 auto;
  max-width: 620px;
  text-align: left;
  width: 100%;
  min-width: 0;
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  .hero__copy {
    flex: 1 1 auto;
    align-self: center;
    padding-bottom: 72px;
    max-width: min(620px, 52%);
  }
}

.hero__media {
  position: relative;
  flex: 1 1 auto;
  width: 278px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 278 / 303;
  max-height: 303px;
  min-height: 200px;
  margin: 8px auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__media {
    position: absolute;
    right: var(--gj-pad);
    /* Figma: imagen desde y≈120 hasta el bottom del frame — sin recorte */
    top: 120px;
    bottom: 0;
    width: min(40.4vw, 582px);
    max-width: 582px;
    height: auto;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
    flex: 0 0 auto;
  }

  .hero__media img {
    pointer-events: auto;
  }
}

.hero__image,
.hero__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
}

@media (min-width: 1024px) {
  .hero__image,
  .hero__placeholder {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: right bottom;
  }
}

.hero__title {
  margin: 0;
  font-size: 50px;
  line-height: 54.667px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gj-white);
  overflow-wrap: normal;
}

@media (min-width: 1024px) {
  .hero__title {
    /* Escala con el viewport corto (720 CSS px a 150%) */
    font-size: clamp(52px, 6.2vw, 88px);
    line-height: 0.94;
  }
}

@media (min-width: 1440px) and (min-height: 800px) {
  .hero__title {
    font-size: 100px;
    line-height: 92px;
  }
}

.hero__title strong,
.hero__title b {
  font-weight: 700;
}

.hero__title .is-light,
.hero__title .is-regular {
  font-weight: 300;
  letter-spacing: -0.01em;
}

.hero__title .is-semibold {
  font-weight: 500;
}

.hero__title .is-blue {
  color: var(--gj-blue-3);
  font-weight: inherit;
}

@media (max-width: 1023px) {
  .hero__title .is-blue {
    color: var(--gj-blue-2);
  }
}

.hero__text {
  margin: 24px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 26.4px;
  max-width: 339px;
  color: var(--gj-white);
}

@media (min-width: 1024px) {
  .hero__text {
    margin-top: 20px;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 300;
    line-height: 1.5;
    width: min(480px, 100%);
    max-width: 100%;
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 20px;
}

.hero__actions--desktop {
  display: none;
}

.hero__actions--mobile {
  display: flex;
  width: 100%;
  margin-top: 0;
  padding-top: 24px;
  flex: 0 0 auto;
  gap: 16px;
}

@media (min-width: 1024px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-top: clamp(20px, 4vh, 48px);
  }

  .hero__actions--desktop {
    display: flex;
  }

  .hero__actions--mobile {
    display: none;
  }
}

.hero__actions .btn,
.hero__actions .btn--primary,
.hero__actions .btn--link,
.hero__actions .btn--outline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  line-height: 18px;
}

.hero__actions .btn--primary {
  min-height: 50px;
  width: 100%;
  padding: 16px 32px;
  border-radius: 200px;
}

.hero__actions--mobile .btn--outline {
  width: 100%;
  min-height: 52px;
  padding: 17px 24px;
  border-width: 1px;
  border-color: var(--gj-white);
  border-radius: 177px;
  background: transparent;
  color: var(--gj-white);
}

@media (hover: hover) and (pointer: fine) {
  .hero__actions .btn--primary:hover,
  .hero__actions .btn--primary:focus-visible {
    background: var(--gj-white);
    color: var(--gj-blue);
    border-color: var(--gj-white);
  }

  .hero__actions--mobile .btn--outline:hover,
  .hero__actions--mobile .btn--outline:focus-visible {
    background: var(--gj-white);
    color: var(--gj-black);
    border-color: var(--gj-white);
  }
}

.hero__actions .btn--link {
  justify-content: center;
  min-height: auto;
  padding: 0;
  width: auto;
}

@media (min-width: 1024px) {
  .hero__actions .btn,
  .hero__actions .btn--primary,
  .hero__actions .btn--link {
    font-size: 14px;
    line-height: 15px;
  }

  .hero__actions .btn--primary {
    min-height: 43px;
    width: auto;
    padding: 14px 32px;
  }

  .hero__actions .btn--link {
    justify-content: flex-start;
  }
}

.hero__actions .btn__arrow {
  margin-left: 8px;
  font-weight: 500;
}

.hero__placeholder {
  aspect-ratio: 508 / 499;
  background: rgba(255, 255, 255, 0.06);
}

.hero__controls {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero__arrow,
.hero__bullet {
  background: none;
  border: 0;
  color: var(--gj-white);
  cursor: pointer;
}

.hero__bullets {
  display: flex;
  gap: 8px;
}

.hero__bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
}

.hero__bullet.is-active {
  width: 28px;
  border-radius: 8px;
  background: var(--gj-white);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 28px;
  color: var(--gj-white);
  opacity: 0.95;
  transform: translateX(-50%);
  animation: hero-scroll-bob 1.8s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .hero__scroll {
    bottom: 40px;
  }
}

.hero__scroll img {
  width: 21px;
  height: 12px;
  display: block;
}

@media (min-width: 1024px) {
  .hero__scroll img {
    width: 18px;
    height: 9px;
  }
}

@keyframes hero-scroll-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll {
    animation: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero__scroll:hover {
    opacity: 1;
  }
}

/* About — Figma 148:2619 / 151:6993 */
.about {
  background: var(--gj-cream);
  padding: 48px var(--gj-pad-m) 45px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .about {
    padding: 64px var(--gj-pad) 45px;
    height: auto;
    overflow: visible;
  }
}

.about__inner {
  max-width: var(--gj-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 1024px) {
  .about__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    height: auto;
  }
}

.about__media {
  order: 2;
  width: min(100%, 327px);
  margin: 48px auto 0;
  flex: 0 0 auto;
}

.about__media img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

@media (min-width: 1024px) {
  .about__media {
    position: static;
    order: unset;
    width: 440px;
    margin: 0;
    max-height: none;
  }

  .about__media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: top left;
  }
}

.about__copy {
  order: 1;
  flex: 1 1 auto;
}

@media (min-width: 1024px) {
  .about__copy {
    box-sizing: border-box;
    order: unset;
    margin: 0;
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

.about__title {
  margin: 0 0 24px;
  font-size: 40px;
  font-weight: 700;
  line-height: 42.95px;
  color: var(--gj-black);
}

@media (min-width: 1024px) {
  .about__title {
    margin: 0 0 40px;
    font-size: 56px;
    line-height: 1.05;
  }
}

.about__title-line {
  display: block;
}

.about__title .is-blue {
  color: var(--gj-blue);
}

.about__text {
  margin: 0;
  max-width: 561px;
}

.about__text p {
  margin: 0;
  font-weight: 300;
}

.about__text p + p {
  margin-top: 20px;
}

.about__text p:first-child {
  font-size: 16px;
  line-height: 26.4px;
  color: rgba(30, 30, 30, 0.6);
}

.about__text p:last-child:not(:first-child) {
  font-size: 14px;
  line-height: 23.1px;
  color: rgba(30, 30, 30, 0.5);
}

@media (min-width: 1024px) {
  .about__text p:first-child {
    font-size: 18px;
    line-height: 26px;
  }

  .about__text p:last-child:not(:first-child) {
    font-size: 16px;
    line-height: 26px;
  }
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .about__tags {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

.about__tags li {
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 2px solid rgba(16, 16, 214, 0.4);
  border-radius: 200px;
  color: var(--gj-blue);
  font-size: 13px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .about__tags li {
    font-size: 14px;
  }
}

/* Method — Figma 148:2362 (desktop 1440×462) / 151:7026 (mobile) */
.method {
  background: var(--gj-black);
  color: var(--gj-white);
  overflow: hidden;
  position: relative;
  padding: 30px 0 0;
}

@media (min-width: 1024px) {
  .method {
    padding: 0;
  }
}

.method__inner {
  position: relative;
  max-width: var(--gj-max);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .method__inner {
    width: min(100%, 1440px);
    aspect-ratio: 1440 / 462;
    height: auto;
    overflow: hidden;
  }
}

.method__head {
  padding: 0 var(--gj-pad-m);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .method__head {
    position: absolute;
    left: calc(128 / 1440 * 100%);
    right: calc(128 / 1440 * 100%);
    top: calc(50 / 462 * 100%);
    padding: 0;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(24px, 3.33vw, 48px);
  }
}

.method__title {
  margin: 0;
  font-size: 43px;
  font-weight: 700;
  line-height: 50.76px;
  color: var(--gj-white);
}

@media (min-width: 1024px) {
  .method__title {
    flex: 0 0 auto;
    width: calc(383 / 1440 * 100%);
    max-width: 383px;
    font-size: clamp(40px, 4.44vw, 64px);
    line-height: 0.95;
  }
}

.method__title-line {
  display: block;
}

.method__title .is-blue {
  color: var(--gj-blue-2);
}

.method__text {
  margin: 24px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 26.4px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 343px;
}

@media (min-width: 1024px) {
  .method__text {
    margin: 0;
    flex: 1 1 auto;
    max-width: 699px;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.44;
    color: var(--gj-white);
  }
}

/* Stage + lines + marquees — mobile base, desktop overrides below */
.method__stage {
  display: block;
  position: relative;
  height: 166px;
  margin-top: 40px;
  margin-bottom: 48px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .method__stage {
    position: absolute;
    inset: 0;
    height: auto;
    margin: 0;
  }
}

.method__lines {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.method__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
}

/* Mobile: líneas entre las dos franjas de frases */
.method__line--2 {
  top: 54px;
}

.method__line--3 {
  top: 148px;
}

@media (min-width: 1024px) {
  .method__line--2 {
    top: calc(308 / 462 * 100%);
  }

  .method__line--3 {
    top: calc(448 / 462 * 100%);
  }
}

/* Marquesinas — top RTL (narrativas/claridad/ideas), bottom LTR (patrones/complejidad) */
.method__marquee {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 0;
}

.method__marquee--top {
  top: 0;
  height: 54px;
}

.method__marquee--bottom {
  top: 54px;
  height: 94px;
}

@media (min-width: 1024px) {
  .method__marquee--top {
    top: calc(205 / 462 * 100%);
    height: calc(103 / 462 * 100%);
  }

  .method__marquee--bottom {
    top: calc(308 / 462 * 100%);
    height: calc(140 / 462 * 100%);
  }
}

.method__marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.method__marquee-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 40px;
  padding-right: 40px;
  height: 100%;
}

@media (min-width: 1024px) {
  .method__marquee-group {
    gap: clamp(48px, 5.5vw, 96px);
    padding-right: clamp(48px, 5.5vw, 96px);
  }
}

.method__word {
  display: block;
  height: auto;
  width: auto;
  max-height: 72%;
  max-width: none;
  flex: 0 0 auto;
}

.method__word--narrativas {
  height: calc(52 / 103 * 100%);
}

.method__word--claridad {
  height: calc(47 / 103 * 100%);
}

.method__word--ideas {
  height: calc(60 / 103 * 100%);
}

.method__word--patrones {
  height: calc(88 / 140 * 100%);
}

.method__word--complejidad {
  height: calc(67 / 140 * 100%);
}

@media (max-width: 1023px) {
  .method__marquee--top .method__word {
    height: 28px;
    max-height: none;
  }

  .method__marquee--bottom .method__word {
    height: 38px;
    max-height: none;
  }
}

/* Pillars — Figma 148:2413 */
.pillars {
  background: var(--gj-cream);
  padding: 48px var(--gj-pad-m) 64px;
}

@media (min-width: 1024px) {
  .pillars {
    padding: 64px 80px 24px;
  }
}

.pillars__inner {
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .pillars__inner {
    padding: 0 48px;
  }
}

.pillars__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .pillars__head {
    flex-direction: row;
    align-items: flex-end;
    gap: 48px;
    margin-bottom: 64px;
  }
}

.pillars__title-heading {
  margin: 0;
  font-size: clamp(40px, 4.44vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--gj-black);
}

@media (min-width: 1024px) {
  .pillars__title-heading {
    flex: 0 0 379px;
  }
}

.pillars__title-line {
  display: block;
}

.pillars__title-heading .is-blue {
  color: var(--gj-blue);
}

.pillars__intro {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  color: rgba(30, 30, 30, 0.55);
  max-width: 745px;
}

@media (min-width: 1024px) {
  .pillars__intro {
    font-size: 18px;
    flex: 1 1 auto;
  }
}

.pillars__list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  padding: 0 24px 8px;
  margin: 0 -24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

@media (min-width: 1024px) {
  .pillars__list {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    scroll-snap-type: none;
    scroll-padding: 0;
    padding: 0;
    margin: 0;
  }
}

.pillars__item {
  flex: 0 0 calc(100vw - 72px);
  width: calc(100vw - 72px);
  max-width: 300px;
  scroll-snap-align: start;
  padding: 32px 24px;
  box-sizing: border-box;
  border-top: 1px solid rgba(30, 30, 30, 0.15);
}

@media (min-width: 1024px) {
  .pillars__item {
    flex: unset;
    width: auto;
    max-width: none;
    padding: 40px;
    border-top: 0;
    border-right: 1px solid rgba(30, 30, 30, 0.15);
  }

  .pillars__item:last-child {
    border-right: 0;
  }
}

/* Mobile: números completos (sin recorte) */
.pillars__number {
  margin: 0;
  width: auto;
  height: 58px;
  overflow: visible;
  position: relative;
}

.pillars__number img {
  display: block;
  height: 58px;
  width: auto;
  max-width: none;
  position: static;
  left: auto;
  top: auto;
}

@media (min-width: 1024px) {
  .pillars__number {
    width: 140px;
    height: 95px;
    overflow: hidden;
  }

  .pillars__number img {
    height: 95px;
    width: auto;
    max-width: none;
    position: absolute;
    left: -30px;
    top: 0;
  }
}

.pillars__number--text {
  color: var(--gj-blue);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  width: auto;
  height: auto;
  overflow: visible;
}

.pillars__title {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 27.5px;
  color: var(--gj-black);
}

@media (min-width: 1024px) {
  .pillars__title {
    margin: 24px 0 0;
    font-size: 24px;
    line-height: 32px;
  }
}

.pillars__bullets {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .pillars__bullets {
    margin: 32px 0 0;
  }
}

.pillars__bullets li {
  position: relative;
  padding-left: 16px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 300;
  line-height: 21px;
  color: rgba(30, 30, 30, 0.6);
}

@media (min-width: 1024px) {
  .pillars__bullets li {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 20px;
  }
}

.pillars__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gj-blue);
}

/* Mobile carousel dots — Figma 151:7843 */
.pillars__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .pillars__dots {
    display: none;
  }
}

.pillars__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 200px;
  background: rgba(69, 69, 69, 0.6);
  cursor: pointer;
  transition:
    width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease;
}

.pillars__dot.is-active {
  width: 127px;
  background: var(--gj-blue);
}

/* Services — Figma 148:2181 */
.services {
  background: var(--gj-black);
  color: var(--gj-white);
  padding: 48px var(--gj-pad-m) 64px;
}

@media (min-width: 1024px) {
  .services {
    padding: 67px 80px 80px;
  }
}

.services__inner {
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .services__inner {
    padding: 0 48px;
  }
}

.services__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .services__head {
    flex-direction: row;
    align-items: flex-end;
    gap: 48px;
    margin-bottom: 64px;
  }
}

.services__heading {
  margin: 0;
  font-size: clamp(40px, 4.44vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--gj-white);
  white-space: nowrap;
}

.services__heading .is-blue {
  color: var(--gj-blue);
}

@media (min-width: 1024px) {
  .services__heading {
    flex: 0 0 379px;
  }
}

.services__intro {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  color: var(--gj-white);
  max-width: 758px;
}

@media (min-width: 1024px) {
  .services__intro {
    font-size: 18px;
    flex: 1 1 auto;
  }
}

.services__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gj-white);
}

.services__item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gj-white);
  align-items: center;
}

@media (min-width: 1024px) {
  .services__item {
    grid-template-columns: 220px 1fr 36px;
    grid-template-rows: auto;
    gap: 24px;
    padding: 32px 0;
    min-height: 105px;
    box-sizing: border-box;
  }
}

.services__item-title {
  grid-column: 1;
  grid-row: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--gj-white);
}

@media (min-width: 1024px) {
  .services__item-title {
    font-size: 18px;
    line-height: 28px;
  }
}

.services__item-body {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

@media (min-width: 1024px) {
  .services__item-body {
    grid-column: auto;
    grid-row: auto;
  }
}

.services__item-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 1024px) {
  .services__item-sub {
    font-size: 16px;
    line-height: 20px;
    color: var(--gj-white);
  }
}

.services__item-desc {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 1024px) {
  .services__item-desc {
    font-size: 15px;
    line-height: 16px;
    color: var(--gj-white);
  }
}

.services__item-arrow {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  display: inline-flex;
  width: 24px;
  height: 24px;
}

@media (min-width: 1024px) {
  .services__item-arrow {
    grid-column: auto;
    grid-row: auto;
    width: 34px;
    height: 35px;
  }
}

.services__item-arrow img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Clients — Figma 148:2311 */
.clients {
  background: var(--gj-cream);
  padding: 48px 0 40px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .clients {
    padding: 64px 0 48px;
  }
}

.clients__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gj-pad-m);
}

@media (min-width: 1024px) {
  .clients__inner {
    padding: 0 128px;
  }
}

.clients__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .clients__head {
    flex-direction: row;
    align-items: flex-end;
    gap: 48px;
    margin-bottom: 64px;
  }
}

.clients__heading {
  margin: 0;
  font-size: clamp(40px, 4.44vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--gj-black);
  white-space: nowrap;
}

.clients__heading .is-blue {
  color: var(--gj-blue);
}

@media (min-width: 1024px) {
  .clients__heading {
    flex: 0 0 379px;
  }
}

.clients__intro {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  color: rgba(30, 30, 30, 0.5);
}

@media (min-width: 1024px) {
  .clients__intro {
    font-size: 18px;
    flex: 1 1 auto;
  }
}

.clients__marquee {
  overflow: hidden;
  width: 100%;
}

.clients__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: clients-marquee 32s linear infinite;
  opacity: 0;
}

.clients__marquee.is-ready .clients__track {
  opacity: 1;
}

.clients__group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
  flex: 0 0 auto;
}

.clients__logo {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: brightness(0);
}

@keyframes clients-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients__track {
    animation: none;
  }
}

/* Ideas — Figma 148:2552 */
.ideas {
  background: var(--gj-cream);
  padding: 40px var(--gj-pad-m) 0;
  border-top-right-radius: 80px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .ideas {
    padding: 94px 80px 0;
    border-top-right-radius: 150px;
  }
}

.ideas__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 1024px) {
  .ideas__inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 48px;
  }
}

.ideas__media {
  flex: 0 0 auto;
  width: 100%;
  max-width: 587px;
  order: 1;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .ideas__media {
    order: unset;
    margin: 0;
    align-self: flex-end;
  }
}

.ideas__media img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.ideas__copy {
  flex: 1 1 auto;
  min-width: 0;
  order: 2;
  padding-bottom: 40px;
}

@media (min-width: 1024px) {
  .ideas__copy {
    order: unset;
    align-self: center;
    padding-bottom: 80px;
  }
}

.ideas__heading {
  margin: 0;
  font-size: clamp(40px, 4.44vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--gj-blue);
}

.ideas__heading .is-blue {
  color: var(--gj-blue);
}

.ideas__intro {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  color: var(--gj-black);
  max-width: 761px;
}

@media (min-width: 1024px) {
  .ideas__intro {
    font-size: 18px;
  }
}

.ideas__list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  max-width: 686px;
}

.ideas__list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #0e0d0b;
}

.ideas__list li:first-child {
  border-top: 1px solid #0e0d0b;
}

.ideas__num {
  flex: 0 0 20px;
  font-size: 18px;
  font-weight: 300;
  line-height: 16px;
  color: var(--gj-black);
}

.ideas__item-title {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  color: var(--gj-black);
}

@media (min-width: 1024px) {
  .ideas__item-title {
    font-size: 18px;
  }
}

.ideas__item-arrow {
  flex: 0 0 20px;
  display: inline-flex;
}

.ideas__item-arrow img {
  display: block;
  width: 20px;
  height: 20px;
}

.ideas__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 40px;
  padding: 16px 30px;
  border: 2px solid var(--gj-black);
  border-radius: 200px;
  color: var(--gj-black);
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 15px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

@media (min-width: 1024px) {
  .ideas__cta {
    width: auto;
    justify-content: flex-start;
  }
}

.ideas__cta img {
  display: block;
  width: 24px;
  height: 24px;
  transition: filter 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .ideas__cta:hover,
  .ideas__cta:focus-visible {
    background: var(--gj-black);
    color: var(--gj-cream);
    border-color: var(--gj-black);
  }

  .ideas__cta:hover img,
  .ideas__cta:focus-visible img {
    filter: brightness(0) invert(1);
  }
}

.ideas__cta:focus-visible {
  outline: 2px solid var(--gj-blue);
  outline-offset: 3px;
}

/* Contact — Figma 148:2256 / mobile 151:7382 */
.contact {
  background: var(--gj-blue);
  color: var(--gj-white);
  padding: 0 var(--gj-pad-m) 48px;
}

@media (min-width: 1024px) {
  .contact {
    padding: 73px 80px 80px;
  }
}

.contact__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .contact__inner {
    padding: 64px 48px 0;
    flex-direction: row;
    gap: 96px;
    align-items: flex-start;
  }
}

.contact__copy {
  flex: 0 0 auto;
  max-width: 495px;
}

@media (min-width: 1024px) {
  .contact__copy {
    flex: 0 1 495px;
  }
}

.contact__heading {
  margin: 0;
  padding-top: 32px;
  font-size: 51px;
  font-weight: 700;
  line-height: 63px;
  color: var(--gj-white);
}

@media (min-width: 1024px) {
  .contact__heading {
    padding-top: 0;
    font-size: clamp(48px, 5.55vw, 80px);
    line-height: 0.95;
  }
}

.contact__text {
  margin: 24px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.89);
  max-width: 495px;
}

@media (min-width: 1024px) {
  .contact__text {
    font-size: 18px;
  }
}

.contact__form {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin-top: 40px;
  padding-top: 0;
}

@media (min-width: 1024px) {
  .contact__form {
    flex: 1 1 594px;
    max-width: 594px;
    margin-top: 0;
  }
}

.contact__form .wpcf7,
.contact__form .wpcf7-form {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.contact__form,
.contact__form .wpcf7-form,
.contact__fallback {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form .wpcf7-form,
.contact__fallback {
  margin: 0;
}

.contact__form .wpcf7 {
  display: block;
}

.contact__form .wpcf7-form > p {
  margin: 0 !important;
  display: contents;
}

.contact__form .wpcf7-form br {
  display: none;
}

.contact__form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin: 0;
}

.contact__form .wpcf7-spinner {
  display: none;
}

.contact__form .screen-reader-response,
.contact__form .wpcf7-response-output:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  border: 0 !important;
}

.contact__form .screen-reader-text,
.contact__form .wpcf7-form label.screen-reader-text,
.contact__form .wpcf7-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact__fallback input,
.contact__fallback textarea,
.contact__form input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact__form textarea.wpcf7-form-control {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 200px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gj-white);
  padding: 17px 21px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  caret-color: var(--gj-white);
  -webkit-text-fill-color: var(--gj-white);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.contact__fallback textarea,
.contact__form textarea.wpcf7-form-control {
  border-radius: 16px;
  min-height: 138px;
  height: 138px;
  resize: none;
  line-height: 21px;
}

.contact__fallback input::placeholder,
.contact__fallback textarea::placeholder,
.contact__form .wpcf7-form-control::placeholder {
  color: rgba(255, 255, 255, 0.68);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.68);
  opacity: 1;
}

.contact__form input.wpcf7-form-control:not([type="submit"]):-webkit-autofill,
.contact__form input.wpcf7-form-control:not([type="submit"]):-webkit-autofill:hover,
.contact__form input.wpcf7-form-control:not([type="submit"]):-webkit-autofill:focus,
.contact__form textarea.wpcf7-form-control:-webkit-autofill,
.contact__form textarea.wpcf7-form-control:-webkit-autofill:hover,
.contact__form textarea.wpcf7-form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--gj-blue) inset !important;
  box-shadow: 0 0 0 1000px var(--gj-blue) inset !important;
  -webkit-text-fill-color: var(--gj-white) !important;
  caret-color: var(--gj-white);
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  transition: background-color 99999s ease-out 0s;
}

.contact__submit,
.contact__form input[type="submit"],
.contact__form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 47px;
  margin-top: 8px;
  border: 1px solid var(--gj-white);
  border-radius: 200px;
  background: var(--gj-white);
  color: var(--gj-blue);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact__form .wpcf7-submit:hover:not(:disabled):not(.is-sending),
  .contact__form .wpcf7-submit:focus-visible:not(:disabled):not(.is-sending),
  .contact__submit:hover:not(:disabled):not(.is-sending),
  .contact__submit:focus-visible:not(:disabled):not(.is-sending) {
    background: var(--gj-blue);
    color: var(--gj-white);
    border-color: var(--gj-white);
  }
}

.contact__form .wpcf7-submit:disabled,
.contact__form .wpcf7-submit.is-sending,
.contact__submit:disabled,
.contact__submit.is-sending {
  cursor: not-allowed;
  opacity: 0.9;
}

.contact__form .wpcf7-not-valid-tip,
.contact__form .wpcf7-response-output {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact__form input.contact__field--error,
.contact__form textarea.contact__field--error,
.contact__form input.wpcf7-not-valid,
.contact__form textarea.wpcf7-not-valid {
  background: rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  border-width: 1px !important;
  color: var(--gj-blue) !important;
  -webkit-text-fill-color: var(--gj-blue) !important;
  caret-color: var(--gj-blue) !important;
}

.contact__form input.contact__field--error::placeholder,
.contact__form textarea.contact__field--error::placeholder,
.contact__form input.wpcf7-not-valid::placeholder,
.contact__form textarea.wpcf7-not-valid::placeholder {
  color: var(--gj-blue) !important;
  -webkit-text-fill-color: var(--gj-blue) !important;
  opacity: 1 !important;
  font-weight: 500;
}

.contact__form input.contact__field--error::-webkit-input-placeholder,
.contact__form textarea.contact__field--error::-webkit-input-placeholder,
.contact__form input.wpcf7-not-valid::-webkit-input-placeholder,
.contact__form textarea.wpcf7-not-valid::-webkit-input-placeholder {
  color: var(--gj-blue) !important;
  -webkit-text-fill-color: var(--gj-blue) !important;
  opacity: 1 !important;
  font-weight: 500;
}

.contact__form input.contact__field--error::-moz-placeholder,
.contact__form textarea.contact__field--error::-moz-placeholder,
.contact__form input.wpcf7-not-valid::-moz-placeholder,
.contact__form textarea.wpcf7-not-valid::-moz-placeholder {
  color: var(--gj-blue) !important;
  opacity: 1 !important;
  font-weight: 500;
}

.contact__form input.contact__field--error:-webkit-autofill,
.contact__form input.contact__field--error:-webkit-autofill:hover,
.contact__form input.contact__field--error:-webkit-autofill:focus,
.contact__form textarea.contact__field--error:-webkit-autofill,
.contact__form textarea.contact__field--error:-webkit-autofill:hover,
.contact__form textarea.contact__field--error:-webkit-autofill:focus,
.contact__form input.wpcf7-not-valid:-webkit-autofill,
.contact__form input.wpcf7-not-valid:-webkit-autofill:hover,
.contact__form input.wpcf7-not-valid:-webkit-autofill:focus,
.contact__form textarea.wpcf7-not-valid:-webkit-autofill,
.contact__form textarea.wpcf7-not-valid:-webkit-autofill:hover,
.contact__form textarea.wpcf7-not-valid:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.5) inset !important;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.5) inset !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  -webkit-text-fill-color: var(--gj-blue) !important;
}

.contact__hint {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}

/* ------------------------------------------------------------------ */
/* /gracias/ — Figma 291:4090 (desktop 1440) / 291:4204 (mobile 390)   */
/* Bloque oscuro que continúa el header; la figura queda a ras del      */
/* footer claro y se recorta contra el borde derecho en mobile.         */
/* ------------------------------------------------------------------ */
.status-page__section {
  position: relative;
  background: var(--gj-black);
  color: var(--gj-white);
  overflow: hidden;
}

.status-page__inner {
  position: relative;
  max-width: var(--gj-max);
  min-height: 330px;
  margin: 0 auto;
  padding: 52px var(--gj-pad-m) 24px;
}

@media (min-width: 1024px) {
  .status-page__inner {
    min-height: 431px;
    padding: 42px 254px 71px 107px;
  }
}

/* Por encima de la figura: en mobile el recorte de la cabeza llega hasta
   el borde del texto. */
.status-page__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 44px;
}

@media (min-width: 1024px) {
  .status-page__copy {
    gap: 32px;
    max-width: 555px;
  }
}

.status-page__title {
  margin: 0;
  max-width: 236px;
  font-size: 40px;
  font-weight: 700;
  line-height: 37px;
  letter-spacing: 0.35px;
  color: var(--gj-white);
}

@media (min-width: 1024px) {
  .status-page__title {
    max-width: none;
    /* Escala con el ancho útil para que la figura no invada el texto
       entre 1024 y 1440. */
    font-size: clamp(56px, 5.55vw, 80px);
    line-height: 0.9125;
  }
}

/* El punto de la «i» es el azul de la marca: el círculo tapa el original. */
.status-page__dot {
  position: relative;
}

.status-page__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.95em;
  width: 0.2125em;
  height: 0.2125em;
  margin-left: -0.106em;
  border-radius: 50%;
  background: var(--gj-blue-3);
}

.status-page__text {
  margin: 0;
  max-width: 256px;
  font-size: 14px;
  font-weight: 300;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 1024px) {
  .status-page__text {
    max-width: 378px;
    font-size: 18px;
  }
}

.status-page__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 30px;
  border: 2px solid var(--gj-white);
  border-radius: 200px;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gj-white);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

@media (min-width: 1024px) {
  .status-page__cta {
    padding: 14px 30px;
    font-size: 16px;
  }
}

/* El icono del tema es oscuro: se blanquea para el fondo negro. */
.status-page__cta img {
  filter: brightness(0) invert(1);
}

.status-page__cta:focus-visible {
  outline: 2px solid var(--gj-blue-3);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .status-page__cta:hover,
  .status-page__cta:focus-visible {
    background: var(--gj-white);
    color: var(--gj-black);
  }

  .status-page__cta:hover img,
  .status-page__cta:focus-visible img {
    filter: none;
  }
}

/* La figura se ancla al borde inferior del bloque, de modo que el footer la
   corta como en el diseño. */
.status-page__figure {
  position: absolute;
  right: -143px;
  bottom: 0;
  width: 269px;
  height: 326px;
  object-fit: cover;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .status-page__figure {
    right: calc(max(0px, (100% - var(--gj-max)) / 2) + min(254px, 17.64%));
    width: min(407px, 28.26%);
    height: auto;
    aspect-ratio: 407 / 462;
  }
}

/* Footer — Figma 282:3231 (desktop 1440) / 282:3471 (mobile 390) */
.site-footer {
  background: var(--gj-black);
  color: var(--gj-white);
  /* Sin padding inferior: la marca se recorta contra el borde, como el diseño. */
  padding: 26px 30px 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 63px 97px 0 58px;
  }
}

/* La marca sobresale del padding y se corta abajo: el alto del bloque la recorta. */
.site-footer__wordmark {
  display: flex;
  align-items: flex-start;
  gap: calc(48.1 / 1366 * 100%);
  margin: 43px -45px 0;
  aspect-ratio: 419.47 / 32;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .site-footer__wordmark {
    margin: 78px -53px 0 -28px;
    aspect-ratio: 1366 / 86.5;
  }
}

.site-footer__word {
  display: block;
  height: auto;
}

.site-footer__word--g {
  width: calc(612.216 / 1366 * 100%);
}

.site-footer__word--j {
  width: calc(705.683 / 1366 * 100%);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 30px;
  align-items: start;
}

@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: auto auto 1fr;
    column-gap: 25px;
  }
}

.site-footer__logo {
  display: block;
  line-height: 0;
}

.site-footer__logo img {
  display: block;
  width: 24px;
  height: auto;
}

@media (min-width: 1024px) {
  .site-footer__logo img {
    width: 39px;
  }
}

.site-footer__quote {
  max-width: 241px;
  margin: 0;
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 19px;
  color: var(--gj-white);
}

@media (min-width: 1024px) {
  .site-footer__quote {
    max-width: 544px;
    margin-top: 3px;
    font-size: 18px;
    line-height: 26px;
  }
}

.site-footer__contact,
.site-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 27px;
  grid-column: 1 / -1;
  margin-top: 33px;
}

@media (min-width: 1024px) {
  .site-footer__contact {
    grid-column: 3;
    grid-row: 1;
    gap: 16px;
    justify-self: end;
    margin-top: 2px;
  }
}

.site-footer__contact a,
.site-footer__legal a {
  transition: opacity 0.25s ease;
}

.site-footer__contact a {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-weight: 300;
  line-height: 20px;
  color: var(--gj-white);
}

.site-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 17px;
  width: 17px;
  line-height: 0;
}

.site-footer__icon img {
  display: block;
  width: 100%;
  height: auto;
}

/* Los legales solo están en el diseño mobile. */
.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .site-footer__legal {
    display: none;
  }
}

.site-footer__legal a {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
  text-decoration: underline;
  color: var(--gj-white);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__contact a:hover,
  .site-footer__contact a:focus-visible,
  .site-footer__legal a:hover,
  .site-footer__legal a:focus-visible {
    opacity: 0.7;
  }
}

/* Casos — Figma 190:291 (desktop 1440) / 155:8283 (mobile 390) */
.casos {
  background: var(--gj-cream);
}

/* Hero de listados (Casos, Recursos): el header sticky va dentro de su alto. */
.page-hero {
  display: flex;
  align-items: flex-end;
  height: 239px;
  margin-top: calc(var(--gj-header-h) * -1);
  padding: var(--gj-header-h) var(--gj-pad-m) 0;
  background: var(--gj-black);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .page-hero {
    height: 320px;
    padding: var(--gj-header-h) 67px 0;
  }
}

.page-hero__inner {
  width: 100%;
  max-width: var(--gj-max);
  margin: 0 auto;
}

/* La base del texto se recorta contra el borde inferior del hero (Figma).
   Interlínea y desplazamiento van en em para que el recorte no cambie al escalar. */
.page-hero__title {
  margin: 0;
  font-size: 80px;
  font-weight: 400;
  line-height: 0.68;
  letter-spacing: -0.02em;
  color: var(--gj-cream);
  transform: translateY(0.02em);
}

@media (min-width: 1024px) {
  .page-hero__title {
    font-size: clamp(110px, 13.9vw, 200px);
    line-height: 0.46;
    transform: translateY(-0.085em);
  }
}

.page-hero__title .is-blue {
  color: var(--gj-blue-2);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .page-hero__title .is-blue {
    color: var(--gj-blue-3);
    font-weight: inherit;
  }
}

.casos__body {
  padding: 36px 0 64px;
}

@media (min-width: 1024px) {
  .casos__body {
    padding: 53px 0 96px;
  }
}

.casos__inner {
  max-width: var(--gj-max);
  margin: 0 auto;
  padding: 0 var(--gj-pad-m);
}

@media (min-width: 1024px) {
  .casos__inner {
    padding: 0 85px;
  }
}

/* Filtros: pills oscuros. Mobile apila el buscador bajo los selectores. */
.casos__filters {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (min-width: 1024px) {
  .casos__filters {
    flex-wrap: nowrap;
    gap: 30px;
  }
}

.casos__filter-toggle,
.casos__search {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 50px;
  padding: 0 22px;
  border: 2px solid var(--gj-black);
  border-radius: 200px;
  background: var(--gj-black);
  color: var(--gj-cream);
  box-shadow: 0 1px 2px rgba(25, 33, 61, 0.08);
}

@media (min-width: 1024px) {
  .casos__filter-toggle,
  .casos__search {
    border-color: var(--gj-cream);
  }
}

/* Desplegable propio: nada de controles nativos del navegador. */
.casos__filter {
  position: relative;
}

/* En mobile los dos filtros caben en un solo botón «Filtro» (Figma 155:8283). */
.casos__filter--single {
  display: none;
}

@media (min-width: 1024px) {
  .casos__filter--single {
    display: block;
  }

  .casos__filter--all {
    display: none;
  }
}

.casos__filter-toggle {
  gap: 14px;
  padding-right: 20px;
  font-size: 18px;
  line-height: 23.833px;
  cursor: pointer;
  list-style: none;
}

.casos__filter-toggle::-webkit-details-marker {
  display: none;
}

.casos__filter-toggle::marker {
  content: "";
}

.casos__filter-toggle:focus-visible {
  outline: 2px solid var(--gj-blue-3);
  outline-offset: 6px;
}

.casos__filter.is-set .casos__filter-toggle {
  border-color: var(--gj-blue);
  background: var(--gj-blue);
  color: var(--gj-white);
}

.casos__filter-value {
  white-space: nowrap;
}

.casos__filter-chevron {
  line-height: 0;
  margin-left: auto;
  transition: transform 0.25s ease;
}

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

/* El embudo es un símbolo, no un indicador de apertura: no rota. */
.casos__filter-icon {
  line-height: 0;
  margin-left: auto;
}

.casos__filter-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(320px, calc(100vw - 2 * var(--gj-pad-m)));
  padding: 8px;
  border: 2px solid var(--gj-cream);
  border-radius: 25px;
  background: var(--gj-black);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.casos__options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.casos__filter-group + .casos__filter-group {
  margin-top: 10px;
}

.casos__filter-heading {
  margin: 0 0 2px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.55);
}

.casos__option {
  display: block;
  padding: 11px 18px;
  border-radius: 200px;
  font-size: 18px;
  line-height: 23.833px;
  color: var(--gj-cream);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.casos__option.is-active {
  background: var(--gj-blue);
  color: var(--gj-white);
}

@media (hover: hover) and (pointer: fine) {
  .casos__option:not(.is-active):hover {
    background: rgba(244, 241, 235, 0.12);
  }
}

.casos__option:focus-visible {
  outline: 2px solid var(--gj-blue-3);
  outline-offset: 2px;
}

.casos__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 50px;
  padding: 0 17px;
  border: 2px solid var(--gj-blue);
  border-radius: 200px;
  background: var(--gj-blue);
  font-size: 18px;
  line-height: 23.833px;
  color: var(--gj-white);
  transition: opacity 0.25s ease;
}

.casos__search {
  /* En mobile comparte fila con el botón «Filtro» y se queda con el resto. */
  flex: 1 1 150px;
  min-width: 0;
  gap: 15px;
}

@media (min-width: 1024px) {
  .casos__search {
    flex: 0 0 auto;
    width: 219px;
    margin-left: auto;
  }
}

.casos__search-label {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-width: 0;
}

.casos__search-icon {
  line-height: 0;
  flex: 0 0 auto;
}

.casos__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 18px;
  line-height: 23.833px;
  color: inherit;
}

.casos__search input::placeholder {
  color: var(--gj-cream);
  opacity: 1;
}

/* El pill ya delimita el campo: escribir no debe añadir recuadro de foco. */
.casos__search input:focus,
.casos__search input:focus-visible {
  outline: none;
}

.casos__search:focus-within {
  border-color: var(--gj-cream);
}

/* El autocompletado del navegador pinta fondo y texto propios: se neutraliza. */
.casos__search input:-webkit-autofill,
.casos__search input:-webkit-autofill:hover,
.casos__search input:-webkit-autofill:focus,
.casos__search input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--gj-cream);
  box-shadow: inset 0 0 0 100px var(--gj-black);
  caret-color: var(--gj-cream);
}

/* El aspa nativa no está en el diseño y el navegador la pinta a su color. */
.casos__search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

@media (hover: hover) and (pointer: fine) {
  .casos__clear:hover,
  .casos__clear:focus-visible {
    opacity: 0.85;
  }
}

.casos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  margin-top: 45px;
}

@media (min-width: 640px) {
  .casos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 39px 23px;
  }
}

@media (min-width: 1024px) {
  .casos__grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 48px;
  }
}

.casos__empty {
  margin: 45px 0 0;
  font-size: 16px;
  color: var(--gj-text);
}

.casos__pagination {
  margin-top: 48px;
  font-size: 16px;
}

.casos__pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  color: var(--gj-text);
}

.casos__pagination .page-numbers.current {
  color: var(--gj-blue);
  font-weight: 600;
}

/* Tarjeta: imagen con tag + panel blanco (Figma 190:296) */
.casos-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 11.262px;
  background: var(--gj-white);
  box-shadow: 0 2.816px 8.447px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
  .casos-card {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
}

.casos-card__media {
  position: relative;
  aspect-ratio: 325 / 148;
  border-radius: inherit;
  background: var(--gj-white);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .casos-card__media {
    aspect-ratio: 408 / 300;
  }
}

.casos-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.casos-card__tag {
  position: absolute;
  top: 18px;
  left: 11.43px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 20.18px;
  border-radius: 200px;
  background: var(--gj-gray);
  font-size: 14px;
  line-height: 1;
  color: var(--gj-cream);
}

@media (min-width: 1024px) {
  .casos-card__tag {
    top: 29px;
    left: 15px;
    height: 32px;
    padding: 0 28.669px;
    font-size: 16px;
  }
}

.casos-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.816px;
  flex: 1 1 auto;
  padding: 12px 12px 20px;
}

@media (min-width: 1024px) {
  .casos-card__body {
    gap: 4px;
    padding: 25px 15px 18px;
  }
}

.casos-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gj-black);
}

@media (min-width: 1024px) {
  .casos-card__title {
    color: var(--gj-blue);
  }
}

.casos-card__title a {
  color: inherit;
}

/* El enlace del título cubre la tarjeta: toda la card es clicable. */
.casos-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.casos-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--gj-black);
}

@media (min-width: 1024px) {
  .casos-card__text {
    font-size: 16px;
  }
}

.casos-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gj-gray);
}

.casos-card__arrow {
  line-height: 0;
  transition: transform 0.25s ease;
}

.casos-card__arrow img {
  width: 36px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .casos-card:hover .casos-card__arrow {
    transform: translateX(4px);
  }
}

/* ------------------------------------------------------------------ */
/* Detalle de caso — Figma 170:932 (desktop) / 170:1664 (mobile)       */
/* ------------------------------------------------------------------ */
.caso {
  background: var(--gj-cream);
}

/* Igual que el listado: el header sticky va dentro del alto del hero. */
.caso__hero {
  display: flex;
  align-items: flex-end;
  height: 239px;
  margin-top: calc(var(--gj-header-h) * -1);
  padding: var(--gj-header-h) var(--gj-pad-m) 0;
  background: var(--gj-black);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .caso__hero {
    height: 329px;
    padding: var(--gj-header-h) 70px 0;
  }
}

.caso__hero-inner {
  width: 100%;
  max-width: var(--gj-max);
  margin: 0 auto;
}

/* El título se apoya en el borde inferior del hero (Figma). */
.caso__title {
  margin: 0;
  font-size: clamp(38px, 15.4vw, 60px);
  font-weight: 400;
  line-height: 1.117;
  color: var(--gj-cream);
  transform: translateY(0.07em);
}

@media (min-width: 1024px) {
  .caso__title {
    font-size: clamp(72px, 8.34vw, 120px);
    line-height: 1;
  }
}

.caso__title .is-semibold {
  font-weight: 600;
}

.caso__title .is-light {
  font-weight: 200;
}

.caso__title .is-blue {
  color: var(--gj-blue-2);
}

.caso__body {
  padding: 40px 0 64px;
}

@media (min-width: 1024px) {
  .caso__body {
    padding: 50px 0 96px;
  }
}

.caso__inner {
  max-width: var(--gj-max);
  margin: 0 auto;
  padding: 0 var(--gj-pad-m);
}

@media (min-width: 1024px) {
  .caso__inner {
    padding: 0 70px;
  }
}

.caso__breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 12px;
  color: var(--gj-text);
}

@media (min-width: 1024px) {
  .caso__breadcrumb {
    font-size: 18px;
  }
}

.caso__back {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.caso__back-icon {
  line-height: 0;
  /* El asset apunta a la derecha: aquí vuelve al listado. */
  transform: scaleX(-1);
}

.caso__back-icon img {
  width: 35.5px;
  height: 19.5px;
}

.caso__breadcrumb-current {
  color: var(--gj-text);
}

.caso__intro {
  margin-top: 40px;
  font-size: 16px;
  line-height: 24px;
}

@media (min-width: 1024px) {
  .caso__intro {
    margin-top: 30px;
    font-size: 18px;
  }
}

.caso__intro p {
  margin: 0 0 24px;
}

.caso__intro p:last-child {
  margin-bottom: 0;
}

.caso__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .caso__stats {
    max-width: 556px;
  }
}

.caso__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.caso__stat-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 2px;
  color: var(--gj-blue);
  /* El conteo cambia de dígito en cada frame: ancho fijo para que no baile. */
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1024px) {
  .caso__stat-value {
    font-size: 36px;
  }
}

.caso__stat-label {
  font-size: 12px;
  line-height: 20px;
  letter-spacing: -0.1504px;
  color: var(--gj-text);
}

@media (min-width: 1024px) {
  .caso__stat-label {
    font-size: 18px;
  }
}

.caso__media {
  margin: 32px 0 0;
  aspect-ratio: 328 / 287;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .caso__media {
    margin-top: 49px;
    aspect-ratio: auto;
    height: 409px;
  }
}

.caso__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caso__content {
  margin-top: 49px;
  font-size: 16px;
  line-height: 25px;
}

.caso__content > *:first-child {
  margin-top: 0;
}

.caso__content > *:last-child {
  margin-bottom: 0;
}

.caso__content p {
  margin: 0 0 25px;
}

.caso__content h2,
.caso__content h3 {
  margin: 39px 0 14px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.caso__content ul,
.caso__content ol {
  margin: 0 0 25px;
  padding-left: 20px;
  list-style: disc;
}

.caso__content ol {
  list-style: decimal;
}

.caso__content li {
  margin-bottom: 8px;
}

.caso__content a {
  color: var(--gj-blue);
  text-decoration: underline;
}

.caso__content img {
  margin: 25px 0;
}

/* Cita destacada: mismo tratamiento venga del editor o del campo ACF. */
.caso__content blockquote,
.caso__quote {
  margin: 39px 0;
  padding: 0;
  border: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  color: var(--gj-blue);
}

.caso__content blockquote p:last-child {
  margin-bottom: 0;
}

.caso__external {
  margin: 39px 0 0;
  font-size: 16px;
  line-height: 25px;
}

.caso__external a {
  color: var(--gj-blue);
}

@media (hover: hover) and (pointer: fine) {
  .caso__external a:hover,
  .caso__external a:focus-visible {
    text-decoration: underline;
  }
}

/* Más proyectos: carrusel sobre fondo gris (Figma 170:943 / 170:2060) */
.caso-related {
  padding: 43px 0 52px;
  background: var(--gj-gray);
  color: var(--gj-white);
}

@media (min-width: 1024px) {
  .caso-related {
    padding: 54px 0 52px;
  }
}

.caso-related__inner {
  display: flex;
  flex-direction: column;
  max-width: var(--gj-max);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .caso-related__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title cta"
      "viewport viewport"
      "dots dots";
    align-items: center;
    padding: 0 150px;
  }
}

.caso-related__title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 6.6px;
  text-transform: uppercase;
  text-align: center;
  color: var(--gj-white);
}

@media (min-width: 1024px) {
  .caso-related__title {
    grid-area: title;
    text-align: left;
  }
}

.caso-related__viewport {
  position: relative;
  margin-top: 34px;
}

@media (min-width: 1024px) {
  .caso-related__viewport {
    grid-area: viewport;
    margin-top: 77px;
  }
}

.caso-related__track {
  display: flex;
  gap: 38px;
  /* La tarjeta queda casi centrada y la siguiente asoma por la derecha. */
  padding: 0 53px;
  scroll-padding-left: 53px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.caso-related__track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .caso-related__track {
    gap: 22px;
    padding: 0;
    scroll-padding-left: 0;
    /* Sigue siendo scrollable para flechas/bullets; se oculta la barra. */
    overflow-x: auto;
  }
}

.caso-related__track > .casos-card {
  flex: 0 0 256px;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .caso-related__track > .casos-card {
    flex-basis: 320px;
  }
}

@media (min-width: 1024px) {
  .caso-related__track > .casos-card {
    flex-basis: calc((100% - 44px) / 3);
  }
}

/* Flechas: solo desktop, en los márgenes laterales de la sección. */
.caso-related__nav {
  display: none;
}

@media (min-width: 1024px) {
  .caso-related__nav {
    position: absolute;
    top: 50%;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 0.25s ease;
  }

  .caso-related__nav--prev {
    left: -58px;
  }

  .caso-related__nav--prev img {
    transform: scaleX(-1);
  }

  .caso-related__nav--next {
    right: -58px;
  }

  .caso-related__nav[disabled] {
    opacity: 0.35;
    cursor: default;
  }
}

.caso-related__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.429px;
  margin-top: 36px;
}

.caso-related__dots[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .caso-related__dots {
    grid-area: dots;
    margin-top: 40px;
  }
}

.caso-related__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 22.857px;
  background: #929292;
  cursor: pointer;
  transition:
    width 0.25s ease,
    background-color 0.25s ease;
}

.caso-related__dot.is-active {
  width: 43.429px;
  background: var(--gj-white);
}

.caso-related__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  box-sizing: border-box;
  min-width: 247px;
  height: 48px;
  margin-top: 49px;
  padding: 0 6px 0 20px;
  border-radius: 43px;
  background: var(--gj-white);
  font-size: 14px;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--gj-black);
}

@media (min-width: 1024px) {
  .caso-related__cta {
    grid-area: cta;
    justify-self: end;
    min-width: 0;
    margin-top: 0;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    color: var(--gj-gray);
  }
}

.caso-related__cta-icon {
  line-height: 0;
}

@media (hover: hover) and (pointer: fine) {
  .caso-related__cta:hover,
  .caso-related__cta:focus-visible,
  .caso-related__nav:not([disabled]):hover {
    opacity: 0.85;
  }
}

/* Sin desbordamiento no hay flechas; los bullets siguen a la cantidad de casos. */
.caso-related.is-static .caso-related__nav {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Recursos — Figma 157:8742 (desktop 1440) / 157:9177 (mobile 390)    */
/* ------------------------------------------------------------------ */
.recursos {
  background: var(--gj-black);
  color: var(--gj-white);
}

.recursos__body {
  padding: 0 0 48px;
}

@media (min-width: 1024px) {
  .recursos__body {
    padding: 66px 0 72px;
  }
}

.recursos__inner {
  max-width: var(--gj-max);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .recursos__inner {
    padding: 0 128px;
  }
}

/* Las separaciones de 1px dejan ver el fondo: hacen de líneas divisorias. */
.recursos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
  .recursos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .recursos__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.recursos__empty {
  margin: 0;
  padding: 40px var(--gj-pad-m);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.69);
}

.recursos__pagination {
  margin-top: 32px;
  padding: 0 var(--gj-pad-m);
  font-size: 16px;
}

@media (min-width: 1024px) {
  .recursos__pagination {
    margin-top: 48px;
    padding: 0;
  }
}

.recursos__pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.69);
}

.recursos__pagination .page-numbers.current {
  color: var(--gj-blue-3);
  font-weight: 600;
}

/* Tarjeta: icono, tipo, título, bajada y descarga (Figma 259:784) */
.recursos-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  background: var(--gj-black);
}

/* Los iconos tienen altos distintos: la línea base común alinea los textos. */
.recursos-card__icon {
  display: flex;
  align-items: flex-end;
  min-height: 44px;
}

@media (min-width: 1024px) {
  .recursos-card__icon {
    min-height: 46px;
  }
}

.recursos-card__icon-image {
  width: auto;
  max-height: 46px;
}

.recursos-card__glyph {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--gj-white);
}

@media (min-width: 1024px) {
  .recursos-card__glyph {
    font-size: 50px;
  }
}

.recursos-card__tipo {
  margin: 20px 0 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gj-blue-3);
}

.recursos-card__title {
  margin: 13px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--gj-white);
}

.recursos-card__text {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 22.75px;
  color: rgba(255, 255, 255, 0.69);
}

.recursos-card__cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  font-size: 16.669px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: 1.6669px;
  text-transform: uppercase;
  color: var(--gj-white);
  transition: color 0.2s ease;
}

.recursos-card__cta-icon {
  display: flex;
  transition: transform 0.2s ease;
}

.recursos-card__cta-icon img {
  width: 18.31px;
  height: 18.31px;
}

@media (min-width: 1024px) {
  .recursos-card__cta:hover,
  .recursos-card__cta:focus-visible {
    color: var(--gj-blue-3);
  }

  .recursos-card__cta:hover .recursos-card__cta-icon,
  .recursos-card__cta:focus-visible .recursos-card__cta-icon {
    transform: translateY(2px);
  }
}

/* Marco claro (Recursos, 404): el diseño invierte el header y, en Recursos,
   también el footer. Se resuelve con clases del body, sin duplicar plantillas
   ni assets. */
.gj-header-light .site-header,
.gj-header-light .page-hero,
.gj-footer-light .site-footer {
  background: var(--gj-cream);
  color: var(--gj-black);
}

/* Estos textos fijan el blanco del marco oscuro: hay que revertirlos uno a uno. */
.gj-header-light .site-header__logo,
.gj-header-light .page-hero__title,
.gj-footer-light .site-footer__quote,
.gj-footer-light .site-footer__contact a,
.gj-footer-light .site-footer__legal a {
  color: var(--gj-black);
}

/* Los SVG de marca e iconos son blancos: se oscurecen en vez de duplicarlos.
   El brillo los deja en el negro del tema (#1e1e1e). */
.gj-header-light .site-header__logo img,
.gj-footer-light .site-footer__logo img,
.gj-footer-light .site-footer__icon img {
  filter: brightness(0.118);
}

/* La marca del borde inferior es gris, no negra (Figma 157:8742). */
.gj-footer-light .site-footer__word {
  filter: brightness(0.325);
}

/* El punto de la marca del footer sigue siendo azul, y el filtro lo apaga.
   El ancho del enlace se ajusta al logo para que el punto caiga en su sitio. */
.gj-footer-light .site-footer__logo {
  position: relative;
  justify-self: start;
}

.gj-footer-light .site-footer__logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 83.9%;
  width: 16.1%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gj-blue-3);
}

@media (hover: hover) and (pointer: fine) {
  .gj-header-light .site-header--dark .site-header__cta:hover,
  .gj-header-light .site-header--dark .site-header__cta:focus-visible {
    background: var(--gj-black);
    color: var(--gj-cream);
    border-color: var(--gj-black);
  }
}

/* El menú desplegado es oscuro en todo el sitio: mientras está abierto la barra
   recupera su color, de modo que el menú se ve siempre igual. */
.gj-header-light .site-header {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.gj-header-light .site-header:has(.site-header__drawer.is-open) {
  background: var(--gj-black);
  color: var(--gj-white);
}

.gj-header-light .site-header:has(.site-header__drawer.is-open) .site-header__logo {
  color: var(--gj-white);
}

.gj-header-light .site-header:has(.site-header__drawer.is-open) .site-header__logo img {
  filter: none;
}

/* ------------------------------------------------------------------ */
/* 404 — Figma 161:11886 (desktop 1440) / 161:12044 (mobile 390)       */
/* La marquesina corta la cabeza: collage arriba, retrato abajo.       */
/* ------------------------------------------------------------------ */
.error-404 {
  position: relative;
  background: var(--gj-cream);
  color: var(--gj-black);
  padding: 0 0 48px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .error-404 {
    padding: 0 0 56px;
    overflow: visible;
  }
}

.error-404__stage {
  position: relative;
  width: 100%;
}

/* Collage (cámaras/TV) y retrato comparten ancho y borde, de modo que el
   collage queda siempre centrado sobre la cabeza. */
.error-404__collage,
.error-404__face {
  display: block;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.error-404__collage img,
.error-404__face img {
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  /* En desktop flota a la derecha, encima de la marquesina, con el mismo
     borde derecho que el retrato (107px del ancho útil, como en Figma). */
  .error-404__collage {
    position: absolute;
    top: -40px;
    right: calc(max(0px, (100% - var(--gj-max)) / 2) + 107px);
    width: 440px;
    z-index: 1;
  }

  .error-404__stage {
    /* Hueco para el collage entre header y marquesina (Figma ~88px útiles). */
    padding-top: 96px;
  }
}

/* La marquesina se recorta contra los bordes: el texto entra y sale de pantalla. */
.error-404__bands {
  position: relative;
  z-index: 2;
}

.error-404__marquee {
  display: flex;
  align-items: center;
  height: 75px;
  border-top: 2px solid var(--gj-black);
  border-bottom: 2px solid var(--gj-black);
  overflow: hidden;
  background: var(--gj-cream);
}

.error-404__track {
  display: flex;
  width: max-content;
}

/* Sin JS el texto queda estático y legible: el bucle se activa al medirlo. */
.error-404__marquee.is-ready .error-404__track {
  will-change: transform;
  animation: error-404-marquee 24s linear infinite;
}

.error-404__group {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-right: 60px;
  flex: 0 0 auto;
}

.error-404__phrase {
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.error-404__phrase strong {
  font-weight: 700;
  color: var(--gj-blue-2);
}

.error-404__code {
  font-size: 66px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.error-404__code .is-blue {
  color: var(--gj-blue-2);
}

/* En mobile el diseño baja el 404 a una segunda banda centrada: la línea
   superior ya la pone la banda de la marquesina. */
.error-404__code-band {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 67px;
  border-bottom: 2px solid var(--gj-black);
  overflow: hidden;
  background: var(--gj-cream);
}

.error-404__code--inline {
  display: none;
}

@media (min-width: 768px) {
  .error-404__marquee {
    height: 100px;
  }

  .error-404__phrase {
    font-size: 56px;
  }

  .error-404__code {
    font-size: 78px;
  }

  .error-404__code-band {
    height: 92px;
  }
}

/* En desktop el 404 viaja dentro de la misma banda que la frase. */
@media (min-width: 1024px) {
  .error-404__marquee {
    height: 136px;
  }

  .error-404__phrase {
    font-size: 92px;
  }

  .error-404__code {
    font-size: 128px;
  }

  .error-404__code--inline {
    display: inline;
  }

  .error-404__code-band {
    display: none;
  }
}

@keyframes error-404-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-404__marquee.is-ready .error-404__track {
    animation: none;
  }
}

/* Cuerpo: en mobile el retrato va primero (encima del texto); en desktop
   quedan en fila con el copy a la izquierda y Gabriel a la derecha. */
.error-404__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--gj-max);
  margin: 0 auto;
  padding: 0;
}

.error-404__face {
  order: 1;
}

.error-404__copy {
  order: 2;
  width: 100%;
  padding: 0 var(--gj-pad-m);
  text-align: center;
}

@media (min-width: 1024px) {
  .error-404__body {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    /* Derecha 107px para alinear el retrato con el collage (Figma x=893). */
    padding: 0 107px 0 67px;
  }

  .error-404__copy {
    order: 0;
    flex: 1 1 auto;
    max-width: 720px;
    padding: 0;
    text-align: left;
  }

  .error-404__face {
    order: 0;
    flex: 0 0 440px;
    width: 440px;
  }
}

.error-404__text {
  margin: 36px 0 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .error-404__text {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.1;
  }
}

.error-404__text strong {
  font-weight: 700;
}

.error-404__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 9px 30px;
  border: 2px solid var(--gj-black);
  border-radius: 200px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gj-black);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

@media (min-width: 1024px) {
  .error-404__cta {
    margin-top: 44px;
    padding: 16px 30px;
    font-size: 16px;
  }
}

.error-404__cta:focus-visible {
  outline: 2px solid var(--gj-blue-3);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .error-404__cta:hover,
  .error-404__cta:focus-visible {
    background: var(--gj-black);
    color: var(--gj-cream);
  }

  .error-404__cta:hover img,
  .error-404__cta:focus-visible img {
    filter: invert(1);
  }
}

/* ------------------------------------------------------------------ */
/* Reveals — desktop only («lectura cultural», sin parallax scrub)     */
/* ------------------------------------------------------------------ */
@media (min-width: 1024px) {
  .gj-reveals .gj-reveal {
    --gj-d: 0;
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
      opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--gj-d) * 90ms);
    will-change: opacity, transform;
  }

  .gj-reveals .gj-reveal[data-gj-delay="1"] { --gj-d: 1; }
  .gj-reveals .gj-reveal[data-gj-delay="2"] { --gj-d: 2; }
  .gj-reveals .gj-reveal[data-gj-delay="3"] { --gj-d: 3; }
  .gj-reveals .gj-reveal[data-gj-delay="4"] { --gj-d: 4; }
  .gj-reveals .gj-reveal[data-gj-delay="5"] { --gj-d: 5; }
  .gj-reveals .gj-reveal[data-gj-delay="6"] { --gj-d: 6; }

  .gj-reveals .gj-reveal.is-resetting,
  .gj-reveals .gj-stagger.is-resetting > .gj-reveal {
    transition: none !important;
  }

  .gj-reveals .gj-reveal.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .gj-reveals .gj-reveal--clip {
    transform: translate3d(0, 22px, 0);
  }

  .gj-reveals .gj-reveal--clip.is-in {
    transform: translate3d(0, 0, 0);
  }

  .gj-reveals .gj-reveal--media {
    transform: scale(1.05);
    transform-origin: center center;
    filter: saturate(0.92);
  }

  .gj-reveals .gj-reveal--media.is-in {
    transform: scale(1);
    filter: none;
  }

  .gj-reveals .about__media,
  .gj-reveals .ideas__media {
    overflow: hidden;
  }

  .gj-reveals .gj-reveal--line {
    opacity: 1;
    transform: scaleX(0);
    transform-origin: left center;
  }

  .gj-reveals .gj-reveal--line.is-in {
    transform: scaleX(1);
  }

  .gj-reveals .gj-reveal--fade {
    transform: none;
  }

  .gj-reveals .gj-stagger > .gj-reveal {
    transition-delay: calc(var(--gj-d, 0) * 90ms);
  }

  .gj-reveals .gj-stagger.is-in > .gj-reveal:nth-child(1) { --gj-d: 0; }
  .gj-reveals .gj-stagger.is-in > .gj-reveal:nth-child(2) { --gj-d: 1; }
  .gj-reveals .gj-stagger.is-in > .gj-reveal:nth-child(3) { --gj-d: 2; }
  .gj-reveals .gj-stagger.is-in > .gj-reveal:nth-child(4) { --gj-d: 3; }
  .gj-reveals .gj-stagger.is-in > .gj-reveal:nth-child(5) { --gj-d: 4; }
  .gj-reveals .gj-stagger.is-in > .gj-reveal:nth-child(6) { --gj-d: 5; }
  .gj-reveals .gj-stagger.is-in > .gj-reveal:nth-child(7) { --gj-d: 6; }
  .gj-reveals .gj-stagger.is-in > .gj-reveal:nth-child(8) { --gj-d: 7; }

  .gj-reveals .gj-stagger.is-in > .gj-reveal {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .gj-reveals .gj-reveal,
  .gj-reveals .gj-stagger > .gj-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
