@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');

:root {
  --blue: #3474b7;
  --blue-dark: #245c96;
  --pink: #e60087;
  --pink-strong: #c00070;
  --pink-strong-dark: #990059;
  --ink: #24272b;
  --muted: #5d6570;
  --line: #d9e0e7;
  --pale: #e8eef3;
  --cool-white: #f6f7f8;
  --white: #fff;
  --font: 'Onest', 'Avenir Next', 'Segoe UI', sans-serif;
  --container: 75rem;
  --header-height: 5rem;
  --page-title-size: clamp(2rem, 4vw, 3rem);
  --section-title-size: clamp(1.5rem, 3.5vw, 2.65rem);
  --subsection-title-size: 1rem;
  --lead-size: clamp(0.9rem, 1.4vw, 0.95rem);
  --supporting-size: 0.9rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: clamp(4rem, 8vw, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(site-header),
::view-transition-new(site-header) {
  animation: none;
}

::view-transition-old(page-content) {
  animation: 140ms ease-out both page-content-out;
}

::view-transition-new(page-content) {
  animation: 180ms ease-out both page-content-in;
}

@keyframes page-content-out {
  to { opacity: 0; }
}

@keyframes page-content-in {
  from { opacity: 0; }
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open {
  overflow: hidden;
}

main {
  view-transition-name: page-content;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #0b2038;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pink) 72%, white);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.6rem max(1rem, env(safe-area-inset-right)) 0.6rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 96%, transparent);
  view-transition-name: site-header;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  color: #0b2038;
  text-decoration: none;
}

.payment-cta {
  min-height: 2.75rem;
  flex-shrink: 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.payment-cta:focus-visible {
  outline-color: #0b2038;
}

.logo-mark {
  width: 6.25rem;
  aspect-ratio: 882 / 510;
  display: block;
  overflow: visible;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  position: fixed;
  inset: var(--header-height) 0 0;
  display: none;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 1rem;
  list-style: none;
  background: var(--white);
}

.menu-open .nav-links {
  display: flex;
}

.nav-link {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link.active,
.nav-link:hover {
  color: var(--blue-dark);
}

.nav-link.active {
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

.lang-toggle,
.menu-toggle {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-grid;
  place-items: center;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--ink);
  background: var(--white);
  font-weight: 600;
}

.menu-toggle {
  position: relative;
  border-color: transparent;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  position: absolute;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  content: '';
  transition: transform 180ms var(--ease), opacity 180ms ease;
}

.menu-toggle::before {
  transform: translateY(-0.4rem);
}

.menu-toggle::after {
  transform: translateY(0.4rem);
}

.menu-open .menu-toggle span {
  opacity: 0;
}

.menu-open .menu-toggle::before {
  transform: rotate(45deg);
}

.menu-open .menu-toggle::after {
  transform: rotate(-45deg);
}

.button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

.nav-actions .lang-toggle {
  height: 2.75rem;
  min-height: 2.75rem;
  padding-block: 0;
  font-size: 0.84rem;
  line-height: 1;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-payment {
  color: var(--white);
  background: var(--pink-strong);
}

.button-payment:hover {
  background: var(--pink-strong-dark);
}

.button-secondary {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: transparent;
}

.button-secondary:hover {
  color: var(--white);
  background: var(--blue);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  color: var(--pink);
  content: '→';
  transition: transform 180ms var(--ease);
}

.text-link:hover::after {
  transform: translateX(0.25rem);
}

.home-hero {
  position: relative;
  min-height: min(49rem, calc(100svh - var(--header-height)));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--pale);
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 32, 56, 0.04), rgba(11, 32, 56, 0.3));
  content: '';
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(35rem, calc(100% - 2.5rem));
  margin: 0 auto 1rem;
  padding: clamp(1.4rem, 4vw, 2.75rem);
  background: color-mix(in srgb, var(--white) 96%, transparent);
}

.hero-content h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: var(--page-title-size);
}

.hero-content p {
  max-width: 37ch;
  margin-bottom: 1.75rem;
  color: #414a55;
  font-size: var(--lead-size);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.search-section {
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.search-form {
  display: grid;
  gap: 0.75rem;
}

.search-control {
  display: grid;
  gap: 0.35rem;
}

.search-control label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.search-control select,
.search-control input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #bfc9d3;
  border-radius: 0.3rem;
  color: var(--ink);
  background: var(--white);
}

.search-control select:hover,
.search-control input:hover,
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--blue);
}

.search-submit {
  align-self: end;
  min-height: 3.25rem;
}

.help-section {
  padding-block: var(--space-3xl);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-heading h2 {
  margin-bottom: 1rem;
  font-size: var(--section-title-size);
}

.section-heading p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--lead-size);
}

.help-routes {
  display: grid;
}

.help-route {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

.route-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  color: var(--blue);
  font-size: 1.8rem;
}

.help-route h3 {
  margin-bottom: 0.75rem;
  font-size: var(--subsection-title-size);
}

.help-route p {
  min-height: 3.2rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: var(--supporting-size);
}

.help-route .text-link {
  font-size: var(--supporting-size);
}

.trust-strip {
  padding-block: 1.25rem;
  background: var(--pale);
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.trust-strip p {
  margin: 0;
  color: #22384f;
  font-size: var(--supporting-size);
  font-weight: 500;
}

.trust-strip .text-link {
  font-size: var(--supporting-size);
}

.page-hero {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--cool-white);
}

.page-hero-inner {
  display: grid;
  gap: 2rem;
}

.page-kicker {
  margin-bottom: 0.85rem;
  color: var(--pink);
  font-weight: 700;
}

.page-hero h1 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: var(--page-title-size);
}

.page-hero-copy {
  max-width: 55ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--lead-size);
}

