/* ========================================
   MEDGLOBAL — Salud ocupacional empresarial
   Paleta: cian logo + verde logo
   ======================================== */

:root {
  --blue: #00adef;
  --blue-deep: #0089c2;
  --blue-soft: rgba(0, 173, 239, 0.12);
  --green: #7ac143;
  --green-deep: #5ea32e;
  --green-soft: rgba(122, 193, 67, 0.14);
  --ink: #0a2430;
  --ink-soft: #3d5a68;
  --mist: #f2f8fb;
  --white: #ffffff;
  --line: rgba(10, 36, 48, 0.1);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --shadow-soft: 0 20px 50px rgba(0, 80, 110, 0.12);
  --radius: 18px;
  --header-h: 76px;
  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(0, 173, 239, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 15%, rgba(122, 193, 67, 0.16), transparent 50%),
    linear-gradient(180deg, #eaf6fb 0%, #f4faf4 45%, #eef7f3 100%);
  pointer-events: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.85rem;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.85);
}

.section-head {
  max-width: 620px;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  color: var(--ink);
}

.section-head p:last-child {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 137, 194, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 14px 34px rgba(0, 137, 194, 0.45);
}

.btn--outline {
  background: transparent;
  border-color: rgba(0, 173, 239, 0.45);
  color: var(--blue-deep);
}

.btn--outline:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.35);
}

.btn--lg {
  padding: 1rem 1.55rem;
  font-size: 0.95rem;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  /* Always solid enough so banner logos never ghost through the menu */
  background: rgba(6, 28, 38, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(10, 36, 48, 0.08);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand__logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.header.is-scrolled .brand__logo {
  filter: none;
}

.brand:hover .brand__logo {
  transform: scale(1.03);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  transition: color 0.25s ease;
}

.header.is-scrolled .nav a {
  color: var(--ink-soft);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover {
  color: var(--white);
}

.header.is-scrolled .nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}

.header.is-scrolled .menu-toggle {
  background: var(--blue-soft);
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.is-scrolled .menu-toggle span {
  background: var(--ink);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transform: none;
  animation: none;
}

/* Gradiente SOLO a la izquierda (panel de texto). Derecha clara. */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      95deg,
      rgba(6, 24, 32, 0.88) 0%,
      rgba(6, 28, 38, 0.72) 24%,
      rgba(6, 32, 42, 0.18) 40%,
      transparent 52%
    ),
    linear-gradient(180deg, rgba(6, 20, 28, 0.28) 0%, transparent 12%),
    linear-gradient(0deg, rgba(6, 24, 32, 0.45) 0%, transparent 28%);
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 520px;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  margin-left: max(1.25rem, calc((100% - var(--container)) / 2));
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(6, 28, 38, 0.78) 0%,
    rgba(6, 40, 52, 0.52) 100%
  );
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.hero__kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.85rem;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero__title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  max-width: 16ch;
  margin-bottom: 1rem;
  animation: fadeUp 0.9s 0.1s var(--ease) both;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.9s 0.2s var(--ease) both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fadeUp 0.9s 0.3s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  right: max(1.5rem, calc((100% - var(--container)) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--green), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* Intro */
.intro {
  padding-top: 4.5rem;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: end;
}

.intro__text h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 18ch;
}

.intro__text p:last-of-type {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 0;
}

.intro__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.intro__stats li {
  background: var(--white);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.intro__stats strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--blue-deep);
  background: linear-gradient(90deg, var(--blue-deep), var(--green-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro__stats span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service {
  --service-i: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(0, 137, 194, 0.1);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(10, 36, 48, 0.03),
    0 16px 40px rgba(0, 100, 140, 0.07);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.35s ease;
  position: relative;
  isolation: isolate;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(0, 173, 239, 0.55),
    rgba(122, 193, 67, 0.15) 40%,
    rgba(0, 173, 239, 0.05) 70%,
    rgba(122, 193, 67, 0.4)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.service::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: 3;
}

.service:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow:
    0 8px 16px rgba(10, 36, 48, 0.04),
    0 28px 56px rgba(0, 100, 140, 0.14);
}

.service:hover::before {
  opacity: 1;
}

.service:hover::after {
  transform: scaleX(1);
}

.service__visual {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  margin: 0.7rem 0.7rem 0;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 173, 239, 0.12), rgba(122, 193, 67, 0.12));
}

.service__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 2;
  pointer-events: none;
}

.service__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(6, 28, 36, 0.28) 100%),
    linear-gradient(90deg, rgba(0, 137, 194, 0.08), rgba(94, 163, 46, 0.06));
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.service:hover .service__visual::after {
  opacity: 0.55;
}

.service__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.75s var(--ease), filter 0.4s ease;
  filter: saturate(1.02) contrast(1.02);
}

.service:hover .service__visual img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.04);
}

.service__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.72rem 0.38rem 0.38rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(10, 36, 48, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.service__tag span {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.2rem;
  border-radius: 8px;
  font-size: 0.68rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green-deep));
}

