/* diabetes.com.py — Design system */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --color-primary: #1B7FCC;
  --color-primary-dark: #0052A5;
  --color-primary-light: #4DA3FF;
  --color-teal: #0d6e6e;
  --color-teal-dark: #095555;
  --color-accent: #E07B39;
  --color-accent-light: #F4A261;
  --color-bg: #F4F7FB;
  --color-bg-alt: #E8EEF6;
  --color-surface: #ffffff;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-border: #CBD5E1;
  --color-success: #059669;
  --color-warning: #D97706;
  --color-danger: #DC2626;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 82, 165, 0.15);
  --radius: 14px;
  --radius-lg: 22px;
  --header-height: 76px;
  --transition: 0.22s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 0% 0%, rgba(27, 127, 204, 0.07), transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(224, 123, 57, 0.05), transparent 45%);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-light); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ---- Header ---- */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.site-top.scrolled .header {
  box-shadow: var(--shadow-md);
}

.header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.logo:hover { opacity: 0.92; color: inherit; }

.logo-mark-svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 82, 165, 0.25));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.03em;
}
.logo-domain {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo-footer .logo-name { color: #fff; }
.logo-footer .logo-domain { color: #8ED4FF; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.nav-backdrop {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active,
.nav-links a.active {
  color: var(--color-primary-dark);
  background: rgba(27, 127, 204, 0.1);
}

.nav-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(27, 127, 204, 0.1);
  color: var(--color-primary-dark);
}

/* Desktop: abrir solo al pasar el mouse */
@media (min-width: 1280px) {
  .nav-link {
    font-size: 0.8125rem;
    padding: 0.45rem 0.65rem;
  }
  .btn-nav {
    font-size: 0.8125rem;
    padding: 0.5rem 0.95rem;
  }
  .nav-cta { margin-left: 0.65rem; gap: 0.5rem; }
}

@media (min-width: 1025px) {
  .site-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0 1.5rem;
    height: var(--header-height);
  }

  .site-top.scrolled {
    box-shadow: var(--shadow-md);
  }

  .header {
    flex-shrink: 0;
    border-bottom: none;
  }

  .header-inner {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .nav-main {
    display: flex !important;
    position: static;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-backdrop {
    display: none !important;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.nav-cta {
  display: flex;
  gap: 0.4rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.btn-nav {
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 100px;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-nav-guides {
  background: rgba(27, 127, 204, 0.12);
  color: var(--color-primary-dark);
  border-color: rgba(27, 127, 204, 0.25);
}
.btn-nav-guides:hover { background: var(--color-primary); color: white; }
.btn-nav-donate {
  background: linear-gradient(135deg, var(--color-accent), #c45c26);
  color: white;
  box-shadow: 0 4px 14px rgba(224, 123, 57, 0.35);
}
.btn-nav-donate:hover { transform: translateY(-1px); color: white; filter: brightness(1.05); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.menu-open,
html.menu-open {
  overflow: hidden;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 3rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0052A5 0%, #0d6e6e 45%, #1a4d6e 100%);
  z-index: -2;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(224, 123, 57, 0.25), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(77, 163, 255, 0.3), transparent 35%);
  z-index: -1;
}

.page-hero {
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  background: linear-gradient(135deg, #0052A5 0%, #0d6e6e 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.page-hero .lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  line-height: 1.75;
}
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.breadcrumb a { color: #8ED4FF; }
.breadcrumb a:hover { color: white; }

.page-content { padding: 3rem 0 4rem; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.topic-card {
  display: block;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: inherit;
  transition: all var(--transition);
}
.topic-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: inherit;
}
.topic-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.topic-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}
.topic-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.topic-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.related-pages {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.related-pages h3 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.related-card {
  display: block;
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  color: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.related-card:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-content { max-width: 720px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.12;
  color: white;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  line-height: 1.2;
}
.stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: rgba(27, 127, 204, 0.1);
  color: var(--color-primary-dark);
}
.hero .btn-primary {
  background: white;
  color: var(--color-primary-dark);
}
.hero .btn-primary:hover {
  background: #f0f7ff;
  color: var(--color-primary-dark);
}
.hero .btn-secondary {
  color: white;
  border-color: rgba(255,255,255,0.6);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

/* ---- Sections ---- */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}
.section-intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ---- Grid layouts ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(27, 127, 204, 0.25);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.card h3, .card h4 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}
.card p { color: var(--color-text-muted); font-size: 0.95rem; }
.card-compact { padding: 1.25rem; }
.card-compact h4 { font-size: 1rem; }

/* ---- Type cards ---- */
.types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.type-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
}
.type-card.type-1 { border-top-color: #3498db; }
.type-card.type-2 { border-top-color: var(--color-primary); }
.type-card.type-gestacional { border-top-color: #9b59b6; }
.type-card.type-other { border-top-color: var(--color-accent); }

.type-header { margin-bottom: 1rem; }
.type-number {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: rgba(13, 110, 110, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.type-card h3 {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}
.type-desc {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.type-details li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}
.type-details li:last-child { border-bottom: none; }
.type-alert {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(192, 57, 43, 0.08);
  border-left: 3px solid var(--color-danger);
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: var(--color-text);
}
.type-alert-success {
  background: rgba(45, 138, 94, 0.08);
  border-left-color: var(--color-success);
}

/* ---- Symptoms ---- */
.symptoms-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.symptoms-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.symptom-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.symptom-item:hover { box-shadow: var(--shadow-sm); }
.symptom-icon { font-size: 1.75rem; flex-shrink: 0; }
.symptom-item h4 {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}
.symptom-item p { font-size: 0.85rem; color: var(--color-text-muted); }

.symptoms-aside { display: flex; flex-direction: column; gap: 1rem; }
.alert-box {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.alert-box h4 {
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}
.alert-box p, .alert-box li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.alert-box ul { margin: 0.75rem 0; padding-left: 1.25rem; list-style: disc; }
.alert-urgent {
  border-color: var(--color-danger);
  background: rgba(192, 57, 43, 0.04);
}
.alert-urgent h4 { color: var(--color-danger); }

/* ---- Table ---- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.data-table th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}
.data-table tbody tr:hover { background: rgba(13, 110, 110, 0.04); }
.data-table td small { color: var(--color-text-muted); font-size: 0.8rem; }

/* ---- Tabs ---- */
.treatment-tabs {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}
.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--color-primary); background: rgba(13, 110, 110, 0.04); }
.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: rgba(13, 110, 110, 0.06);
}
.tab-panels { padding: 2rem; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }
.tab-panel h3 {
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}
.tab-panel > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.styled-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--color-primary-light);
  border-radius: 50%;
}

.info-box {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(224, 123, 57, 0.08);
  border-radius: 8px;
  font-size: 0.9rem;
}

.med-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.med-item {
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
.med-item h4 {
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.med-item p { font-size: 0.85rem; color: var(--color-text-muted); }

.complications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.complication-card {
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
}
.complication-card h4 { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--color-primary-dark); }
.complication-card p { font-size: 0.85rem; color: var(--color-text-muted); }

.targets-box {
  padding: 1.5rem;
  background: rgba(13, 110, 110, 0.06);
  border-radius: var(--radius);
}
.targets-box h4 { margin-bottom: 1rem; color: var(--color-primary-dark); }
.targets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.targets-grid div {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---- Nutrition ---- */
.nutrition-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.plate-diagram h3 {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}
.plate {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}
.plate-section {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
}
.plate-section span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}
.plate-section p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}
.plate-veggies {
  width: 50%;
  height: 100%;
  left: 0;
  background: #2d8a5e;
}
.plate-protein {
  width: 50%;
  height: 50%;
  right: 0;
  top: 0;
  background: #e07b39;
}
.plate-carbs {
  width: 50%;
  height: 50%;
  right: 0;
  bottom: 0;
  background: #d4a843;
}
.plate-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.nutrition-tips { display: flex; flex-direction: column; gap: 1.25rem; }
.tip-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.tip-do { background: rgba(45, 138, 94, 0.06); border-color: rgba(45, 138, 94, 0.2); }
.tip-dont { background: rgba(192, 57, 43, 0.04); border-color: rgba(192, 57, 43, 0.15); }
.tip-card h4 { margin-bottom: 0.75rem; font-size: 1rem; }
.tip-card ul { padding-left: 1.25rem; list-style: disc; }
.tip-card li { font-size: 0.9rem; color: var(--color-text-muted); padding: 0.2rem 0; }

/* ---- Prevention ---- */
.prevention-steps {
  max-width: 760px;
  margin: 0 auto 3rem;
}
.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.step:last-child { border-bottom: none; }
.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
}
.step-content h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}
.step-content p { color: var(--color-text-muted); font-size: 0.95rem; }

.risk-factors { text-align: center; }
.risk-factors h3 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
}
.risk-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.risk-tag {
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.risk-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(13, 110, 110, 0.06);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: rgba(13, 110, 110, 0.04); }
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---- Resources ---- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.resource-card {
  display: block;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  color: inherit;
}
.resource-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}
.resource-card h4 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}
.resource-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.resource-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---- Footer ---- */
.footer {
  background: linear-gradient(180deg, #0a3d5c 0%, #062a40 100%);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3rem;
}
.footer-brand p { font-size: 0.875rem; opacity: 0.8; margin-top: 0.75rem; }
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand strong {
  display: block;
  font-size: 1.15rem;
  color: white;
  margin: 0.5rem 0;
}
.footer-brand p { font-size: 0.875rem; opacity: 0.8; }
.footer-links h4,
.footer-disclaimer h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  display: block;
  padding: 0.25rem 0;
}
.footer-links a:hover { color: white; }
.footer-disclaimer p { font-size: 0.8rem; opacity: 0.75; line-height: 1.6; }
.footer-support h4 { color: white; font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-support p { font-size: 0.8rem; opacity: 0.85; line-height: 1.5; margin-bottom: 0.5rem; }
.footer-support-link { font-size: 0.85rem; font-weight: 600; color: #8ED4FF !important; }
.footer-support-link:hover { color: white !important; }

/* ---- Pagos y donaciones ---- */
.bank-card {
  background: linear-gradient(135deg, #0a3d5c 0%, #0d6e6e 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}
.bank-card h3 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; }
.bank-details { display: grid; gap: 1rem; }
.bank-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.bank-row-label { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; }
.bank-row-value { font-size: 1.25rem; font-weight: 700; font-family: var(--font-display); }
.bank-row-value.account { font-size: 1.75rem; letter-spacing: 0.08em; }
.btn-copy {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.btn-copy:hover, .btn-copy.copied { background: white; color: var(--color-primary-dark); }

.donation-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.amount-chip {
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 100px;
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.product-card h3 { font-size: 1.1rem; color: var(--color-primary-dark); margin-bottom: 0.75rem; }
.product-card p { font-size: 0.9rem; color: var(--color-text-muted); flex: 1; margin-bottom: 1rem; }
.product-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.product-price small { font-size: 0.85rem; color: var(--color-text-muted); font-family: var(--font-sans); }
.product-features { margin-bottom: 1.25rem; }
.product-features li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
  list-style: none;
}
.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.payment-steps {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}
.payment-steps h3 { color: var(--color-primary-dark); margin-bottom: 1.25rem; }
.payment-steps ol {
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}
.payment-steps li { padding: 0.5rem 0; font-size: 0.95rem; }
.payment-steps[hidden] { display: none; }

.support-banner {
  background: linear-gradient(135deg, rgba(13,110,110,0.08), rgba(27,127,204,0.08));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}
.support-banner h2 { font-family: var(--font-display); color: var(--color-primary-dark); margin-bottom: 0.75rem; }
.support-banner p { color: var(--color-text-muted); max-width: 560px; margin: 0 auto 1.5rem; }
.support-banner-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

@media (max-width: 992px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; }
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 900;
}
.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}
.back-to-top[hidden] { display: none; }

/* ---- AdSense manual blocks ---- */
.ad-container {
  margin: 2rem auto;
  padding: 0.75rem 0;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  clear: both;
}
.ad-container--top {
  margin: 1.25rem auto 2rem;
  max-width: 728px;
}
.ad-container--inArticle {
  margin: 2.5rem auto;
  max-width: 336px;
}
.ad-container--bottom {
  margin: 2rem auto 0.5rem;
  max-width: 728px;
}
.ad-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  opacity: 0.65;
}
.ad-container ins.adsbygoogle {
  min-height: 90px;
}

/* ---- Home page ---- */
.section-header-left {
  text-align: left;
  margin-left: 0;
  max-width: none;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.home-intro-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.home-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.home-feature:hover {
  border-color: rgba(27, 127, 204, 0.35);
  box-shadow: var(--shadow-md);
}

.home-feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.home-feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.85rem;
}

.home-feature p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.home-feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.home-feature-links a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
}

.home-feature-links a:hover {
  color: var(--color-primary-dark);
}

.home-faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.home-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.home-quick-nav a {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition);
}

.home-quick-nav a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@media (max-width: 992px) {
  .home-intro-grid,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }
  .home-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .home-facts {
    grid-template-columns: 1fr;
  }
  .home-feature {
    padding: 1.5rem;
  }
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .grid-2, .grid-3, .types-grid, .med-grid,
  .complications-grid, .nutrition-layout, .resources-grid,
  .topic-grid, .related-grid {
    grid-template-columns: 1fr;
  }
  .symptoms-layout { grid-template-columns: 1fr; }
  .symptoms-list { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 1024px) {
  .site-top {
    max-width: none;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    position: relative;
    z-index: 1002;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    touch-action: manipulation;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-main {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    z-index: 1001;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.5rem 0 max(1rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
  }

  .nav-main.open {
    display: flex !important;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
  }

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    white-space: normal;
    border-radius: 0;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0.5rem;
    display: none;
    background: var(--color-bg);
    margin: 0;
    border-radius: 0;
    pointer-events: auto;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 0.85rem 1.25rem 0.85rem 2rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(203, 213, 225, 0.5);
  }

  .nav-cta {
    flex-direction: column;
    margin: 1rem 1.25rem 0;
    width: calc(100% - 2.5rem);
    gap: 0.65rem;
    padding-top: 0.5rem;
  }

  .btn-nav {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    padding: 0.85rem 1rem;
  }

  .logo-name { font-size: 1.22rem; }
  .logo-domain { font-size: 0.78rem; }
  .logo-mark-svg { width: 42px; height: 42px; }
  .logo-text { display: flex; min-width: 0; }
  .logo { min-width: 0; flex: 1; overflow: hidden; }
}

@media (max-width: 768px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .logo-name { font-size: 1.15rem; }
  .logo-domain { font-size: 0.75rem; }
  .logo-mark-svg { width: 40px; height: 40px; }
}

/* ---- Charts ---- */
.charts-grid {
  display: grid;
  gap: 1.5rem;
}
.charts-grid-2 { grid-template-columns: repeat(2, 1fr); }
.charts-grid-3 { grid-template-columns: repeat(3, 1fr); }

.chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}
.chart-card:hover { box-shadow: var(--shadow-md); }
.chart-card-wide { grid-column: 1 / -1; }

.chart-card-header {
  margin-bottom: 1.25rem;
}
.chart-card-header h3 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
}
.chart-card-header p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.chart-container {
  position: relative;
  height: 280px;
}
.chart-container-lg { height: 320px; }
.chart-container-xl { height: 360px; }

.stats-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.stat-highlight {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-top: 3px solid var(--color-primary);
}
.stat-highlight strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.stat-highlight p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---- Prose ---- */
.prose-block {
  max-width: 820px;
  margin: 0 auto 2.5rem;
}
.prose-block p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ---- Paraguay ---- */
.paraguay-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(13,110,110,0.06), rgba(20,163,163,0.08));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.partner-logo {
  max-width: 160px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.paraguay-banner h3 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}
