:root {
  --bg:            #eef0f5;
  --bg-deep:       #dfe3ec;
  --surface:       #ffffff;
  --surface-2:     #f6f7fb;
  --border:        #d8dce6;
  --border-strong: #b9c0d1;
  --ink:           #1e2233;
  --ink-dim:       #5b6377;
  --ink-faint:     #8890a3;
  --accent:        #5b3fa3;
  --accent-dim:    #3e2a76;
  --accent-hover:  #4c358c;
  --accent-glow:   rgba(91,63,163,0.10);
  --gold:          #4c5b73;
  --gold-bg:       #e2e6ee;
  --whatsapp:      #1f9d5a;
  --r:             10px;
  --r-lg:          18px;
  --sh-sm: 0 1px 2px rgba(30,34,51,0.06), 0 2px 8px rgba(30,34,51,0.05);
  --sh:    0 4px 18px rgba(30,34,51,0.09), 0 1px 3px rgba(30,34,51,0.06);
  --sh-lg: 0 10px 34px rgba(30,34,51,0.13), 0 2px 8px rgba(30,34,51,0.06);
  --display: "Fraunces", serif;
  --body: "Instrument Sans", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--accent-hover), var(--accent-dim) 75%);
  position: relative;
  flex: none;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.16);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.brand-word {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: var(--ink-dim); font-size: 14.5px; }
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink-dim);
  transition: transform .15s ease, opacity .15s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav .nav-wa {
  color: var(--whatsapp);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  padding: 68px 0 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 65%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero p {
  color: var(--ink-dim);
  font-size: 17.5px;
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
.hero-stat b {
  display: block;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  color: var(--accent-dim);
}
.hero-stat span {
  font-size: 12.5px;
  color: var(--ink-faint);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 13px 24px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--sh-sm);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.btn-wa {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
}
.btn-wa:hover { background: #187e48; border-color: #187e48; }

/* Specimen card stack visual */
.specimen-stack {
  position: relative;
  height: 300px;
}
.specimen-card {
  position: absolute;
  width: 252px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--sh);
}
.specimen-card .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gold);
  background: var(--gold-bg);
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
}
.specimen-card h4 {
  margin: 11px 0 4px;
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  font-weight: 600;
}
.specimen-card .row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  border-top: 1px dashed var(--border-strong);
  margin-top: 10px;
  padding-top: 8px;
}
.specimen-card.s1 { top: 0; left: 40px; transform: rotate(-3deg); z-index: 1; }
.specimen-card.s2 { top: 55px; left: 0; transform: rotate(2deg); z-index: 2; }
.specimen-card.s3 { top: 118px; left: 60px; transform: rotate(-1.5deg); z-index: 3; }

/* ---------- Catalog section ---------- */
.catalog {
  padding: 52px 0 84px;
}
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.catalog-head h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}
.search-box input {
  font-family: var(--body);
  font-size: 14.5px;
  padding: 11px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  width: 260px;
  color: var(--ink);
}
.search-box input:focus { border-color: var(--accent); outline: none; }

.catalog-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}
.cat-rail {
  position: sticky;
  top: 90px;
}
.cat-rail button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--r);
  padding: 9px 14px;
  margin-bottom: 2px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-dim);
  cursor: pointer;
}
.cat-rail button .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-left: 6px;
}
.cat-rail button:hover { background: var(--surface-2); color: var(--ink); }
.cat-rail button.active {
  color: var(--accent-dim);
  background: var(--accent-glow);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh);
  transform: translateY(-2px);
  text-decoration: none;
}
.card-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.card-media img { max-height: 100%; object-fit: contain; }
.card-body { padding: 15px 17px 17px; color: var(--ink); }
.card-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gold);
}
.card h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  margin: 6px 0 2px;
  line-height: 1.25;
}
.card .sub { font-size: 13px; color: var(--ink-dim); margin-bottom: 12px; }
.card .price {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  border-top: 1px dashed var(--border-strong);
  padding-top: 11px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}
.card .price b { color: var(--accent-dim); font-weight: 600; }
.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 15px;
  display: none;
}

/* ---------- Product page ---------- */
.crumbs {
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
  font-family: var(--mono);
}
.crumbs a { color: var(--ink-dim); }
.product-main {
  padding: 26px 0 72px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
}
.product-media {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  align-self: start;
  position: sticky;
  top: 90px;
  box-shadow: var(--sh-sm);
}
.product-info .card-cat { font-size: 11px; }
.product-info h1 {
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  font-weight: 600;
  margin: 9px 0 4px;
}
.product-info .sub { color: var(--ink-dim); font-size: 15px; margin-bottom: 22px; }

