/* ==========================================================================
   ALL4NUTRI — SISTEMA DE DISEÑO PREMIUM PARA NUTRIÓLOGOS
   ========================================================================== */

/* Core Web Vitals Rendering & Layout Shift Optimizations */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Off-screen rendering containment to eliminate DOM rendering bottlenecks */
.dir-card, .food-card, .card {
  content-visibility: auto;
  contain-intrinsic-size: 0 250px;
}

:root {
  /* Brand Primary Palettes: Modern Clinical Emerald */
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-200: #a7f3d0;
  --primary-300: #6ee7b7;
  --primary-400: #34d399;
  --primary-500: #10b981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-800: #065f46;
  --primary-900: #064e3b;
  --primary-950: #022c22;

  /* Accent: Warm Gold / Amber */
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);

  /* Neutrals: Deep Slate & Crisp Whites */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Country Color Accents */
  --accent-peru: #0d9488;
  --accent-chile: #e11d48;
  --accent-bolivia: #d97706;
  --accent-smae: #2563eb;
  --accent-renal: #7c3aed;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 25px rgba(5, 150, 105, 0.25);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
  background: var(--slate-950);
  color: var(--slate-300);
  font-size: 0.825rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary-400);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-right: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.top-bar-links a {
  margin-left: 1.25rem;
  color: var(--slate-400);
  transition: var(--transition);
}

.top-bar-links a:hover {
  color: white;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--primary-600);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-600);
  transition: var(--transition);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-700);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--primary-600);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.25;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--slate-300);
}

.btn-outline:hover {
  background: var(--slate-100);
  color: var(--slate-900);
  border-color: var(--slate-400);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-700);
  border-color: var(--primary-500);
}

.btn-outline-primary:hover {
  background: var(--primary-50);
  color: var(--primary-800);
}

.btn-dark {
  background: var(--slate-900);
  color: white;
}

.btn-dark:hover {
  background: var(--slate-800);
  transform: translateY(-2px);
}

/* ==========================================================================
   ALERTS / FLASH MESSAGES
   ========================================================================== */
.flash-container {
  margin-top: 1.5rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--primary-50);
  color: var(--primary-900);
  border-color: var(--primary-200);
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--slate-950) 0%, #064e3b 50%, var(--slate-900) 100%);
  color: white;
  padding: 5.5rem 0 6.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-300);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-title span {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-300);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item h4 {
  font-size: 1.85rem;
  color: white;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.stat-item p {
  color: var(--slate-400);
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   INTERACTIVE REPLICA DEMO CARD (HERO FLIPPER)
   ========================================================================== */
.hero-card-preview {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary-300);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.flipper-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: var(--slate-900);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.food-display-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.demo-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.demo-tab-btn {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.demo-tab-btn.active {
  background: var(--primary-600);
  border-color: var(--primary-500);
}

/* ==========================================================================
   COUNTRY CARDS & COLLECTIONS GRID
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-bg-light {
  background: #f8fafc;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--primary-600);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.country-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.country-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--card-accent, var(--primary-600));
}

.country-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12);
  border-color: var(--card-accent, var(--primary-400));
}

.country-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.country-flag-icon {
  font-size: 2.75rem;
  line-height: 1;
}

.country-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary-50);
  color: var(--primary-800);
  border: 1px solid var(--primary-200);
}

.country-title {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
  color: var(--slate-900);
}

.country-desc {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--slate-700);
  margin-bottom: 0.65rem;
}

.feature-item svg {
  color: var(--primary-600);
  flex-shrink: 0;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  font-family: var(--font-heading);
}

.price-original {
  font-size: 1.1rem;
  color: var(--slate-400);
  text-decoration: line-through;
}

.price-usd {
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* ==========================================================================
   BATCH DOWNLOAD CENTER & REPLICA STUDIO (LOTES DE 10)
   ========================================================================== */
.studio-header {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-950) 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2.5rem;
}

.studio-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.batch-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.batch-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-400);
}

.batch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.batch-number {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--slate-900);
}

.batch-tag {
  background: var(--primary-50);
  color: var(--primary-800);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.batch-items-preview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  background: var(--slate-50);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  color: var(--slate-700);
}

.batch-items-preview ol {
  padding-left: 1.25rem;
}

/* Interactive Food Grid for Custom Batch Selection */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.food-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.food-card.selected {
  border-color: var(--primary-600);
  background: var(--primary-50);
  box-shadow: 0 0 0 2px var(--primary-600);
}

