:root {
  --gps-blue: #488afa;
  --gps-blue-dark: #1f5bc2;
  --gps-navy: #021551;
  --gps-text: #666;
  --gps-overhang: clamp(3rem, 6.9vw, 6.1875rem); /* cuánto sobresale la imagen del bloque azul */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--gps-text);
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

/* Header */
.gps-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(5rem, 9.5vw, 8.5625rem);
  background: var(--gps-blue-dark);
}
.gps-header__logo img { width: clamp(5.5rem, 8.3vw, 7.5rem); height: auto; }

/* Hero */
.gps-hero {
  position: relative;
  z-index: 2;
  display: flow-root; /* evita que el margin negativo de la imagen colapse fuera del hero */
  background: var(--gps-blue);
  color: #fff;
  text-align: center;
  padding: clamp(2.5rem, 6.8vw, 6.125rem) 1.25rem 0;
}
.gps-hero__inner { max-width: 66rem; margin: 0 auto; }
.gps-hero__tagline {
  margin: 0;
  font-size: clamp(1.375rem, 1.2rem + 0.9vw, 2rem);
  font-weight: 600;
  line-height: 1.16;
}
.gps-hero__title {
  margin: 0.5em 0 0.15em;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 11vw, 7.0625rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
.gps-hero__text {
  max-width: 59rem;
  margin: 0 auto 2rem;
  text-wrap: balance;
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.375rem);
  line-height: 1.1;
}
.gps-hero__image {
  position: relative;
  width: min(40.75rem, 100%);
  aspect-ratio: 652 / 435;
  object-fit: cover;
  margin: 1.3rem auto calc(-1 * var(--gps-overhang));
}

/* Buttons */
.gps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 1.25rem;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.gps-btn:hover { filter: brightness(1.08); }
.gps-btn:focus-visible { outline: 3px solid var(--gps-navy); outline-offset: 3px; }
.gps-btn--dark {
  width: min(25.4375rem, 100%);
  padding: 0.65rem;
  background: var(--gps-blue-dark);
  font-size: clamp(0.9rem, 0.75rem + 0.6vw, 1.375rem);
}
.gps-btn--primary {
  width: 15.5625rem;
  height: 2.75rem;
  background: var(--gps-blue);
  font-size: 0.8125rem;
  font-weight: 800;
}
.gps-btn:disabled { opacity: 0.6; cursor: wait; }

/* Quote + gallery */
.gps-quote { padding: calc(var(--gps-overhang) + clamp(2rem, 4vw, 3.5rem)) 1.25rem clamp(4rem, 8vw, 7.3rem); }
.gps-quote__inner {
  display: grid;
  grid-template-columns: minmax(0, 34.375rem) minmax(0, 28.75rem);
  justify-content: space-between;
  gap: 3rem;
  max-width: 71.25rem;
  margin: 0 auto;
}
.gps-quote__heading {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.16;
  color: var(--gps-text);
}
.gps-form { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.gps-field { display: block; width: 100%; }
.gps-field span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gps-text);
}
.gps-field input {
  width: 100%;
  height: 3.5rem;
  padding: 0 1.25rem;
  border: 0.5px solid var(--gps-navy);
  border-radius: 1.25rem;
  background: #fff;
  font: inherit;
  color: #222;
}
.gps-field input:focus { outline: 2px solid var(--gps-blue); outline-offset: 2px; }
.gps-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gps-quote__success, .gps-quote__error { margin: 0 0 1rem; padding: 1rem 1.25rem; border-radius: 1rem; font-weight: 600; }
.gps-quote__success { background: #e8f1ff; color: var(--gps-blue-dark); }
.gps-quote__error { background: #fdecec; color: #b3261e; }

.gps-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.0625rem;
  align-content: start;
}
.gps-gallery img {
  width: 100%;
  aspect-ratio: 955 / 999;
  object-fit: cover;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}

/* Footer */
.gps-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  padding: 2rem 1.25rem;
  background: var(--gps-blue-dark);
  color: #fff;
  text-align: center;
}
.gps-footer p { margin: 0; font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem); line-height: 1.4; }

.gps-generic { max-width: 60rem; margin: 0 auto; padding: 4rem 1.25rem; }

/* Responsive: apilar */
@media (max-width: 900px) {
  .gps-quote__inner { grid-template-columns: 1fr; gap: 2.5rem; max-width: 34.375rem; }
  .gps-gallery { gap: 0.75rem; }
}
@media (max-width: 480px) {
  .gps-btn--primary { width: 100%; }
  .gps-footer { min-height: 7rem; }
}

.gps-quote__inner { scroll-margin-top: 2rem; }
