:root {
  --background: #050505;
  --foreground: #f5f5f5;
  --primary: #111111;
  --secondary: #b8b8b8;
  --accent: #1a1a1a;
  --gray-light: #101010;
  --color-gray-50: #0a0a0a;
  --color-gray-100: #111111;
  --color-gray-200: #1a1a1a;
  --color-gray-300: #2b2b2b;
  --color-gray-600: #b0b0b0;
  --color-gray-700: #d0d0d0;
  --color-gray-800: #e5e5e5;
  --color-gray-900: #0a0a0a;
}

body {
  background: linear-gradient(180deg, #020202 0, #0d0d0d 100%);
  color: var(--foreground);
}

header.bg-white {
  background-color: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-nav-shell {
  max-width: 100%;
}

.top-nav-row {
  gap: 0.75rem;
}

.top-nav-logo {
  height: 2.75rem;
  width: auto;
}

.top-nav-desktop {
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
  margin-left: 1rem;
  white-space: nowrap;
}

.top-nav-link {
  flex: 0 0 auto;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
}

.top-nav-auth {
  flex: 0 0 auto;
  gap: 0.5rem;
  margin-left: 0.9rem;
  white-space: nowrap;
}

.bg-gray-50 {
  background-color: var(--color-gray-50);
}

.bg-gray-200 {
  background-color: var(--color-gray-200);
}

.bg-gray-900 {
  background-color: #000000;
}

.bg-white {
  background-color: rgba(18, 18, 18, 0.94);
}

.bg-primary {
  background: linear-gradient(135deg, #050505 0, #252525 100%);
}

.bg-primary\/10 {
  background-color: rgba(255, 255, 255, 0.08);
}

.text-gray-600,
.text-gray-500,
.text-gray-400,
.text-gray-700,
.text-gray-800,
.text-gray-900,
.text-black,
.text-secondary,
.text-secondary *,
.text-primary {
  color: #ffffff;
}

.hover\:text-gray-900:hover,
.hover\:text-black:hover,
.hover\:text-primary:hover {
  color: #ffffff;
}

.border-primary {
  border-color: #666666;
}

.border-secondary {
  border-color: #8a8a8a;
}

.border-gray-800 {
  border-color: rgba(255, 255, 255, 0.14);
}

.rounded-lg,
.rounded-md {
  border-radius: 1rem;
}

.shadow-sm,
.shadow-md,
.shadow-lg {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hover\:bg-gray-100:hover {
  background-color: #202020;
}

.hover\:text-primary:hover {
  color: #ffffff;
}

.hover\:border-primary:hover {
  border-color: #ffffff;
}

section.bg-white,
section.bg-gray-50 {
  position: relative;
}

section.bg-white::before,
section.bg-gray-50::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.74) 0, rgba(18, 18, 18, 0.88) 100%);
  pointer-events: none;
}

section.bg-white > *,
section.bg-gray-50 > * {
  position: relative;
  z-index: 1;
}

footer.bg-gray-900 {
  background: linear-gradient(180deg, #111111 0, #000000 100%);
}

footer.bg-gray-900,
footer.bg-gray-900 p,
footer.bg-gray-900 li,
footer.bg-gray-900 a:not(.text-primary),
footer.bg-gray-900 h3:not(.text-primary),
footer.bg-gray-900 span {
  color: #ffffff;
}

footer.bg-gray-900 .text-gray-400 {
  color: #ffffff;
}

footer.bg-gray-900 .text-gray-500 {
  color: #ffffff;
}

main > .relative.bg-gray-900 .bg-white,
main > .relative.bg-gray-900 .bg-white * {
  color: #ffffff;
}

main > .relative.bg-gray-900 a.bg-transparent.text-white,
main > .relative.bg-gray-900 a.bg-transparent.text-white * {
  color: #ffffff;
}

header.bg-white,
header.bg-white a,
header.bg-white button,
header.bg-white span,
header.bg-white .text-gray-700,
header.bg-white .text-gray-900,
header.bg-white .text-black {
  color: #ffffff;
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6,
.bg-white p,
.bg-white li,
.bg-white a,
.bg-gray-50 h1,
.bg-gray-50 h2,
.bg-gray-50 h3,
.bg-gray-50 h4,
.bg-gray-50 h5,
.bg-gray-50 h6,
.bg-gray-50 p,
.bg-gray-50 li,
.bg-gray-50 a {
  color: #ffffff;
}

.grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-4.lg\:grid-cols-6.gap-10 > .bg-gray-50 {
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.client-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.client-modal.is-open {
  display: flex;
}

.client-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.78);
  backdrop-filter: blur(8px);
}

.client-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  border: 1px solid rgba(120, 170, 255, 0.24);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.98) 0%, rgba(5, 7, 12, 0.98) 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.client-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(120, 170, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #8fc0ff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.client-modal__body {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
}

.client-modal__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #ffffff;
}

