:root {
  --blue: #0f4c82;
  --blue-700: #0a3862;
  --blue-900: #062746;
  --blue-100: #e8f1f8;
  --gray: #454a50;
  --gray-700: #2e3338;
  --gray-100: #f4f6f8;
  --line: #dfe6ec;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(15, 76, 130, 0.12);
  --radius: 8px;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Kumbh Sans", Arial, sans-serif;
  color: var(--gray);
  background: var(--white);
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 230, 236, 0.75);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 76, 130, 0.11);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: min-height 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 58px;
}

.brand img {
  width: 147px;
  transition: width 0.25s ease;
}

.site-header.is-scrolled .brand img {
  width: 120px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-weight: 700;
  color: var(--gray-700);
}

.main-nav-scroll {
  display: contents;
}

.main-nav-scroll > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a.active {
  color: var(--blue);
  background: var(--blue-100);
}

.main-nav a:hover {
  color: var(--white);
  background: var(--blue-900);
}

.nav-cta {
  margin-left: 8px;
  color: var(--white) !important;
  background: var(--blue) !important;
  padding-inline: 18px !important;
  gap: 8px;
}

.nav-cta:hover {
  background: var(--blue-900) !important;
}

.nav-item {
  position: relative;
}

.nav-item > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--white);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 84px) 0 96px;
  background: linear-gradient(100deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.9) 40%, rgba(232,241,248,0.64) 100%);
}

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  background: var(--blue-900);
  padding-bottom: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(6, 39, 70, 0.36) 0%, rgba(15, 76, 130, 0.18) 52%, rgba(6, 39, 70, 0.34) 100%),
    url("../img/bg-hero-azul.png");
  background-size: auto, cover;
  background-position: center, center;
  transform: scale(1.04);
  animation: heroMove 18s ease-in-out infinite alternate;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 8% 4%;
  pointer-events: none;
  opacity: 0.32;
  background:
    radial-gradient(circle at 12% 32%, rgba(255,255,255,0.2) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 18%, rgba(255,255,255,0.24) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 68%, rgba(255,255,255,0.18) 0 3px, transparent 4px);
  background-size: 190px 150px, 240px 210px, 170px 190px;
  animation: elementFloat 16s ease-in-out infinite alternate;
}

.hero-bg::after {
  inset: 0;
  opacity: 0.2;
  background:
    linear-gradient(120deg, transparent 18%, rgba(255,255,255,0.12) 19%, transparent 20%),
    linear-gradient(150deg, transparent 62%, rgba(83,184,232,0.22) 63%, transparent 64%);
  animation-duration: 22s;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(165deg, transparent 0 24px, rgba(255, 255, 255, 0.1) 25px 26px, transparent 27px 54px);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.8), rgba(0,0,0,0.35) 58%, transparent 82%);
  animation: lineDrift 18s linear infinite;
}

@keyframes heroMove {
  from { transform: scale(1.04) translateX(-8px); }
  to { transform: scale(1.08) translateX(8px); }
}

@keyframes lineDrift {
  from { background-position: 0 0; }
  to { background-position: 180px 0; }
}

@keyframes elementFloat {
  from { transform: translate3d(-12px, 8px, 0); }
  to { transform: translate3d(18px, -10px, 0); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 48px;
  align-items: center;
  min-height: calc(680px - var(--header-height) - 84px);
}

.hero-copy h1,
.hero-copy p {
  max-width: 670px;
}

.hero h1 {
  color: var(--white);
}

.hero .eyebrow {
  color: #d7ecff;
}

.hero-copy p {
  margin-top: 22px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-visual {
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.hero-visual img {
  width: min(100%, 375px);
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 35px rgba(0, 0, 0, 0.22));
}

.hero .btn.primary,
.hero .btn.secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.hero .btn.primary:hover,
.hero .btn.secondary:hover {
  color: var(--blue);
  background: var(--white);
  border-color: var(--white);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--gray-700);
  line-height: 1.14;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
}

.page-hero p {
  max-width: 620px;
  margin-top: 22px;
  font-size: 1.15rem;
  color: #57616b;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn.primary:hover {
  background: var(--blue-700);
}

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

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

.btn.outline-light {
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}

.btn.full {
  width: 100%;
}

.section {
  padding: 88px 0;
}

.section.muted,
.muted {
  background: var(--gray-100);
}

.section-heading {
  max-width: none;
  margin-bottom: 38px;
  text-align: left;
}

.section-heading p {
  max-width: 720px;
  margin-top: 14px;
  font-size: 1.06rem;
}

.section-heading h2 {
  max-width: 820px;
}

.cards-grid,
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cards-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.service-card,
.specialty-card,
.mini-card,
.side-panel,
.quote-box,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(15, 76, 130, 0.07);
}

