/* Scientific guide: page styles stay separate from the shared header and footer. */
.science-page {
    --science-ink: #18382a;
    --science-muted: #61766a;
    --science-green: #006948;
    --science-border: #dfe9e3;
    padding: 0 24px 56px;
    /* Sin fondo propio: se ve el fondo general de institucional-ubo.css. */
    color: var(--science-ink);
    font-family: 'Poppins', system-ui, sans-serif;
}
.science-shell { width: min(1180px, 100%); margin: 0 auto; }
.science-hero { max-width: 780px; margin: 0 auto; padding: 48px 0 38px; text-align: center; }
.science-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid #cce5d7; border-radius: 30px; background: #eff9f3; color: var(--science-green); font-size: .65rem; font-weight: 600; }
.science-eyebrow .academic-icon { width: 17px; height: 17px; }
.science-hero h1 { margin: 20px 0 12px; color: #172c22; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; letter-spacing: -.045em; }
.science-hero h1 > span { color: var(--science-green); }
.science-subtitle { margin: 0; color: #356c50; font-size: 1rem; font-weight: 500; line-height: 1.7; }
.science-intro { max-width: 650px; margin: 14px auto 0; color: var(--science-muted); font-size: .85rem; line-height: 1.85; }
.science-jump-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.science-jump-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border: 1px solid #dce7e0; border-radius: 8px; background: #ffffffb3; color: #526e5e; font-size: .72rem; font-weight: 500; text-decoration: none; }
.science-jump-nav a:hover { border-color: #a7cdb6; background: #eaf5ee; color: var(--science-green); }
.science-section, .science-panel { scroll-margin-top: 24px; }
.science-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--science-border); }
.science-section-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.science-section-title > div { min-width: 0; }
.science-section-heading h2 { margin: 0; color: var(--science-ink); font-size: 1.1rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.5; }
.science-section-heading p { margin: 5px 0 0; color: var(--science-muted); font-size: .75rem; line-height: 1.7; }
.science-section-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #006948; border-radius: 11px; background: var(--science-green); color: #fff; }
.science-section-icon .academic-icon { width: 20px; height: 20px; }
.science-section-icon.is-soft { border-color: #d5e8dd; background: #e9f6ee; color: #267b50; }
.science-count { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #e1e9e4; border-radius: 7px; background: #f1f5f3; color: #73887b; font-size: .65rem; line-height: 1.5; white-space: nowrap; }
.science-model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.science-model { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 27px; border: 1px solid var(--science-border); border-radius: 17px; background: #fff; box-shadow: 0 5px 20px #193f2a04; }
.science-model::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #20a064, #0b8979); }
.science-model-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.science-model-heading h3 { display: inline; margin: 0; color: #193e2c; font: 500 1.35rem/1.45 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.science-model-heading h3 > span { display: inline-block; padding: 2px 6px; margin-left: 4px; border: 1px solid #d4eadc; border-radius: 5px; background: #f1faf5; color: #3f8f64; font: 500 .75rem/1.4 'Poppins', system-ui, sans-serif; letter-spacing: 0; vertical-align: middle; }
.science-category { flex: 0 0 auto; padding: 5px 8px; border-radius: 6px; background: #f0f4f9; color: #667990; font-size: .61rem; font-weight: 500; line-height: 1.5; }
.science-model-description { margin: 16px 0 20px; color: var(--science-muted); font-size: .84rem; line-height: 1.85; }
.science-equation { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 128px; margin: 0 0 18px; padding: 18px 14px; border: 1px solid #e0e7f0; border-radius: 11px; background: #f7f9fd; box-shadow: inset 0 1px 3px #21446b03; }
.science-equation figcaption { color: #7a90ac; font-size: .59rem; letter-spacing: .09em; line-height: 1.6; text-align: center; text-transform: uppercase; }
.science-page math { max-width: 100%; margin: 0; color: #1b3044; font-family: 'Cambria Math', 'STIX Two Math', math, serif; font-size: clamp(1.25rem, 2.2vw, 1.8rem); }
.science-variables { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; padding: 16px; border: 1px solid #edf1f6; border-radius: 9px; background: #fafbfe; }
.science-variables > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: start; }
.science-variables dt { color: #3c7e56; font-size: .78rem; font-weight: 500; line-height: 1.6; }
.science-variables dd { margin: 0; color: #718175; font-size: .74rem; line-height: 1.7; }
.science-formula-detail { margin: -2px 0 20px; padding: 12px 14px; border: 1px solid #e1e9e5; border-radius: 8px; color: #547160; background: #fcfdfc; }
.science-formula-detail > summary { font-size: .72rem; font-weight: 500; line-height: 1.7; cursor: pointer; }
.science-formula-detail > div { padding-top: 16px; }
.science-formula-detail math { font-size: 1.2rem; }
.science-formula-detail p, .science-formula-detail a { font-size: .72rem; line-height: 1.8; }
.science-formula-detail p { margin: 16px 0 12px; color: var(--science-muted); }
.science-formula-detail a { color: var(--science-green); text-underline-offset: 3px; }
.science-interpretation { padding: 16px 18px; margin-top: auto; border-left: 3px solid #2e9a66; border-radius: 0 9px 9px 0; background: #f0f9f4; }
.science-interpretation h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; color: #2b714c; font-size: .75rem; font-weight: 600; line-height: 1.6; }
.science-interpretation h4 > span { flex: 0 0 auto; width: 7px; height: 7px; border: 1px solid #3b9261; border-radius: 50%; }
.science-interpretation p { margin: 0; color: #587462; font-size: .76rem; line-height: 1.8; }
.science-interpretation p.science-note { margin-top: 10px; color: #72897b; font-size: .69rem; line-height: 1.75; }
.science-model-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; min-height: 44px; padding-top: 16px; margin-top: 6px; color: #267750; font-size: .72rem; font-weight: 600; text-decoration: none; }
.science-model-link .academic-icon { width: 17px; height: 17px; }
.science-model-link:hover { color: #004f36; text-decoration: underline; text-underline-offset: 4px; }
.science-panel { margin-top: 30px; padding: 28px; border: 1px solid var(--science-border); border-radius: 17px; background: #fff; box-shadow: 0 5px 20px #193f2a03; }
.science-glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.science-glossary > div { min-width: 0; padding: 17px; border: 1px solid #e4eaf1; border-radius: 10px; background: #fafcfe; }
.science-glossary dt { display: flex; align-items: baseline; gap: 7px; margin-bottom: 9px; color: #355442; font-size: .78rem; font-weight: 600; line-height: 1.6; }
.science-glossary dt::before { content: ''; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: #4c9c6c; }
.science-glossary dd { margin: 0; color: var(--science-muted); font-size: .73rem; line-height: 1.85; }
.science-references { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.science-references li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 17px; border: 1px solid #e7edf1; border-radius: 10px; background: #fbfcfd; }
.science-reference-number { flex: 0 0 auto; padding-top: 2px; color: #50906b; font-size: .68rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.science-references li > div { min-width: 0; }
.science-references p { margin: 0 0 10px; color: #687970; font-size: .73rem; line-height: 1.85; overflow-wrap: anywhere; }
.science-references strong { color: #344e3e; font-weight: 500; }
.science-references cite { font-style: italic; }
.science-reference-topic { display: inline-block; padding: 3px 6px; border: 1px solid #deeee3; border-radius: 4px; background: #eff9f2; color: #5b8a6b; font-size: .61rem; line-height: 1.5; }
.science-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding-top: 36px; }
.science-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 18px; border: 1px solid #006948; border-radius: 10px; background: var(--science-green); color: #fff; box-shadow: 0 3px 10px #00694812; font-size: .77rem; font-weight: 600; line-height: 1.6; text-decoration: none; transition: background .18s, border-color .18s; }
.science-button:hover { background: #00543a; }
.science-button.is-secondary { border-color: #dae6df; background: #fff; color: #536f5f; box-shadow: none; }
.science-button.is-secondary:hover { border-color: #a5cab4; background: #f0f7f3; }
.science-button .academic-icon { width: 18px; height: 18px; }
.science-up-arrow { transform: rotate(-90deg); }
.science-page a:focus-visible, .science-formula-detail > summary:focus-visible { outline: 3px solid #5c9be6; outline-offset: 4px; }
.science-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 980px) {
    .science-page { padding-inline: 20px; }
    .science-model { padding: 22px; }
    .science-model-grid { gap: 18px; }
    .science-panel { padding: 24px; }
    .science-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .science-model-heading h3 { font-size: 1.25rem; }
}
@media (max-width: 700px) {
    .science-page { padding: 0 16px 40px; }
    .science-hero { padding: 32px 0; }
    .science-hero h1 { font-size: clamp(1.85rem, 6.5vw, 2.5rem); }
    .science-subtitle { font-size: .87rem; }
    .science-intro { font-size: .8rem; }
    .science-jump-nav { gap: 7px; margin-top: 20px; }
    .science-jump-nav a { padding: 8px 10px; font-size: .67rem; }
    .science-section-heading { gap: 12px; align-items: flex-start; margin-bottom: 18px; padding-bottom: 18px; }
    .science-section-heading h2 { font-size: 1rem; }
    .science-section-heading p { font-size: .71rem; }
    .science-section-title { gap: 10px; }
    .science-count { display: none; }
    .science-model-grid, .science-references { grid-template-columns: minmax(0, 1fr); }
    .science-model { padding: 22px; }
    .science-panel { margin-top: 24px; padding: 22px; }
    .science-equation { min-height: 120px; }
    .science-page math { font-size: 1.6rem; }
    .science-formula-detail math { font-size: 1.15rem; }
}
@media (max-width: 460px) {
    .science-model, .science-panel { padding: 18px; border-radius: 14px; }
    .science-model-heading h3 { font-size: 1.2rem; }
    .science-model-description { font-size: .8rem; }
    .science-variables { padding: 14px; }
    .science-equation { padding-inline: 10px; }
    .science-page math { font-size: 1.35rem; }
    .science-formula-detail math { font-size: 1rem; }
    .science-interpretation { padding: 15px; }
    .science-glossary { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .science-section-icon { width: 34px; height: 34px; border-radius: 9px; }
    .science-references li { padding: 14px; gap: 9px; }
    .science-actions { flex-direction: column; padding-top: 28px; }
    .science-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .science-button { transition: none; }
    html:has(.science-page) { scroll-behavior: auto; }
}
