/* GPS Seguros: case-specific presentation. Shared Pixel styles remain untouched. */
.gps-case {
  --gps-green: #008D59;
  --gps-green-button: #007A4D;
  --gps-ink: #0E0E0E;
  --gps-muted: #606A6B;
  --case-line: rgba(14,14,14,.12);
  --gps-chapter-accent: var(--gps-green);
  --gps-paper: #F8F8F6;
  background: var(--gps-paper);
  color: var(--gps-ink);
}
.gps-case .case-index { color: var(--gps-chapter-accent); }
/* GPS-only header CTAs: retain Pixel navigation, adopt the case palette. */
.gps-case .site-header.is-compact .site-nav__cta,
.gps-case .site-header[data-surface="dark"].is-compact .site-nav__cta,
.gps-case .mobile-menu__cta {
  background: var(--gps-green-button);
  color: #fff;
}
.gps-case .site-header.is-compact .site-nav__cta:hover,
.gps-case .site-header.is-compact .site-nav__cta:focus-visible {
  box-shadow: 0 0 0 1px rgba(0, 122, 77, .32), 0 8px 22px rgba(0, 122, 77, .16);
}
.gps-case .site-nav__cta:focus-visible,
.gps-case .mobile-menu__cta:focus-visible {
  outline: 2px solid var(--gps-green);
  outline-offset: 3px;
}

.gps-intro-meta { align-content: end; }
.gps-intro-meta .meta { max-width: 420px; }
.gps-hero { padding-bottom: clamp(34px, 3.6vw, 52px); }
.gps-hero__frame { width: 100%; padding: 0; margin-inline: auto; background: transparent; border: 0; }
.gps-hero__frame img { display: block; width: 100%; height: auto; }
.gps-problem { background: var(--gps-paper); }
.gps-problem .case-split { gap: clamp(48px, 7vw, 100px); }
.gps-problem .case-copy { max-width: 610px; }
.gps-case .case-story h2,
.gps-case .gps-evolution h2,
.gps-case .gps-section-heading h2,
.gps-case .gps-implementation h2 { font-size: var(--case-title-size); font-weight: 650; line-height: .98; letter-spacing: -.052em; text-wrap: balance; }
.gps-case .case-story h2 { max-width: 11ch; }
.gps-case .case-copy p { color: var(--gps-ink); }

/* Chapter 02: evolution, not a fictional linear workflow. */
/* Chapter separators use the same full container inset as the OZ case. */
.gps-evolution__inner,
.gps-operations__inner,
.gps-implementation__inner { position: relative; }
.gps-evolution__inner::before,
.gps-operations__inner::before,
.gps-implementation__inner::before {
  content: "";
  position: absolute;
  left: var(--page-pad);
  right: var(--page-pad);
  top: calc(-1 * var(--case-chapter-top));
  height: 1px;
  background: var(--case-line);
}

.gps-evolution { padding-block: var(--case-chapter-top) var(--case-chapter-bottom); background: var(--gps-paper); color: var(--gps-ink); }
.gps-evolution .case-index { color: var(--gps-chapter-accent); }
.gps-evolution__intro { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: start; column-gap: clamp(44px,6vw,100px); }
.gps-evolution__intro > .case-index { grid-column: 1 / -1; }
.gps-evolution__intro h2 { max-width: 12ch; }
.gps-evolution__copy { max-width: 61ch; padding-top: 4px; }
.gps-evolution__copy p { font-size: clamp(1rem,.98vw,1.12rem); line-height: 1.56; letter-spacing: -.018em; color: var(--gps-ink); }
.gps-evolution__copy p + p { margin-top: 18px; }
.gps-evolution__diagram { display: grid; grid-template-columns: minmax(0,.8fr) 74px minmax(0,1.2fr); align-items: stretch; margin-top: clamp(40px,5.2vw,72px); }
.gps-evolution__stage { min-width: 0; padding: clamp(22px,2.8vw,38px); border: 1px solid var(--case-line); }
.gps-evolution__stage .meta { display: block; margin-bottom: 26px; color: var(--gps-chapter-accent); }
.gps-evolution__stage strong { display: block; max-width: 15ch; font-size: clamp(1.35rem,2vw,2.15rem); line-height: 1.15; letter-spacing: -.04em; }
.gps-evolution__stage p { margin-top: 20px; color: var(--gps-muted); font-size: .88rem; line-height: 1.5; }
.gps-evolution__stage--expanded { background: rgba(14,14,14,.025); }
/* The added modules are one connected visual group, not isolated chips. */
.gps-evolution__modules { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; column-gap: 8px; row-gap: 20px; margin: 0; padding: 0; list-style: none; }
.gps-evolution__module { flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: 11px; min-width: 62px; color: var(--gps-ink); font-size: .78rem; font-weight: 600; line-height: 1.3; text-align: center; }
.gps-evolution__module-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(0,141,89,.30); border-radius: 50%; background: var(--gps-paper); color: var(--gps-green); }
.gps-evolution__module-icon svg { display: block; width: 23px; height: 23px; }
.gps-evolution__plus { align-self: flex-start; margin-top: 16px; color: var(--gps-green); font: 600 1.1rem/1 var(--font-mono); }
.gps-evolution__connector { display: grid; place-items: center; color: var(--gps-green); }
.gps-evolution__connector span { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(0,141,89,.32); border-radius: 50%; background: var(--gps-paper); font: 600 2rem/1 var(--font-mono); }

