/* ---------- Tokens ---------- */
:root {
    --green-900: #1e3932;
    --green-700: #006241;
    --green-500: #00754a;
    --green-100: #d4e9e2;
    --cream: #f2f0eb;
    --white: #ffffff;
    --gold: #cba258;
    --ink: #1f2a26;
    --muted: #5b6862;
    --radius: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 8px 24px rgba(0,0,0,.08);
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--green-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--white); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .4rem; }
p + p { margin-top: 1rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green-900); color: var(--white); }
.section--green h2, .section--green h3 { color: var(--white); }
.section__head { max-width: 700px; margin-bottom: 40px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; color: var(--green-100); }
.eyebrow--green { color: var(--green-500); }
.eyebrow--gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background .2s, color .2s, border-color .2s; cursor: pointer; }
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.98); }
.btn--white { background: var(--white); color: var(--green-900); }
.btn--white:hover { background: var(--green-100); }
.btn--outline-light { border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); }
.btn--outline-dark { border-color: var(--green-500); color: var(--green-500); padding: 9px 20px; }
.btn--outline-dark:hover { background: var(--green-500); color: var(--white); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--white); transition: box-shadow .2s; }
.nav--stuck { box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.nav__inner { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; color: var(--green-900); }
.brand__mark { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--green-100); border: 3px solid var(--green-100); box-shadow: 0 0 0 2px var(--green-500); }
.brand__mark--sm { width: 36px; height: 36px; border-width: 2px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); transition: background .2s; }
.nav__links a:hover { background: var(--cream); }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: auto; }
.nav__toggle span { width: 22px; height: 2px; background: var(--green-900); transition: transform .2s, opacity .2s; }
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(rgba(30,57,50,.93), rgba(30,57,50,.93)), url("img/campus.jpg") center / cover; color: var(--white); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: var(--green-700); opacity: .45; }
.hero__inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 64px 24px 80px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.12rem; color: #dbe8e3; margin: 1.3rem 0 2rem; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions--center { justify-content: center; }
.hero__text h1 { font-size: clamp(3rem, 7vw, 5.2rem); letter-spacing: -.01em; }
.hero__role { margin-top: 14px; font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.hero__visual::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 3px solid var(--gold); border-radius: 36px; }
.hero__portrait { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: 36px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }

/* ---------- Stats ---------- */
.stats { background: var(--green-100); }
.stats__inner { max-width: 1160px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.stats li { text-align: center; padding: 0 8px; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 2.8rem); color: var(--green-700); line-height: 1; margin-bottom: 8px; }
.stats span { font-size: .92rem; color: var(--green-900); font-weight: 500; }