.service-card,
.specialty-card,
.mini-card {
  min-height: 258px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 76, 130, 0.35);
  box-shadow: var(--shadow);
}

.specialty-card:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: none;
  transform: none;
}

.specialty-card:hover h3,
.specialty-card:hover p,
.specialty-card:hover .card-link {
  color: var(--white);
}

.specialty-card:hover .card-icon {
  color: var(--blue);
  background: var(--white);
}

.compact-card {
  min-height: 220px;
}

.card-icon,
.mini-card > .icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-100);
  border-radius: var(--radius);
}

.card-icon .icon,
.mini-card > .icon {
  width: 26px;
  height: 26px;
}

.service-card p,
.specialty-card p,
.mini-card p {
  color: #59636e;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
}

.split-section {
  background: linear-gradient(180deg, var(--gray-100), var(--white));
}

.specialties-section {
  overflow: hidden;
}

.specialty-carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: center;
}

.specialty-carousel {
  width: 100%;
  overflow: hidden;
  scroll-behavior: auto;
  scrollbar-width: none;
}

.specialty-carousel::-webkit-scrollbar {
  display: none;
}

.specialty-track {
  display: flex;
  gap: var(--specialty-gap, 22px);
  padding: 4px 0;
  will-change: transform;
}

.specialty-track .specialty-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  box-shadow: none;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 76, 130, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.carousel-arrow:hover {
  color: var(--white);
  background: var(--blue-900);
  border-color: var(--blue-900);
}

.carousel-arrow.prev .icon {
  transform: rotate(180deg);
}

.split-grid,
.about-grid,
.faq-grid,
.detail-layout,
.contact-grid,
.cta-grid,
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-grid p + p,
.detail-content p + p,
.text-page p + h2 {
  margin-top: 18px;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-item > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
}

.about-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.93), rgba(15, 76, 130, 0.82)),
    url("../img/bg-tradicao.png") center / cover;
  color: rgba(255,255,255,0.86);
}

.about-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 52%, rgba(255,255,255,0.08) 53%, transparent 54%),
    radial-gradient(circle at 84% 22%, rgba(255,255,255,0.16), transparent 20%);
}

.about-grid {
  position: relative;
  z-index: 1;
}

.about-band h2,
.about-band .eyebrow {
  color: var(--white);
}

.about-band .btn {
  margin-top: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stats-grid div {
  min-height: 138px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
}

.stats-grid strong {
  display: block;
  color: var(--white);
  font-size: 2rem;
  line-height: 1.1;
}

.stats-grid span {
  margin-top: 8px;
}

.faq-section {
  background: var(--gray-100);
}

.accordion {
  display: grid;
  gap: 12px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
}

summary {
  padding: 20px 0;
  color: var(--gray-700);
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

details:hover summary,
summary:hover {
  color: var(--blue);
  padding-left: 8px;
}

details p {
  padding-bottom: 20px;
}

.cta-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.94), rgba(15, 76, 130, 0.78)),
    url("../img/bg-cta-interno.png") center / cover;
  color: rgba(255,255,255,0.86);
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 20%, rgba(255,255,255,0.14), transparent 22%);
}

.cta-grid {
  position: relative;
  z-index: 1;
}

.cta-section h2,
.cta-section .eyebrow {
  color: var(--white);
}

.page-hero {
  padding-bottom: 82px;
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.9), rgba(15, 76, 130, 0.76)),
    url("../img/bg-cta-interno.png") center / cover;
}

