:root {
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-secondary: #f59e0b;
  --color-text: #0f172a;
  --color-heading: #0f172a;
  --color-muted: #475569;
  --color-muted-light: #cbd5e1;
  --color-surface-strong: #ffffff;
  --color-surface: rgba(255, 255, 255, 0.82);
  --color-border: rgba(148, 163, 184, 0.2);
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --nav-height: 5rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  background: #f8fafc;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.6;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.mobile-menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-family: Outfit, "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

p,
li {
  color: var(--color-muted);
}

small {
  color: var(--color-muted);
}

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

main {
  overflow-x: hidden;
}

main section + section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 3px;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-card);
}

.btn-primary,
.btn-whatsapp,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: 0;
  border-radius: 9999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn-primary:hover,
.btn-whatsapp:hover,
.btn-light:hover {
  transform: translateY(-1px);
}

.btn-primary {
  padding: 0.875rem 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #38bdf8);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 18px 30px rgba(14, 165, 233, 0.3);
}

.btn-whatsapp {
  padding: 0.875rem 2rem;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #059669);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.25);
}

.btn-whatsapp:hover {
  box-shadow: 0 18px 30px rgba(34, 197, 94, 0.3);
}

.btn-light {
  padding: 0.875rem 2rem;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-light:hover {
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.2);
}

.hero-gradient {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.7) 50%,
    rgba(15, 23, 42, 0.92) 100%
  );
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-primary-dark);
  border: 1px solid rgba(14, 165, 233, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-soft {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-card);
}

.panel-dark {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 26%),
    linear-gradient(180deg, #0f172a, #111827);
  color: #fff;
}

.panel-dark h1,
.panel-dark h2,
.panel-dark h3,
.panel-dark h4,
.panel-dark h5,
.panel-dark h6,
.panel-dark p,
.panel-dark li {
  color: inherit;
}

.feature-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.18);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
}

.glow-cta {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #0ea5e9, #0369a1);
  box-shadow: 0 24px 48px rgba(14, 165, 233, 0.22);
}

.location-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.14);
  color: #0f172a;
  font-weight: 700;
}

.text-strong {
  color: #e2e8f0;
}

.text-soft-light {
  color: #cbd5e1;
}

:where(.text-white, .panel-dark, .glow-cta, footer) h1,
:where(.text-white, .panel-dark, .glow-cta, footer) h2,
:where(.text-white, .panel-dark, .glow-cta, footer) h3,
:where(.text-white, .panel-dark, .glow-cta, footer) h4,
:where(.text-white, .panel-dark, .glow-cta, footer) h5,
:where(.text-white, .panel-dark, .glow-cta, footer) h6 {
  color: #fff;
}

:where(.text-white, .panel-dark, .glow-cta, footer) p,
:where(.text-white, .panel-dark, .glow-cta, footer) li,
:where(.text-white, .panel-dark, .glow-cta, footer) small {
  color: var(--color-muted-light);
}

:where(.text-white, .panel-dark, .glow-cta, footer) a:not(.btn-primary):not(.btn-whatsapp) {
  color: inherit;
}

a[class~="bg-white"],
button[class~="bg-white"] {
  color: #0f172a !important;
}

a[class*="bg-white/"],
button[class*="bg-white/"] {
  color: #fff !important;
}

a[class~="bg-primary"],
button[class~="bg-primary"],
a[class~="bg-whatsapp"],
button[class~="bg-whatsapp"] {
  color: #fff !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions > a,
.hero-actions > button {
  min-width: 220px;
  justify-content: center;
}

footer {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 20%),
    linear-gradient(180deg, #020617, #0f172a);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
  color: #94a3b8;
}

footer a:hover {
  color: #fff;
}

footer p,
footer li {
  color: #94a3b8;
}

footer .text-primary {
  color: #38bdf8;
}

footer .text-white\/70,
footer .text-white\/80 {
  color: #cbd5e1;
}

#mobile-menu {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

#mobile-menu a {
  color: #334155;
}

#mobile-menu a:hover,
#mobile-menu a:focus-visible {
  color: var(--color-primary);
}

@keyframes pulse-whatsapp {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.floating-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3.75rem;
  height: 3.75rem;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #059669);
  border-radius: 9999px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 24px 50px rgba(5, 150, 105, 0.3);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 3px 12px rgba(14, 165, 233, 0.35);
  transition: width 0.1s ease;
}

[data-aos="fade-up"] {
  transform: translate3d(0, 30px, 0);
}

nav img[src="logo.png"] {
  width: min(250px, 100%);
  max-width: 190px;
  height: auto;
}

#mobile-menu {
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  h1 {
    line-height: 1.05;
  }

  h2 {
    line-height: 1.1;
  }

  nav .h-20 {
    min-height: var(--nav-height);
  }

  nav img[src="logo.png"] {
    max-width: 150px;
  }

  .btn-primary,
  .btn-whatsapp,
  .btn-light {
    width: 100%;
    padding-inline: 1.25rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions > a,
  .hero-actions > button {
    min-width: 100%;
  }

  .floating-whatsapp {
    right: 1rem;
    bottom: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.8rem;
  }

  section[class*="py-24"],
  section[class*="py-28"] {
    overflow: hidden;
  }

  [class*="grid-cols-"],
  [class*="flex-row"] {
    min-width: 0;
  }

  .panel-soft,
  .feature-card,
  .glass-card {
    border-radius: 1.5rem;
  }
}

@media (min-width: 768px) {
  nav img[src="logo.png"] {
    max-width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .floating-whatsapp {
    animation: none;
  }
}
