:root {
  --ink: #071d19;
  --ink-2: #294a42;
  --muted: #58726b;
  --line: #c7ddd6;
  --soft: #eff8f4;
  --paper: #ffffff;
  --night: #075f4a;
  --night-2: #0a8060;
  --accent: #087c5b;
  --accent-dark: #056247;
  --signal: #b7e740;
  --amber: #d79527;
  --rose: #c96065;
  --shadow: 0 20px 55px rgba(7, 50, 40, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.auth-pending body > header,
.auth-pending body > main,
.auth-pending body > footer { visibility: hidden; }
.auth-pending body { background: #f1faf8; }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar {
  height: 72px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--night);
  color: var(--ink);
  border-bottom: 1px solid #d9e8e5;
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; font-family: Sora, sans-serif; font-weight: 700; letter-spacing: -.03em; }
.brand small { font: 500 11px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .11em; color: #52716e; border: 1px solid #c4dad6; border-radius: 999px; padding: 5px 7px; }
.brand-mark { width: 27px; height: 27px; position: relative; display: inline-flex; gap: 3px; align-items: center; justify-content: center; }
.brand-mark i { display: block; width: 5px; border-radius: 9px; background: var(--accent); transform: rotate(28deg); }
.brand-mark i:nth-child(1) { height: 13px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 23px; }
.brand-mark i:nth-child(3) { height: 17px; opacity: .8; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.access-button { border: 0; border-radius: 999px; padding: 9px 14px; color: white; background: var(--accent-dark); font-size: 13px; font-weight: 700; box-shadow: 0 7px 15px rgba(0, 126, 111, .18); }
.access-button:hover { background: #006d60; transform: translateY(-1px); }
.text-button { border: 0; background: none; color: #52716e; font-size: 14px; padding: 10px; }
.text-button:hover { color: var(--ink); }
.language-button { border: 1px solid #b9d8d2; border-radius: 999px; background: #fff; color: #315d58; padding: 7px 11px; font-size: 12px; font-weight: 700; }
.language-button:hover { background: #edf7f5; color: var(--ink); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid #c4dad6; background: #fff; color: #315d58; }
.icon-button svg, .search-field svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-stage {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% -10%, rgba(44,224,194,.14), transparent 34%),
    linear-gradient(180deg, var(--night), #ffffff);
  padding: clamp(54px, 8vw, 92px) max(22px, calc((100vw - 1180px)/2));
  min-height: 440px;
}
.hero-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 28px; align-items: end; max-width: 1180px; margin: 0 0 28px; padding: clamp(28px, 4.2vw, 52px); overflow: hidden; border: 1px solid #b9d8d2; border-radius: 24px; background: linear-gradient(125deg, #e0f3ef 0%, #f6fbfa 66%, #d5eee8 100%); box-shadow: 0 24px 65px rgba(9, 68, 59, .10); }
.hero-banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--accent-dark); }
.hero-copy { position: relative; z-index: 1; }
h1 { max-width: 930px; font: 600 clamp(36px, 5vw, 58px)/1.06 Sora, sans-serif; letter-spacing: -.055em; margin: 0 0 14px; }
.lede { max-width: 820px; color: #456863; font-size: 17px; margin: 0; }
.hero-index { position: relative; width: 150px; height: 150px; justify-self: end; display: grid; place-items: center; border: 1px solid rgba(0,126,111,.28); border-radius: 50%; color: #0f6f64; background: rgba(255,255,255,.48); }
.hero-index span { font: 700 35px/1 Sora, sans-serif; letter-spacing: -.08em; }
.microbe-art { width: 72px; height: 54px; fill: var(--ink); }
.microbe-rod { opacity: .92; }
.microbe-rod-2 { opacity: .7; }
.microbe-cocci { opacity: .45; }
.hero-index i { position: absolute; width: 9px; border-radius: 99px; background: var(--accent); transform: rotate(32deg); transform-origin: center; }
.hero-index i:nth-of-type(1) { height: 28px; top: 15px; right: 37px; opacity: .45; }
.hero-index i:nth-of-type(2) { height: 40px; top: 23px; right: 20px; }
.hero-index i:nth-of-type(3) { height: 24px; bottom: 20px; left: 27px; opacity: .55; }
.hero-index i:nth-of-type(4) { height: 34px; bottom: 13px; left: 45px; opacity: .8; }
.search-shell { width: min(860px, 100%); border: 1px solid #34464d; border-radius: 15px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.32); background: #13232a; }
.mode-switch { display: flex; align-items: center; height: 46px; padding: 5px; gap: 3px; background: #0d1c22; border-bottom: 1px solid #273b43; }
.mode-switch { overflow-x: auto; }
.mode-switch button { flex: 0 0 auto; white-space: nowrap; border: 0; border-radius: 8px; color: #8ea1a7; background: transparent; padding: 8px 14px; font-size: 13px; font-weight: 600; }
.mode-switch button.active { color: white; background: #1c3038; box-shadow: inset 0 0 0 1px #30464e; }
.compare-workspace { background:#fff; border:1px solid #d7e8e3; border-radius:18px; padding:28px; box-shadow:0 12px 35px rgba(21,72,63,.06); }
.compare-workspace h3 { margin:8px 0 6px; font-size:24px; color:#173b36; }
.compare-workspace p { color:#58736f; max-width:620px; }
.compare-condition { max-width:560px; margin:24px 0 0; }
.compare-context { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; margin:24px 0 -6px; padding:12px 14px; border:1px solid #c9e5dc; border-radius:12px; color:#17483f; background:#effaf6; }
.compare-context span { color:#5e7b75; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.compare-context strong { font-size:15px; }
.compare-context small { color:#54756e; font-size:12px; text-align:right; }
.compare-selects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:24px 0 18px; }
.compare-picker { position:relative; }
.compare-picker > label { display:block; margin-bottom:7px; color:#52716e; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.compare-input-wrap { position:relative; }
.compare-selects input, .compare-picker select { width:100%; min-height:48px; border:1px solid #bdd9d3; border-radius:10px; padding:12px; color:#173b36; background:#f7fbfa; font:inherit; text-transform:none; letter-spacing:normal; }
.compare-picker select { appearance:auto; font-size:16px; cursor:pointer; }
.compare-selects input:focus, .compare-picker select:focus { outline:3px solid rgba(183,231,64,.32); border-color:#0b8061; background:#fff; }
.compare-selects input:has(+ .compare-clear:not([hidden])) { padding-right:42px; }
.compare-clear { position:absolute; top:50%; right:8px; width:30px; height:30px; border:0; border-radius:50%; transform:translateY(-50%); color:#52716e; background:#e7f3ef; font-size:21px; line-height:1; }
.compare-results { position:absolute; z-index:10; top:calc(100% + 6px); right:0; left:0; display:none; overflow:auto; max-height:238px; border:1px solid #b9d8d2; border-radius:12px; background:#fff; box-shadow:0 16px 35px rgba(5,70,55,.16); }
.compare-results.visible { display:block; }
.compare-results button { width:100%; display:block; border:0; border-bottom:1px solid #e5efeb; padding:11px 13px; color:var(--ink); background:#fff; text-align:left; }
.compare-results button:last-child { border-bottom:0; }
.compare-results button:hover, .compare-results button:focus { background:#edf8f4; outline:0; }
.compare-results strong, .compare-results span { display:block; }
.compare-results strong { font:700 13px/1.35 Sora,sans-serif; }
.compare-results span { margin-top:2px; color:#58736f; font-size:12px; }
.compare-results p { margin:0; padding:13px; color:#58736f; font-size:13px; }
.compare-hint { min-height:20px; color:#a15c39!important; font-size:13px; }
.primary-cta { border:0; border-radius:10px; padding:12px 16px; color:#fff; background:var(--accent-dark); font-weight:800; }
.primary-cta:hover { background:var(--accent); }
@media(max-width:640px){ .compare-workspace { padding:20px; } .compare-workspace h3 { font-size:22px; } .compare-selects { grid-template-columns:1fr; margin-top:20px; } .compare-condition { margin-top:20px; } .compare-context { display:block; margin-top:20px; } .compare-context span,.compare-context strong,.compare-context small { display:block; } .compare-context strong { margin:4px 0; } .compare-context small { text-align:left; } .compare-results { position:absolute; top:auto; bottom:calc(100% + 7px); margin:0; max-height:min(260px,42vh); overscroll-behavior:contain; -webkit-overflow-scrolling:touch; box-shadow:0 -14px 38px rgba(5,70,55,.18); } .compare-results button { min-height:50px; padding:12px 14px; touch-action:manipulation; } }
body.compare-mode .hero-banner, body.compare-mode .search-field, body.compare-mode .last-updated, body.compare-mode .suggestions, body.compare-mode .quick-links, body.compare-mode .database-pulse { display:none; }
body.compare-mode .search-stage { min-height:0; padding-top:22px; padding-bottom:0; }
body.compare-mode .search-shell { width:min(980px,100%); margin:0; }
body.compare-mode .workspace { padding-top:28px; }
body.compare-mode .results-header { display:none; }
.search-field { height: 68px; display: flex; align-items: center; gap: 15px; padding: 0 20px; color: var(--accent); background: #13252d; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: white; font-size: 18px; }
.search-field input::placeholder { color: #71878d; }
kbd { color: #7d9197; font: 500 11px Inter, sans-serif; border: 1px solid #344950; border-radius: 5px; padding: 4px 6px; }
.last-updated { margin: 0; padding: 0 20px 14px; color: #7f969c; background: #13252d; font-size: 12px; letter-spacing: .01em; }
.suggestions { display: none; padding: 8px; border-top: 1px solid #273b43; }
.suggestions.visible { display: grid; }
.suggestions button { text-align: left; border: 0; color: #d8e2e4; background: transparent; border-radius: 8px; padding: 10px 12px; }
.suggestions button:hover { background: #1b3038; }
.quick-links { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quick-links span { color: #6f868d; font-size: 13px; margin-right: 4px; }
.quick-links button { color: #aab9bd; background: transparent; border: 1px solid #2d4149; border-radius: 999px; padding: 7px 11px; font-size: 13px; }
.quick-links button:hover { border-color: #5c777f; color: white; }
.database-pulse { margin-top: 30px; display: flex; gap: 24px; flex-wrap: wrap; color: #738990; font-size: 12px; }
.database-pulse span { display: flex; align-items: baseline; gap: 5px; }
.database-pulse strong { color: #dbe7e9; font: 600 14px Sora, sans-serif; }
.workspace { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(30px, 5vw, 64px); max-width: 1260px; margin: 0 auto; padding: 50px clamp(22px, 4vw, 52px) 80px; }
.filters { border-right: 1px solid var(--line); padding-right: 28px; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.filter-heading button { border: 0; color: var(--accent-dark); background: none; font-size: 12px; text-transform: none; letter-spacing: 0; }
.filter-heading .filter-toggle { display:flex; align-items:center; gap:7px; padding:0; color:var(--ink); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; cursor:default; }
.filter-toggle svg { display:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; transition:transform .18s ease; }
fieldset { padding: 0; border: 0; margin: 30px 0; }
legend { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
fieldset label { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--ink-2); font-size: 14px; }
fieldset input { position: absolute; opacity: 0; pointer-events: none; }
.check { width: 17px; height: 17px; border: 1px solid #b8c5c9; border-radius: 5px; position: relative; }
input:checked + .check { background: var(--ink); border-color: var(--ink); }
input:checked + .check::after { content: ""; position: absolute; width: 6px; height: 3px; border-left: 1.5px solid white; border-bottom: 1.5px solid white; transform: rotate(-45deg); top: 5px; left: 4px; }
fieldset em { margin-left: auto; font-style: normal; color: #829197; font-size: 12px; }
.scope-note { margin-top: 42px; padding: 16px; border-radius: 12px; background: var(--soft); border: 1px solid #e2eaec; }
.scope-note strong { font-size: 13px; }
.scope-note p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.results-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.translation-note { margin: 0 0 18px; padding: 11px 13px; border: 1px solid #c7e3de; border-radius: 10px; color: #326761; background: #f0faf8; font-size: 13px; line-height: 1.45; }
.results-header p { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .09em; font-size: 12px; font-weight: 700; margin: 0 0 5px; }
.results-header h2 { font: 600 25px/1.2 Sora, sans-serif; letter-spacing: -.035em; margin: 0; }
.legend { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.legend .dot { width: 7px; height: 7px; background: var(--accent-dark); border-radius: 50%; }
.results-grid { display: grid; gap: 13px; }
.evidence-card { width: 100%; display: grid; grid-template-columns: minmax(210px, 1.25fr) minmax(160px,1fr) minmax(150px,.8fr) 20px; gap: 18px; align-items: center; text-align: left; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px 20px 22px; transition: .18s ease; }
.evidence-card:hover { border-color: #9db1b7; box-shadow: var(--shadow); transform: translateY(-1px); }
.card-strain { min-width: 0; }
.card-strain { position: relative; padding-left: 31px; }
.card-microbe { position: absolute; left: 0; top: 3px; width: 24px; height: 24px; fill: var(--accent); opacity: .92; }
.card-microbe { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; color: #14866d; }
.microbe-lacto { color:#14866d; }
.microbe-akk { color:#2a9d8f; }
.microbe-yeast { color:#b77b27; }
.microbe-bifido { color:#6c63b5; }
.microbe-bacillus { color:#d56b4d; }
.microbe-strep { color:#1677a8; }
.card-strain strong { font: 600 15px/1.35 Sora, sans-serif; display: block; }
.card-strain strong i { font-style: italic; }
.card-strain small, .card-data small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.card-data span { display: block; font-size: 14px; font-weight: 500; }
.grade { justify-self: start; border: 1px solid; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.grade.moderada { color: #087769; background: #effbf8; border-color: #9fe2d7; }
.grade.baja { color: #5d7380; background: #f1f7f9; border-color: #c7dce2; }
.grade.muy-baja { color: #6e7480; background: #f4f5f8; border-color: #d7dbe4; }
.status { justify-self: start; border-radius: 7px; padding: 6px 8px; font-size: 10px; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.status.considerar { color: #056d61; background: #e7f8f4; }
.status.prueba { color: #2d5f75; background: #eaf4f8; }
.status.no-rutinario { color: #875c16; background: #fff3da; }
.status.insuficiente { color: #61727a; background: #f1f5f6; }
.status.evitar { color: #a23f47; background: #fcebed; }
.direction-badge { display: inline-flex; align-items: center; width: fit-content; border: 1px solid #d4e3e1; border-radius: 999px; padding: 5px 8px; color: #52716e; background: #f7fbfa; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.arrow { color: #819298; font-size: 19px; }
.empty-state { text-align: center; border: 1px dashed #cbd7da; border-radius: 16px; padding: 52px 20px; }
.empty-state > div { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--soft); border-radius: 50%; color: var(--muted); }
.empty-state h3 { font: 600 18px Sora, sans-serif; margin: 0; }
.empty-state p { max-width: 480px; margin: 8px auto 20px; color: var(--muted); font-size: 14px; }
.empty-state button { border: 0; border-radius: 9px; background: var(--ink); color: white; padding: 10px 14px; }
footer { border-top: 1px solid var(--line); padding: 25px clamp(22px, 5vw, 72px); display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 12px; }
dialog { border: 0; padding: 0; box-shadow: 0 25px 90px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(2,10,14,.62); backdrop-filter: blur(3px); }
.detail-dialog { margin: 0 0 0 auto; width: min(680px, 100%); max-width: 100%; height: 100%; max-height: 100%; color: var(--ink); background: white; }
.detail-head { color: white; background: var(--night); padding: 34px 40px 28px; }
.detail-toolbar { display: flex; justify-content: space-between; margin-bottom: 26px; }
.detail-toolbar span { color: #8ca0a6; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.detail-toolbar button, .dialog-close { border: 0; background: transparent; color: inherit; font-size: 25px; line-height: 1; }
.detail-head h2 { font: 600 28px/1.18 Sora, sans-serif; letter-spacing: -.04em; margin: 0 0 7px; }
.detail-head p { color: #9fb0b5; margin: 0; }
.detail-badges { display: flex; gap: 8px; margin: -8px 0 18px; flex-wrap: wrap; }
.detail-head .grade { background: transparent; color: #c9d5d8; border-color: #455960; }
.detail-head .status { color: white; background: #223840; box-shadow: inset 0 0 0 1px #3b5159; }
.detail-body { padding: 30px 40px 50px; }
.micrograph-panel { display:grid; grid-template-columns:172px minmax(0,1fr); gap:0; overflow:hidden; margin:0 0 24px; border:1px solid #c9e2db; border-radius:14px; background:#f5fbf9; }
.micrograph-panel img { display:block; width:100%; height:172px; object-fit:cover; background:#d9ebe6; filter:saturate(.92) contrast(1.04); }
.micrograph-panel figcaption { display:flex; flex-direction:column; align-items:flex-start; padding:18px 20px; }
.micrograph-panel figcaption > span { color:#528078; font-size:10px; font-weight:800; letter-spacing:.1em; }
.micrograph-panel strong { margin-top:5px; color:#174943; font:600 17px/1.25 Sora,sans-serif; letter-spacing:-.025em; }
.micrograph-panel small { margin-top:4px; color:#52716e; font-size:12px; }
.micrograph-panel p { margin:11px 0 0; color:#59746f; font-size:12px; line-height:1.45; }
.micrograph-panel a { margin-top:auto; padding-top:10px; color:#087664; font-size:12px; font-weight:800; text-decoration:none; }
.micrograph-panel a:hover { text-decoration:underline; }
.clinical-callout { border-left: 3px solid var(--accent-dark); padding: 2px 0 2px 15px; margin-bottom: 18px; }
.section-kicker, .summary-heading span { display:block; color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.clinical-callout p { margin: 7px 0 0; color:var(--ink); font:600 16px/1.45 Sora,sans-serif; letter-spacing:-.02em; }
.clinical-callout small { display: block; color: var(--muted); font-size: 12px; margin-top: 9px; }
.effect-panel { display: grid; grid-template-columns: 1.15fr 1fr .8fr; gap: 1px; margin: 0 0 14px; overflow: hidden; border: 1px solid #cfe1df; border-radius: 12px; background: #cfe1df; }
.effect-panel div { background: #f2fbf9; padding: 15px; }
.effect-panel small { display: block; color: #58726f; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.effect-panel strong { font: 600 13px/1.35 Sora, sans-serif; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.detail-stat { background: var(--soft); border-radius: 11px; padding: 15px; }
.detail-stat small, .detail-section h3 { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.detail-stat strong { font-size: 14px; }
.clinical-summary { margin:26px 0 28px; }
.summary-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:12px; }
.summary-heading p { margin:0; color:var(--muted); font-size:12px; text-align:right; }
.primary-grid { margin:0; }
.primary-grid .detail-stat:first-child { grid-column:1 / -1; background:#e7f5ef; }
.primary-grid .detail-stat:first-child strong { font-size:15px; }
.regimen-list { display:grid; gap:12px; margin:0; }
.regimen-list div { padding:13px 14px; border-radius:10px; background:#f5faf8; }
.regimen-list dt { margin:0 0 5px; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.regimen-list dd { margin:0; color:var(--ink-2); font-size:14px; line-height:1.5; }
.detail-section { padding: 22px 0; border-top: 1px solid var(--line); }
.detail-section h3 { margin-top: 0; }
.detail-section p, .detail-section li { color: var(--ink-2); font-size: 14px; }
.detail-section ul { padding-left: 18px; margin: 8px 0 0; }
.detail-section li + li { margin-top: 6px; }
.editorial-section { margin-top: 8px; border: 1px solid #cfe4df; border-radius: 13px; padding: 18px !important; background: #f4fbf9; }
.editorial-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.editorial-heading span { display: block; color: #52716e; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.editorial-heading h3 { margin: 4px 0 0; color: #174943; font: 600 15px/1.3 Sora, sans-serif; letter-spacing: -.02em; }
.editorial-heading time { flex: none; color: #52716e; font-size: 12px; font-weight: 600; }
.editorial-independence { margin: 16px 0 0 !important; padding-top: 14px; border-top: 1px solid #d9eae6; color: #476862 !important; font-size: 12px !important; line-height: 1.5; }
.evidence-timeline { position:relative; display:grid; gap:0; margin:14px 0 0; padding:0; list-style:none; }
.evidence-timeline::before { content:""; position:absolute; left:31px; top:10px; bottom:10px; width:1px; background:#c7ddd6; }
.evidence-timeline li { position:relative; display:grid; grid-template-columns:64px 1fr; gap:14px; align-items:start; padding:9px 0; }
.evidence-timeline time { z-index:1; width:62px; border:1px solid #bdd9d3; border-radius:999px; padding:4px 7px; color:#176a58; background:#fff; font-size:11px; font-weight:800; text-align:center; }
.evidence-timeline strong, .evidence-timeline span { display:block; }
.evidence-timeline strong { color:var(--ink-2); font-size:13px; }
.evidence-timeline span { color:var(--muted); font-size:11px; }
.study-table-wrap { overflow-x: auto; margin-top: 10px; }
.study-table { width: 100%; min-width: 610px; border-collapse: collapse; font-size: 12px; line-height: 1.4; }
.study-table th { color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.study-table td { vertical-align: top; color: var(--ink-2); padding: 11px 10px; border-bottom: 1px solid #edf1f2; }
.study-table th:nth-child(1) { width: 24%; }
.study-table th:nth-child(2) { width: 14%; }
.study-table th:nth-child(3) { width: 28%; }
.study-table a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.study-table small { color: var(--muted); }
.review-stamp { color: var(--muted); font-size: 11px; margin: 24px 0 0; }
.source { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 11px 0; text-decoration: none; color: inherit; border-bottom: 1px solid #edf1f2; }
.source:last-child { border-bottom: 0; }
.source b { width: 23px; height: 23px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 6px; font-size: 10px; }
.source span { font-size: 13px; line-height: 1.35; }
.source em { color: var(--accent-dark); font-style: normal; font-size: 12px; }
.info-dialog { width: min(650px, calc(100% - 32px)); border-radius: 16px; padding: 34px; color: var(--ink); }
.info-dialog .dialog-close { position: absolute; right: 20px; top: 17px; }
.info-dialog h2 { font: 600 27px Sora, sans-serif; letter-spacing: -.04em; margin: 0 0 12px; }
.info-dialog p, .info-dialog li { color: var(--ink-2); font-size: 14px; }
.info-dialog li + li { margin-top: 8px; }
.food-layer-head > span { display:block; margin-bottom:8px; color:var(--accent-dark); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.food-layer-head p { margin:0 0 18px; }
.food-rule { margin:0 0 16px; padding:14px 15px; border:1px solid #c7e6df; border-radius:12px; background:#f2fbf8; }
.food-rule strong { font:700 14px Sora,sans-serif; }
.food-rule p { margin:5px 0 0; font-size:13px; line-height:1.5; }
.food-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.food-grid article { min-height:184px; padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.food-grid h3 { margin:10px 0 7px; font:600 15px/1.35 Sora,sans-serif; letter-spacing:-.02em; }
.food-grid p { margin:0; font-size:13px; line-height:1.5; }
.food-grid small { display:block; margin-top:10px; color:var(--muted); font-size:11px; line-height:1.45; }
.food-grid a { display:inline-block; margin-top:10px; color:var(--accent-dark); font-size:12px; font-weight:700; text-decoration:none; }
.food-tag { display:inline-block; border-radius:999px; padding:5px 7px; font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.food-tag.ready { color:#067265; background:#e7f8f4; }.food-tag.watch { color:#556e7a; background:#eef5f7; }.food-tag.boundary { color:#835c18; background:#fff3da; }
.food-checklist { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }.food-checklist h3 { margin:0 0 8px; font:600 15px Sora,sans-serif; }.food-checklist ul { margin:0; padding-left:18px; }
.access-dialog { width: min(850px, calc(100% - 28px)); max-height: min(720px, calc(100% - 28px)); overflow: auto; border-radius: 20px; color: var(--ink); background: #fff; }
.access-shell { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 510px; }
.access-aside { padding: 38px; color: #ecf8f6; background: linear-gradient(155deg, #073e38, #0a655a); }
.access-aside .brand-mark { margin-bottom: 32px; }
.access-aside .brand-mark i { background: #7be0d1; }
.access-kicker { display: flex; align-items: center; gap: 8px; color: #a6ded4; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.access-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7be0d1; box-shadow: 0 0 0 5px rgba(123,224,209,.12); }
.access-aside h2 { font: 600 31px/1.08 Sora, sans-serif; letter-spacing: -.05em; margin: 18px 0 15px; }
.access-aside > p { margin: 0; color: #b5d8d3; font-size: 14px; }
.access-assurances { display: grid; gap: 13px; margin: 39px 0 0; padding: 0; list-style: none; }
.access-assurances li { position: relative; padding-left: 25px; color: #d5eeea; font-size: 13px; line-height: 1.45; }
.access-assurances li::before { content: "✓"; position: absolute; left: 0; color: #7be0d1; font-weight: 700; }
.access-main { padding: 28px 34px 34px; }
.access-toolbar { display: flex; justify-content: flex-end; }
.access-toolbar button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #52716e; background: #f0f7f5; font-size: 23px; line-height: 1; }
.access-main h3 { font: 600 25px/1.15 Sora, sans-serif; letter-spacing: -.04em; margin: 13px 0 7px; }
.access-main > p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.access-choice { border: 1px solid #dbe8e5; border-radius: 14px; padding: 18px; margin-top: 12px; }
.access-choice-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.access-choice h4 { font: 700 15px Sora, sans-serif; margin: 0 0 4px; letter-spacing: -.02em; }
.access-choice p { margin: 0; color: var(--muted); font-size: 13px; }
.access-tag { flex: none; border-radius: 999px; padding: 5px 8px; color: #056d61; background: #e7f8f4; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.code-row { display: flex; gap: 8px; margin-top: 14px; }
.code-row input { width: 100%; min-width: 0; border: 1px solid #c6dcd8; border-radius: 9px; padding: 10px 11px; color: var(--ink); background: #fbfdfd; font-size: 14px; text-transform: uppercase; }
.code-row input:focus { outline: 2px solid rgba(17,157,140,.22); border-color: var(--accent); }
.primary-action { flex: none; border: 0; border-radius: 9px; padding: 10px 13px; color: white; background: var(--ink); font-size: 13px; font-weight: 700; }
.primary-action:hover { background: var(--accent-dark); }
.trial-choice { background: #f1faf8; border-color: #cae8e1; }
.trial-button { width: 100%; border: 1px solid #0b8173; border-radius: 9px; padding: 11px 14px; margin-top: 14px; color: #075d53; background: white; font-size: 13px; font-weight: 800; }
.trial-button:hover { color: white; background: var(--accent-dark); }
.access-note { margin: 18px 2px 0; color: #7c8e91; font-size: 11px; line-height: 1.45; }
.access-success { display: grid; min-height: 480px; align-content: center; padding: 44px; text-align: center; }
.access-success-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: #087769; background: #e2f6f1; font-size: 25px; font-weight: 700; }
.access-success h3 { margin-top: 0; }
.access-success p { max-width: 410px; margin: 0 auto 22px; }
.access-success .primary-action { align-self: center; }
.auth-main { display:flex; flex-direction:column; justify-content:center; }
.auth-main form { display:grid; gap:14px; }
.auth-main form > label:not(.consent-row) { display:grid; gap:6px; color:var(--ink-2); font-size:12px; font-weight:700; }
.auth-main input:not([type="checkbox"]), .auth-main select { width:100%; min-height:44px; border:1px solid #c6dcd8; border-radius:9px; padding:10px 11px; color:var(--ink); background:#fbfdfd; font-size:14px; }
.auth-main input:focus, .auth-main select:focus { outline:2px solid rgba(17,157,140,.22); border-color:var(--accent); }
.consent-row { display:flex; gap:9px; align-items:flex-start; color:var(--muted); font-size:11px; line-height:1.4; }
.consent-row input { margin-top:2px; accent-color:var(--accent-dark); }
.account-submit { width:100%; min-height:44px; }
.account-submit:disabled { cursor:not-allowed; opacity:.5; }
.form-message { min-height:18px; margin:0; color:#a23f47; font-size:12px; }
.google-button { width:100%; min-height:44px; display:flex; align-items:center; justify-content:center; gap:10px; border:1px solid #d7dfed; border-radius:9px; color:#08114E; background:#fff; font-weight:800; }
.google-button:hover { border-color:#08114E; background:#f5f7fd; }
.google-button span { display:grid; place-items:center; width:21px; height:21px; border-radius:50%; color:#fff; background:#4285f4; font-size:13px; font-weight:900; }
.auth-divider { display:flex; align-items:center; gap:10px; margin:16px 0; color:#7c8e91; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.auth-divider::before, .auth-divider::after { content:""; flex:1; height:1px; background:#e3e9ef; }
.auth-switch { display:flex; justify-content:center; gap:6px; margin-top:17px; color:var(--muted); font-size:12px; }
.auth-switch button, .text-button { border:0; padding:0; color:#08114E; background:transparent; font:inherit; font-weight:800; text-decoration:underline; }
.text-button { display:block; margin:12px auto 0; font-size:12px; }
.config-notice { margin:0; padding:10px 11px; border-radius:8px; color:#6b5425; background:#fff5dd; font-size:11px; }
.preview-button { width:100%; min-height:42px; border:1px solid #0b8173; border-radius:9px; color:#075d53; background:white; font-weight:700; }
.preview-button:hover { color:white; background:var(--accent-dark); }
.preview-note { display:block; color:var(--muted); font-size:11px; line-height:1.4; text-align:center; }
.account-panel { position:relative; padding:42px; text-align:center; }
.account-panel h2 { margin:18px 0 4px; font:600 26px Sora,sans-serif; }
.account-panel p { margin:3px 0; color:var(--muted); }
.account-email { font-size:13px; }
.account-panel .primary-action { margin-top:24px; }
.account-close { position:absolute; top:18px; right:18px; border:0; background:transparent; color:var(--muted); }
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .filters { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .filter-heading, .scope-note { grid-column: 1 / -1; }
  fieldset { margin: 10px 0; }
  .scope-note { margin-top: 0; }
  .evidence-card { grid-template-columns: 1.35fr 1fr 120px 24px; }
  .evidence-card .card-data.duration { display: none; }
}
@media (max-width: 600px) { .food-grid { grid-template-columns:1fr; } .food-grid article { min-height:auto; } }
@media (max-width: 620px) {
  .topbar { height: 62px; padding-inline: 18px; }
  .brand small, .text-button { display: none; }
  .access-button { padding: 8px 11px; font-size: 12px; }
  .search-stage { padding-top: 42px; min-height: 430px; }
  .hero-banner { grid-template-columns: 1fr; padding: 26px 24px 28px; border-radius: 19px; }
  .hero-index { display: none; }
  h1 { font-size: 39px; }
  .lede { font-size: 15px; }
  .search-field { height: 62px; padding-inline: 15px; }
  .search-field input { font-size: 16px; }
  kbd { display: none; }
  .workspace { padding-top: 22px; }
  .filters { display:block; padding:0 0 14px; }
  .filter-heading { min-height:42px; }
  .filter-heading .filter-toggle { cursor:pointer; text-transform:none; letter-spacing:0; font-size:15px; }
  .filter-toggle svg { display:block; }
  .filters.expanded .filter-toggle svg { transform:rotate(180deg); }
  .filters fieldset, .filters .scope-note { display:none; }
  .filters.expanded fieldset { display:block; margin:17px 0; }
  .filters.expanded .scope-note { display:block; margin-top:18px; }
  .filters:not(.expanded) #clearFilters { display:none; }
  .results-header { align-items: start; }
  .legend { display: none; }
  .database-pulse { gap: 12px 20px; margin-top: 24px; }
  .database-pulse span:last-child { display: none; }
  .evidence-card { grid-template-columns: 1fr auto; gap: 10px 12px; padding: 17px; }
  .evidence-card .card-data { display: none; }
  .arrow { grid-column: 2; grid-row: 1; align-self: center; }
  footer { flex-direction: column; gap: 5px; }
  .detail-head, .detail-body { padding-left: 22px; padding-right: 22px; }
  .micrograph-panel { grid-template-columns:116px minmax(0,1fr); }
  .micrograph-panel img { height:148px; }
  .micrograph-panel figcaption { padding:14px; }
  .micrograph-panel strong { font-size:15px; }
  .micrograph-panel p { font-size:11px; }
  .detail-grid { grid-template-columns: 1fr; }
  .summary-heading { display:block; }
  .summary-heading p { margin-top:5px; text-align:left; }
  .effect-panel { grid-template-columns: 1fr; }
  .access-dialog { width: min(100% - 18px, 550px); }
  .access-shell { grid-template-columns: 1fr; }
  .access-aside { padding: 27px 25px; }
  .access-aside .brand-mark { margin-bottom: 19px; }
  .access-aside h2 { font-size: 26px; }
  .access-assurances { display: none; }
  .access-main { padding: 19px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Dirección visual clara: el contenido clínico permanece sobre superficies blancas. */
.search-shell { background: #ffffff; border-color: #cfe1de; box-shadow: 0 18px 45px rgba(35, 96, 89, .10); }
.mode-switch { background: #edf7f5; border-bottom-color: #d8e9e5; }
.mode-switch button { color: #52716e; }
.mode-switch button.active { color: #174943; background: #ffffff; box-shadow: inset 0 0 0 1px #b9d8d2; }
.search-field { background: #ffffff; color: #119d8c; }
.search-field input { color: var(--ink); }
.search-field input::placeholder { color: #7a9793; }
kbd { color: #52716e; border-color: #cfe1de; }
.suggestions { border-top-color: #d8e9e5; background: #fff; }
.suggestions button { color: var(--ink-2); }
.suggestions button:hover { background: #edf7f5; }
.quick-links button { color: #52716e; border-color: #bdd8d3; }
.quick-links button:hover { border-color: #119d8c; color: var(--ink); }
.database-pulse { color: #52716e; }
.database-pulse strong { color: var(--ink); }
.workspace.foods-view { grid-template-columns:1fr; max-width:1040px; }.functional-food-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }.functional-food-card { display:flex; flex-direction:column; min-height:345px; padding:21px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }.food-card-type { color:#48726b; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.functional-food-card h3 { margin:9px 0 16px; font:600 18px/1.28 Sora,sans-serif; letter-spacing:-.03em; }.food-benefit { padding:11px 12px; border-radius:9px; background:#edf8f5; }.food-benefit small { display:block; color:#57746f; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }.food-benefit strong { display:block; margin-top:4px; color:#17564d; font-size:14px; }.functional-food-card > p { color:var(--ink-2); font-size:13px; line-height:1.52; }.functional-food-card dl { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:4px 0 0; }.functional-food-card dl div { padding:9px; border-radius:8px; background:var(--soft); }.functional-food-card dt { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.05em; }.functional-food-card dd { margin:4px 0 0; font-size:12px; line-height:1.35; }.functional-food-card .food-note { margin-top:12px; color:#61757a; font-size:12px; }.functional-food-card a { margin-top:auto; color:var(--accent-dark); font-size:13px; font-weight:700; text-decoration:none; }
@media (max-width: 700px) { .functional-food-grid { grid-template-columns:1fr; }.functional-food-card { min-height:0; } }
.effect-panel.neutral-results { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.study-order-note { margin: -1px 0 12px; color: var(--muted) !important; font-size: 12px !important; }
.food-reported-result { margin:14px 0 2px; }
.food-reported-result small { display:block; margin:0 0 5px; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.food-reported-result p { margin:0; color:var(--ink-2); font-size:13px; line-height:1.52; }
.detail-head { color: var(--ink); background: #f1faf8; border-bottom: 1px solid #d8e9e5; }
.detail-toolbar span, .detail-head p { color: #52716e; }
.detail-toolbar button, .dialog-close { color: var(--ink); }
.detail-head .grade { color: #52716e; border-color: #b9d8d2; }
.detail-head .status { color: #174943; background: #dff2ed; box-shadow: inset 0 0 0 1px #b9d8d2; }
.mx-badge { color: #0b796d !important; font-weight: 600; }

/* Dirección B · Índice vivo */
::selection { color: var(--ink); background: var(--signal); }
body { background: #f8fcfa; font-family: Inter, system-ui, sans-serif; }
.topbar { background: rgba(255,255,255,.96); border-bottom-color: #c9ded7; }
.brand { font-family: Sora, sans-serif; font-weight: 800; }
.brand-mark i { background: var(--accent); }
.brand small { color: #42675e; border-color: #bad5cd; background: #f1f8f5; }
.access-button { color: #fff; background: var(--accent); box-shadow: 0 9px 22px rgba(8,124,91,.2); }
.access-button:hover { background: #066d50; }
.text-button { color: #42675e; }
.language-button, .icon-button { color: #155b49; border-color: #b9d5cc; background: #fff; }
.language-button:hover, .icon-button:hover { color: var(--ink); background: #edf7f2; }
.detail-action { border:1px solid #b9d8d2; background:#fff; color:#176a58; border-radius:999px; padding:6px 10px; font-size:12px; margin-right:6px; }
.detail-action:hover { background:#edf7f2; }
.detail-actions { display:flex; gap:8px; padding:12px 28px 0; flex-wrap:wrap; }
.detail-actions .detail-action { margin:0; }
.citation-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.copy-citation { border:0; padding:0; color:var(--accent-dark); background:transparent; font-size:11px; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.copy-citation:hover { color:var(--ink); }
.copy-citation:disabled { opacity:.55; }
.reading-mode { width:min(860px,100%); margin:20px auto; height:auto; max-height:calc(100% - 40px); border-radius:18px; }
.reading-mode .detail-head { background:#fff; border-bottom:1px solid var(--line); }
.reading-mode .detail-head h2 { color:var(--ink); }
.reading-mode .detail-head p, .reading-mode .detail-toolbar span, .reading-mode .detail-toolbar button { color:var(--muted); }
.reading-mode .detail-actions { border-top:1px solid var(--line); padding-bottom:12px; }
.library-intro { max-width:520px; }
.library-columns { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:22px; }
.library-columns section { min-height:180px; padding:15px; border:1px solid var(--line); border-radius:13px; background:#fbfdfc; }
.library-title { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.library-title h3 { margin:0; font:700 14px Sora,sans-serif; }
.library-title span { min-width:22px; padding:2px 6px; border-radius:999px; color:#174943; background:var(--signal); font-size:11px; font-weight:800; text-align:center; }
.library-clear { border:0; color:var(--accent-dark); background:transparent; font-size:12px; font-weight:700; }
.library-record { width:100%; display:flex; align-items:center; gap:9px; padding:10px 0; border:0; border-top:1px solid #e1ece8; color:var(--ink); background:transparent; text-align:left; }
.library-record:first-of-type { border-top:0; }
.library-record .card-microbe { position:static; flex:0 0 22px; width:22px; height:22px; }
.library-record span { min-width:0; flex:1; }
.library-record strong, .library-record small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.library-record strong { font-size:12px; }
.library-record small { color:var(--muted); font-size:11px; }
.library-record b { color:var(--accent); font-size:17px; }
.library-empty { margin:14px 0 0; color:var(--muted)!important; font-size:12px!important; }
@media(max-width:640px){.library-columns{grid-template-columns:1fr}.reading-mode{width:100%;margin:0;border-radius:0;height:100%;max-height:100%}.reading-mode .detail-body{padding-bottom:40px}}
@media print { body > header, body > main, body > footer, #infoDialog, #accessDialog, #compareDialog { display:none!important; } #detailDialog { position:static; display:block!important; width:100%!important; height:auto!important; max-height:none!important; margin:0!important; border:0!important; } #detailDialog::backdrop { display:none!important; } .detail-toolbar button, .detail-actions { display:none!important; } .detail-body { padding:20px!important; } }
.compare-dialog { width:min(980px,100%); }
.comparison-table-wrap { overflow:auto; padding:28px; }
.comparison-table { width:100%; min-width:720px; border-collapse:separate; border-spacing:0; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.comparison-table th, .comparison-table td { padding:14px 16px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); text-align:left; vertical-align:top; font-size:13px; line-height:1.45; }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom:0; }
.comparison-table th:last-child, .comparison-table td:last-child { border-right:0; }
.comparison-table thead th { color:#174943; background:#edf8f5; font:700 14px/1.35 Sora,sans-serif; }
.comparison-table tbody th { width:155px; color:#52716e; background:#f8fbfa; font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.comparison-table a { display:block; color:var(--accent-dark); font-weight:700; text-decoration:none; }
.compare-footer { display:flex; justify-content:flex-end; padding:0 28px 28px; }
.info-kicker { margin-bottom:8px; color:var(--accent-dark); font-size:11px; font-weight:800; letter-spacing:.1em; }
.change-log { display:grid; gap:12px; margin-top:22px; }
.change-log article { border:1px solid var(--line); border-radius:13px; padding:17px; background:#fbfdfc; }
.change-log time { color:var(--accent-dark); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.change-log h3 { margin:6px 0 8px; font:700 16px/1.3 Sora,sans-serif; }
.change-log p, .change-log ul { margin:0; }
.change-note { margin:18px 0 0!important; padding-top:15px; border-top:1px solid var(--line); font-size:12px!important; }
.compare-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding:28px; }
.compare-grid section { border:1px solid var(--line); border-radius:14px; padding:18px; background:var(--soft); }
.compare-grid h3 { margin-top:0; }
@media(max-width:640px){.compare-grid{grid-template-columns:1fr;padding:18px}.detail-actions{padding:10px 18px 0}.detail-action{font-size:11px;padding:5px 8px}}

.search-stage { padding-top: clamp(42px, 6vw, 68px); background: linear-gradient(180deg, #edf7f3 0%, #f8fcfa 72%, #fff 100%); }
.hero-banner { min-height: 300px; margin-bottom: 0; padding: clamp(34px, 4.5vw, 58px); color: #fff; border: 0; border-radius: 28px; background: linear-gradient(126deg, #075f4a 0%, #087657 58%, #0a8060 100%); box-shadow: 0 28px 70px rgba(5,88,66,.2); }
.hero-banner::before { content: ""; position: absolute; width: 280px; height: 280px; inset: -105px -48px auto auto; border: 48px solid var(--signal); border-radius: 50%; background: transparent; opacity: .96; }
.hero-banner::after { content: ""; position: absolute; width: 112px; height: 112px; right: 118px; bottom: -56px; border: 28px solid rgba(183,231,64,.22); border-radius: 50%; }
.hero-copy { max-width: 910px; }
h1 { max-width: 780px; color: #fff; font-family: Sora, sans-serif; font-weight: 800; letter-spacing: -.06em; }
.lede { color: #d8f2e9; }
.hero-index { z-index: 1; width: 146px; height: 146px; color: var(--ink); border: 0; background: var(--signal); box-shadow: 0 16px 32px rgba(5,54,43,.22); }
.hero-index span { font-family: Sora, sans-serif; font-weight: 800; }
.hero-index i { display: none; }

.search-shell { position: relative; z-index: 3; margin: -42px 0 0 34px; border: 0; border-radius: 21px; background: #fff; box-shadow: 0 22px 55px rgba(7,59,47,.16); }
.mode-switch { background: #eaf4f0; border-bottom-color: #d3e5df; }
.mode-switch button { color: #4e6d64; border-radius: 999px; }
.mode-switch button.active { color: #17320b; background: var(--signal); box-shadow: none; }
.search-field, .last-updated { background: #fff; }
.search-field { color: var(--accent); }
.search-field input { color: var(--ink); }
.search-field input::placeholder { color: #789088; }
kbd { color: #54736a; border-color: #c8ddd6; background: #f3f8f6; }
.last-updated { color: #6c837c; }
.suggestions { border-top-color: #d3e5df; background: #fff; }
.suggestions button { color: var(--ink-2); }
.suggestions button:hover { background: #eef7f3; }
.quick-links button { color: #296251; border-color: #bdd6ce; background: rgba(255,255,255,.68); }
.quick-links button:hover { color: var(--ink); border-color: var(--accent); background: #fff; }
.database-pulse { color: #4f7066; }
.database-pulse strong { color: var(--accent-dark); font-family: Sora, sans-serif; }

.workspace { background: #fff; }
.filter-heading, .results-header h2, .card-strain strong, .empty-state h3 { font-family: Sora, sans-serif; }
.filter-heading button, .results-header p { color: var(--accent); }
.check { border-color: #9fbeb4; }
input:checked + .check { background: var(--accent); border-color: var(--accent); }
input:checked + .check::after { border-color: var(--signal); }
.scope-note { border-color: #d2e4de; background: #eef7f3; }
.legend .dot { background: var(--signal); box-shadow: 0 0 0 4px rgba(183,231,64,.18); }
.evidence-card { position: relative; overflow: hidden; border-color: #cbded8; border-radius: 16px; background: #fff; }
.evidence-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--signal); transform: scaleY(0); transform-origin: center; transition: transform .18s ease; }
.evidence-card:hover { border-color: #8fb9ab; box-shadow: var(--shadow); }
.evidence-card:hover::before { transform: scaleY(1); }
.arrow { color: var(--accent); font-weight: 700; }
.condition-card { overflow:hidden; border:1px solid #cbded8; border-radius:16px; background:#fff; transition:border-color .18s ease, box-shadow .18s ease; }
.condition-card:hover, .condition-card.open { border-color:#8fb9ab; box-shadow:var(--shadow); }
.condition-card-trigger { width:100%; display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,.48fr); gap:24px; align-items:center; border:0; padding:22px 26px; text-align:left; color:var(--ink); background:#fff; }
.condition-card-trigger small { display:block; color:#5f8077; font-size:11px; font-weight:800; letter-spacing:.1em; }
.condition-card-trigger strong { display:block; margin-top:4px; font:700 20px/1.22 Sora,sans-serif; letter-spacing:-.035em; }
.condition-card-trigger em { display:block; margin-top:7px; color:var(--muted); font-size:13px; font-style:normal; }
.condition-meta { display:flex; align-items:center; justify-content:flex-end; gap:13px; color:var(--muted); font-size:13px; text-align:right; }
.condition-meta b { width:29px; height:29px; display:grid; place-items:center; flex:0 0 auto; border:1px solid #bddbd2; border-radius:50%; color:var(--accent); font-size:20px; font-weight:500; }
.condition-strains { padding:0 18px 18px; border-top:1px solid #d9e9e4; background:#f7fbf9; }
.condition-strain { width:100%; display:flex; align-items:center; gap:12px; border:0; border-bottom:1px solid #dceae6; padding:14px 8px; color:var(--ink); text-align:left; background:transparent; }
.condition-strain:last-child { border-bottom:0; }
.condition-strain svg { width:26px; height:26px; flex:0 0 auto; }
.condition-strain span { min-width:0; flex:1; }
.condition-strain strong { display:block; font:650 15px/1.25 Sora,sans-serif; }
.condition-strain small { display:block; margin-top:3px; color:var(--muted); font-size:12px; }
.condition-strain b { color:var(--accent); font-size:18px; }
@media(max-width:620px){.condition-card-trigger{grid-template-columns:1fr;gap:10px;padding:19px}.condition-card-trigger strong{font-size:18px}.condition-meta{justify-content:space-between;text-align:left}.condition-strains{padding:0 13px 13px}.condition-strain{padding:13px 5px}}
.empty-state button, .primary-action { background: var(--accent); }
.empty-state button:hover, .primary-action:hover { background: #066d50; }

.detail-head { color: #fff; background: linear-gradient(135deg, #075f4a, #0a8060); border-bottom: 0; }
.detail-toolbar span, .detail-head p { color: #d3ede4; }
.detail-toolbar button { color: #fff; }
.clinical-callout { border-left-color: var(--signal); }
.effect-panel { border-color: #bedbd2; background: #bedbd2; }
.effect-panel div { background: #edf8f4; }
.detail-stat { border: 1px solid #d8e8e3; background: #f2f8f6; }
.editorial-section { border-color: #bddbd1; background: #edf8f4; }
.editorial-heading h3 { color: #115743; font-family: Sora, sans-serif; }
.study-table a, .source em, .functional-food-card a, .food-grid a { color: var(--accent); }
.source b { color: var(--ink); background: var(--signal); }

.functional-food-card { border-color: #c8ddd6; border-radius: 17px; }
.functional-food-card:hover { border-color: #91bcad; box-shadow: var(--shadow); }
.functional-food-card h3, .food-grid h3, .food-rule strong, .food-checklist h3 { font-family: Sora, sans-serif; }
.food-benefit { background: #e7f5ef; }
.food-benefit strong { color: #0b5d46; }

.access-dialog { border-radius: 24px; }
.access-aside { background: linear-gradient(145deg, #075f4a, #0a8060); }
.access-aside .brand-mark i { background: var(--signal); }
.access-kicker { color: var(--signal); }
.access-kicker::before { background: var(--signal); box-shadow: 0 0 0 5px rgba(183,231,64,.14); }
.access-aside h2, .access-main h3, .access-choice h4, .account-panel h2 { font-family: Sora, sans-serif; }
.access-assurances li::before { color: var(--signal); }
.access-tag { color: #315000; background: var(--signal); }
.trial-choice { border-color: #badbd0; background: #eaf6f1; }
.trial-button, .preview-button { color: #075d45; border-color: #087c5b; }
.trial-button:hover, .preview-button:hover { color: var(--ink); border-color: var(--signal); background: var(--signal); }
.auth-main input:focus, .auth-main select:focus, .code-row input:focus { outline-color: rgba(183,231,64,.38); border-color: var(--accent); }
footer { background: #f3f9f6; border-top-color: #cbded8; }

@media (max-width: 620px) {
  .hero-banner { min-height: 0; padding: 30px 25px 34px; border-radius: 22px; }
  .hero-banner::before { width: 145px; height: 145px; right: -90px; top: -82px; border-width: 25px; opacity: .6; }
  .hero-banner::after { display: none; }
  .search-shell { margin: 18px 0 0; border-radius: 17px; }
  h1 { font-size: 37px; line-height: 1.04; }
}

/* Paleta v0.12 · azul profundo + verde oliva */
:root {
  --ink: #08114E;
  --ink-2: #20285F;
  --muted: #5B6388;
  --line: #D9DDEA;
  --soft: #F4F5E8;
  --paper: #FFFFFF;
  --night: #08114E;
  --night-2: #141E67;
  --accent: #08114E;
  --accent-dark: #050A33;
  --signal: #BCC776;
  --amber: #A16F25;
  --rose: #A65364;
  --shadow: 0 16px 38px rgba(8, 17, 78, .12);
}

::selection { color: #08114E; background: #BCC776; }
body { color: #08114E; background: #FAFAF7; }
.auth-pending body { background: #F5F6ED; }

.topbar { background: rgba(255,255,255,.97); border-bottom-color: #D9DDEA; color: #08114E; }
.brand small { color: #515A82; border-color: #D9DDEA; background: #F6F7EF; }
.brand-mark i { background: #08114E; }
.access-button, .primary-cta, .primary-action, .empty-state button { background: #08114E; box-shadow: 0 9px 22px rgba(8,17,78,.18); }
.access-button:hover, .primary-cta:hover, .primary-action:hover, .empty-state button:hover { background: #192572; }
.text-button { color: #515A82; }
.text-button:hover { color: #08114E; }
.language-button, .icon-button { color: #08114E; border-color: #CCD1E1; background: #fff; }
.language-button:hover, .icon-button:hover { color: #08114E; background: #F4F5E8; }

.search-stage { background: linear-gradient(180deg, #F4F5E8 0%, #FAFAF7 70%, #FFF 100%); }
.hero-banner { color: #fff; border: 0; background: linear-gradient(128deg, #08114E 0%, #111C63 61%, #1B2877 100%); box-shadow: 0 28px 70px rgba(8,17,78,.24); }
.hero-banner::before { border-color: #BCC776; }
.hero-banner::after { border-color: rgba(188,199,118,.27); }
h1 { color: #fff; }
.lede { color: #EDF0CF; }
.hero-index { color: #08114E; background: #BCC776; box-shadow: 0 16px 32px rgba(3,8,41,.32); }

.search-shell { background: #fff; border-color: #D9DDEA; box-shadow: 0 22px 55px rgba(8,17,78,.16); }
.mode-switch { background: #F1F2E9; border-bottom-color: #DCE0E6; }
.mode-switch button { color: #4F587D; }
.mode-switch button.active { color: #08114E; background: #BCC776; }
.search-field { color: #08114E; background: #fff; }
.search-field input { color: #08114E; }
.search-field input::placeholder { color: #7A829F; }
kbd { color: #515A82; border-color: #D3D8E5; background: #F6F7EF; }
.last-updated { color: #5B6388; background: #fff; }
.suggestions { border-top-color: #DCE0E6; background: #fff; }
.suggestions button { color: #20285F; }
.suggestions button:hover { background: #F4F5E8; }
.quick-links span, .database-pulse { color: #5B6388; }
.quick-links button { color: #39436D; border-color: #CCD1E1; background: rgba(255,255,255,.75); }
.quick-links button:hover { color: #08114E; border-color: #08114E; background: #fff; }
.database-pulse strong { color: #08114E; }

.workspace { background: #fff; }
.filters { border-right-color: #D9DDEA; }
.filter-heading button, .results-header p { color: #08114E; }
fieldset label { color: #20285F; }
.check { border-color: #ABB2C8; }
input:checked + .check { background: #08114E; border-color: #08114E; }
input:checked + .check::after { border-color: #BCC776; }
.scope-note { border-color: #D9DDEA; background: #F5F6ED; }
.translation-note { border-color: #D9DDEA; color: #38416A; background: #F6F7EF; }
.legend .dot { background: #BCC776; box-shadow: 0 0 0 4px rgba(188,199,118,.25); }

.evidence-card, .condition-card, .functional-food-card { border-color: #D7DBE8; background: #fff; }
.evidence-card::before { background: #BCC776; }
.evidence-card:hover, .condition-card:hover, .condition-card.open, .functional-food-card:hover { border-color: #98A260; box-shadow: var(--shadow); }
.arrow, .condition-strain b { color: #08114E; }
.card-microbe, .microbe-lacto { color: #08114E; }
.microbe-akk { color: #738039; }
.microbe-yeast { color: #91692A; }
.microbe-bifido { color: #5662A3; }
.microbe-bacillus { color: #A35A50; }
.microbe-strep { color: #365E9B; }
.grade.moderada { color: #08114E; background: #F4F5E8; border-color: #BCC776; }
.status.considerar { color: #08114E; background: #F4F5E8; }
.direction-badge { color: #515A82; border-color: #D9DDEA; background: #F8F8F4; }
.condition-card-trigger { color: #08114E; background: #fff; }
.condition-card-trigger small { color: #586289; }
.condition-meta { color: #5B6388; }
.condition-meta b { border-color: #CCD1E1; color: #08114E; }
.condition-strains { border-top-color: #DCE0E6; background: #F8F8F4; }
.condition-strain { border-bottom-color: #E2E5ED; color: #08114E; }
.compare-workspace { border-color: #D7DBE8; box-shadow: 0 12px 35px rgba(8,17,78,.08); }
.compare-workspace h3, .compare-selects input, .compare-picker select { color: #08114E; }
.compare-workspace p, .compare-context small, .compare-context span, .compare-results span, .compare-results p { color: #5B6388; }
.compare-context { border-color: #D9DDEA; color: #08114E; background: #F5F6ED; }
.compare-selects input, .compare-picker select { border-color: #C9CFE0; background: #FBFBF8; }
.compare-selects input:focus, .compare-picker select:focus { outline-color: rgba(188,199,118,.55); border-color: #08114E; background: #fff; }
.compare-clear { color: #515A82; background: #EEF0E6; }
.compare-results { border-color: #C9CFE0; box-shadow: 0 16px 35px rgba(8,17,78,.16); }
.compare-results button:hover, .compare-results button:focus { background: #F4F5E8; }
.compare-hint { color: #87543A !important; }

.detail-head { color: #fff; background: linear-gradient(135deg, #08114E, #16236E); }
.detail-toolbar span, .detail-head p { color: #DEE3B7; }
.detail-toolbar button { color: #fff; }
.detail-head .status { color: #08114E; background: #BCC776; box-shadow: none; }
.detail-head .grade { color: #fff; border-color: rgba(255,255,255,.44); }
.detail-action { color: #08114E; border-color: #CCD1E1; background: #fff; }
.detail-action:hover { color: #08114E; background: #F4F5E8; }
.reading-mode .detail-head { background: #fff; border-bottom-color: #D9DDEA; }
.clinical-callout { border-left-color: #BCC776; }
.effect-panel { border-color: #D9DDEA; background: #D9DDEA; }
.effect-panel div, .detail-stat { background: #F6F7EF; }
.detail-stat { border-color: #D9DDEA; }
.editorial-section { border-color: #D9DDEA; background: #F6F7EF; }
.editorial-heading h3, .food-benefit strong { color: #08114E; }
.study-table a, .source em, .functional-food-card a, .food-grid a, .micrograph-panel a { color: #08114E; }
.source b { color: #08114E; background: #BCC776; }
.micrograph-panel { border-color: #D9DDEA; background: #F6F7EF; }
.micrograph-panel img { background: #E3E6D4; }
.micrograph-panel figcaption > span, .micrograph-panel small, .micrograph-panel p { color: #5B6388; }
.micrograph-panel strong { color: #08114E; }

.food-card-type { color: #4E5880; }
.food-benefit { background: #F1F2E9; }
.functional-food-card dl div { background: #F6F7EF; }
.functional-food-card .food-note { color: #5B6388; }
.food-reported-result p { color: #20285F; }

.access-aside { background: linear-gradient(145deg, #08114E, #182674); }
.access-aside .brand-mark i { background: #BCC776; }
.access-kicker, .access-assurances li::before { color: #BCC776; }
.access-kicker::before { background: #BCC776; box-shadow: 0 0 0 5px rgba(188,199,118,.17); }
.access-tag { color: #08114E; background: #BCC776; }
.trial-choice { border-color: #D9DDEA; background: #F5F6ED; }
.trial-button, .preview-button { color: #08114E; border-color: #08114E; }
.trial-button:hover, .preview-button:hover { color: #08114E; border-color: #BCC776; background: #BCC776; }
.auth-main input:focus, .auth-main select:focus, .code-row input:focus { outline-color: rgba(188,199,118,.52); border-color: #08114E; }

.comparison-table { border-color: #D9DDEA; }
.comparison-table th, .comparison-table td { border-right-color: #D9DDEA; border-bottom-color: #D9DDEA; }
.comparison-table thead th { color: #08114E; background: #F1F2E9; }
.comparison-table tbody th { color: #515A82; background: #F8F8F4; }
.comparison-table a, .info-kicker, .change-log time, .library-clear, .copy-citation { color: #08114E; }
.library-columns section, .change-log article { border-color: #D9DDEA; background: #FBFBF8; }
.library-title span { color: #08114E; background: #BCC776; }
.library-record { color: #08114E; border-top-color: #E2E5ED; }
.library-record b { color: #08114E; }
footer { background: #F6F7EF; border-top-color: #D9DDEA; }

@media (max-width: 640px) {
  .compare-results { box-shadow: 0 -14px 38px rgba(8,17,78,.18); }
}

/* Layout v0.13 · ficha editorial en escritorio, acceso directo en móvil */
.mobile-menu-button, .mobile-menu { display: none; }

@media (min-width: 901px) {
  #detailDialog.detail-dialog {
    width: min(1180px, calc(100vw - 72px));
    height: min(92vh, 980px);
    max-height: 92vh;
    margin: auto;
    border-radius: 24px;
    overflow: auto;
  }
  #detailDialog .detail-head { padding: 30px 42px 28px; }
  #detailDialog .detail-toolbar { margin-bottom: 15px; }
  #detailDialog .detail-actions { padding: 0; margin: 17px 0 21px; }
  #detailDialog .detail-action { padding: 7px 11px; }
  #detailDialog .detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    grid-template-areas:
      "callout micro"
      "effects snapshot"
      "studies regimen"
      "precautions update"
      "adverse .";
    column-gap: 34px;
    row-gap: 22px;
    align-items: start;
    padding: 34px 42px 46px;
  }
  #detailDialog .clinical-callout { grid-area: callout; margin: 0; }
  #detailDialog .effect-panel { grid-area: effects; margin: 0; }
  #detailDialog .micrograph-panel {
    grid-area: micro;
    grid-template-columns: 1fr;
    margin: 0;
    align-self: start;
    position: sticky;
    top: 18px;
  }
  #detailDialog .micrograph-panel img { height: 182px; }
  #detailDialog .clinical-summary { grid-area: snapshot; margin: 0; }
  #detailDialog .clinical-summary .summary-heading p { display: none; }
  #detailDialog .clinical-summary .detail-grid { grid-template-columns: 1fr; gap: 9px; }
  #detailDialog .primary-grid .detail-stat:first-child { grid-column: auto; }
  #detailDialog .regimen-section { grid-area: regimen; padding-top: 0; }
  #detailDialog .studies-section { grid-area: studies; padding-top: 0; }
  #detailDialog .precautions-section { grid-area: precautions; }
  #detailDialog .adverse-section { grid-area: adverse; }
  #detailDialog .record-review-date { grid-area: update; margin: 0; align-self: start; }
  #detailDialog .detail-section { margin: 0; }
  #detailDialog.reading-mode {
    width: min(860px, calc(100vw - 40px));
    height: auto;
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    border-radius: 18px;
  }
  #detailDialog.reading-mode .detail-body { display: block; padding: 30px 40px 50px; }
  #detailDialog.reading-mode .micrograph-panel { position: static; grid-template-columns: 172px minmax(0,1fr); margin-bottom: 24px; }
  #detailDialog.reading-mode .micrograph-panel img { height: 172px; }
  #detailDialog.reading-mode .clinical-summary,
  #detailDialog.reading-mode .detail-section,
  #detailDialog.reading-mode .effect-panel,
  #detailDialog.reading-mode .clinical-callout { margin-block: initial; }
}

@media (max-width: 900px) {
  #detailDialog.detail-dialog { margin: 0 0 0 auto; width: min(680px, 100%); height: 100%; max-height: 100%; border-radius: 0; }
}

@media (max-width: 720px) {
  .topbar { position: relative; height: 66px; min-width: 0; padding-inline: 14px; gap: 9px; overflow: visible; }
  .brand { min-width: 0; flex: 1 1 auto; gap: 8px; font-size: 22px; white-space: nowrap; }
  .brand > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 25px; flex: 0 0 25px; }
  .top-actions { flex: 0 0 auto; gap: 0; }
  .top-actions .text-button, .top-actions .icon-button, .top-actions .language-button { display: none; }
  .access-button { min-height: 40px; padding: 8px 12px; white-space: nowrap; }
  .mobile-menu-button { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; border: 1px solid #CCD1E1; border-radius: 11px; color: #08114E; background: #fff; font-size: 16px; font-weight: 800; letter-spacing: 1px; }
  .mobile-menu { position: absolute; z-index: 30; top: calc(100% + 9px); right: 14px; width: min(250px, calc(100vw - 28px)); overflow: hidden; border: 1px solid #D9DDEA; border-radius: 14px; background: #fff; box-shadow: 0 18px 38px rgba(8,17,78,.18); }
  .mobile-menu:not([hidden]) { display: grid; }
  .mobile-menu button { min-height: 47px; border: 0; border-bottom: 1px solid #E4E6EE; padding: 0 16px; color: #08114E; background: #fff; font-weight: 700; text-align: left; }
  .mobile-menu button:last-child { border-bottom: 0; }
  .mobile-menu button:active { background: #F4F5E8; }

  .search-stage { min-height: 0; padding-top: 22px; padding-bottom: 30px; }
  .hero-banner { min-height: 0; grid-template-columns: 1fr; gap: 0; padding: 28px 24px 30px; border-radius: 22px; }
  .hero-banner::before { width: 135px; height: 135px; right: -80px; top: -78px; border-width: 24px; opacity: .55; }
  .hero-banner::after, .hero-index { display: none; }
  h1 { max-width: none; margin-bottom: 9px; font-size: clamp(34px, 10vw, 43px); line-height: 1; }
  .lede { max-width: 310px; font-size: 16px; line-height: 1.42; }
  .search-shell { margin: 15px 0 0; border-radius: 17px; }
  .mode-switch { height: 49px; padding: 5px 7px; gap: 4px; scrollbar-width: none; }
  .mode-switch::-webkit-scrollbar { display: none; }
  .mode-switch button { padding: 8px 11px; font-size: 12px; }
  .search-field { height: 59px; }
  .last-updated { padding-bottom: 12px; font-size: 11px; }
  .quick-links, .database-pulse { display: none; }
}

/* Actualización documental compacta: fecha por ficha y cambios del corte vigente. */
.record-review-date {
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.record-review-date time { color: var(--ink-2); }
.change-log { margin-top: 18px; }
.change-log article { padding: 19px 20px; }
.change-log ul { padding-left: 19px; }
.change-log li { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.change-log li + li { margin-top: 11px; }
