/* ============ SRPE – Sitio público ============ */
:root {
  --red: #c8101c;
  --red-600: #e0141f;
  --red-700: #a00d16;
  --red-50: #fdf0f1;
  --ink: #0d1b2a;
  --ink-2: #13263b;
  --text: #2b3645;
  --muted: #667085;
  --line: #e6e8ec;
  --soft: #f6f7f9;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .04), 0 8px 24px rgba(13, 27, 42, .06);
  --shadow-lg: 0 20px 50px rgba(13, 27, 42, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.ico { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.narrow-wide { max-width: 1000px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(200, 16, 28, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s; white-space: nowrap; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn .ico { transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { padding: .6em 1.15em; font-size: .88rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 28, .28); }
.btn-primary:hover { background: var(--red-700); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-light { background: #fff; color: var(--red-700); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--red); font-weight: 600; font-size: .95rem; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Top bars ---------- */
.announce { background: var(--ink); color: #fff; font-size: .9rem; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.announce a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.announce a:hover { text-decoration: underline; }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-600); box-shadow: 0 0 0 4px rgba(224, 20, 31, .3); flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(224, 20, 31, 0); } }
.topbar { background: var(--soft); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar-contact { display: flex; gap: 22px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-contact a:hover { color: var(--red); }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); transition: .2s; }
.social a:hover { color: #fff; background: var(--red); }
.social-lg a { width: 40px; height: 40px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(13, 27, 42, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: auto; border-radius: 3px; }
.brand .brand-logo { width: auto; height: 76px; border-radius: 0; }
.brand-card { display: inline-flex; background: #fff; padding: 10px 14px; border-radius: 12px; }
.brand-card .brand-logo { height: 84px; }
.brand-text { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--display); font-size: .78rem; line-height: 1.2; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.brand-acr { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--red); letter-spacing: -.02em; padding-left: 12px; border-left: 1.5px solid var(--line); line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--text); transition: .2s; position: relative; }
.nav a:not(.btn):hover { color: var(--red); background: var(--red-50); }
.nav a.active { color: var(--red); font-weight: 600; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .i-close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding-bottom: 0; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(9, 19, 31, .96) 0%, rgba(9, 19, 31, .82) 45%, rgba(9, 19, 31, .35) 100%); }
.hero::after { content: ""; position: absolute; z-index: 1; width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(200, 16, 28, .45), transparent 65%); }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(70px, 10vw, 130px); padding-bottom: 60px; }
.hero-copy { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .lead { color: rgba(255, 255, 255, .78); font-size: 1.15rem; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; margin-top: 30px; }
.hero-chip { display: flex; align-items: center; gap: 14px; padding: 22px 26px; background: rgba(13, 27, 42, .65); backdrop-filter: blur(8px); transition: background .2s; }
.hero-chip:hover { background: rgba(200, 16, 28, .85); }
.hero-chip strong { display: block; font-family: var(--display); }
.hero-chip small { color: rgba(255, 255, 255, .7); }
.chip-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow-light { color: #ff8a90; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-tight { padding: 48px 0 88px; }
.section-soft { background: var(--soft); }
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; }
.section-head.row h2 { margin: 0; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media > img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.badge-float { position: absolute; left: -24px; bottom: 28px; display: flex; gap: 12px; align-items: center; background: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem; color: var(--ink); line-height: 1.3; }
.badge-float small { font-weight: 400; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ico { color: #fff; background: var(--red); border-radius: 50%; padding: 3px; margin-top: 3px; width: 22px; height: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }

/* features */
.feature { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-img { aspect-ratio: 16/9; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature:hover .feature-img img { transform: scale(1.06); }
.feature-body { padding: 0 28px 28px; position: relative; flex: 1; display: flex; flex-direction: column; }
.feature-body p { color: var(--muted); flex: 1; }
.feature-body .feature-ico { margin-top: -26px; margin-bottom: 16px; border: 4px solid #fff; }
.feature-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--red); color: #fff; flex-shrink: 0; }

/* cards & news */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 28px; }
.news-grid .post-card-lg { grid-row: span 2; }
.news-grid > :nth-child(4) { grid-column: 2 / span 2; flex-direction: row; }
.news-grid > :nth-child(4) .post-card-media { width: 42%; aspect-ratio: auto; }
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.post-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--soft); flex-shrink: 0; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at 85% 15%, rgba(200, 16, 28, .55), transparent 55%), linear-gradient(135deg, var(--ink), var(--ink-2)); }
.post-card-ph::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 18px 18px; }
.post-card-ph img { width: 56px; height: auto; object-fit: contain; position: relative; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .6s; }
.post-card:hover .post-card-ph img { transform: scale(1.08); }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { font-size: 1.12rem; margin: 10px 0 8px; }
.post-card-body h3 a:hover { color: var(--red); }
.post-card-body p { color: var(--muted); font-size: .95rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-lg .post-card-media { aspect-ratio: 4/3.4; }
.post-card-lg h3 { font-size: 1.45rem; }
.meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--red-50); color: var(--red-700); }
.tag-articulos { background: #eaf2ff; color: #1d4ed8; }
.tag-eventos { background: #e9f8f1; color: #047857; }
.tag-comunicados { background: #fff4e5; color: #b45309; }
.empty { padding: 48px; text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--radius); border: 1.5px dashed var(--line); }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--red-700), var(--red) 55%, var(--red-600)); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 420px; background: url("../img/emblema.png") center/contain no-repeat; opacity: .08; transform: rotate(-8deg); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { color: rgba(255, 255, 255, .85); max-width: 560px; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* docs */
.doc-list { display: grid; gap: 12px; margin: 24px 0; }
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: .2s; }
.doc-item:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateX(3px); }
.doc-ico { position: relative; display: grid; place-items: center; width: 46px; height: 52px; border-radius: 8px; background: var(--red-50); color: var(--red); flex-shrink: 0; }
.doc-ico small { position: absolute; bottom: -6px; font-size: .6rem; font-weight: 800; background: var(--red); color: #fff; padding: 1px 5px; border-radius: 4px; }
.doc-text { flex: 1; display: flex; flex-direction: column; }
.doc-text strong { color: var(--ink); font-weight: 600; }
.doc-text small { color: var(--muted); }
.doc-dl { color: var(--muted); }
.doc-item:hover .doc-dl { color: var(--red); }
.doc-group { margin-bottom: 48px; }
.doc-group h2 { font-size: 1.4rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }

/* social panel */
.social-panel { background: var(--ink); color: rgba(255, 255, 255, .8); border-radius: 22px; padding: 40px; position: relative; overflow: hidden; }
.social-panel::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; bottom: -120px; background: radial-gradient(circle, rgba(200, 16, 28, .5), transparent 65%); }
.social-panel h3 { color: #fff; font-size: 1.5rem; }
.social-buttons { display: grid; gap: 12px; margin-top: 24px; position: relative; z-index: 1; }
.sbtn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; transition: .2s; }
.sbtn span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.sbtn small { color: rgba(255, 255, 255, .6); }
.sbtn:hover { transform: translateX(4px); }
.sbtn-yt:hover { background: #ff0000; }
.sbtn-fb:hover { background: #1877f2; }
.sbtn-ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }

/* page hero */
.page-hero { background: var(--ink); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(200, 16, 28, .55), transparent 65%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255, 255, 255, .72); max-width: 620px; font-size: 1.1rem; margin: 0; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }

/* about */
.mv-cards { display: grid; gap: 20px; }
.mv-card { padding: 30px; border-radius: var(--radius); background: var(--red-50); }
.mv-card h3 { margin-top: 16px; }
.mv-card p { margin: 0; }
.mv-card-dark { background: var(--ink); color: rgba(255, 255, 255, .8); }
.mv-card-dark h3 { color: #fff; }
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.goal { background: #fff; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; transition: .3s; }
.goal:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.goal .feature-ico { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; background: var(--red-50); color: var(--red); }
.goal-n { position: absolute; right: 20px; top: 18px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--line); }
.goal h3 { font-size: 1.05rem; }
.goal p { color: var(--muted); font-size: .92rem; margin: 0; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.member { text-align: center; padding: 28px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: .3s; }
.member:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.avatar { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; background: linear-gradient(135deg, var(--red), var(--red-700)); display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 1.8rem; font-weight: 700; box-shadow: 0 0 0 5px var(--red-50); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1rem; margin-bottom: 4px; }
.member p { color: var(--red); font-size: .88rem; font-weight: 500; margin: 0; }
.solar { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.solar p { max-width: 640px; color: var(--muted); margin: 0; }

/* members */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--soft); }
.step span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-family: var(--display); margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.tabs { max-width: 860px; margin: 0 auto; }
.tab-list { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 999px; border: 1px solid var(--line); margin: 0 auto 20px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab-list button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font: 600 .92rem var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab-list button[aria-selected="true"] { background: var(--red); color: #fff; }
.tab-panel { padding: 32px; }
.note { margin-top: 20px; padding: 18px 22px; border-left: 4px solid var(--red); background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-size: .95rem; }

/* filters */
.filters { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; transition: .2s; }
.pill:hover { border-color: var(--red); color: var(--red); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-width: 280px; color: var(--muted); background: #fff; }
.search:focus-within { border-color: var(--red); }
.search input { border: 0; outline: 0; padding: 11px 0; font: inherit; flex: 1; background: none; }
.results { margin-top: -16px; margin-bottom: 24px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; }
.pager a.active, .pager a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* article */
.article-head { padding: 48px 0 32px; }
.article-head .crumbs { color: var(--muted); }
.article-head .crumbs a:hover { color: var(--red); }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: .9rem; padding-top: 18px; border-top: 1px solid var(--line); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-cover { margin: 0 0 40px; }
.article-cover { background: var(--soft); border-radius: 20px; overflow: hidden; }
.article-cover img { width: auto; max-width: 100%; max-height: 820px; margin: 0 auto; object-fit: contain; }
.prose { font-size: 1.08rem; line-height: 1.8; color: #2f3a4a; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; margin: 1.5em auto; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--red); font-size: 1.15rem; color: var(--ink); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 12px; margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--soft); }
.share { display: flex; align-items: center; gap: 8px; margin: 48px 0 72px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.share > span { font-weight: 600; margin-right: 8px; color: var(--ink); }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; font: 500 .88rem var(--font); transition: .2s; }
.share a:hover, .share button:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); transition: .2s; }
a.contact-item:hover { border-color: var(--red); box-shadow: var(--shadow); }
.contact-item small { display: block; color: var(--muted); }
.contact-item strong { color: var(--ink); word-break: break-word; }
.contact .social { margin-top: 8px; }
.form { padding: 36px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.form h2 { font-size: 1.5rem; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; color: var(--ink); }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; width: 100%; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 28, .1); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* flashes */
.flashes { padding-top: 20px; }
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 10px; font-weight: 500; }
.flash-success { background: #e9f8f1; color: #065f46; }
.flash-error { background: var(--red-50); color: var(--red-700); }
.flash-info { background: #eaf2ff; color: #1e40af; margin-top: 20px; }

/* error */
.error-code { font-family: var(--display); font-size: 7rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--red), var(--ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* footer */
.footer { background: #08121d; color: rgba(255, 255, 255, .65); padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-brand p { margin: 20px 0; max-width: 340px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-acr { border-color: rgba(255, 255, 255, .2); }
.footer .social-lg a { border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; flex-wrap: wrap; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a:not(.btn) { padding: 8px 10px; }
  .goals { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; padding: 16px 24px 28px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(13, 27, 42, .12); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s; max-height: calc(100vh - 96px); overflow-y: auto; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-cta { margin: 12px 0 0; justify-content: center; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: inline; }
  .split, .two-col, .contact { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .post-card-lg { grid-column: span 2; grid-row: auto; }
  .news-grid > :nth-child(4) { grid-column: auto; flex-direction: column; }
  .news-grid > :nth-child(4) .post-card-media { width: auto; aspect-ratio: 16/10; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-inner, .solar { flex-direction: column; align-items: flex-start; }
  .badge-float { left: 16px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .topbar-contact a:last-child { display: none; }
  .topbar .social { display: none; }
  .header-inner { height: 72px; }

  .brand .brand-logo { height: 56px; }
  .hero-strip { grid-template-columns: 1fr; border-radius: var(--radius); margin-bottom: 24px; }
  .hero-chip { padding: 16px 20px; }
  .grid-3, .news-grid, .goals, .steps, .doc-grid, .form-row { grid-template-columns: 1fr; }
  .news-grid .post-card-lg { grid-column: auto; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .filters { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .form, .tab-panel, .social-panel { padding: 24px; }
  .tab-list { width: 100%; flex-direction: column; border-radius: 16px; }
}
.doc-text .doc-date { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: .8rem; color: var(--muted); }
