:root {
  /* Medical Theme Colors */
  --brand: #013686;
  --brand-light: #0d56d6;
  --brand-dark: #072a63;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  
  /* Typography Tokens */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --h1: 2.5rem; /* 40px */
  --h2: 2rem; /* 32px */
  --h3: 1.5rem; /* 24px */
  --h4: 1.25rem; /* 20px */
  
  /* Spacing Tokens */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-24: 6rem; /* 96px */

  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem; /* 6px */
  --radius: 0.5rem; /* 8px */
  --radius-lg: 1rem; /* 16px */
  --radius-full: 9999px;

  /* Layout */
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  transition: color 0.2s;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Typography Classes */
.text-h1 { font-size: var(--h1); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.text-h2 { font-size: var(--h2); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.text-h3 { font-size: var(--h3); font-weight: 600; line-height: 1.4; }
.text-h4 { font-size: var(--h4); font-weight: 600; line-height: 1.4; }
.text-muted { color: var(--muted); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg);
  border-color: var(--brand);
}

/* Forms */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--ink);
  transition: all 0.2s;
  outline: none;
}
.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 54, 134, 0.1);
}

/* Topbar */
.topbar {
  background: var(--ink);
  color: var(--border);
  font-size: var(--text-xs);
}
.topbar-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.topbar-left, .topbar-right {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}
.topbar a:hover {
  color: #fff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.header-bar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.brand-logo {
  height: 48px;
  max-width: 200px;
  object-fit: contain;
}
.brand-text {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: 0.05em;
}
.nav {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
}
.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Hamburger */
.nav-toggle { display: none; }
.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: var(--radius-full);
}
.nav-drawer {
  display: none;
  background: var(--brand-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) 0;
}
.nav-drawer a {
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  border-radius: var(--radius);
}
.nav-drawer a:hover {
  background: rgba(255,255,255,0.1);
}
.nav-toggle:checked ~ .nav-drawer { display: block; }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  padding: var(--space-16) 0;
  text-align: center;
}
.home-hero {
  min-height: 600px;
}
.hero-copy {
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .home-hero {
    min-height: auto;
    padding: 88px 0 64px;
  }
}
.hero .title {
  margin-bottom: var(--space-4);
}
.hero .subtitle {
  font-size: var(--text-lg);
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto var(--space-8);
}
.hero-search {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: var(--space-2);
  background: rgba(255,255,255,0.1);
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.hero-search .input {
  border: none;
}

/* Sections */
.section {
  padding: var(--space-16) 0;
}
.section-header {
  margin-bottom: var(--space-8);
  text-align: center;
}
.section-header .text-h2 {
  margin-bottom: var(--space-2);
}

.company-trajetoria-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.company-trajetoria-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 22px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  min-height: 154px;
}

.company-trajetoria-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--brand));
  opacity: 0.9;
}

.company-trajetoria-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(600px 200px at 20% -10%, rgba(13, 86, 214, 0.10), transparent 60%);
  pointer-events: none;
}

.company-trajetoria-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 86, 214, 0.25);
}

.company-trajetoria-card__layout {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.company-trajetoria-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(1, 54, 134, 0.12);
  background: rgba(1, 54, 134, 0.06);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: start;
}

.company-trajetoria-card__icon svg {
  width: 18px;
  height: 18px;
}

.company-trajetoria-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.company-trajetoria-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-dark);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  margin: 2px 0 10px;
}

.company-trajetoria-card__text {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 34ch;
}

.company-trajetoria-subtitle {
  letter-spacing: -0.01em;
}

.company-trajetoria-copy {
  max-width: 62ch;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

/* Product Card */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-light);
}

.specialty-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2, 15, 45, 0.18);
}

.specialty-card:active {
  transform: translateY(-1px) scale(0.99);
}

