:root {
  --primary: #0087d4;
  --primary-dark: #0069a8;
  --secondary: #2f3a4a;
  --accent: #f26b1d;
  --accent-strong: #ef3b24;
  --muted: #6b778a;
  --bg-light: #f4f9ff;
  --bg-dark: #071b2c;
  --primary-soft: rgba(0, 135, 212, 0.14);
  --accent-soft: rgba(242, 107, 29, 0.16);
  --card-shadow: 0 1rem 2.5rem rgba(7, 27, 44, 0.08);
  --transition-base: all 0.3s ease;
  --section-padding: clamp(3rem, 6vw, 6rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--secondary);
  background-color: #fff;
  line-height: 1.6;
}

a {
  color: var(--primary);
  transition: var(--transition-base);
}

a:hover,
a:focus {
  color: var(--primary-dark);
  text-decoration: none;
}

.btn-primary,
.btn-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.badge.bg-primary-subtle {
  background-color: var(--primary-soft) !important;
  color: var(--primary) !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 0.35rem 1.5rem rgba(7, 27, 44, 0.08);
}

.top-header-bar {
  background: linear-gradient(90deg, rgba(0, 135, 212, 0.06), rgba(255, 247, 239, 0.06));
}


.typing-text {
  display: inline-flex;
  align-items: center;
  min-height: 1.6em;
  letter-spacing: 0.01em;
}

.typing-text::after {
  content: '|';
  margin-left: 6px;
  color: var(--accent);
  animation: typing-caret 1s steps(1) infinite;
}

.typing-text.typing-complete::after {
  opacity: 0;
}

@keyframes typing-caret {
  0%, 45% {
    opacity: 1;
  }
  55%, 100% {
    opacity: 0;
  }
}

.navbar-brand {
  gap: 0.5rem;
}

.navbar .brand-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
}

.brand-logo-sm {
  height: 40px;
  width: auto;
  max-width: 170px;
}

main {
  padding-top: 0;
}

.navbar {
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.05);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.navbar .nav-link {
  font-weight: 600;
  color: var(--secondary);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--accent);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-tagline {
  font-size: 0.875rem;
  color: var(--muted);
}

.hero {
  padding: calc(var(--section-padding) + 2rem) 0 var(--section-padding);
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}

.hero .display-5 {
  font-weight: 700;
}

.hero p {
  max-width: 32rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-title span {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title h2 {
  font-weight: 700;
}

.bg-light-gradient {
  background: linear-gradient(180deg, #f4f9ff 0%, #fff7ef 100%);
}

.trust-badges .badge {
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(0, 135, 212, 0.24);
}

.card-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 0.75rem 1.5rem rgba(7, 27, 44, 0.08);
}

.card-hover:hover,
.card-hover:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow);
}

.icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.feature-list .icon {
  color: var(--accent);
  flex-shrink: 0;
  width: 1.25rem;
  display: inline-flex;
  justify-content: center;
}

.feature-list .icon::before {
  content: "\2713";
  font-weight: 600;
}

.timeline-step {
  position: relative;
  border-left: 2px solid rgba(0, 135, 212, 0.25);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

.timeline-step::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  left: -7px;
  margin-top: 0.35rem;
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
}

.accordion-button:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 135, 212, 0.18);
}

.badge-tech {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.gallery-filter .btn {
  border-radius: 999px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 0.75rem 1.5rem rgba(7, 27, 44, 0.08);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 135, 212, 0.82), rgba(239, 59, 36, 0.88));
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition-base);
}

.gallery-item:hover .overlay,
.gallery-item:focus-within .overlay {
  opacity: 1;
}

.blog-search {
  max-width: 24rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
}

.footer {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: var(--section-padding) 0 2rem;
}

.footer a {
  color: #e2e8f0;
}

.footer a:hover,
.footer a:focus {
  color: var(--accent);
}

.footer .social-links a {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5ff;
  transition: var(--transition-base);
}

.footer .social-links a:hover,
.footer .social-links a:focus {
  background: rgba(255, 255, 255, 0.24);
  color: var(--accent-strong);
}

.footer-logo-img {
  max-width: 180px;
  height: auto;
}

.footer-logo {
  text-decoration: none;
}

.footer .text-muted,
.footer .footer-description {
  color: #cbd5f5 !important;
}

.footer .footer-links a {
  color: #f1f5ff;
}

.footer .footer-links a:hover,
.footer .footer-links a:focus {
  color: #7cc4ff;
}

.footer .border-top {
  border-color: rgba(148, 163, 209, 0.4) !important;
}

.floating-whatsapp,
.back-to-top {
  position: fixed;
  right: 1.25rem;
  z-index: 1030;
  border-radius: 999px;
  box-shadow: var(--card-shadow);
}

.floating-whatsapp {
  bottom: 5.5rem;
  background: #25d366;
  color: #fff;
  padding: 0.75rem 1rem;
}

.back-to-top {
  bottom: 1.5rem;
  display: none;
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 0.85rem;
}

.back-to-top.show {
  display: inline-flex;
}

.toast-container {
  z-index: 1100;
}

.lazy-image {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

.honeypot {
  display: none !important;
}

.form-spinner {
  display: none;
}

.form-loading .form-spinner {
  display: inline-block;
}

.form-loading button[type="submit"] {
  pointer-events: none;
  opacity: 0.65;
}

.map-responsive {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  border-radius: 1rem;
}

.map-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1rem;
}

.header-cta {
  gap: 0.75rem;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 135, 212, 0.25);
}

@media (max-width: 991.98px) {
  .hero {
    text-align: center;
  }

  .hero p,
  .hero .btn-group {
    margin-left: auto;
    margin-right: auto;
  }

  .navbar-collapse {
    padding: 1rem 0;
  }
}


@media (max-width: 575.98px) {
  .navbar-brand {
    gap: 0.2rem;
  }

  .navbar-brand img {
    height: 32px !important;
  }

  .navbar .brand-title {
    font-size: 0.78rem;
    max-width: 170px;
  }

  .navbar-toggler {
    padding: 0.3rem 0.45rem;
  }

  .floating-whatsapp {
    right: 0.6rem;
    bottom: 0.85rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  .header-tagline {
    display: none;
  }

  .navbar-brand {
    gap: 0.35rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .navbar .brand-title {
    font-size: 0.9rem;
    line-height: 1.15;
    max-width: 220px;
    white-space: nowrap;
  }

  .navbar-toggler {
    margin-left: auto;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .floating-whatsapp,
  .back-to-top {
    right: 1rem;
  }

  .hero {
    padding: 5rem 0 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .typing-text::after {
    display: none;
  }
}

@media print {
  body {
    color: #000;
  }

  .navbar,
  .footer,
  .floating-whatsapp,
  .back-to-top,
  .btn,
  .toast-container,
  .modal {
    display: none !important;
  }

  .map-responsive {
    padding-top: 0;
  }

  .map-responsive iframe {
    position: static;
    height: 200px;
  }
}