.page-hero h1,
.page-hero .eyebrow {
  color: var(--white);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.page-hero.compact {
  padding-bottom: 72px;
}

.service-detail {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.72)),
    url("../img/bg-cta-interno.png") center / cover;
}

.service-detail .detail-hero-grid {
  grid-template-columns: minmax(0, 760px);
}

.specialty-detail-contabilidade-para-industria {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.64)),
    url("../img/specialty-hero-industria.png") center / cover;
}

.specialty-detail-profissionais-da-area-da-saude {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.64)),
    url("../img/specialty-hero-saude.png") center / cover;
}

.specialty-detail-contabilidade-para-transportadoras {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.64)),
    url("../img/specialty-hero-transportadoras.png") center / cover;
}

.specialty-detail-contabilidade-para-construcao-civil {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.64)),
    url("../img/specialty-hero-construcao-civil.png") center / cover;
}

.specialty-detail-contabilidade-para-condominios {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.64)),
    url("../img/specialty-hero-condominios.png") center / cover;
}

.service-detail-abertura-e-legalizacao-de-empresa {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.66)),
    url("../img/service-hero-abertura-empresa.png") center / cover;
}

.service-detail-assessoria-contabil {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.66)),
    url("../img/service-hero-assessoria-contabil.png") center / cover;
}

.service-detail-assessoria-trabalhista {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.66)),
    url("../img/service-hero-assessoria-trabalhista.png") center / cover;
}

.service-detail-assessoria-tributaria-e-recuperacao-de-creditos {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.66)),
    url("../img/service-hero-assessoria-tributaria.png") center / cover;
}

.service-detail-administracao-condominial {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.66)),
    url("../img/service-hero-administracao-condominial.png") center / cover;
}

.service-detail-servicos-de-mao-de-obra {
  background:
    linear-gradient(90deg, rgba(6, 39, 70, 0.92), rgba(15, 76, 130, 0.66)),
    url("../img/service-hero-mao-de-obra.png") center / cover;
}

.detail-icon {
  justify-self: end;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-icon .icon {
  width: 92px;
  height: 92px;
}

.detail-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.detail-content h2 + p,
.detail-content p + h2 {
  margin-top: 24px;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--gray-700);
  font-weight: 600;
}

.check-list .icon {
  margin-top: 3px;
  color: var(--blue);
}

.highlight-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 28px 0;
  padding: 24px;
  background: var(--blue-100);
  border: 1px solid rgba(15, 76, 130, 0.18);
  border-radius: var(--radius);
}

.highlight-box h2 {
  font-size: 1.45rem;
}

.highlight-box p {
  margin-top: 10px;
  color: #45515c;
}

.side-panel {
  position: sticky;
  top: 100px;
  padding: 26px;
}

.steps-list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  margin: 18px 0 24px;
}

.quote-box {
  padding: 34px;
  border-left: 5px solid var(--blue);
}

.quote-box p {
  margin-top: 12px;
  font-size: 1.2rem;
}

.contact-grid {
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list a,
.contact-list > div {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-list a > div,
.contact-list > div > div {
  flex: 1;
  min-width: 0;
}

.contact-list span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-100);
  border-radius: var(--radius);
}

.contact-list strong,
.contact-list small {
  display: block;
}

.contact-list small {
  color: #59636e;
  font-size: 0.96rem;
}

.embedded-map {
  width: 100%;
  height: 330px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(12%) saturate(92%);
}

.contact-form {
  padding: 30px;
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-weight: 700;
}

.careers-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.career-card {
  align-content: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field-hint {
  color: #68727d;
  font-weight: 600;
}

.form-alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.form-alert.success {
  color: #175a36;
  background: #e7f6ee;
  border: 1px solid #bfe8cf;
}

.form-alert.error {
  color: #8a2d2d;
  background: #fdecec;
  border: 1px solid #f3c5c5;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--gray-700);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.map-box {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 24px;
  min-height: 260px;
  padding: 36px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.82)),
    repeating-linear-gradient(45deg, #e8f1f8 0 12px, #f4f6f8 12px 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-map-section .map-box h2 {
  font-size: 1.5vw;
}

.text-page {
  max-width: 820px;
}

.text-page h2 {
  font-size: 1.6rem;
  margin-top: 26px;
}