.variant-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 24px;
  font-family: var(--mono);
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.variant-table th {
  text-align: left;
  color: var(--ink-faint);
  font-weight: 500;
  font-size: 11.5px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.variant-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.variant-table tr:last-child td { border-bottom: none; }
.variant-table td:last-child, .variant-table th:last-child { text-align: right; }

.protocol h4 {
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 600;
  margin: 26px 0 8px;
  color: var(--ink);
}
.protocol h4:first-child { margin-top: 0; }
.protocol p { color: var(--ink-dim); margin: 0 0 10px; }
.protocol ul { margin: 0 0 10px; padding-left: 20px; color: var(--ink-dim); }
.protocol li { margin-bottom: 6px; }
.protocol li::marker { color: var(--gold); }
.protocol hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

.inquire {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.inquire p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-dim);
}

.related { padding: 0 0 74px; }
.related h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 18px;
}
.related .grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Legal page ---------- */
.legal { padding: 50px 0 84px; max-width: 68ch; margin: 0 auto; }
.legal h1 {
  font-family: var(--display);
  font-style: italic;
  font-size: 30px;
  margin: 6px 0 6px;
}
.legal .updated { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); margin-bottom: 28px; }
.legal h2 { font-family: var(--display); font-size: 17.5px; margin: 26px 0 8px; }
.legal p { color: var(--ink-dim); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: var(--bg-deep);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-note {
  max-width: 60ch;
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.65;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 13px; color: var(--ink-dim); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-lg);
  z-index: 50;
}
.wa-float:hover { background: #187e48; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Disclaimer modal ---------- */
.disclaimer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(33, 27, 18, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.disclaimer-modal.is-open { display: flex; }
.disclaimer-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  max-width: 460px;
  width: 100%;
  padding: 30px 30px 26px;
  box-shadow: var(--sh-lg);
}
.disclaimer-card .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gold);
  background: var(--gold-bg);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 14px;
}
.disclaimer-card h2 {
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
}
.disclaimer-card p {
  font-size: 14.5px;
  color: var(--ink-dim);
  margin: 0 0 12px;
}
.disclaimer-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.disclaimer-actions .btn { width: 100%; justify-content: center; }
.disclaimer-more { font-size: 13px; color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .specimen-stack { height: 220px; }
  .catalog-body { grid-template-columns: 1fr; }
  .cat-rail {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 6px;
  }
  .cat-rail button { width: auto; white-space: nowrap; margin-bottom: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .related .grid { grid-template-columns: repeat(2, 1fr); }
  .product-main { grid-template-columns: 1fr; }
  .product-media { position: static; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    overflow-y: auto;
    z-index: 55;
  }
  .site-nav.nav-open { display: flex; }
  .site-nav a, .site-nav .nav-menu-btn {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    text-align: left;
  }
  .nav-item { width: 100%; }
  .mega-menu { position: static; width: 100%; transform: none; box-shadow: none; margin: 4px 0 8px; }
  .lang-switcher { margin: 16px 0; align-self: flex-start; }
  .nav-wa { border-bottom: none !important; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .search-box input { width: 100%; }
  .catalog-head { flex-direction: column; align-items: stretch; }
  .hero { padding: 40px 0 36px; }
  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

/* ---------- Nav: mega menu + mobile toggle ---------- */
.nav-item { position: relative; }
.nav-menu-btn {
  background: none;
  border: none;
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--ink-dim);
  cursor: pointer;
  padding: 0;
}
.nav-menu-btn:hover { color: var(--accent); }
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 16px;
  z-index: 60;
}
.nav-item.open .mega-menu { display: block; }
.mega-menu input[type="search"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  font-family: var(--body);
  font-size: 14px;
  margin-bottom: 10px;
}
.mega-menu-list { max-height: 260px; overflow-y: auto; }
.mega-menu-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink);
}
.mega-menu-list a:hover { background: var(--surface-2); text-decoration: none; }
.mega-menu-list a span { color: var(--ink-faint); font-family: var(--mono); font-size: 11px; }
.mega-menu-empty {
  font-size: 13.5px;
  color: var(--ink-faint);
  padding: 10px 4px;
}