.awards { max-width: 1160px; margin: 0 auto; padding: 0 24px 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.awards li { background: var(--green-900); color: var(--white); padding: 8px 18px 8px 38px; border-radius: 999px; font-size: .88rem; font-weight: 700; position: relative; }
.awards li::before { content: "\2605"; position: absolute; left: 16px; color: var(--gold); }
.stats__inner { padding-bottom: 28px; }

/* ---------- Split layout ---------- */
.split { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__text p { color: var(--muted); font-size: 1.05rem; }
.split__text p strong { color: var(--green-900); }
.split--card { background: var(--cream); border-radius: 28px; padding: 48px; margin: 0 0 40px; max-width: none; }
.split--flip .split__media { order: 2; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips li { background: var(--green-100); color: var(--green-900); padding: 7px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.chips--light li { background: var(--cream); }
.section--cream .chips--light li { background: var(--white); }

.strip { max-width: 1160px; margin: 72px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.strip figure:hover img { transform: scale(1.06); }
.strip figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--white); color: var(--green-900); font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-top: 6px solid var(--green-500); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(0,0,0,.1), 0 16px 32px rgba(0,0,0,.12); }
.section--cream .card { background: var(--white); }
.card--sm { padding: 26px; }
.card--wide { margin-top: 24px; border-top-color: var(--gold); }
.card--wide ul { padding-left: 18px; }
.card__date { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-500); margin-bottom: 6px; }
.card__org { color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.card p:not([class]), .card li { color: var(--muted); font-size: .96rem; }
.card ul:not(.chips) { padding-left: 18px; list-style: disc; }
.card ul:not(.chips) li { margin-bottom: 8px; }
.card ul:not(.chips) li::marker { color: var(--green-500); }
.card__img { margin-top: 16px; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .chips { margin-top: 14px; }

/* ---------- Feature (SISTA) ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.feature__title { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.feature__title h2 { margin: 0; }
.feature__title img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.feature__sub { color: var(--green-100); font-weight: 600; margin: 8px 0 22px; }
.ticks { margin-bottom: 28px; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 12px; color: #dbe8e3; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3932' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks--dark li { color: var(--muted); }
.ticks--dark li::before { background-color: var(--green-500); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.feature__media img { width: 100%; border-radius: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.35); aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Mosaic ---------- */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; border-radius: 14px; }
.mosaic img:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 7; }
.mosaic img:nth-child(n+2) { aspect-ratio: 1; }

img.zoom { cursor: zoom-in; }

/* ---------- Posts ---------- */
.section--green .section__head p { color: #dbe8e3; }
.posts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.post { background: var(--white); color: var(--ink); border-radius: 24px; padding: 36px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.section--green .post h3 { color: var(--green-900); font-size: 1.45rem; margin-bottom: 16px; }
.post__tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-500); margin-bottom: 10px; }
.post blockquote { border-left: 4px solid var(--gold); padding-left: 18px; color: var(--muted); }
.post blockquote p + p, .post details p { margin-top: 12px; }
.post details { margin-top: 20px; }
.post details p { color: var(--muted); font-size: .98rem; }
.post summary { cursor: pointer; font-weight: 700; color: var(--green-500); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1.5px solid var(--green-500); border-radius: 999px; }
.post summary::-webkit-details-marker { display: none; }
.post summary:hover { background: var(--green-500); color: var(--white); }
.post details[open] summary { margin-bottom: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; transition: transform .25s ease, box-shadow .25s ease; }
.gallery img:first-child { grid-column: span 3; aspect-ratio: 16 / 8; }
.gallery img:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.gallery__note { font-size: .82rem; color: var(--muted); margin: 0 0 18px; }
.post__img { margin: 20px 0; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post .btn--outline-light { border-color: var(--green-500); color: var(--green-500); }
.post .btn--outline-light:hover { background: var(--green-500); color: var(--white); }

/* ---------- Contact ---------- */
.contact { background: var(--green-900); color: var(--white); text-align: center; padding: 104px 0; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: -140px; bottom: -180px; width: 460px; height: 460px; border-radius: 50%; background: var(--green-700); opacity: .45; }
.contact__inner { position: relative; max-width: 760px; }
.contact h2 { color: var(--white); }
.contact p { color: #dbe8e3; font-size: 1.08rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer { background: #14261f; color: #b9cbc4; font-size: .9rem; }
.footer__inner { max-width: 1160px; margin: 0 auto; padding: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.footer a { color: var(--white); text-decoration: none; font-weight: 600; }

/* ---------- Floating CTA ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--green-500); color: var(--white); font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .15s, background .2s; }
.fab:hover { background: var(--green-700); transform: scale(1.05); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,28,23,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 12px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.14); color: var(--white); border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 22px; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--green-500); }
.lightbox__close { top: 20px; right: 24px; font-size: 30px !important; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .section { padding: 72px 0; }
    .hero__inner, .split, .feature { grid-template-columns: 1fr; gap: 40px; }
    .hero__inner { padding: 56px 24px 88px; }
    .hero__visual { max-width: 380px; margin-right: 22px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery img:first-child { grid-column: span 2; }
    .split--card { padding: 28px; }
    .split--flip .split__media { order: 0; }
    .stats__inner { padding-top: 40px; }
    .cards--3 { grid-template-columns: repeat(2, 1fr); }
    .posts { grid-template-columns: 1fr; }
    .strip { grid-template-columns: repeat(2, 1fr); }
    .nav__toggle { display: flex; }
    .nav__cta { display: none; }
    .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--white); padding: 12px 24px 20px; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
    .nav--open .nav__links { display: flex; }
    .nav__links a { padding: 12px 8px; }
}
@media (max-width: 620px) {
    .cards--2, .cards--3 { grid-template-columns: 1fr; }
    .hero__actions .btn { flex: 1 1 100%; }
    .fab span { display: none; }
    .fab { padding: 15px; }
}
