/* GANK Pages · plantilla story (Sobre nosotros). Requiere front-base.css. */

/* ---------- Franja ---------- */
.gkp .gkp-marquee {
  display: flex;
  align-items: center;
  height: 52px;
  overflow: hidden;
  border-radius: var(--gkp-radius);
  background: var(--gkp-black);
  color: #ffffff;
}
.gkp .gkp-marquee__track {
  display: flex;
  width: max-content;
  animation: gkpMarquee 42s linear infinite;
}
.gkp .gkp-marquee:hover .gkp-marquee__track { animation-play-state: paused; }
.gkp.gkp .gkp-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}
.gkp.gkp .gkp-marquee__group li {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gkp.gkp .gkp-marquee__group li::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gkp-yellow);
}
@keyframes gkpMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 01 Origen ---------- */
.gkp .gkp-origin {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--gkp-pad);
  align-items: center;
}
.gkp .gkp-origin__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gkp .gkp-origin__media picture {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--gkp-radius);
  background: #d6d6d6;
}
.gkp.gkp .gkp-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gkp-muted);
}
.gkp.gkp .gkp-caption__strong { color: var(--gkp-black); }
.gkp .gkp-origin__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gkp .gkp-origin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gkp.gkp .gkp-origin__badge {
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}
.gkp .gkp-more {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gkp.gkp .gkp-more.is-collapsed { display: none; }
.gkp.gkp .gkp-more-btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--gkp-black);
  border-radius: 0;
  color: var(--gkp-black);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.gkp.gkp .gkp-more-btn[hidden] { display: none; }
.gkp.gkp .gkp-more-btn--light { color: #ffffff; border-bottom-color: var(--gkp-yellow); }
.gkp .gkp-more-btn__sign { font-size: 18px; line-height: 1; }

/* ---------- 02 Creemos ---------- */
.gkp .gkp-belief {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: var(--gkp-pad);
  align-items: end;
  padding-top: 72px;
  padding-bottom: 72px;
}
.gkp .gkp-belief__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gkp.gkp .gkp-belief__title {
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-wrap: balance;
}
.gkp .gkp-belief__answer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.gkp .gkp-belief__plus {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--gkp-yellow);
}
.gkp.gkp .gkp-belief__answer p {
  font-size: clamp(21px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gkp-yellow);
}

.gkp .gkp-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: end;
  margin-top: var(--gkp-gap);
  padding: 48px var(--gkp-pad);
  border-radius: var(--gkp-radius);
  background: var(--gkp-yellow);
}
.gkp.gkp .gkp-proof__kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a3a3a;
}
.gkp .gkp-proof__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 12px;
}
.gkp.gkp .gkp-proof__text {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.gkp.gkp .gkp-proof__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a3a3a;
}