.page-hero-media {
  overflow: hidden;
  min-height: 20rem;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-section {
  padding-block: var(--space-3xl);
}

.content-section.alt {
  background: var(--cool-white);
}

.split-section {
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.split-copy h2 {
  margin-bottom: 1.25rem;
  font-size: var(--section-title-size);
}

.split-copy p {
  max-width: 60ch;
  color: var(--muted);
}

.split-media {
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.neighborhood-list,
.service-list,
.process-list {
  display: grid;
}

.neighborhood,
.service-row,
.process-step {
  display: grid;
  gap: 0.75rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}

.neighborhood h3,
.service-row h3,
.process-step h3 {
  margin: 0;
  font-size: var(--subsection-title-size);
}

.neighborhood p,
.service-row p,
.process-step p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
}

.neighborhood-meta {
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.process-number {
  color: var(--pink);
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-quote {
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--blue);
}

.feature-quote p {
  max-width: 30ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.125rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.contact-layout {
  display: grid;
  gap: clamp(3rem, 8vw, 7rem);
}

.contact-intro h1 {
  margin-bottom: 1.25rem;
  font-size: var(--page-title-size);
}

.contact-intro > p {
  max-width: 50ch;
  color: var(--muted);
  font-size: var(--lead-size);
}

.contact-methods {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
}

.contact-method {
  display: grid;
  gap: 0.15rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
}

.contact-method > span {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-method a {
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
}

.contact-method .contact-whatsapp {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.35rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #8bc9aa;
  border-radius: 0.35rem;
  color: #0d6141;
  background: #f3faf6;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.contact-whatsapp > i {
  font-size: 1.35rem;
}

.contact-whatsapp-copy {
  display: grid;
  gap: 0.05rem;
}

.contact-whatsapp-copy strong {
  font-size: 0.94rem;
}

.contact-whatsapp-copy small {
  color: #426758;
  font-size: 0.76rem;
  font-weight: 500;
}

.contact-method .contact-whatsapp:hover {
  border-color: #4aa578;
  background: #e9f6ef;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  padding-top: clamp(3rem, 7vw, 5rem);
  color: #dce6f0;
  background: #0b2038;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand {
  max-width: 25rem;
}

.footer-brand .logo-mark {
  width: 10.5rem;
  margin-bottom: 1rem;
}

.footer-brand .logo-mark img {
  width: 100%;
}

.footer-brand p {
  color: #bdcad7;
}

.footer-heading {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #bdcad7;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid #52677c;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
}

.footer-social a[href^="https://wa.me/"] {
  border-color: #25d366;
  color: #25d366;
}

.footer-social a[href^="https://wa.me/"]:hover {
  border-color: #25d366;
  color: #0b2038;
  background: #25d366;
}

.footer-bottom {
  margin-top: 3rem;
  padding-block: 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid #2f465d;
  color: #9fb0c0;
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

.thank-you {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding-block: 4rem;
  text-align: center;
}

.thank-you-inner {
  max-width: 42rem;
}

.thank-you h1 {
  margin-bottom: 1rem;
  font-size: var(--page-title-size);
}

.thank-you p {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: var(--lead-size);
}

@media (max-width: 23.5rem) {
  .site-nav {
    gap: var(--space-xs);
  }

  .nav-logo .logo-mark {
    width: 5.25rem;
  }

  .nav-logo .logo-mark img {
    width: 100%;
  }

  .payment-cta span {
    font-size: 0;
  }

  .payment-cta span::after {
    font-size: 0.78rem;
    content: 'PSE';
  }
}

@media (min-width: 42rem) {
  .container {
    width: min(var(--container), calc(100% - 3rem));
  }

  .payment-cta {
    min-height: 3rem;
    padding-inline: 1rem;
    font-size: 0.9rem;
  }

  .search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-submit {
    grid-column: span 2;
  }

  .neighborhood,
  .service-row,
  .process-step {
    grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
    gap: 2rem;
  }
}

@media (min-width: 64rem) {
  :root {
    --header-height: 6rem;
  }

  body.menu-is-open {
    overflow: auto;
  }

  .site-nav {
    gap: clamp(0.75rem, 1.6vw, 1.75rem);
    padding-block: 0.5rem;
    padding-inline: clamp(1.5rem, 4vw, 4rem);
  }

  .nav-logo .logo-mark {
    width: 8.25rem;
  }

  .nav-links {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: center;
    gap: clamp(0.75rem, 1.5vw, 1.75rem);
    padding: 0;
    background: transparent;
  }

  .nav-link {
    min-height: 2.75rem;
    border: 0;
    font-size: 0.84rem;
  }

  .nav-link.active {
    box-shadow: inset 0 -2px var(--pink);
  }

  .menu-toggle {
    display: none;
  }

  .home-hero {
    align-items: center;
  }

  .hero-content {
    width: min(34rem, calc(100% - 6rem));
    margin: 0 auto 0 clamp(3rem, 7vw, 7rem);
  }

  .search-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
  }

  .search-submit {
    grid-column: auto;
    padding-inline: 1.7rem;
  }

  .help-routes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .help-route {
    padding: 2.25rem clamp(1.5rem, 3vw, 2.75rem);
    border-left: 1px solid var(--line);
  }

  .help-route:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .help-route:last-child {
    padding-right: 0;
  }

  .page-hero-inner,
  .split-section,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-hero-inner {
    align-items: center;
  }

  .page-hero-media {
    min-height: 31rem;
  }

  .split-section.reverse .split-media {
    order: 2;
  }

  .split-section.reverse .split-copy {
    order: 1;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  ::view-transition-old(page-content),
  ::view-transition-new(page-content) {
    animation: none;
  }
}
