/* Barra común de Apotecario: calculadoras, fichas, ayuda y portada. */
.nv { --nv-green: #2b421a; --nv-gold: #f2d79a; position: relative; z-index: 50; background: var(--nv-green); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.nv * { box-sizing: border-box; }
.nv [hidden] { display: none !important; }
.nv-bar { display: flex; align-items: center; gap: 4px; max-width: 1240px; margin: 0 auto; padding: 4px 12px; }
.nv a, .nv button { font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2; }
.nv-shop, .nv-start, .nv-b, .nv-menu { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: #e4ecd6; text-decoration: none; white-space: nowrap; cursor: pointer; }
.nv-shop { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
.nv-shop::before { content: '←'; }
.nv-short { display: none; }
.nv-start { background: var(--nv-gold); color: var(--nv-green); margin-right: 4px; }
.nv-start::before { content: '🌱'; }
.nv-start:hover { background: #f7e3b5; color: var(--nv-green); }
.nv-start[aria-current='page'] { background: #fff; }
.nv-b:hover, .nv-shop:hover, .nv-b[aria-expanded='true'] { color: #fff; background: rgb(255 255 255 / .14); }
.nv-cur > .nv-b { background: #fff; color: var(--nv-green); }
.nv-car { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .8; transition: transform .15s; }
.nv-b[aria-expanded='true'] .nv-car { transform: rotate(180deg); }
.nv-menu { display: none; margin-left: auto; background: #fff; color: var(--nv-green); }
.nv-menu::before { content: '☰'; font-size: 15px; }
.nv-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nv-g { position: relative; }
.nv-p { position: absolute; top: calc(100% + 8px); left: 0; display: grid; gap: 4px 28px; width: max-content; max-width: calc(100vw - 24px); padding: 18px; border-radius: 16px; background: #fff; color: #22261c; box-shadow: 0 18px 40px rgb(30 40 10 / .22); text-align: left; }
.nv-c1 { grid-template-columns: minmax(0, 300px); }
.nv-c2 { grid-template-columns: repeat(2, minmax(0, 260px)); }
.nv-col ul { margin: 0; padding: 0; list-style: none; }
.nv-t { margin: 0 0 6px 10px; font-family: inherit; font-weight: 700; font-size: 11px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: #6b5420; }
.nv-p a { display: block; padding: 7px 10px; border-radius: 10px; color: #22261c; text-decoration: none; white-space: normal; }
.nv-n { display: block; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.3; }
.nv-d { display: block; margin-top: 1px; font-family: inherit; font-weight: 400; font-size: 12px; line-height: 1.35; color: #5c5c4c; }
.nv-p a:hover, .nv-p a:focus-visible { background: #f1ede0; outline: none; }
.nv-p a[aria-current='page'] { background: #eef1e7; box-shadow: inset 3px 0 0 var(--nv-green); }
.nv-p .nv-all { grid-column: 1 / -1; margin-top: 6px; padding-top: 12px; border-top: 1px solid #ece7d8; border-radius: 0 0 10px 10px; color: var(--nv-green); font-weight: 700; }
.nv a:focus-visible, .nv button:focus-visible { outline: 2px solid var(--nv-gold); outline-offset: 2px; }
.nv-p a:focus-visible { outline: 2px solid var(--nv-green); outline-offset: -2px; }

@media (max-width: 760px) {
  .nv-bar { flex-wrap: wrap; gap: 6px; }
  .nv-menu { display: inline-flex; }
  .nv-start { margin-right: 0; }
  .nv-list { display: none; }
  .nv-open .nv-list { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 48px); overflow-y: auto; padding: 6px 16px 18px; background: #fff; box-shadow: 0 18px 40px rgb(0 0 0 / .22); }
  .nv-open .nv-g { border-bottom: 1px solid #ece7d8; }
  .nv-open .nv-help { border-bottom: 0; }
  .nv-open .nv-b { display: flex; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 4px; border-radius: 0; color: var(--nv-green); background: none; font-size: 16px; font-weight: 700; }
  .nv-open .nv-cur > .nv-b { background: none; color: var(--nv-green); }
  .nv-open .nv-car { border-left-width: 5px; border-right-width: 5px; border-top-width: 6px; }
  .nv-p { position: static; display: block; width: auto; max-width: none; padding: 0 0 10px; border-radius: 0; box-shadow: none; }
  .nv-col + .nv-col { margin-top: 8px; }
  .nv-p a { padding: 9px 12px; }
  .nv-p .nv-all { margin-top: 4px; border-top: 0; }
}
@media (max-width: 440px) {
  .nv-long { display: none; }
  .nv-short { display: inline; }
  .nv-shop, .nv-start, .nv-menu { padding: 0 10px; }
}
@media print { .nv { display: none; } }