/* Chapter 03: content led by real UI screenshots, three editorial compositions. */
.gps-operations { padding-block: var(--case-chapter-top) var(--case-chapter-bottom); background: var(--gps-paper); }
.gps-section-heading { display: grid; grid-template-columns: minmax(0,.98fr) minmax(0,1.02fr); gap: clamp(44px,6vw,96px); padding-bottom: clamp(42px,5vw,68px); }
.gps-section-heading h2 { max-width: 15ch; }
.gps-section-heading__copy { max-width: 60ch; padding-top: clamp(44px,5vw,68px); }
.gps-section-heading__copy p { color: var(--gps-ink); font-size: clamp(1rem,.98vw,1.12rem); line-height: 1.56; letter-spacing: -.018em; }
.gps-section-heading__copy p + p { margin-top: 18px; }
.gps-feature { display: grid; grid-template-columns: minmax(0,.37fr) minmax(0,.63fr); gap: clamp(30px,5vw,80px); align-items: center; padding-block: clamp(44px,5vw,76px); border-top: 1px solid var(--case-line); }
.gps-feature__copy { align-self: center; max-width: 470px; }
.gps-feature--register { align-items: start; }
.gps-feature--register .gps-feature__copy { align-self: start; }
.gps-feature__copy .meta { display: block; margin-bottom: 19px; color: var(--gps-chapter-accent); }
.gps-feature__copy h3 { max-width: 16ch; font-size: clamp(1.55rem,2.35vw,2.9rem); line-height: 1.09; font-weight: 650; letter-spacing: -.045em; text-wrap: balance; }
.gps-feature__copy p { max-width: 49ch; margin-top: 18px; color: var(--gps-ink); font-size: clamp(.96rem,.94vw,1.08rem); line-height: 1.56; }
.gps-screen { min-width: 0; margin: 0; }
.gps-screen img { display: block; width: 100%; height: auto; border: 1px solid var(--case-line); background: var(--gps-paper); }
.gps-screen figcaption { display: flex; justify-content: space-between; padding-top: 12px; }
.gps-screen figcaption .meta { color: var(--gps-muted); font-size: .64rem; }
.gps-feature--report { grid-template-columns: 1fr; gap: clamp(28px,3.5vw,48px); }
.gps-feature--report .gps-feature__copy { max-width: 700px; }
.gps-feature--report .gps-feature__copy h3 { max-width: 22ch; }
.gps-feature__screens--report { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,.72fr); gap: clamp(16px,2.5vw,36px); align-items: start; }
.gps-screen--history { margin-top: clamp(22px,4vw,56px); }
.gps-feature--followup { grid-template-columns: minmax(0,.43fr) minmax(0,.57fr); align-items: start; }
.gps-feature--followup .gps-feature__copy { align-self: start; padding-top: 0; }
.gps-feature--followup .gps-feature__copy .meta { margin-bottom: 17px; }
.gps-feature--followup .gps-feature__copy h3 { max-width: 16ch; }
.gps-feature--followup .gps-feature__copy p { max-width: 41ch; }
.gps-feature--followup .gps-feature__screen { align-self: start; }