.specialty-card .specialty-card__cta {
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.specialty-card .specialty-card__chevron {
  transition: transform 180ms ease;
}

.specialty-card:hover .specialty-card__cta {
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transform: translateX(2px);
}

.specialty-card:hover .specialty-card__chevron {
  transform: translateX(2px);
}

.specialty-card:active .specialty-card__cta {
  transform: translateX(1px) scale(0.98);
}

.footer-sguard:hover {
  opacity: 1 !important;
  filter: brightness(1.15);
}
.card-thumb {
  aspect-ratio: 4/3;
  background: var(--bg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.card:hover .card-thumb img {
  transform: scale(1.05);
}
.card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--ink);
  line-height: 1.3;
}
.card-category {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.card-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

/* Compare Button */
.compare-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.compare-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.compare-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-6);
}
.breadcrumb a {
  font-weight: 500;
}
.breadcrumb a:hover {
  color: var(--brand);
}
.breadcrumb-separator {
  color: var(--border);
}

/* Pagination */
.pagination {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-12);
}
.page {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s;
}
.page:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.page.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.page.disabled {
  opacity: 0.5;
  pointer-events: none;
  background: var(--bg);
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0;
  margin-top: auto;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-copy {
  color: var(--muted);
  font-size: var(--text-sm);
}
.footer-links {
  display: flex;
  gap: var(--space-4);
}
.footer-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--brand);
}

/* Drawers */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-title {
  font-size: var(--text-lg);
  font-weight: 700;
}
.drawer-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius);
}
.drawer-close:hover {
  background: var(--bg);
  color: var(--ink);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}
.drawer-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* Anatomy Cards */
.anatomy-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}
.anatomy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}
.anatomy-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f1f5f9;
  overflow: hidden;
}
.anatomy-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.anatomy-card:hover .anatomy-card-img img {
  transform: scale(1.05);
}
.anatomy-card-body {
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}

/* Drawer Compare Items */
.compare-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  align-items: center;
  background: var(--surface);
}
.compare-item-thumb {
  width: 60px;
  height: 60px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  padding: 4px;
}
.compare-item-info {
  flex: 1;
}
.compare-item-title {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}
.compare-item-cat {
  font-size: var(--text-xs);
  color: var(--muted);
}
.compare-item-remove {
  color: #ef4444;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.compare-item-remove:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-hamburger { display: flex; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .container { width: min(100% - 24px, 1200px); }
  .topbar-bar {
    height: auto;
    padding: 8px 0;
    align-items: flex-start;
  }
  .topbar-left, .topbar-right {
    width: 100%;
    gap: 10px;
  }
  .topbar-left {
    font-size: 12px;
  }
  .header-bar {
    height: 72px;
    gap: 12px;
  }
  .brand-logo {
    height: 38px;
    max-width: 170px;
  }
  .hero-copy {
    max-width: 100%;
    padding: 0 4px;
  }
  .hero .title {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.06;
    margin-bottom: 16px;
  }
  .hero .subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .hero-search {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    margin-top: 12px !important;
  }
  .hero-search .input,
  .hero-search .btn {
    width: 100%;
    min-height: 52px;
  }
  .section {
    padding: var(--space-12) 0;
  }

  .company-trajetoria-cards {
    grid-template-columns: 1fr;
  }

  .company-trajetoria-card {
    min-height: auto;
    padding: 20px 20px 20px 22px;
  }

  .company-trajetoria-card__layout {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .company-trajetoria-copy {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .container { width: min(100% - 20px, 1200px); }
  .hero .title {
    font-size: clamp(1.85rem, 10vw, 2.5rem);
  }
  .hero .subtitle {
    font-size: 1rem;
  }
}

/* Human Body Map Hotspots */
.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 10;
}
.hotspot-dot {
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.5);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  transition: all 0.3s;
  position: relative;
}
.hotspot-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hotspot:hover .hotspot-dot {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 20px white;
}
.hotspot-label {
  position: absolute;
  color: white;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  transition: all 0.3s;
}
.hotspot:hover .hotspot-label {
  color: var(--accent);
}
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}
