:root {
  --navy: #071525;
  --navy-2: #0b1f3a;
  --navy-3: #143056;
  --navy-4: #1c3d68;
  --amber: #3ec6f0;
  --amber-2: #7adef8;
  --amber-ink: #042433;
  --cream: #f6f3ee;
  --cream-2: #ebe6db;
  --ink: #152033;
  --muted: #5b6573;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(7, 21, 37, 0.18);
  --radius: 22px;
  --header: 108px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
  --card-h: clamp(210px, 26vw, 248px);
  --card-pad: 18px 20px;
  --card-title: 1.2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(7, 21, 37, 0.55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.site-header.is-solid {
  background: rgba(7, 21, 37, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(22px, 2.6vw, 42px);
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: var(--amber);
}

.nav-consult {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-amber {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 10px 24px rgba(62, 198, 240, 0.28);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 10px 16px;
  font-size: 13px;
  min-width: 0;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  border-radius: 12px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 108px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--navy) center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 37, 0.58) 0%, rgba(7, 21, 37, 0.62) 40%, rgba(7, 21, 37, 0.94) 100%),
    linear-gradient(90deg, rgba(7, 21, 37, 0.8), rgba(7, 21, 37, 0.28) 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 90px 0 120px;
  max-width: 760px;
}

.eyebrow.light {
  color: var(--navy-2);
  border-color: var(--amber);
  background: rgba(62, 198, 240, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(62, 198, 240, 0.45);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(62, 198, 240, 0.08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 span {
  color: var(--amber);
}

.hero p {
  margin: 0 0 28px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats {
  position: relative;
  z-index: 2;
  margin-top: -70px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.stat-card b {
  display: block;
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.03em;
  color: var(--navy-2);
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.marquee {
  overflow: hidden;
  margin-top: 42px;
  padding: 16px 0;
  border-block: 1px solid rgba(21, 32, 51, 0.08);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-3);
  font-size: 13px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 92px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.lead + .lead {
  margin-top: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.split.profile {
  align-items: start;
}

.profile-copy {
  margin: 18px 0 28px;
}

.profile-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

.profile-copy p:last-child {
  margin-bottom: 0;
}

.photo-frame {
  position: relative;
}

.photo-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 28px;
}

.photo-card {
  position: absolute;
  right: -18px;
  bottom: 28px;
  width: min(280px, 70%);
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.photo-card strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
}

.photo-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.accent-bar {
  position: absolute;
  left: -14px;
  top: 36px;
  width: 8px;
  height: 120px;
  background: var(--amber);
  border-radius: 99px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 12px;
}

.check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--amber-ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}

.dark {
  background: var(--navy-2);
  color: #fff;
}

.dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}

.flip-help {
  margin: -12px 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.bento {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: var(--card-h) var(--card-h);
  gap: 10px;
}

.flip-card {
  position: relative;
  width: 100%;
  height: var(--card-h);
  min-height: var(--card-h);
  max-height: var(--card-h);
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

.flip-card.featured {
  grid-column: 1;
  grid-row: 1 / 3;
  height: calc(var(--card-h) * 2 + 10px);
  min-height: calc(var(--card-h) * 2 + 10px);
  max-height: calc(var(--card-h) * 2 + 10px);
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.flip-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(62, 198, 240, 0.55);
  border-radius: 16px;
}

.flip-face.tile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flip-front {
  z-index: 1;
}

.flip-back {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.flip-card.is-flipped .flip-back {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tile {
  overflow: hidden;
  border-radius: 16px;
  padding: var(--card-pad);
  background: var(--navy-3);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  box-sizing: border-box;
  transition: border-color 0.25s;
}

.flip-card:hover .flip-front {
  border-color: rgba(62, 198, 240, 0.55);
}

.tile.featured {
  background:
    linear-gradient(180deg, rgba(7, 21, 37, 0.2), rgba(7, 21, 37, 0.88)),
    url("assets/acerca.jpg") center / cover no-repeat;
}

.tile.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tile.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 37, 0.28) 0%, rgba(7, 21, 37, 0.45) 40%, rgba(7, 21, 37, 0.92) 100%);
  pointer-events: none;
}

.tile.has-photo > * {
  position: relative;
  z-index: 1;
}

.tile.has-photo .icon {
  background: rgba(7, 21, 37, 0.55);
  border: 1px solid rgba(62, 198, 240, 0.35);
}

.photo-hermeticidad {
  background-image: url("assets/hermeticidad.jpg");
}

.photo-inspeccion {
  background-image: url("assets/inspeccion.jpg");
}

.photo-asesoria {
  background-image: url("assets/asesoria.jpg");
}

.photo-capacitacion {
  background-image: url("assets/capacitacion.jpg");
}

.flip-back.tile {
  background: #12385a;
  justify-content: flex-start;
  overflow: hidden;
  padding: 18px 20px;
}

.tile h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(62, 198, 240, 0.15);
  color: var(--amber);
  margin-bottom: auto;
  font-size: 16px;
}

.flip-hint {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

.flip-back ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.4;
}

.flip-back li {
  margin: 0 0 6px;
}

.flip-cta {
  margin-top: auto;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.95rem;
}

.flip-cta:hover {
  text-decoration: underline;
}

.flip-back h3 {
  font-size: 1.25rem;
  -webkit-line-clamp: 1;
  margin-bottom: 10px;
}

.flip-card.featured .tile h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  -webkit-line-clamp: 3;
}

.flip-card.featured .tile p {
  font-size: 1.12rem;
  -webkit-line-clamp: 4;
}

.flip-card.featured .flip-back h3 {
  font-size: 1.55rem;
}

.flip-card.featured .flip-back ul {
  font-size: 1.05rem;
}

.flip-back.tile.flip-back-norm {
  padding: 22px 22px 20px;
  gap: 0;
  justify-content: center;
}

.flip-back-norm h3,
.flip-card.featured .flip-back-norm h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  -webkit-line-clamp: 1;
}

.tile p.norm-lead,
.tile p.norm-sub,
.tile p.norm-limit,
.flip-card.featured .tile p.norm-lead,
.flip-card.featured .tile p.norm-sub {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.tile p.norm-lead,
.flip-card.featured .tile p.norm-lead {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.norm-lead b {
  color: #fff;
  font-weight: 700;
}

.norm-sub {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
}

.norm-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.flip-card.featured .flip-back-norm .norm-list,
.flip-back-norm .norm-list {
  font-size: 0.78rem;
  line-height: 1.25;
}

.norm-list li {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.92);
}

.norm-list span {
  flex: 0 0 2.6em;
  color: var(--amber);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.norm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.3;
}

.norm-table th {
  text-align: left;
  color: var(--amber);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0 8px 6px 0;
  border-bottom: 1px solid rgba(62, 198, 240, 0.28);
}

.norm-table td {
  padding: 7px 8px 7px 0;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.norm-table td:nth-child(2) {
  color: var(--amber);
  font-weight: 800;
  white-space: nowrap;
}

.norm-limit {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .flip-face {
    transition: opacity 0.2s ease;
  }
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  background: #fff;
  border-radius: 24px;
  padding: 26px 22px;
  min-height: 280px;
  box-shadow: 0 10px 30px rgba(7, 21, 37, 0.06);
  border: 1px solid rgba(21, 32, 51, 0.06);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--display);
  font-size: 34px;
  color: var(--amber);
  font-weight: 800;
  margin-bottom: 18px;
}

.step h3 {
  margin: 0 0 8px;
  font-family: var(--display);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.cta-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(7, 21, 37, 0.88), rgba(20, 48, 86, 0.78)),
    url("assets/manometros.jpg") center / cover no-repeat;
  border-radius: 32px;
  padding: 48px;
  color: #fff;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.pill.is-on {
  background: var(--amber);
  color: var(--amber-ink);
  border-color: var(--amber);
  font-weight: 700;
}

.map-block {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
  background: #fff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.map-block h3 {
  margin: 10px 0 8px;
  font-family: var(--display);
  color: var(--navy-2);
}

.map-block p {
  margin: 0 0 18px;
  color: var(--muted);
}

.map-frame {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 18px;
}

.cta-side {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
}

.cta-side label {
  display: block;
  font-size: 13px;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.7);
}

.cta-side input {
  width: 100%;
  margin-bottom: 14px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.site-footer {
  background: #050e19;
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 110px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--display);
}

.site-footer a:hover {
  color: var(--amber);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0 0 8px;
}

.copy {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.48);
}

.wa-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #128c47;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.wa-copy {
  display: grid;
  padding-right: 6px;
  line-height: 1.15;
}

.wa-copy strong {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.wa-copy small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

.mobile-cta {
  display: none;
}

@media (max-width: 1200px) {
  .brand span {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav,
  .header-cta {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 12px 20px 20px;
  }

  .nav.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav-consult {
    display: block;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .stats-grid,
  .split,
  .process-grid,
  .footer-grid,
  .cta-box,
  .map-block,
  .section-head {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }

  .flip-card,
  .flip-card.featured {
    grid-row: auto;
    grid-column: auto;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
  }

  .flip-card.featured {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }

  .tile {
    padding: 18px 16px 16px;
  }

  .tile h3,
  .flip-card.featured .tile h3 {
    font-size: 1.15rem;
    line-height: 1.25;
    -webkit-line-clamp: 3;
    margin-bottom: 8px;
  }

  .tile p,
  .flip-card.featured .tile p {
    font-size: 0.95rem;
    line-height: 1.4;
    -webkit-line-clamp: 3;
  }

  .flip-back.tile {
    padding: 18px 16px;
    overflow: hidden;
  }

  .flip-back h3,
  .flip-card.featured .flip-back h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .flip-back ul,
  .flip-card.featured .flip-back ul {
    font-size: 1rem;
    line-height: 1.45;
  }

  .flip-back-norm h3,
  .flip-card.featured .flip-back-norm h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .tile p.norm-lead,
  .tile p.norm-sub,
  .tile p.norm-limit,
  .flip-card.featured .tile p.norm-lead,
  .flip-card.featured .tile p.norm-sub {
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .flip-card.featured .flip-back-norm .norm-list {
    font-size: 0.72rem;
    gap: 4px 10px;
  }

  .norm-table {
    font-size: 0.72rem;
  }

  .flip-cta {
    font-size: 1rem;
  }

  .dark {
    padding-bottom: 130px;
  }

  .tile.featured,
  .tile {
    min-height: 0;
  }

  .photo-frame img {
    height: 380px;
  }

  .photo-card {
    right: 12px;
    bottom: 12px;
  }

  .cta-box {
    padding: 28px 22px;
  }

  .wa {
    display: none;
  }

  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    gap: 8px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(7, 21, 37, 0.96);
    border-top: 1px solid var(--line);
  }

  .mobile-cta .btn {
    flex: 1;
    padding: 12px 10px;
  }

  .stats {
    margin-top: -24px;
  }

  .hero-content {
    padding: 64px 0 72px;
  }

  .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1180px, calc(100% - 24px));
  }

  .flip-card,
  .flip-card.featured {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
  }

  .brand span {
    font-size: 15px;
  }
}

.consult-page {
  padding: 48px 0 110px;
  background:
    linear-gradient(180deg, #0b1f3a 0 220px, var(--cream) 220px);
  min-height: calc(100svh - 108px);
  color: #fff;
}

.consult-page .eyebrow {
  color: var(--amber);
  border-color: rgba(62, 198, 240, 0.75);
  background: rgba(62, 198, 240, 0.16);
}

.consult-page h1 {
  margin: 14px 0 10px;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.03em;
}

.consult-page .lead {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 28px;
}

.consult-card {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 560px;
  box-shadow: var(--shadow);
}

.consult-card label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.consult-card input {
  width: 100%;
  border: 1px solid rgba(21, 32, 51, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 16px;
}

.consult-card .btn {
  width: 100%;
}

.consult-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.consult-result {
  max-width: 560px;
  margin-top: 18px;
  border-radius: 20px;
  padding: 22px;
}

.consult-result.is-ok {
  background: #e8f8ef;
  color: #0d3b24;
}

.consult-result.is-error {
  background: #fdecec;
  color: #5c1a1a;
}

.consult-result ul {
  padding-left: 18px;
}

.consult-result .btn {
  margin-top: 12px;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mv-card {
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(7, 21, 37, 0.06);
  border: 1px solid rgba(21, 32, 51, 0.06);
}

.mv-card h3 {
  font-family: var(--display);
  margin: 12px 0 10px;
  letter-spacing: -0.03em;
}

.mv-card p {
  margin: 0;
  color: var(--muted);
}

.mv-card p + p {
  margin-top: 12px;
}

.bento.two {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(380px, 430px);
}

.bento.two .flip-card,
.bento.two .flip-card.featured {
  grid-column: auto;
  grid-row: auto;
  height: 430px;
  min-height: 430px;
  max-height: 430px;
}

.flow-start,
.flow-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 22px;
  margin: 0 0 18px;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.flow-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.flow-card span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.flow-card h3,
.flow-diamond h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 16px;
}

.flow-card p,
.flow-diamond p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.flow-decisions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-top: 16px;
  align-items: stretch;
}

.flow-diamond {
  background: rgba(62, 198, 240, 0.12);
  border: 1px solid rgba(62, 198, 240, 0.35);
  border-radius: 18px;
  padding: 16px;
}

.flow-end {
  align-self: center;
  margin: 0;
}

.flow-figure {
  margin: 28px 0 0;
  background: #fff;
  border-radius: 24px;
  padding: 16px;
}

.flow-figure figcaption {
  color: var(--navy-2);
  font-weight: 700;
  margin-bottom: 10px;
}

.flow-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.flow-zoom img {
  width: 100%;
  border-radius: 16px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.doc-card {
  display: block;
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  box-shadow: 0 10px 30px rgba(7, 21, 37, 0.05);
  transition: transform 0.2s, border-color 0.2s;
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}

.doc-card span {
  color: var(--navy-3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.doc-card h3 {
  margin: 8px 0 8px;
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.doc-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.doc-card em {
  color: var(--navy-2);
  font-style: normal;
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 21, 37, 0.92);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 90vh;
  border-radius: 12px;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
}

.request-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.request-card {
  background: #f4f6f8;
  color: var(--navy-2);
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 22px;
  padding: 26px 24px 22px;
}

.request-icon {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 22px;
}

.request-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--navy-2);
}

.request-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.request-card a {
  color: var(--navy-2);
  font-weight: 700;
  font-size: 14px;
}

.request-card a:hover {
  color: #1a7fa8;
}

.service-form {
  scroll-margin-top: 120px;
  margin-top: 16px;
  background: #fff;
  color: var(--navy-2);
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 22px;
  padding: 28px 26px;
}

.service-form h3 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--navy-2);
}

.service-form fieldset {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.service-form legend,
.service-form label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy-2);
}

.service-form .radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  margin: 0 0 10px;
  cursor: pointer;
}