.text-page h2:first-child {
  margin-top: 0;
}

.text-page a {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  background:
    radial-gradient(circle at 14% 20%, rgba(15, 76, 130, 0.08), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(69, 74, 80, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(244,246,248,0.96)),
    repeating-linear-gradient(150deg, #f4f6f8 0 18px, #eef2f5 18px 19px, #f4f6f8 19px 42px);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
  gap: 34px;
  padding: 58px 0 34px;
}

.footer-brand img {
  width: 210px;
  margin-bottom: 18px;
}

.footer-social {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: var(--blue) !important;
  font-weight: 800 !important;
}

.footer-social .icon {
  width: 26px;
  height: 26px;
}

.footer-grid h3 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
  color: #59636e;
  font-weight: 600;
}

.footer-grid a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: #68727d;
  font-size: 0.92rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: whatsappPulse 1.9s ease-in-out infinite;
}

.floating-whatsapp .icon {
  width: 28px;
  height: 28px;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 76, 130, 0.38), var(--shadow);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 16px rgba(15, 76, 130, 0), var(--shadow);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 76, 130, 0), var(--shadow);
  }
}

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

  .specialty-track {
    animation: none;
  }
}

@media (max-width: 980px) {
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(6, 39, 70, 0.48);
  }

  .site-header {
    z-index: 90;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 130;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(380px, calc(100vw - 36px));
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    padding: 0;
    background: var(--white);
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: -24px 0 55px rgba(6, 39, 70, 0.2);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s ease;
    z-index: 120;
  }

  .main-nav-scroll {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    scrollbar-width: thin;
    padding: calc(var(--header-height) + 18px) 18px 36px;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav-scroll > a,
  .nav-item > a {
    flex: 0 0 auto;
    justify-content: space-between;
    width: 100%;
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .dropdown {
    position: static;
    width: auto;
    margin: 4px 0 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--gray-100);
    flex: 0 0 auto;
  }

  .dropdown a {
    min-height: 44px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 26px;
    min-height: 0;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual img {
    width: min(100%, 375px);
    height: auto;
  }

  .specialty-track .specialty-card {
    flex-basis: calc((100% - var(--specialty-gap, 22px)) / 2);
  }

  .cards-grid,
  .specialty-grid,
  .cards-grid.four,
  .cards-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .about-grid,
  .faq-grid,
  .detail-layout,
  .contact-grid,
  .careers-grid,
  .cta-grid,
  .detail-hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-icon {
    justify-self: start;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 66px;
  }

  .container {
    width: min(100% - 28px, 1280px);
  }

  .main-nav {
    width: min(360px, calc(100vw - 28px));
  }

  .main-nav-scroll {
    padding: calc(var(--header-height) + 14px) 14px 32px;
  }

  .dropdown {
    padding: 8px;
  }

  .brand img,
  .site-header.is-scrolled .brand img {
    width: 132px;
  }

  .hero,
  .page-hero {
    padding-top: calc(var(--header-height) + 56px);
    padding-bottom: 64px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(6, 39, 70, 0.92) 0%, rgba(6, 39, 70, 0.74) 58%, rgba(6, 39, 70, 0.5) 100%),
      url("../img/bg-hero-azul.png");
    background-position: center;
  }

  .hero::after {
    opacity: 0.22;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 82%);
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .section {
    padding: 62px 0;
  }

  .cards-grid,
  .specialty-grid,
  .cards-grid.four,
  .cards-grid.three,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .specialty-card,
  .mini-card {
    min-height: auto;
  }

  .hero-actions,
  .cta-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .map-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .contact-map-section .map-box h2 {
    font-size: 5vw;
  }

  .embedded-map {
    height: 300px;
  }

  .specialty-track {
    --specialty-gap: 16px;
  }

  .specialty-track .specialty-card {
    flex-basis: 100%;
  }

  .specialty-carousel-shell {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .btn {
    width: 100%;
  }

  .detail-icon {
    width: 132px;
    height: 132px;
  }

  .detail-icon .icon {
    width: 68px;
    height: 68px;
  }

  .footer-grid {
    padding-top: 42px;
  }
}
