:root {
  --brand-navy: #081529;
  --brand-navy-mid: #0f2544;
  --brand-blue: #0ea5e9;
  --brand-blue-dark: #0284c7;
  --brand-amber: #f59e0b;
  --brand-amber-soft: #fef3c7;
  --surface-bg: #f8fafc;
  --surface-card: #ffffff;
  --border-subtle: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--surface-bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.topbar-strip {
  background: var(--brand-navy);
  color: rgba(248, 250, 252, 0.84);
  font-size: 0.8125rem;
}

.topbar-strip a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.topbar-strip a:hover {
  color: var(--brand-blue);
}

.navbar-glass {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: box-shadow 0.2s ease;
}

.navbar-glass.is-scrolled {
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.14);
}

.brand-logo {
  max-height: 44px;
  width: auto;
  height: auto;
}

.nav-link-modern {
  font-weight: 500;
  color: #334155 !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link-modern:hover,
.nav-link-modern.active {
  color: var(--brand-blue-dark) !important;
  background-color: rgba(14, 165, 233, 0.08);
}

.btn-brand-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 8px 20px -6px rgba(2, 132, 199, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(2, 132, 199, 0.6);
  filter: brightness(1.04);
}

.hero-section {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.16) 0%, transparent 40%),
    linear-gradient(155deg, #061020 0%, #0b1f3b 52%, #0f305a 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 95%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero-title {
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.hero-title-accent {
  background: linear-gradient(90deg, #38bdf8 0%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-dock {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.125rem;
  box-shadow: 0 24px 60px -15px rgba(2, 6, 23, 0.45);
  padding: 0.75rem;
}

.search-field-group {
  position: relative;
}

.search-field-group .form-control,
.search-field-group .form-select {
  min-height: 50px;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #f8fafc;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field-group .form-control:focus,
.search-field-group .form-select:focus {
  background-color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.search-input-icon {
  padding-left: 2.65rem !important;
  padding-right: 2.65rem !important;
}

.search-icon-left {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-kbd-hint {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 0.35rem;
  pointer-events: none;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.quick-chip:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.kpi-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  height: 100%;
}

.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.section-heading {
  letter-spacing: -0.02em;
}

.filter-pill-tabs {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.3rem;
  border-radius: 0.85rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.filter-pill-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.65rem;
  transition: all 0.16s ease;
}

.filter-pill-btn:hover {
  color: var(--text-main);
}

.filter-pill-btn.active {
  background: var(--brand-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.4);
}

.firma-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.firma-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.14);
}

.firma-media-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #f8fafc 0%, #eef2f6 100%);
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.firma-media-stage img {
  max-width: 88%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.firma-card:hover .firma-media-stage img {
  transform: scale(1.04);
}

.firma-monogram {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0b1f3b 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 20px -8px rgba(2, 132, 199, 0.5);
}

.badge-vitrin {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
}

.firma-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
  line-height: 1.25;
}

.firma-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
  background: rgba(14, 165, 233, 0.1);
  padding: 0.22rem 0.6rem;
  border-radius: 0.45rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firma-meta-row {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sector-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.95rem;
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.sector-card:hover,
.sector-card.is-selected {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  box-shadow: 0 12px 24px -10px rgba(2, 132, 199, 0.22);
}

.sector-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 0.85rem;
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.sector-card:hover .sector-icon-box,
.sector-card.is-selected .sector-icon-box {
  background: var(--brand-blue);
  color: #ffffff;
}

.sector-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city-pill-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.16s ease;
}

.city-pill-btn:hover,
.city-pill-btn.is-selected {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}

.city-pill-btn.is-selected .city-count-badge,
.city-pill-btn:hover .city-count-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.city-count-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.cta-banner {
  background:
    radial-gradient(circle at 90% 15%, rgba(56, 189, 248, 0.25) 0%, transparent 45%),
    linear-gradient(135deg, #081529 0%, #0f2c54 100%);
  border-radius: 1.5rem;
  color: #ffffff;
}

.feature-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 0.95rem;
  background: rgba(14, 165, 233, 0.12);
  color: var(--brand-blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.site-footer {
  background: #061020;
  color: #cbd5e1;
}

.site-footer h6 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-link-list a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0;
  font-size: 0.9rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-link-list a:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.45);
}

.dev-credit-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dev-credit-link:hover {
  color: #bae6fd;
  text-decoration: underline;
}

.back-to-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fade-in-grid {
  animation: gridFade 0.25s ease;
}

@keyframes gridFade {
  from {
    opacity: 0.4;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-hero {
  position: relative;
  background:
    radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.22) 0%, transparent 45%),
    linear-gradient(155deg, #061020 0%, #0b1f3b 58%, #0f305a 100%);
  color: #ffffff;
  overflow: hidden;
}

.profile-breadcrumb .breadcrumb-item a {
  color: #7dd3fc;
  text-decoration: none;
}

.profile-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

.profile-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.gallery-stage {
  background: linear-gradient(145deg, #f8fafc 0%, #eef2f6 100%);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-main-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev {
  left: 0.75rem;
}

.gallery-next {
  right: 0.75rem;
}

.gallery-thumb-btn {
  border: 2px solid transparent;
  background: #f8fafc;
  padding: 2px;
  border-radius: 0.65rem;
  flex: 0 0 auto;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gallery-thumb-btn.active,
.gallery-thumb-btn:hover {
  border-color: var(--brand-blue);
}

.gallery-thumb-btn img {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 0.45rem;
  display: block;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b1f3b 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.foto-drop-zone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.foto-drop-zone:hover,
.foto-drop-zone.is-dragover {
  border-color: var(--brand-blue);
  background: rgba(14, 165, 233, 0.06);
}

@media (max-width: 767.98px) {
  .brand-logo {
    max-height: 36px;
  }
  .search-dock {
    padding: 0.65rem;
  }
  .search-kbd-hint {
    display: none;
  }
}
