/* MX Bienestar - Design Archetype: Swiss Precision Tech-Bio */
:root {
  --primary: #0f172a;       /* Deep slate black */
  --primary-light: #1e293b;
  --accent: #2563eb;        /* Tech Precision Blue */
  --accent-light: #38bdf8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --success: #059669;       /* Natural vitality green */
  --success-light: #10b981;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #2563eb;
  --font-mono: "SF Mono", "Roboto Mono", Consolas, Menlo, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Top bar */
.top-bar {
  background: var(--primary);
  color: #cbd5e1;
  font-size: 13px;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-right: 8px;
  letter-spacing: 0.5px;
}
.top-bar-links a {
  color: #94a3b8;
  margin-left: 16px;
}
.top-bar-links a:hover {
  color: #ffffff;
}

/* Header & Navigation */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.brand-logo img {
  width: 34px;
  height: 34px;
}
.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #475569;
  padding: 6px 4px;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.lang-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: 70px 0;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: inline-block;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 36px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.btn-dark {
  background: var(--primary);
  color: #ffffff;
}
.btn-dark:hover {
  background: #1e293b;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 18px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-item h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
}
.stat-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-image-card {
  position: relative;
  background: var(--bg-card);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.hero-image-card img {
  border-radius: var(--radius-sm);
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.hero-badge-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-light);
}
.hero-badge-overlay strong {
  display: block;
  font-size: 15px;
}
.hero-badge-overlay span {
  font-size: 12px;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

/* Feature Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.card-icon {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 600;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}
.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interactive Widget on Homepage */
.interactive-banner {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
}
.interactive-banner h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.interactive-banner p {
  color: #94a3b8;
  max-width: 600px;
  margin-bottom: 24px;
}
.quick-calc-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
}
.slider-container {
  margin: 20px 0;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  -webkit-appearance: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  cursor: pointer;
  border: 2px solid #ffffff;
}
.calc-result-display {
  margin-top: 16px;
  padding: 16px;
  background: rgba(37, 99, 235, 0.15);
  border-left: 3px solid var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

/* Assessment Page (assessment.php) */
.assessment-container {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
}
.quiz-question {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}
.quiz-option:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.quiz-option.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 20%;
  transition: width 0.3s ease;
}

/* Services Catalog Page (services.php) */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.service-card.highlight {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}
.service-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}
.service-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
  margin: 16px 0;
}
.service-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}
.service-features {
  list-style: none;
  margin: 20px 0 28px;
  font-size: 14px;
  color: #475569;
}
.service-features li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* Product Offer Card inside Services */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--success-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
}
.product-showcase-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
}
.product-showcase-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Blog Cards */
.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #e2e8f0;
}
.blog-card-body {
  padding: 22px;
}
.blog-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
  margin-bottom: 10px;
}
.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Certificates Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.cert-card img {
  border-radius: var(--radius-sm);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.cert-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}
.cert-card p {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* Legal Pages Typography */
.legal-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 44px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.legal-wrapper h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.legal-wrapper h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
}
.legal-wrapper h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  margin: 18px 0 8px;
}
.legal-wrapper p, .legal-wrapper li {
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-wrapper ul, .legal-wrapper ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.legal-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-mono);
}

/* Footer (Required on every page) */
footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid #1e293b;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 30px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #94a3b8;
}
.footer-disclaimer-box strong {
  color: #cbd5e1;
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  background: #ffffff;
  transition: var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }
  .grid-3, .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-showcase {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open {
    display: flex;
  }
  .grid-3, .grid-2, .grid-4, .cert-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 32px;
  }
}