/* ---------- Language switcher ---------- */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-dim);
  background: var(--surface);
  user-select: none;
}
.lang-switcher .lang-arrow { font-size: 9px; color: var(--ink-faint); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
  min-width: 170px;
  overflow: hidden;
  z-index: 60;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-dropdown-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-dim);
}
.lang-dropdown-item:hover { background: var(--surface-2); }
.lang-dropdown-item.active { color: var(--accent-dim); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { padding: 20px 0 80px; border-top: 1px solid var(--border); }
.faq-inner { padding-top: 48px; max-width: 760px; margin: 0 auto; }
.faq h2 {
  font-family: var(--display);
  font-style: italic;
  font-size: 27px;
  font-weight: 600;
  margin: 0 0 26px;
  text-align: center;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-icon { color: var(--accent); font-size: 18px; flex: none; margin-left: 12px; transition: transform .15s ease; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.65;
}
.faq-a p { margin: 0 0 16px 4px; }
.faq-a.open { max-height: 400px; }

/* ---------- Resource articles ---------- */
.resources-list { padding: 48px 0 80px; }
.resources-list h1 {
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  margin: 8px 0 34px;
}
.resource-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  margin-bottom: 16px;
}
.resource-card:hover { border-color: var(--accent); text-decoration: none; box-shadow: var(--sh); }
.resource-card .card-cat { color: var(--gold); }
.resource-card h2 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  margin: 8px 0 6px;
}
.resource-card p { color: var(--ink-dim); font-size: 14px; margin: 0; }

.article-hero { padding: 30px 0 10px; }
.article-hero .card-cat { color: var(--gold); }
.article-hero h1 {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 10px 0 14px;
  max-width: 22ch;
}
.article-hero .lead { color: var(--ink-dim); font-size: 17px; max-width: 62ch; }
.article-hero .meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin: 16px 0 0;
}
.article-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  padding: 24px 0 80px;
  align-items: start;
}
.article-body h2 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  margin: 36px 0 12px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--ink-dim); margin: 0 0 14px; }
.article-body ul { color: var(--ink-dim); padding-left: 20px; margin: 0 0 14px; }
.article-body li { margin-bottom: 6px; }
.article-body li::marker { color: var(--gold); }
.article-toc {
  position: sticky;
  top: 90px;
  border-left: 2px solid var(--border);
  padding-left: 16px;
}
.article-toc .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 10px;
  display: block;
}
.article-toc a {
  display: block;
  font-size: 13px;
  color: var(--ink-dim);
  padding: 5px 0;
}
.article-toc a:hover { color: var(--accent); }

/* ---------- COAs / Metodología ---------- */
.doc-page { padding: 48px 0 80px; max-width: 72ch; margin: 0 auto; }
.doc-page h1 {
  font-family: var(--display);
  font-style: italic;
  font-size: 30px;
  margin: 8px 0 14px;
}
.doc-page .lead { color: var(--ink-dim); font-size: 16px; margin-bottom: 30px; }
.doc-page h2 { font-family: var(--display); font-size: 18px; margin: 30px 0 10px; }
.doc-page p { color: var(--ink-dim); }
.doc-page ol, .doc-page ul { color: var(--ink-dim); padding-left: 20px; }
.doc-page li { margin-bottom: 8px; }
.doc-empty {
  margin-top: 20px;
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--ink-faint);
  font-size: 14.5px;
}

/* ---------- Calculadora ---------- */
.calc-page { padding: 48px 0 84px; }
.calc-page h1 {
  font-family: var(--display);
  font-style: italic;
  font-size: 30px;
  margin: 8px 0 8px;
}
.calc-page .lead { color: var(--ink-dim); font-size: 16px; max-width: 62ch; margin-bottom: 32px; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--sh-sm);
}
.calc-card.full { grid-column: 1 / -1; }
.calc-card h3 {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  margin: 0 0 18px;
}
.field-label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 14px 0 5px;
}
.field-label:first-of-type { margin-top: 0; }
.calc-card input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 14.5px;
  background: var(--surface-2);
  color: var(--ink);
}
.unit-row, .jeringa-select { display: flex; gap: 8px; flex-wrap: wrap; }
.unit-btn, .jeringa-btn {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-dim);
  cursor: pointer;
}
.unit-btn.active, .jeringa-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent-dim);
  font-weight: 600;
}
.conc-display {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink-dim);
  border-top: 1px dashed var(--border-strong);
  padding-top: 12px;
}
.calc-result-box, .calc-duration-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--accent-glow);
  text-align: center;
}
.calc-result-num, .calc-duration-num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  color: var(--accent-dim);
}
.calc-result-label, .calc-duration-label { font-size: 12.5px; color: var(--ink-dim); margin-top: 2px; }
.calc-result-note, .calc-duration-note { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 8px; }
.calc-warn {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fbe9e9;
  color: #8a3535;
  border-radius: var(--r);
  font-size: 13px;
}
.calc-duration-row { display: flex; gap: 24px; flex-wrap: wrap; }
.calc-duration-row > div { flex: 1; min-width: 200px; }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-toc { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .mega-menu { position: fixed; left: 16px; right: 16px; width: auto; transform: none; top: 74px; }
}