.client-modal__image {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.auth-nav-button,
.auth-mobile-trigger,
.auth-user-dropdown__logout,
.auth-mobile-user__logout,
.auth-form__submit {
  border: 0;
  cursor: pointer;
}

.auth-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.56rem 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.auth-nav-button:hover,
.auth-mobile-trigger:hover,
.auth-form__submit:hover {
  transform: translateY(-1px);
}

.auth-nav-button--primary,
.auth-mobile-trigger,
.auth-form__submit {
  background: linear-gradient(135deg, #2a63f6 0%, #4d91ff 100%);
  color: #ffffff !important;
  box-shadow: 0 12px 22px rgba(42, 99, 246, 0.24);
}

.auth-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.auth-avatar-button,
.auth-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border: 1px solid rgba(120, 170, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 auto;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
  vertical-align: middle;
}

.auth-avatar-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
}

.auth-avatar-image,
.auth-user-dropdown__avatar,
.auth-mobile-user__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
}

.auth-user-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(268px, 88vw);
  border: 1px solid rgba(120, 170, 255, 0.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(12, 15, 24, 0.98) 0%, rgba(5, 7, 12, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 70;
}

.auth-user-dropdown__info {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.82rem 0.82rem 0.78rem;
}

.auth-user-dropdown__avatar {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 2.55rem;
}

.auth-user-dropdown__name,
.auth-mobile-user__name {
  margin: 0;
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-user-dropdown__meta,
.auth-mobile-user__email {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.76rem;
  line-height: 1.45;
  word-break: break-all;
}

.auth-user-dropdown__logout,
.auth-mobile-user__logout {
  width: 100%;
  padding: 0.8rem 0.82rem 0.86rem;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8fc0ff !important;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: left;
}

.auth-mobile-box {
  margin: 0.85rem 0.95rem 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-mobile-trigger {
  width: 100%;
  min-height: 2.9rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
}

.auth-mobile-user {
  margin-top: 0.75rem;
  border: 1px solid rgba(120, 170, 255, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.auth-mobile-user__profile {
  display: block;
  text-decoration: none;
}

.auth-mobile-user__info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem;
}

.auth-mobile-user__avatar {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 1.5rem;
}

.auth-modal.hidden {
  display: none !important;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.76);
  backdrop-filter: blur(10px);
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: calc(100vh - 3rem);
  margin: auto;
  overflow: auto;
  border: 1px solid rgba(120, 170, 255, 0.2);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.98) 0%, rgba(4, 8, 15, 0.98) 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.auth-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(120, 170, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #8fc0ff !important;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__content {
  padding: 1.5rem;
}

.auth-modal__intro {
  padding-right: 3.4rem;
}

.auth-modal__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(77, 145, 255, 0.12);
  color: #9cc5ff !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.auth-modal__title {
  margin: 1rem 0 0;
  color: #ffffff !important;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.auth-modal__description {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.96rem;
  line-height: 1.8;
}

.auth-modal__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.auth-modal__tab {
  min-height: 3rem;
  border: 1px solid rgba(120, 170, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.auth-modal__tab.is-active {
  border-color: rgba(77, 145, 255, 0.3);
  background: linear-gradient(135deg, rgba(42, 99, 246, 0.18) 0%, rgba(77, 145, 255, 0.18) 100%);
  color: #ffffff !important;
}

.auth-modal__message {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.65;
}

.auth-modal__message.is-success {
  background: rgba(34, 197, 94, 0.12);
  color: #9ff0b8 !important;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.auth-modal__message.is-error {
  background: rgba(248, 113, 113, 0.12);
  color: #ffb4b4 !important;
  border: 1px solid rgba(248, 113, 113, 0.22);
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.auth-form__field {
  display: grid;
  gap: 0.45rem;
}

.auth-form__label {
  color: #dbeafe !important;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-form__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(120, 170, 255, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  outline: none;
}

.auth-form__input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.auth-form__input:focus {
  border-color: rgba(77, 145, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(77, 145, 255, 0.12);
}

.auth-form__submit {
  min-height: 3.15rem;
  border-radius: 1rem;
  font-size: 0.98rem;
  font-weight: 800;
}

.whatsapp-float-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366 0%, #1fb657 100%);
  box-shadow: 0 18px 38px rgba(20, 118, 57, 0.34);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.whatsapp-float-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 44px rgba(20, 118, 57, 0.42);
  filter: brightness(1.02);
}

.whatsapp-float-button__icon {
  display: block;
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
}

@media (max-width: 1279px) {
  .top-nav-row {
    gap: 0.55rem;
  }

  .top-nav-logo {
    height: 2.45rem;
  }

  .top-nav-desktop {
    gap: 0.72rem;
    margin-left: 0.7rem;
  }

  .top-nav-link {
    font-size: 0.74rem;
  }

  .top-nav-auth {
    margin-left: 0.55rem;
  }
}

@media (max-width: 767px) {
  .whatsapp-float-button {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 3.95rem;
    height: 3.95rem;
  }

  .whatsapp-float-button__icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .auth-modal {
    padding: 1rem;
  }

  .auth-modal__content {
    padding: 1.15rem;
  }

  .auth-modal__title {
    font-size: 1.5rem;
  }
}

.client-modal__eyebrow {
  margin: 0 0 0.5rem;
  color: #8fc0ff;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-modal__title {
  margin: 0;
  color: #4f8fda;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.client-modal__desc {
  margin: 1rem 0 0;
  color: #d7e7ff;
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-line;
}

.client-modal__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.service-modal__highlights {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: #f4f8ff;
  line-height: 1.8;
}

.service-modal__highlights li + li {
  margin-top: 0.35rem;
}

.client-modal__link,
.client-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.client-modal__link {
  background: linear-gradient(135deg, #2f6fca 0%, #67a3ef 100%);
  color: #ffffff;
}

.client-modal__button {
  border: 1px solid rgba(120, 170, 255, 0.35);
  background: transparent;
  color: #8fc0ff;
}

body.client-modal-open {
  overflow: hidden;
}

.about-hero {
  min-height: clamp(360px, 48vw, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-hero__media {
  background: transparent;
}

.about-hero__image {
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  padding: 0 !important;
}

.services-hero {
  min-height: clamp(360px, 48vw, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.services-hero__media {
  background: transparent;
}

.services-hero__image {
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  padding: 0 !important;
}

.contact-page-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-methods-grid {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-method-item {
  display: flex;
  align-items: center !important;
  flex: 1 1 220px;
  margin-top: 0 !important;
}

.contact-method-item > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-method-item h3,
.contact-method-item p {
  margin: 0 !important;
}

.contact-methods-grid > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0 !important;
}

.contact-map-panel {
  width: 100%;
}

.contact-address-block {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .client-modal__body {
    grid-template-columns: minmax(240px, 280px) 1fr;
    align-items: start;
    padding: 2rem;
  }
}