/* Chapter 04: operational decisions, grounded technical context and status. */
.gps-implementation { padding-block: var(--case-chapter-top) var(--case-chapter-bottom); background: var(--gps-paper); }
.gps-implementation__layout { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(48px,7vw,112px); }
.gps-implementation__intro h2 { max-width: 12ch; }
.gps-implementation__intro > p { max-width: 52ch; margin-top: 25px; color: var(--gps-ink); font-size: clamp(1rem,.98vw,1.12rem); line-height: 1.56; }
.gps-implementation__details { min-width: 0; }
.gps-implementation__item { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 18px; align-items: start; padding: 22px 0; border-top: 1px solid var(--case-line); }
.gps-implementation__symbol { color: var(--gps-chapter-accent); font: 500 .7rem/1.6 var(--font-mono); }
.gps-implementation__symbol--icon { display: flex; align-items: flex-start; justify-content: flex-start; width: 28px; height: 28px; margin-top: 1px; }
.gps-implementation__symbol--icon svg { width: 26px; height: 26px; }
.gps-implementation__item h3 { font-size: clamp(1.05rem,1.28vw,1.32rem); font-weight: 650; letter-spacing: -.025em; }
.gps-implementation__item p { max-width: 55ch; margin-top: 8px; color: var(--gps-muted); line-height: 1.52; }
.gps-implementation__technology { display: grid; grid-template-columns: 110px minmax(0,1fr); align-items: start; gap: 18px; padding: 22px 0; border-top: 1px solid var(--case-line); }
.gps-implementation__technology .meta { color: var(--gps-chapter-accent); }
.gps-implementation__technology p { color: var(--gps-muted); line-height: 1.52; }
.gps-implementation__status { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; margin-top: clamp(20px,2vw,28px); padding: clamp(16px,1.6vw,20px) clamp(18px,2vw,24px); background: #F4F3F0; border: 1px solid #DEDCD7; border-radius: 6px; }
.gps-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; color: var(--gps-ink); border: 1px solid var(--case-line); border-radius: 999px; font: 500 .68rem/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.gps-status i { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gps-green); }
.gps-implementation__status p { color: var(--gps-muted); font-size: .875rem; line-height: 1.45; }
.gps-pagination .case-pagination__inner { justify-content: space-between; }
.gps-pagination a:last-child { margin-left: auto; }

@media (max-width: 920px) {
  .gps-evolution__intro, .gps-section-heading, .gps-implementation__layout { gap: 30px; }
  .gps-feature { gap: 30px; }
  .gps-implementation__status { gap: 12px; }
}
@media (max-width: 780px) {
  .gps-intro-meta { justify-items: start; text-align: left; }
  .gps-evolution__intro, .gps-section-heading, .gps-implementation__layout { grid-template-columns: 1fr; }
  .gps-evolution__intro h2, .gps-section-heading h2, .gps-implementation__intro h2 { max-width: 16ch; }
  .gps-section-heading__copy { padding-top: 0; }
  .gps-evolution__diagram { grid-template-columns: 1fr; margin-top: 36px; }
  .gps-evolution__connector { min-height: 68px; }
  .gps-evolution__connector span { transform: rotate(90deg); }
  .gps-evolution__modules { justify-content: flex-start; column-gap: 12px; }
  .gps-feature, .gps-feature--followup { grid-template-columns: 1fr; gap: 24px; }
  .gps-feature__copy { max-width: 620px; }
  .gps-feature__copy h3 { max-width: 24ch; }
  .gps-feature__screens--report { grid-template-columns: 1fr 1fr; }
  .gps-screen--history { margin-top: 26px; }
  .gps-implementation__intro > p { margin-top: 18px; }
}
@media (max-width: 520px) {
  .gps-feature__screens--report { grid-template-columns: 1fr; gap: 24px; }
  .gps-screen--history { margin-top: 0; }
  .gps-evolution__stage { padding: 22px; }
  .gps-evolution__modules { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 12px; }
  .gps-evolution__module { min-width: 0; }
  .gps-evolution__plus { display: none; }
  .gps-implementation__technology { grid-template-columns: 1fr; gap: 9px; }
  .gps-implementation__item { grid-template-columns: 32px minmax(0,1fr); gap: 12px; }
  .gps-implementation__status { padding: 20px; }
  .gps-pagination .case-pagination__inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .gps-pagination a:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .gps-case * { scroll-behavior: auto !important; } }