.food-card-thumb {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.food-card-name {
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.food-card-portion {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.food-card-checkbox {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.35rem;
  height: 1.35rem;
  cursor: pointer;
  accent-color: var(--primary-600);
}

/* Sticky Custom Batch Selection Dock */
.custom-batch-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--slate-900);
  color: white;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 999;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.dock-counter {
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dock-badge {
  background: var(--primary-500);
  color: white;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

/* ==========================================================================
   UPCOMING PRODUCTS / FUTURE ROADMAP
   ========================================================================== */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.upcoming-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
}

.upcoming-card:hover {
  transform: translateY(-4px);
  border-color: var(--slate-400);
  box-shadow: var(--shadow-md);
}

.upcoming-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--slate-950);
  color: var(--slate-400);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: white;
  color: var(--slate-900);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .nav-menu {
    display: none;
  }
  .countries-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BLOG & GUÍAS CLÍNICAS — SISTEMA DE DISEÑO
   ========================================================================== */
.blog-header-section {
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 100%);
  padding: 4rem 1rem 2.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.blog-main-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-main-title span {
  color: var(--primary-600);
}

.blog-main-subtitle {
  font-size: 1.15rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.blog-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 580px;
  margin: 0 auto;
}

.blog-search-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: white;
  transition: var(--transition);
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.category-tabs-container {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
  scrollbar-width: thin;
}

.category-tab-pill {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  background: white;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  white-space: nowrap;
  transition: var(--transition);
}

.category-tab-pill:hover {
  background: var(--slate-100);
  color: var(--slate-900);
  border-color: var(--slate-300);
}

.category-tab-pill.active {
  background: var(--primary-700);
  color: white;
  border-color: var(--primary-700);
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25);
}

/* Featured Post Card */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  background: white;
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.08);
  margin-bottom: 3.5rem;
  transition: var(--transition);
}

.featured-post-card:hover {
  box-shadow: 0 15px 35px -5px rgba(5, 150, 105, 0.15);
  border-color: var(--primary-400);
}

.featured-post-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--slate-900);
}

.featured-post-title a:hover {
  color: var(--primary-700);
}

.featured-post-excerpt {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.featured-post-graphic {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  border-left: 1px solid var(--primary-100);
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.blog-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1);
  border-color: var(--primary-300);
}

.blog-card-top {
  padding: 1.75rem 1.75rem 1rem;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.blog-category-badge {
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
}

.blog-read-time {
  font-size: 0.775rem;
  color: var(--slate-500);
  font-weight: 600;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--slate-900);
}

.blog-card-title a {
  transition: var(--transition);
}

.blog-card-title a:hover {
  color: var(--primary-600);
}

.blog-card-summary {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  padding: 0 1.75rem 1.5rem;
}

.keyword-pill {
  font-size: 0.725rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
  display: inline-block;
  margin-left: 0.35rem;
}

.blog-read-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-600);
  transition: var(--transition);
}

.blog-read-link:hover {
  color: var(--primary-800);
  text-decoration: underline;
}

.blog-cta-banner {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border: 1px solid #059669;
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}

/* ==========================================================================
   SINGLE ARTICLE PAGE STYLES
   ========================================================================== */
.article-page-wrap {
  padding: 2.5rem 0 5rem;
}

.breadcrumb-nav {
  margin-bottom: 2rem;
}

.breadcrumb-list {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
  font-size: 0.85rem;
  color: var(--slate-500);
  flex-wrap: wrap;
}

.breadcrumb-list a {
  color: var(--primary-700);
  font-weight: 600;
}

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

.breadcrumb-list .active {
  color: var(--slate-700);
  font-weight: 500;
  max-width: 450px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 2rem;
}

.article-title {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--slate-950);
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.2rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.author-info-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.author-name {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.775rem;
  color: var(--slate-500);
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  color: var(--slate-700);
  text-decoration: none;
}

