/* ==========================================================================
   UGEL · sitio público
   Verde + azul claro sobre neutros (#FFFFFF, #F8F9FA, texto #333333)
   ========================================================================== */

:root {
  --green-800: #18583A;
  --green-700: #1F6B43;
  --green-600: #2A8250;   /* botones: verde de marca con contraste AA para texto blanco */
  --green-brand: #2E8B57; /* verde de marca: iconos, cifras y bordes */
  --green-500: #3CB371;
  --green-200: #C5E8D4;
  --green-100: #E3F4EA;
  --green-50: #F1FAF5;
  --sky-50: #F2FAFD;
  --sky-100: #E3F3F9;
  --sky-200: #B0E0E6;
  --sky-300: #ADD8E6;
  --sky-400: #87CEEB;
  --sky-ink: #1E5670;
  --ink: #333333;
  --ink-soft: #5A646C;
  --line: #DDE5E9;
  --bg-soft: #F8F9FA;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
h1, h2, h3, p, ul { margin-top: 0; }
a { color: var(--green-700); }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--green-600); color: #fff; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: .975rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:hover { background: var(--green-700); }
.btn--ghost { border-color: var(--green-brand); background: transparent; color: var(--green-700); }
.btn--ghost:hover { background: var(--green-50); }
.btn--sky { background: var(--sky-200); color: var(--green-800); }
.btn--sky:hover { background: #fff; }
.btn--small { padding: .55rem .95rem; font-size: .9rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(20, 60, 50, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.brand__text small { margin-top: 4px; font-size: .74rem; line-height: 1.2; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__list a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav__list a:hover { background: var(--sky-100); color: var(--sky-ink); }
.nav__list a[aria-current="true"] { background: var(--green-50); color: var(--green-700); font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer;
  transition: background-color .2s;
}
.nav-toggle:hover { background: var(--sky-100); }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.nav-toggle[aria-expanded="true"] .ico-menu { display: none; }

/* ---------- Slider principal ---------- */
.hero { padding-top: 20px; }
.slider {
  --interval: 7000ms;
  position: relative; height: clamp(460px, 66vh, 640px);
  overflow: hidden; isolation: isolate;
  border-radius: var(--radius); background: #143D2C; color: #fff;
}
.slider__viewport { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.slide__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Fondos de ejemplo (cuaderno cuadriculado) mientras no haya videos o imágenes */
.slide__media--a, .slide__media--b, .slide__media--c { background-color: #1F7A6A; }
.slide__media--a {
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 44px),
    radial-gradient(60% 90% at 88% 12%, rgba(176,224,230,.6), transparent 62%),
    radial-gradient(55% 70% at 8% 95%, rgba(60,179,113,.65), transparent 62%),
    linear-gradient(135deg, #2E8B57 0%, #1F7A6A 55%, #2B84A8 100%);
}
.slide__media--b {
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 44px),
    radial-gradient(60% 90% at 12% 15%, rgba(173,216,230,.6), transparent 62%),
    radial-gradient(55% 70% at 92% 90%, rgba(46,139,87,.65), transparent 62%),
    linear-gradient(135deg, #2B84A8 0%, #2A8A9A 50%, #2E8B57 100%);
}
.slide__media--c {
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 44px),
    radial-gradient(60% 80% at 50% 0%, rgba(135,206,235,.55), transparent 62%),
    radial-gradient(60% 70% at 100% 100%, rgba(60,179,113,.55), transparent 62%),
    linear-gradient(160deg, #1F7A6A 0%, #2E8B57 55%, #3CB371 100%);
}

.slide__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,36,28,.5) 0%, rgba(8,36,28,0) 68%),
    linear-gradient(180deg, rgba(8,36,28,.06) 0%, rgba(8,36,28,.26) 45%, rgba(8,36,28,.7) 100%);
}
.slide__content { position: absolute; left: 0; bottom: 0; width: min(100%, 780px); padding: 0 clamp(24px, 5vw, 64px) 120px; }
.slide__content > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > *:nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide__content > *:nth-child(3) { transition-delay: .24s; }
.slide__title {
  margin: 0 0 1rem; font-size: clamp(2rem, 1.1rem + 3.4vw, 3.6rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
}
.slide__text { max-width: 46ch; margin: 0 0 1.6rem; font-size: clamp(1rem, .95rem + .35vw, 1.2rem); opacity: .94; }

.slider__bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(24px, 5vw, 64px) clamp(20px, 3vw, 32px);
}
.slider.is-single .slider__bottom { display: none; }
.slider__bars { display: flex; gap: 8px; flex: 0 1 380px; }
.bar { position: relative; flex: 1; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); }
.bar span { position: absolute; left: 0; top: 8px; width: 0; height: 4px; border-radius: 4px; background: #fff; }
.bar.is-done span { width: 100%; }
.bar.is-active span { animation: bar-fill var(--interval) linear forwards; }
.slider.is-paused .bar.is-active span { animation-play-state: paused; }
@keyframes bar-fill { from { width: 0; } to { width: 100%; } }

.slider__buttons { display: flex; gap: 8px; }
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius); background: var(--sky-200); color: var(--green-800); cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.round-btn:hover { background: var(--green-600); color: #fff; }
.round-btn:active { transform: scale(.95); }
.round-btn .icon { width: 20px; height: 20px; }
.ico-play { display: none; }
.slider.is-user-paused .ico-play { display: block; }
.slider.is-user-paused .ico-pause { display: none; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--sky { background: var(--sky-50); }
.section--tight { padding-top: 0; }

.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1rem clamp(2rem, 6vw, 5rem); align-items: end;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-head h2 { margin: 0; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.section-head__side { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.section-head__side p { max-width: 54ch; margin: 0; color: var(--ink-soft); }
.link-more {
  display: inline-flex; align-items: center; gap: .45rem; padding-bottom: 2px;
  border-bottom: 1.5px solid var(--green-200); color: var(--green-700); font-weight: 600; text-decoration: none;
  transition: border-color .2s, gap .2s;
}
.link-more:hover { border-color: var(--green-brand); gap: .7rem; }
.link-more .icon { width: 18px; height: 18px; }

/* ---------- UGEL 360° ---------- */
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile {
  --tile-bg: #fff; --tile-bg-hover: var(--sky-50); --tile-line: var(--line);
  position: relative; display: flex; flex-direction: column; padding: 26px;
  border: 1px solid var(--tile-line); border-radius: var(--radius);
  background: var(--tile-bg); color: var(--ink); text-decoration: none;
  transition: background-color .3s var(--ease), border-color .3s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.tile--sky { --tile-bg: var(--sky-100); --tile-bg-hover: #EEF8FC; --tile-line: #CFE8F0; }
.tile:hover { background: var(--tile-bg-hover); transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(30, 86, 112, .55); }
.tile__top { display: flex; align-items: flex-start; justify-content: space-between; }
.tile__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: var(--radius); background: var(--green-100); color: var(--green-brand); }
.tile--sky .tile__icon { background: #fff; }
.tile__go {
  display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--green-700);
  transition: background-color .25s, border-color .25s, color .25s;
}
.tile__go .icon { width: 18px; height: 18px; }
.tile:hover .tile__go { border-color: var(--green-600); background: var(--green-600); color: #fff; }
.tile__body { margin-top: auto; padding-top: 1.75rem; }
.tile h3 { margin: 0 0 .35rem; font-size: 1.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--ink-soft); font-size: .975rem; line-height: 1.55; }

.tile--feature {
  grid-row: span 2; overflow: hidden; padding: 36px; border-color: transparent;
  background: linear-gradient(160deg, var(--sky-200) 0%, var(--sky-300) 100%);
}
.tile--feature:hover { background: linear-gradient(160deg, var(--sky-200) 0%, var(--sky-300) 100%); }
.tile--feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.tile--feature > * { position: relative; }
.tile--feature .tile__icon { width: 60px; height: 60px; background: #fff; }
.tile--feature .tile__icon .icon { width: 28px; height: 28px; }
.tile--feature h3 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -.025em; line-height: 1.1; margin-bottom: .6rem; }
.tile--feature p { max-width: 34ch; color: #2F4A58; font-size: 1.05rem; }

/* ---------- Convocatorias ---------- */
.calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.call {
  display: flex; flex-direction: column; gap: .7rem; padding: 26px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: background-color .3s, border-color .3s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.call:hover { border-color: var(--green-200); background: var(--green-50); transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(31, 107, 67, .55); }
.call__top { display: flex; align-items: center; gap: 10px; }
.call__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--green-100); color: var(--green-brand); }
.chip { padding: 4px 11px; border-radius: 999px; background: var(--sky-100); color: var(--sky-ink); font-size: .8rem; font-weight: 600; }
.badge-new { margin-left: auto; padding: 4px 11px; border-radius: 999px; background: var(--green-600); color: #fff; font-size: .75rem; font-weight: 700; }
.call h3 { margin: .25rem 0 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.call p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.call__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
}
.call__date { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-soft); font-size: .88rem; }
.call__date .icon { width: 18px; height: 18px; }
.empty { padding: 28px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); text-align: center; }

/* ---------- Comunidad ---------- */
.community {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 72px); align-items: center; overflow: hidden;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--radius); background: var(--sky-100);
}
.community__copy h2 { margin: 0 0 1rem; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.community__copy > p { max-width: 46ch; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 2rem 0 0; padding: 0; list-style: none; }
.stat { display: flex; flex-direction: column; padding: 20px 22px; border: 1px solid #CFE8F0; border-radius: var(--radius); background: #fff; }
.stat__icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 10px; background: var(--green-100); color: var(--green-brand); }
.stat__icon .icon { width: 20px; height: 20px; }
.stat__num { color: var(--green-brand); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.7rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 4px; color: var(--ink-soft); font-size: .92rem; line-height: 1.35; }
.art { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- Enlaces directos ---------- */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.link-tile {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink); font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: border-color .25s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.link-tile__icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--sky-100); color: var(--sky-ink);
  transition: background-color .25s, color .25s;
}
.link-tile .icon--sm { width: 16px; height: 16px; margin-left: auto; color: var(--ink-soft); }
.link-tile:hover { border-color: var(--green-brand); transform: translateY(-2px); box-shadow: 0 14px 26px -20px rgba(31, 107, 67, .6); }
.link-tile:hover .link-tile__icon { background: var(--green-600); color: #fff; }

/* ---------- Pie de página ---------- */
.site-footer { background: #333333; color: rgba(255, 255, 255, .82); font-size: .975rem; }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 80px); padding-block: clamp(48px, 6vw, 80px);
}
.footer__title { margin: 0 0 1rem; color: #fff; font-size: 1rem; font-weight: 700; }
.footer__about p { max-width: 42ch; margin: 1.1rem 0 0; }
.contact, .footer__links { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.contact li { display: flex; align-items: flex-start; gap: .75rem; }
.contact .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--green-500); }
.site-footer a { color: var(--sky-200); text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; text-decoration: none; }
.brand--light .brand__text small { color: rgba(255, 255, 255, .7); }
.footer__bar { padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .65); font-size: .875rem; }
.footer__bar p { margin: 0; }

/* ---------- Página del panel (marcador de posición) ---------- */
.page-center { display: grid; place-items: center; min-height: 100vh; margin: 0; background: var(--sky-50); }
.notice { max-width: 520px; margin: 20px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.notice h1 { margin-bottom: .75rem; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.notice p { margin-bottom: 1.5rem; color: var(--ink-soft); }

/* ---------- Animaciones ---------- */
html.js .reveal { opacity: 0; }
html.js .reveal.is-visible { opacity: 1; animation: fade-up .7s var(--ease) var(--d, 0ms) backwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

html.js .art .char { opacity: 0; }
html.js .art-wrap.is-visible .char { opacity: 1; animation: char-in .9s var(--ease) var(--d, 0s) backwards; }
@keyframes char-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.float { animation: float-y 6s ease-in-out infinite; }
.float.f2 { animation-duration: 7s; animation-delay: -2s; }
.float.f3 { animation-duration: 6.5s; animation-delay: -4s; }
.float.f4 { animation-duration: 8s; animation-delay: -1s; }
.float.f5 { animation-duration: 5.5s; animation-delay: -3s; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Si el script no cargó, el contenido se muestra igual */
html.reveal-fallback .reveal, html.reveal-fallback .art .char { opacity: 1 !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .art .char { opacity: 1; }
  html.js .reveal.is-visible, html.js .art-wrap.is-visible .char { animation: none; }
  .float { animation: none; }
  .slide, .slide.is-active { transition-duration: .01s; }
  .slide__content > * { transition: none; }
  .bar.is-active span { animation: none; width: 100%; }
}

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1020px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--feature { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
  .community { grid-template-columns: 1fr; }
  .community__art { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px 20px 22px; border-bottom: 1px solid var(--line); background: #fff;
    box-shadow: 0 22px 30px -24px rgba(20, 60, 50, .45);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__list a { padding: 12px; }
  .nav .btn { width: 100%; }
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .slide__content { padding-bottom: 112px; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .stat__num { font-size: 1.85rem; }
  .tile--feature { min-height: 250px; padding: 28px; }
  .stats { gap: 10px; }
  .stat { padding: 16px; }
  .slider { height: clamp(500px, 78vh, 600px); }
  .slider__bars { flex-basis: 140px; }
  .slider__buttons { gap: 6px; }
  .round-btn { width: 40px; height: 40px; }
  .brand__text small { display: none; }
}

/* ---------- Logotipo subido desde el panel ---------- */
.brand__logo { display: block; width: auto; max-width: 180px; height: 44px; object-fit: contain; }

/* ---------- Página de convocatorias ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 72px); }
.page-hero h1 { margin: 0 0 .75rem; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.page-hero p { max-width: 56ch; margin: 0; color: var(--ink-soft); }
.section--list { padding-top: clamp(28px, 4vw, 44px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filter {
  padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.filter:hover { border-color: var(--green-brand); color: var(--green-700); }
.filter.is-active { border-color: var(--green-600); background: var(--green-600); color: #fff; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span {
  min-width: 42px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-weight: 600; text-align: center; text-decoration: none;
}
.pager a:hover { border-color: var(--green-brand); color: var(--green-700); }
.pager .is-current { border-color: var(--green-600); background: var(--green-600); color: #fff; }
.pager .is-disabled { opacity: .45; }
