:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --ink: #0c1724;
  --muted: #526172;
  --line: rgba(12, 23, 36, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.1), transparent 22%),
    linear-gradient(180deg, #f6f9fc 0%, #e9f0f8 54%, #f8fafc 100%);
  color: var(--ink);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
  pointer-events: none;
}

.site-header__inner {
  width: min(100%, 80rem);
  margin: 0 auto;
  pointer-events: auto;
}

.site-nav-glow {
  position: relative;
  overflow: visible;
}

.site-nav-glow::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.35), transparent 65%),
    radial-gradient(circle at bottom, rgba(245, 158, 11, 0.3), transparent 70%),
    radial-gradient(circle at left, rgba(14, 165, 233, 0.35), transparent 70%),
    radial-gradient(circle at right, rgba(56, 189, 248, 0.35), transparent 70%);
  filter: blur(16px);
  opacity: 0.55;
  animation: navGlowPulse 4.8s ease-in-out infinite;
  z-index: -2;
}

.site-nav-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.28);
  opacity: 0.7;
  animation: navEdgeBreathe 4.8s ease-in-out infinite;
  z-index: -1;
}

.grid-shell {
  background-image: linear-gradient(rgba(12, 23, 36, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 23, 36, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

.glass {
  backdrop-filter: blur(18px);
  background: rgba(9, 18, 29, 0.72);
}

.glass-panel {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(120%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(240, 246, 252, 0.72));
  box-shadow: 0 20px 60px rgba(12, 23, 36, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.24), transparent 32%, transparent 68%, rgba(56, 189, 248, 0.05));
  pointer-events: none;
}

.glass-panel::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.parallax-layer {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-soft {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

.panel-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(12, 23, 36, 0.12);
}

.scroll-tilt {
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.16s linear;
}

.media-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(12, 23, 36, 0.02), rgba(12, 23, 36, 0.14));
  pointer-events: none;
}

.media-reveal {
  transform: scale(1.08);
  filter: blur(10px) saturate(0.9);
  opacity: 0.58;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
  will-change: transform, filter, opacity;
}

.media-reveal.is-inview {
  transform: scale(1);
  filter: blur(0) saturate(1);
  opacity: 1;
}

.hero-loop-visual {
  animation: heroLoop 12s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  transform-origin: center center;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 92vh;
}

.hero-copy {
  position: relative;
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-content {
  transition: transform 0.25s ease;
  will-change: transform;
}

.hero-stage:hover .hero-copy {
  transform: translate3d(0, -10px, 0) scale(1.012);
}

.hero-images {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.95);
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-image.is-active {
  opacity: 0.48;
}

@keyframes heroFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroLoop {
  0% {
    transform: scale(1.04) translate3d(-1.5%, -1%, 0);
  }
  100% {
    transform: scale(1.14) translate3d(1.5%, 1.5%, 0);
  }
}

.hero-stage::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 80px;
  box-shadow: 0 30px 50px rgba(12, 23, 36, 0.5);
  background: transparent;
  pointer-events: none;
}

@keyframes navGlowPulse {
  0% {
    transform: scale(0.94);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.94);
    opacity: 0.45;
  }
}

@keyframes navEdgeBreathe {
  0% {
    opacity: 0.75;
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.28);
  }
  50% {
    opacity: 0.35;
    box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.42);
  }
  100% {
    opacity: 0.75;
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.28);
  }
}

.whatsapp-widget {
  position: fixed;
  bottom: calc(1.5rem + 36px);
  right: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1rem;
  pointer-events: none;
}

.whatsapp-widget .whatsapp-toggle {
  pointer-events: auto;
}

.whatsapp-widget.is-open {
  pointer-events: auto;
}

.whatsapp-toggle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 12px 25px rgba(22, 163, 74, 0.35);
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsappFloat 3.8s ease-in-out infinite;
}

.whatsapp-toggle svg {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.whatsapp-toggle svg path {
  fill: currentColor;
  stroke: none;
}

.whatsapp-toggle:hover svg {
  transform: rotate(45deg);
}

.whatsapp-toggle:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 32px rgba(22, 163, 74, 0.45);
  animation-play-state: paused;
}

.whatsapp-panel {
  width: 320px;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 60px rgba(12, 23, 36, 0.22);
  transform: translate(24px, 20px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
}

.whatsapp-widget.is-open .whatsapp-panel {
  opacity: 1;
  transform: translate(0, 0);
  pointer-events: auto;
}

.whatsapp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}

.whatsapp-header__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #0ea5e9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.whatsapp-body {
  padding: 1rem 1.25rem;
  background: #f5f7fb;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.whatsapp-bubble {
  background: #fff;
  border-radius: 1.25rem;
  padding: 0.8rem 1rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
  color: #1f2937;
}

.whatsapp-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
  background: #f5f7fb;
}

.whatsapp-input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  outline: none;
}

.whatsapp-send {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
}

@keyframes whatsappFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}