.service-form .radio span {
  font-weight: 400;
  color: var(--navy-2);
}

.service-form input[type="text"],
.service-form input[type="tel"],
.service-form input[type="email"],
.service-form input[type="date"],
.service-form textarea {
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 32, 51, 0.14);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--navy-2);
  box-sizing: border-box;
}

.service-form input[type="file"] {
  width: 100%;
  margin: 0 0 16px;
  color: var(--muted);
}

.service-form textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-form .form-note a {
  color: #1a7fa8;
  font-weight: 700;
}

.service-form .btn {
  margin-top: 4px;
}

.form-code {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inline-radios {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin-bottom: 12px;
}

.service-form fieldset {
  margin-bottom: 22px;
}

.print-form {
  max-width: 820px;
  margin: 40px auto 80px;
  background: #fff;
  padding: 36px;
  border-radius: 16px;
}

.print-form h1 {
  font-size: 1.6rem;
  margin: 8px 0 8px;
}

@media print {
  .site-header,
  .header-actions,
  .menu-toggle,
  .wa,
  .mobile-cta,
  .no-print {
    display: none !important;
  }

  .print-form {
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 1100px) {
  .mv-grid,
  .flow-track,
  .flow-decisions,
  .docs-grid,
  .bento.two,
  .request-options,
  .form-row,
  .check-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .bento.two .flip-card,
  .bento.two .flip-card.featured {
    height: 390px;
    min-height: 390px;
    max-height: 390px;
  }

}
