/* ==========================================================================
   healthyplateguide.info - Corporate Medical & Fitness Editorial Stylesheet
   Strict, Professional, Standard Corporate & Google Ads Compliant Design
   Zero AI Tropes, Clean Typography, Sharp Borders, Clinical Palette
   ========================================================================== */

:root {
  /* Corporate Clinical Palette */
  --corp-blue: #1e3a8a;
  --corp-blue-dark: #172554;
  --corp-blue-light: #2563eb;
  --corp-teal: #0f766e;
  --corp-teal-dark: #115e59;
  
  --corp-accent: #b45309;
  --corp-accent-bg: #fef3c7;
  --corp-danger: #b91c1c;
  --corp-danger-bg: #fef2f2;
  --corp-success: #15803d;
  --corp-success-bg: #f0fdf4;
  
  /* Strict Neutrals */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  
  /* Typography & Structure */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --container-max: 1140px;
  
  /* Sharp Professional Radius & Shadows */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-border: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: var(--gray-800);
  line-height: 1.6;
  font-size: 0.95rem;
}

a {
  color: var(--corp-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--corp-blue-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 1.85rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.45rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.35rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  max-width: 820px;
}

/* Top Government / Clinical Utility Bar */
.top-util-bar {
  background-color: var(--corp-blue-dark);
  color: #e0e7ff;
  font-size: 0.775rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #1e3a8a;
}

.top-util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-util-left {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.top-util-right {
  display: flex;
  gap: 1rem;
}

.top-util-right a {
  color: #cbd5e1;
  text-decoration: none;
}

.top-util-right a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Main Header */
.main-header {
  background-color: #ffffff;
  border-bottom: 2px solid var(--corp-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none !important;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  background-color: var(--corp-blue);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  border: 1px solid #1e40af;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--corp-blue-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.775rem;
  color: var(--gray-600);
  font-weight: 400;
  margin-top: 0.15rem;
}

.header-action-btn {
  display: inline-block;
  background-color: #b45309;
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid #92400e;
  text-decoration: none !important;
  transition: background-color 0.15s;
}

.header-action-btn:hover {
  background-color: #92400e;
}

/* Navigation Bar */
.nav-bar {
  background-color: #f8fafc;
  border-top: 1px solid var(--gray-200);
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  border-right: 1px solid var(--gray-200);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.nav-item:first-child .nav-link {
  border-left: 1px solid var(--gray-200);
}

.nav-link:hover {
  background-color: #ffffff;
  color: var(--corp-blue);
  text-decoration: none;
}

.nav-link.active {
  background-color: #ffffff;
  color: var(--corp-blue);
  border-bottom: 2px solid var(--corp-blue);
  margin-bottom: -1px;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-300);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
}

.mobile-menu-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--gray-200);
  padding: 1rem;
}

.mobile-menu-drawer.is-open {
  display: block;
}

.mobile-menu-drawer a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

/* Breadcrumb Bar */
.breadcrumb-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.45rem 0;
  font-size: 0.775rem;
  color: var(--gray-500);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--gray-600);
}

.breadcrumb-separator {
  color: var(--gray-400);
}

/* Standard Page Layout */
.page-wrapper {
  padding: 1.75rem 0 3rem 0;
}

.layout-main-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.content-panel {
  background: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
}

.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  background: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-subtle);
}

.sidebar-box-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--corp-blue-dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--corp-blue);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Standard Buttons */
.btn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  line-height: 1.35;
}

.btn-primary {
  background-color: var(--corp-blue);
  color: #ffffff !important;
  border-color: #1e40af;
}

.btn-primary:hover {
  background-color: var(--corp-blue-dark);
}

.btn-accent {
  background-color: #b45309;
  color: #ffffff !important;
  border-color: #92400e;
}

.btn-accent:hover {
  background-color: #92400e;
}

.btn-secondary {
  background-color: var(--gray-100);
  color: var(--gray-800) !important;
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background-color: var(--gray-200);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Callouts & Notices */
.notice-box {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-left: 4px solid var(--corp-blue);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.notice-warning {
  background-color: #fffbeb;
  border-color: #fde68a;
  border-left-color: #b45309;
  color: #92400e;
}

.notice-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #15803d;
  color: #166534;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.data-table th, .data-table td {
  border: 1px solid var(--gray-300);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.data-table th {
  background-color: var(--gray-100);
  font-weight: 700;
  color: var(--gray-900);
}

.data-table tr:nth-child(even) {
  background-color: var(--gray-50);
}

/* Article Index List */
.article-row-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}

.article-row-item:first-child {
  padding-top: 0;
}

.article-row-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-row-tag {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--corp-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  display: block;
}

.article-row-title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.article-row-excerpt {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.article-row-meta {
  font-size: 0.775rem;
  color: var(--gray-500);
  display: flex;
  gap: 1rem;
}

/* Product & Lead Form Card (Only on artikulo-pro.html) */
.product-order-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.product-spec-panel {
  background: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.product-img-container {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.product-img-container img {
  max-height: 320px;
  margin: 0 auto;
}

.lead-form-panel {
  background: #ffffff;
  border: 2px solid var(--corp-blue);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
}

.lead-form-header {
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.pricing-box {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-300);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-strike {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.price-actual {
  font-size: 1.35rem;
  font-weight: 800;
  color: #b45309;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--corp-blue);
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

.form-note {
  font-size: 0.775rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Footer (Strict Corporate & Medical Disclaimer) */
.corp-footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
  border-top: 3px solid var(--corp-blue);
  padding: 2.5rem 0 1.5rem 0;
  font-size: 0.85rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-800);
}

.footer-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.45rem;
}

.footer-nav a {
  color: var(--gray-400);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-disclaimer-card {
  background-color: var(--gray-800);
  border: 1px solid #374151;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.775rem;
  line-height: 1.6;
  color: var(--gray-400);
}

.footer-disclaimer-card strong {
  color: #f3f4f6;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.775rem;
  color: var(--gray-500);
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom-links a {
  color: var(--gray-400);
}

/* Cookie Banner (Simple, Non-Intrusive) */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--gray-900);
  color: #f3f4f6;
  border-top: 2px solid var(--corp-blue);
  padding: 1rem 0;
  font-size: 0.825rem;
  z-index: 9999;
  display: none;
}

.cookie-bar.is-visible {
  display: block;
}

.cookie-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .layout-main-sidebar {
    grid-template-columns: 1fr;
  }
  .product-order-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-block;
  }
  .header-top {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .content-panel {
    padding: 1.25rem;
  }
}
