:root {
  color-scheme: light;
}

html {
  background: #ffffff;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.dark {
  color-scheme: dark;
}

html.dark {
  background: #020617;
}

::selection {
  color: #fff;
  background: #2563eb;
}

.focus-ring:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 999px;
  background: #1d4ed8;
  color: white;
  padding: 0.75rem 1rem;
  transition: transform 180ms ease;
}

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

.gradient-text {
  background: linear-gradient(110deg, #4f46e5 5%, #2563eb 48%, #16a34a 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ambient-glow {
  pointer-events: none;
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
}

.card-lift {
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 22px 60px -32px rgba(37, 99, 235, 0.4);
}

.image-zoom {
  overflow: hidden;
}

.image-zoom img {
  transition: transform 600ms ease;
}

.image-zoom:hover img {
  transform: scale(1.025);
}

.floating-contact {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-contact__link {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #ffffff;
  box-shadow: 0 16px 38px -16px rgba(15, 23, 42, 0.65);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-contact__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -14px rgba(15, 23, 42, 0.72);
}

.floating-contact__link--instagram {
  background: linear-gradient(135deg, #7c3aed, #db2777 55%, #f59e0b);
}

.floating-contact__link--whatsapp {
  background: #16a34a;
}

.floating-contact__link svg {
  width: 1.55rem;
  height: 1.55rem;
}

[data-mobile-overlay][hidden] {
  display: none;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
  animation: mobile-backdrop-in 180ms ease-out both;
}

.mobile-drawer__panel {
  position: relative;
  display: flex;
  width: min(88vw, 23.5rem);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: -30px 0 80px -36px rgba(15, 23, 42, 0.75);
  animation: mobile-drawer-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dark .mobile-drawer__panel {
  background: #020617;
}

.mobile-drawer__link {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  color: #172554;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mobile-drawer__link::after {
  content: '→';
  color: #94a3b8;
  font-size: 1.15rem;
  transition: transform 180ms ease, color 180ms ease;
}

.mobile-drawer__link:hover::after {
  color: #2563eb;
  transform: translateX(0.2rem);
}

.mobile-drawer__link[aria-current='page'] {
  color: #2563eb;
}

.dark .mobile-drawer__link {
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.dark .mobile-drawer__link[aria-current='page'] {
  color: #60a5fa;
}

@keyframes mobile-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mobile-drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

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