.share-btn:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.share-wa:hover {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.share-tw:hover {
  background: #000;
  color: white;
  border-color: #000;
}

.share-li:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

/* Article Layout & Sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}

.article-body-col {
  min-width: 0;
}

.article-sidebar-col {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 0.5rem;
}

.sidebar-toc-list, .toc-list {
  list-style: none;
  padding-left: 0;
}

.sidebar-toc-list li {
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.sidebar-toc-list li a {
  color: var(--slate-600);
  transition: var(--transition);
}

.sidebar-toc-list li a:hover {
  color: var(--primary-700);
  font-weight: 600;
  padding-left: 4px;
}

.sidebar-categories-list {
  list-style: none;
}

.sidebar-categories-list li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.sidebar-categories-list li a {
  color: var(--slate-700);
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-categories-list li a:hover {
  background: var(--slate-100);
  color: var(--primary-700);
  font-weight: 600;
}

/* Table of Contents Inline */
.toc-inline-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--primary-600);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-header {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.toc-list li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.toc-list li a {
  color: var(--primary-700);
  font-weight: 500;
}

.toc-list li a:hover {
  text-decoration: underline;
}

/* Article Rich Text Typography */
.article-rich-text {
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--slate-800);
}

.article-rich-text .lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--slate-700);
  margin-bottom: 2rem;
}

.article-rich-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 2.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--slate-200);
  scroll-margin-top: 5rem;
}

.article-rich-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  scroll-margin-top: 5rem;
}

.article-rich-text p {
  margin-bottom: 1.4rem;
}

.article-rich-text ul, .article-rich-text ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-rich-text li {
  margin-bottom: 0.5rem;
}

.article-rich-text blockquote {
  border-left: 4px solid var(--primary-500);
  background: var(--primary-50);
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--primary-950);
}

/* Clinical Comparison Tables */
.clinical-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  font-size: 0.925rem;
}

.clinical-table th {
  background: var(--slate-800);
  color: white;
  text-align: left;
  padding: 0.85rem 1.15rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.clinical-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
  vertical-align: top;
}

.clinical-table tr:last-child td {
  border-bottom: none;
}

.clinical-table tr:nth-child(even) td {
  background: var(--slate-50);
}

/* Clinical Callout Boxes */
.blog-callout {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0;
  color: #064e3b;
  font-size: 0.975rem;
  line-height: 1.6;
}

.blog-callout-warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #78350f;
}

/* In-Article CTA Box */
.in-article-cta-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #a7f3d0;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.author-bio-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.related-articles-section {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 2px solid var(--slate-200);
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .article-sidebar-col {
    position: static;
  }
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .featured-post-graphic {
    border-left: none;
    border-top: 1px solid var(--primary-100);
  }
}

@media (max-width: 768px) {
  .blog-main-title {
    font-size: 2rem;
  }
  .article-title {
    font-size: 1.95rem;
  }
  .clinical-table {
    display: block;
    overflow-x: auto;
  }
  .blog-cta-banner {
    padding: 1.75rem;
  }
}

/* ==========================================================================
   FAQ ACCORDION & E-E-A-T TRUST SIGNALS (GOOGLE SERP OPTIMIZATION)
   ========================================================================== */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.faq-accordion-item {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.faq-accordion-item:hover {
  border-color: var(--primary-300);
}

.faq-accordion-item[open] {
  border-color: var(--primary-500);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}

.faq-accordion-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.faq-accordion-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--primary-600);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-accordion-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-accordion-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid var(--slate-100);
  padding-top: 0.85rem;
}

.faq-accordion-answer p:last-child {
  margin-bottom: 0;
}

/* E-E-A-T Medical Trust Bar */
.eeat-trust-bar {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.trust-badge-item {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.trust-badge-item span {
  font-size: 1.6rem;
  line-height: 1;
}

.trust-badge-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-900);
  line-height: 1.2;
}

.trust-badge-item p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--primary-700);
  font-weight: 500;
}

/* Scientific Citations & Bibliography */
.article-citations-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--slate-400);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.citations-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.55;
}

.citations-list li {
  margin-bottom: 0.5rem;
}

.article-faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}

/* ==========================================================================
   HOWTO PROCESS STEPS & CLINICAL TESTIMONIALS (SEO CTR & CONVERSION)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.step-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-400);
  box-shadow: 0 12px 25px -5px rgba(5, 150, 105, 0.12);
}

.step-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--primary-200);
  line-height: 1;
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--gold-400);
  box-shadow: 0 12px 28px -6px rgba(245, 158, 11, 0.15);
  transform: translateY(-3px);
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #f59e0b;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--slate-100);
  padding-top: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.15rem;
}

.testimonial-meta p {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin: 0;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.725rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-top: 0.25rem;
}



