/* Project overview. All page styles are scoped to preserve the shared portal. */
.project-page {
    --project-ink: #172d25;
    --project-muted: #607468;
    --project-green: #006948;
    --project-border: #e0e9e3;
    padding: 0 24px 64px;
    /* Sin fondo propio: se ve el fondo general de institucional-ubo.css. */
    color: var(--project-ink);
    font-family: 'Poppins', system-ui, sans-serif;
}
.project-shell { width: min(1060px, 100%); margin: 0 auto; }
.project-hero { max-width: 760px; margin: 0 auto; padding: 52px 0 36px; text-align: center; }
.project-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid #cce5d7; border-radius: 30px; background: #f1faf5; color: var(--project-green); font-size: .68rem; font-weight: 600; }
.project-eyebrow .academic-icon { width: 17px; height: 17px; }
.project-hero h1 { margin: 20px 0 14px; color: #14271f; font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 700; line-height: 1.2; letter-spacing: -.045em; }
.project-hero h1 > span { color: var(--project-green); }
.project-hero > p { max-width: 650px; margin: 0 auto; color: #52695d; font-size: 1rem; line-height: 1.8; }
.project-overview { position: relative; overflow: hidden; border: 1px solid var(--project-border); border-radius: 24px; background: #fff; box-shadow: 0 14px 40px #173d2a08, 0 2px 6px #173d2a03; }
.project-overview::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #19a45e, #00a08c 58%, #1769a3); }
.project-content { display: flex; flex-direction: column; gap: 28px; padding: 38px; }
.project-page h2, .project-page h3 { color: var(--project-ink); }
.project-page h2 { margin: 8px 0 14px; font-size: 1.18rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.5; }
.project-page h3 { margin: 16px 0 12px; font-size: 1rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.5; }
.project-page p { color: var(--project-muted); font-size: .88rem; line-height: 1.85; }
.project-page strong { color: #25553d; font-weight: 600; }
.project-label { color: #537766; font-size: .66rem; font-weight: 600; letter-spacing: .09em; line-height: 1.6; text-transform: uppercase; }
.project-icon-tile { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; color: var(--project-green); background: #e8f3ec; }
.project-icon-tile .academic-icon { width: 21px; height: 21px; }
.project-icon-tile.is-primary { width: 48px; height: 48px; border-radius: 13px; background: var(--project-green); color: #fff; box-shadow: 0 5px 12px #00694815; }
.project-icon-tile.is-primary .academic-icon { width: 26px; height: 26px; }
.project-icon-tile.is-blue { background: #e2edfc; color: #2563a3; }
.project-icon-tile.is-teal { background: #dcf4ed; color: #147f70; }
.project-intro { display: flex; align-items: flex-start; gap: 20px; padding: 26px; border: 1px solid #d6ebdf; border-radius: 16px; background: linear-gradient(125deg, #f0faf4, #f8fcf9); }
.project-intro > div { min-width: 0; }
.project-intro h2 { margin-top: 5px; }
.project-intro p { margin: 0; }
.project-intro p + p { margin-top: 12px; }
.project-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-feature { min-width: 0; padding: 26px; border: 1px solid #e3eaf2; border-radius: 16px; background: #f8faff; }
.project-feature > p { margin: 0; }
.project-metrics { padding: 24px 0; border-top: 1px solid #edf2ee; border-bottom: 1px solid #edf2ee; }
.project-metrics h3.project-label { display: flex; align-items: center; gap: 9px; margin: 0; color: #537766; font-size: .68rem; letter-spacing: .075em; }
.project-metrics .academic-icon { width: 17px; height: 17px; color: #358765; }
.project-metrics > p { margin: 12px 0 16px; font-size: .83rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.project-tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border: 1px solid #cce8d7; border-radius: 8px; background: #eff9f3; color: #256343; font-size: .72rem; font-weight: 500; line-height: 1.6; text-decoration: none; transition: background .18s, border-color .18s; }
.project-tags li:nth-child(2) a, .project-tags li:nth-child(3) a { border-color: #cce8e0; background: #eef9f6; color: #237462; }
.project-tags li:nth-child(4) a, .project-tags li:nth-child(5) a { border-color: #d9e6f4; background: #f1f6fd; color: #325e88; }
.project-tags a:hover { border-color: #87baa0; background: #e3f3e9; }
.project-monitoring { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; overflow: hidden; padding: 26px; border: 1px solid #0f5a36; border-radius: 16px; background: linear-gradient(135deg, #104e30, #176941); color: #fff; }
.project-monitoring::after { content: ''; position: absolute; right: -48px; bottom: -76px; width: 220px; height: 220px; border: 32px solid #ffffff06; border-radius: 50%; pointer-events: none; }
.project-monitoring > * { position: relative; z-index: 1; }
.project-monitoring .project-icon-tile { border: 1px solid #ffffff20; background: #ffffff12; color: #d2f4df; }
.project-monitoring h3 { color: #fff; }
.project-monitoring p { margin: 0 0 24px; color: #d4e9dd; }
.project-monitoring strong { color: #fff; }
.project-monitoring > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: auto; color: #fff; font-size: .77rem; font-weight: 600; text-decoration: none; }
.project-monitoring > a:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-monitoring > a .academic-icon { width: 18px; height: 18px; }
.project-skills { display: flex; flex-direction: column; align-items: flex-start; }
.project-skills h3 { margin-top: 12px; }
.project-skills p.project-skill-note { margin-top: 20px; padding: 14px 16px; border: 1px solid #d5eadd; border-radius: 10px; background: #f0f9f3; color: #35624b; font-size: .77rem; line-height: 1.75; }
.project-learning { display: flex; align-items: flex-start; gap: 18px; padding: 26px; border: 1px solid #d4e9e1; border-radius: 16px; background: linear-gradient(120deg, #f1faf6, #f7fafc); }
.project-learning > div { min-width: 0; }
.project-learning h3 { margin: 0 0 12px; }
.project-learning p { margin: 0; }
.project-learning p + p { margin-top: 12px; }
.project-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 38px; border-top: 1px solid #e4ebe8; background: #f7f9fc; }
.project-next > div { min-width: 0; }
.project-next p { margin: 5px 0 0; font-size: .8rem; }
.project-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex: 0 0 auto; min-height: 46px; padding: 13px 19px; border: 1px solid #006948; border-radius: 10px; background: var(--project-green); color: #fff; font-size: .77rem; font-weight: 600; text-decoration: none; box-shadow: 0 4px 10px #00694810; transition: background .18s, box-shadow .18s; }
.project-button:hover { background: #00543a; box-shadow: 0 6px 16px #00694820; }
.project-button .academic-icon { width: 18px; height: 18px; }
.project-author { display: flex; align-items: center; gap: 22px; width: min(900px, 100%); margin: 32px auto 0; padding: 28px; border: 1px solid var(--project-border); border-radius: 18px; background: #fff; box-shadow: 0 4px 18px #173d2a04; }
.project-author-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 68px; height: 68px; border: 1px solid #c4dfcf; border-radius: 17px; background: linear-gradient(135deg, #ebf7ef, #d5ecdf); color: #186340; font-size: 1.6rem; font-weight: 600; letter-spacing: -.04em; }
.project-author-info { flex: 1; min-width: 0; }
.project-author-info .project-label { color: var(--project-green); }
.project-author-info h2 { margin: 4px 0 5px; font-size: 1.1rem; }
.project-author-info p { margin: 0 0 12px; font-size: .76rem; }
.project-author-info address { display: flex; flex-wrap: wrap; gap: 8px; font-style: normal; }
.project-orcid { display: inline-grid; place-items: center; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: #a6ce39; color: #fff; font-size: .5rem; font-weight: 700; line-height: 1; }
.project-author-info address a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%; padding: 7px 10px; border: 1px solid #e0e9e4; border-radius: 7px; background: #f7faf8; color: #31644b; font-size: .75rem; text-decoration: none; overflow-wrap: anywhere; }
.project-author-info address a:hover { background: #edf6f0; text-decoration: underline; text-underline-offset: 3px; }
.project-author-info address .academic-icon { width: 16px; height: 16px; }
.project-author-mark { display: flex; align-items: center; gap: 10px; align-self: flex-start; padding: 7px 0 7px 20px; border-left: 1px solid #e5ece7; color: #789183; font-size: .66rem; line-height: 1.7; }
.project-author-mark .academic-icon { width: 23px; height: 23px; }
.project-page a:focus-visible { outline: 3px solid #5c9be6; outline-offset: 4px; }

@media (max-width: 900px) {
    .project-page { padding-inline: 20px; }
    .project-content { padding: 28px; gap: 22px; }
    .project-next { padding: 24px 28px; flex-wrap: wrap; }
    .project-author-mark { display: none; }
}
@media (max-width: 640px) {
    .project-page { padding: 0 16px 40px; }
    .project-hero { padding: 32px 0 28px; }
    .project-hero h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
    .project-hero > p { font-size: .87rem; }
    .project-overview { border-radius: 18px; }
    .project-content { padding: 22px 18px; gap: 20px; }
    .project-intro { flex-direction: column; gap: 14px; padding: 20px; }
    .project-page h2 { font-size: 1.05rem; }
    .project-page h3 { font-size: .95rem; }
    .project-page p { font-size: .83rem; }
    .project-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .project-feature, .project-monitoring { padding: 22px; }
    .project-metrics { padding: 20px 0; }
    .project-tags { gap: 8px; }
    .project-tags a { padding: 9px 11px; font-size: .7rem; }
    .project-learning { flex-direction: column; gap: 14px; padding: 20px; }
    .project-next { padding: 22px; gap: 18px; }
    .project-next > div, .project-button { width: 100%; }
    .project-author { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-top: 24px; padding: 22px; }
    .project-author-avatar { width: 52px; height: 52px; border-radius: 14px; font-size: 1.3rem; }
    .project-author-info { flex-basis: calc(100% - 68px); }
    .project-author-info p { font-size: .73rem; }
    .project-author-info address a { padding: 8px; font-size: .7rem; }
}
@media (max-width: 420px) {
    .project-author-info { flex-basis: 100%; }
    .project-author { gap: 14px; }
    .project-intro, .project-feature, .project-monitoring, .project-learning { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .project-tags a, .project-button { transition: none; }
}