/* ---------- 04 Rutas ---------- */
.gkp .gkp-routes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gkp-gap);
}
.gkp .gkp-route {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--gkp-line);
  border-radius: var(--gkp-radius);
  transition: transform 0.25s var(--gkp-ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.gkp .gkp-route::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--gkp-yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--gkp-ease);
}
.gkp .gkp-route__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2a2a2a;
}
.gkp .gkp-route__media img {
  transition: transform 0.7s var(--gkp-ease);
}
.gkp .gkp-route__media .gkp-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
}
.gkp .gkp-route__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 14px;
  padding: 28px;
}
.gkp.gkp .gkp-route__word {
  align-self: flex-start;
  font-size: clamp(34px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.gkp.gkp .gkp-route__title {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.gkp.gkp .gkp-route__link {
  color: var(--gkp-black);
}
.gkp .gkp-route__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.gkp.gkp .gkp-route__link:focus-visible {
  outline: none;
}
.gkp .gkp-route:focus-within {
  outline: 3px solid var(--gkp-black);
  outline-offset: 3px;
}
.gkp.gkp .gkp-route__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--gkp-line);
  font-size: 13px;
  font-weight: 800;
}
.gkp .gkp-route__cta .gkp-ic { transition: transform 0.22s var(--gkp-ease); }
@media (hover: hover) {
  .gkp .gkp-route:hover {
    transform: translateY(-6px);
    border-color: var(--gkp-black);
    box-shadow: 0 18px 38px rgba(20, 20, 20, 0.12);
  }
  .gkp .gkp-route:hover::after { transform: scaleX(1); }
  .gkp .gkp-route:hover .gkp-route__media img { transform: scale(1.04); }
  .gkp .gkp-route:hover .gkp-route__cta .gkp-ic { transform: translateX(4px); }
}
.gkp .gkp-tabs[hidden] { display: none; }

/* ---------- 05 Método ---------- */
.gkp .gkp-method {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.gkp .gkp-method__head {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.gkp .gkp-steps {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.gkp .gkp-step {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.gkp.gkp .gkp-step__heading {
  font-size: inherit;
}
.gkp.gkp .gkp-step__btn {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 18px 0;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.gkp.gkp .gkp-step__btn:focus-visible {
  outline: 3px solid var(--gkp-yellow);
  outline-offset: 2px;
}
.gkp .gkp-step__num {
  font-size: 18px;
  font-weight: 900;
  color: var(--gkp-yellow);
}
.gkp .gkp-step__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .gkp .gkp-step__btn:hover .gkp-step__title { color: var(--gkp-yellow); }
}
.gkp .gkp-step__sign {
  position: relative;
  width: 16px;
  height: 16px;
  justify-self: end;
}
.gkp .gkp-step__sign::before,
.gkp .gkp-step__sign::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--gkp-yellow);
  transition: transform 0.25s var(--gkp-ease);
}
.gkp .gkp-step__sign::after { transform: rotate(90deg); }
.gkp .gkp-step__btn[aria-expanded="true"] .gkp-step__sign::after { transform: rotate(0deg); }
.gkp .gkp-step__panel {
  padding: 0 44px 24px 64px;
}
.gkp .gkp-step__panel[hidden] { display: none; }

/* ---------- 06 Comunidad ---------- */
.gkp .gkp-community {
  position: relative;
  display: flex;
  min-height: 680px;
  overflow: hidden;
  border-radius: var(--gkp-radius);
  background: #2a2a2a;
  scroll-margin-top: calc(var(--gkp-sticky-top) + 96px);
}
.gkp .gkp-community__media {
  position: absolute;
  inset: 0 0 0 40%;
}
.gkp .gkp-community__media picture,
.gkp .gkp-community__media img {
  position: absolute;
  inset: 0;
}
.gkp .gkp-community__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  width: min(760px, 62%);
  padding: 72px var(--gkp-pad);
  background: var(--gkp-black);
  color: #ffffff;
}
.gkp .gkp-community__copy::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 120px;
  background: linear-gradient(90deg, var(--gkp-black), rgba(20, 20, 20, 0));
  pointer-events: none;
}
.gkp .gkp-community__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gkp.gkp .gkp-community__coord {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Tableta ---------- */
@media (max-width: 1100px) {
  .gkp .gkp-origin,
  .gkp .gkp-belief,
  .gkp .gkp-method { grid-template-columns: 1fr; gap: 32px; }
  .gkp .gkp-routes__grid { grid-template-columns: 1fr 1fr; }
  .gkp .gkp-community__copy { width: 100%; }
  .gkp .gkp-community__media { position: relative; inset: auto; min-height: 320px; }
  .gkp .gkp-community { flex-direction: column; }
  .gkp .gkp-community__copy::after { display: none; }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  .gkp .gkp-marquee { height: 44px; border-radius: 12px; }
  .gkp.gkp .gkp-marquee__group,
  .gkp.gkp .gkp-marquee__group li { gap: 18px; font-size: 11px; }
  .gkp.gkp .gkp-marquee__group { padding-right: 18px; }
  .gkp .gkp-origin { gap: 20px; }
  .gkp .gkp-origin__media picture { aspect-ratio: 4 / 3; }
  .gkp .gkp-origin__copy { gap: 16px; }
  .gkp .gkp-belief { padding-top: 28px; padding-bottom: 28px; gap: 18px; }
  .gkp.gkp .gkp-belief__title { font-size: 34px; }
  .gkp .gkp-belief__answer { gap: 8px; padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
  .gkp .gkp-belief__plus { display: none; }
  .gkp .gkp-experience { padding-right: 0; padding-left: 0; }
  .gkp .gkp-experience .gkp-split-head { padding: 0 20px; }
  .gkp .gkp-proof { grid-template-columns: 1fr; gap: 10px; margin: 16px 12px 0; padding: 28px 20px; }
  .gkp.gkp .gkp-count { font-size: 96px; }
  .gkp.gkp .gkp-proof__text { font-size: 22px; }
  .gkp .gkp-routes__grid { grid-template-columns: 1fr; }
  .gkp .gkp-routes__grid.is-tabs .gkp-route { border-color: var(--gkp-black); }
  /* Las 3 rutas ocupan la misma celda: la altura no cambia al cambiar de pestaña y la página no salta */
  .gkp .gkp-routes__grid.is-tabs .gkp-route { grid-area: 1 / 1; }
  .gkp .gkp-routes__grid.is-tabs .gkp-route.is-off { visibility: hidden; pointer-events: none; }
  .gkp .gkp-routes__grid.is-tabs .gkp-route .gkp-route__word .gkp-mark { animation: gkpMark 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.05s both; }
  .gkp .gkp-route__body { padding: 20px; }
  .gkp.gkp .gkp-route__word { font-size: 34px; }
  .gkp.gkp .gkp-route__title { font-size: 21px; }
  .gkp .gkp-tabs {
    position: sticky;
    bottom: 84px;
    z-index: 5;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 6px;
    margin-top: 12px;
    padding: 4px;
    border-radius: 999px;
    background: var(--gkp-page);
    box-shadow: 0 6px 18px rgba(20, 20, 20, 0.1);
  }
  .gkp.gkp .gkp-tabs__btn {
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--gkp-text-2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .gkp.gkp .gkp-tabs__btn[aria-selected="true"] { background: var(--gkp-yellow); color: var(--gkp-black); }
  .gkp.gkp .gkp-tabs__btn:focus-visible { outline: 3px solid var(--gkp-black); outline-offset: 2px; }
  .gkp .gkp-method { padding-top: 28px; padding-bottom: 28px; gap: 20px; }
  .gkp.gkp .gkp-step__btn { grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 12px; min-height: 60px; padding: 14px 0; }
  .gkp .gkp-step__num,
  .gkp .gkp-step__title { font-size: 16px; }
  .gkp .gkp-step__panel { padding: 0 0 18px 48px; }
  .gkp .gkp-community { min-height: 0; }
  .gkp .gkp-community__media { min-height: 0; aspect-ratio: 16 / 10; }
  .gkp .gkp-community__copy { padding: 24px 20px 28px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .gkp .gkp-marquee__track { animation: none; }
  .gkp .gkp-route,
  .gkp .gkp-route__media img { transition: none; }
}