.service__body {
  padding: 1.2rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.service__body h3 {
  font-size: 1.12rem;
  margin-bottom: 0.15rem;
  color: var(--ink);
  transition: color 0.3s ease;
}

.service:hover .service__body h3 {
  color: var(--blue-deep);
}

.service__body p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.service__more {
  margin-top: auto;
  padding-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-deep);
  opacity: 0.85;
  transition: gap 0.3s var(--ease), opacity 0.3s ease, color 0.3s ease;
}

.service__more svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease);
}

.service:hover .service__more {
  opacity: 1;
  color: var(--green-deep);
  gap: 0.6rem;
}

.service:hover .service__more svg {
  transform: translateX(3px);
}

/* Coverage */
.coverage {
  padding-top: 2rem;
}

.coverage__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 247, 255, 0.9) 50%, rgba(236, 250, 230, 0.92) 100%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 173, 239, 0.12);
}

.coverage__copy h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  max-width: 18ch;
}

.coverage__copy > p {
  color: var(--ink-soft);
}

.coverage__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.coverage__list li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.coverage__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.coverage__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.coverage__map {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 3 / 4;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  background:
    radial-gradient(circle at 40% 35%, rgba(0, 173, 239, 0.25), transparent 50%),
    radial-gradient(circle at 60% 70%, rgba(122, 193, 67, 0.28), transparent 45%),
    linear-gradient(160deg, #d4eef8, #dff3d4 60%, #cfe9f5);
  box-shadow: inset 0 0 0 2px rgba(0, 173, 239, 0.2);
}

.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(0, 173, 239, 0.25);
  animation: pinPulse 2.4s ease-in-out infinite;
}

.pin--lima { top: 48%; left: 28%; animation-delay: 0s; background: var(--green); box-shadow: 0 0 0 6px rgba(122, 193, 67, 0.3); }
.pin--arequipa { top: 68%; left: 38%; animation-delay: 0.3s; }
.pin--trujillo { top: 28%; left: 26%; animation-delay: 0.6s; }
.pin--cusco { top: 58%; left: 48%; animation-delay: 0.9s; }
.pin--piura { top: 16%; left: 24%; animation-delay: 1.2s; }
.pin--iquitos { top: 32%; left: 62%; animation-delay: 1.5s; }

@keyframes pinPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.coverage__caption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
}

/* Why */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why__item {
  padding-top: 0.5rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--green)) 1;
}

.why__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(0, 173, 239, 0.25);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.why__item h3 {
  font-size: 1.2rem;
}

.why__item p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

/* CTA */
.cta {
  padding-bottom: 4rem;
}

.cta__panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: 28px;
  background:
    linear-gradient(125deg, #0678a8 0%, #0a9fd4 40%, #3faa3a 100%);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(0, 100, 140, 0.28);
  position: relative;
  overflow: hidden;
}

.cta__panel::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta__copy,
.cta__actions {
  position: relative;
  z-index: 1;
}

.cta__copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  max-width: 18ch;
}

.cta__copy p:last-of-type {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 42ch;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}

.cta__actions .btn {
  width: 100%;
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer__inner {
  display: grid;
  gap: 1.5rem;
}

.footer__brand img {
  height: 42px;
  width: auto;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.footer__brand p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 36ch;
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--blue-deep);
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  opacity: 0.85;
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(18, 140, 126, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.float-wa svg {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
}

.float-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(18, 140, 126, 0.55);
}

.float-wa__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: waPulse 2s ease-out infinite;
  z-index: 0;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro__grid,
  .coverage__inner,
  .cta__panel,
  .why__grid {
    grid-template-columns: 1fr;
  }

  .cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta__actions .btn {
    width: auto;
    flex: 1 1 auto;
  }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: 0 16px 40px rgba(10, 36, 48, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    color: var(--ink) !important;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: flex;
  }

  .header {
    background: rgba(6, 28, 38, 0.92);
    backdrop-filter: blur(12px);
  }

  .header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
  }

  .header .btn--outline {
    display: none;
  }
}

@media (max-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 2.5rem;
    min-height: 92svh;
  }

  .hero__img {
    object-position: 60% 40%;
  }

  .hero__content {
    margin-left: auto;
    max-width: none;
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(6, 28, 38, 0.35) 0%, rgba(6, 28, 38, 0.15) 40%, rgba(6, 24, 32, 0.88) 100%),
      linear-gradient(100deg, rgba(6, 28, 38, 0.55) 0%, transparent 55%);
  }

  .hero__scroll {
    display: none;
  }

  .header__actions .btn--primary {
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
  }

  .coverage__inner {
    padding: 1.75rem;
  }

  .cta__actions {
    flex-direction: column;
  }

  .cta__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img,
  .hero__scroll-line,
  .float-wa__pulse,
  .pin,
  .reveal {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