.paraguay-banner p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.org-card {
  display: block;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: inherit;
  transition: all var(--transition);
}
.org-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: inherit;
}
.org-card h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.org-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ---- Technology ---- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tech-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.tech-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.tech-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.tech-card h3 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}
.tech-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

@media (max-width: 992px) {
  .charts-grid-2, .charts-grid-3,
  .stats-highlights, .tech-grid, .org-grid {
    grid-template-columns: 1fr;
  }
  .chart-card-wide { grid-column: auto; }
  .paraguay-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .chart-container { height: 240px; }
  .chart-container-lg, .chart-container-xl { height: 260px; }
  .stats-highlights { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-highlights { grid-template-columns: 1fr; }
}

/* ---- Estudios científicos ---- */
.studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.study-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-left: 4px solid var(--color-primary);
  transition: box-shadow var(--transition);
}
.study-card:hover { box-shadow: var(--shadow-md); }
.study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.study-badge {
  background: rgba(27, 127, 204, 0.12);
  color: var(--color-primary-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.study-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}
.study-card > p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.study-details {
  margin-bottom: 1rem;
}
.study-details li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
  list-style: none;
}
.study-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.study-link {
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}
.study-link:hover { color: var(--color-primary-dark); }

.verify-box {
  background: linear-gradient(135deg, rgba(0, 82, 165, 0.06), rgba(13, 110, 110, 0.08));
  border: 1px solid rgba(27, 127, 204, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.verify-box h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}
.verify-box p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.ref-table td a {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .studies-grid { grid-template-columns: 1fr; }
}
