/* =========================================================
   Rama Estudiantil IEEE UDB — hoja de estilos principal
   Paleta: solo azules (con blancos y azules claros de apoyo)
   ========================================================= */

:root {
  /* --- Azules --- */
  --blue-950: #051a33;
  --blue-900: #0a2647;
  --blue-800: #0e3a6b;
  --blue-700: #0a5cad;
  --blue-600: #1472c9;
  --blue-500: #3b8de0;
  --blue-400: #6fabe9;
  --blue-300: #9cc6ee;
  --blue-200: #cfe2f6;
  --blue-100: #e9f2fb;

  /* --- Neutros (blanco y azul claro) --- */
  --ink: #16283e;
  --muted: #4f647d;
  --text: #1c2c41;
  --text-soft: #4f647d;
  --bg: #ffffff;
  --bg-alt: #f2f7fc;
  --border: #dce8f4;

  /* --- Uso general --- */
  --primary: var(--blue-700);
  --dark: var(--blue-900);
  --accent: var(--blue-300);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 38, 71, 0.10);
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.text-accent { color: var(--blue-300); }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 92, 173, 0.3);
}
.btn--primary:hover { background: var(--blue-900); color: #fff; }
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn--light { background: #fff; color: var(--blue-800); }
.btn--light:hover { background: var(--blue-100); color: var(--blue-900); }
.btn--small { padding: 9px 20px; font-size: 0.87rem; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------------- Header ---------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.header.is-scrolled {
  box-shadow: 0 6px 24px rgba(10, 38, 71, 0.12);
  border-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  border-bottom: 3px solid var(--blue-400);
}
.logo__text {
  font-weight: 700;
  color: var(--blue-900);
  font-size: 1.05rem;
  line-height: 1.1;
}
.logo__text small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--text-soft);
  letter-spacing: 0.5px;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.nav__link {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__link:hover { background: var(--blue-100); color: var(--blue-700); }
.nav__link.is-active {
  color: var(--blue-800);
  font-weight: 700;
  background: var(--blue-100);
  box-shadow: inset 0 -3px 0 var(--blue-500);
}

.header__cta { background: var(--blue-700); color: #fff; font-weight: 700; }
.header__cta:hover { background: var(--blue-900); color: #fff; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2.5px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- Hero (inicio) ---------------- */
.hero {
  position: relative;
  padding: 170px 0 90px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 55%, var(--blue-600) 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 18%, rgba(156, 198, 238, 0.28) 0, transparent 40%),
    radial-gradient(circle at 12% 88%, rgba(59, 141, 224, 0.35) 0, transparent 36%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}
.hero__content { position: relative; max-width: 820px; }

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(156, 198, 238, 0.6);
  color: var(--blue-200);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 50px; }
.hero__actions .btn--primary {
  background: #fff;
  color: var(--blue-800);
  box-shadow: 0 8px 20px rgba(5, 26, 51, 0.35);
}
.hero__actions .btn--primary:hover { background: var(--blue-100); color: var(--blue-900); }

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stats li {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 3px solid var(--blue-400);
  border-radius: var(--radius);
  padding: 16px 18px;
  backdrop-filter: blur(4px);
}
.stats strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.stats span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); }

/* Estadísticas sobre fondo claro */
.stats--light { grid-template-columns: repeat(4, 1fr); }
.stats--light li {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue-600);
  box-shadow: var(--shadow);
}
.stats--light strong { color: var(--blue-800); font-size: 1.7rem; }
.stats--light span { color: var(--text-soft); }

/* ---------------- Hero de página interior ---------------- */
.page-hero {
  position: relative;
  padding: 150px 0 60px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 70%, var(--blue-500) 100%);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 88% 15%, rgba(156, 198, 238, 0.3) 0, transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}
.page-hero__content { position: relative; max-width: 780px; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 660px;
}
.page-hero p strong { color: var(--blue-200); }

/* ---------------- Secciones ---------------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--blue-800);
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--blue-900);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}
.section h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-300));
  border-radius: 4px;
  margin: 14px auto 0;
}
.section__sub { color: var(--text-soft); font-size: 1.03rem; }

/* ---------------- Enlaces rápidos (inicio) ---------------- */
.quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.quicklink {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.quicklink::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-300));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.quicklink:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue-300);
}
.quicklink:hover::before { opacity: 1; }
.quicklink__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.5rem;
  background: var(--blue-100);
  border-left: 4px solid var(--blue-500);
  border-radius: 12px;
  margin-bottom: 16px;
}
.quicklink h3 { color: var(--blue-900); font-size: 1.12rem; margin-bottom: 6px; }
.quicklink p { color: var(--text-soft); font-size: 0.93rem; margin-bottom: 14px; }
.quicklink__arrow { font-weight: 700; font-size: 0.88rem; color: var(--blue-700); }

/* ---------------- Banda CTA ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #fff;
  padding: 54px 0;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); }

/* ---------------- Quiénes somos ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.split__text { max-width: 820px; }
.split__text h3 {
  color: var(--blue-900);
  font-size: 1.15rem;
  margin-bottom: 8px;
  border-left: 4px solid var(--blue-500);
  padding-left: 10px;
}
.split__text p { color: var(--text-soft); margin-bottom: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  color: var(--blue-800);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}
.chip--solid {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: #fff;
  font-weight: 700;
}
.chips__note { font-size: 0.82rem; color: var(--text-soft); margin-top: 10px; }

.split__card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue-700);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.split__card h3 { color: var(--blue-900); margin-bottom: 18px; font-size: 1.1rem; }
.datalist { list-style: none; margin-bottom: 22px; }
.datalist li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.datalist li:last-child { border-bottom: 0; }
.datalist span { color: var(--text-soft); }
.datalist strong { color: var(--blue-900); text-align: right; }

/* ---------------- Tarjetas ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-300));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue-300);
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--blue-100);
  border-left: 4px solid var(--blue-500);
  border-radius: 12px;
  margin-bottom: 18px;
}
.card h3 { color: var(--blue-900); font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 0.94rem; }

/* ---------------- Noticias ---------------- */
.award {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--blue-100) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.award::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-700));
}
.award:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.award__medal {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(160deg, var(--blue-500), var(--blue-800));
  border: 2px solid var(--blue-400);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(10, 92, 173, 0.4);
}
.award h3 { color: var(--blue-900); font-size: 1.1rem; margin-bottom: 6px; }
.award__meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}
.award p:last-child { color: var(--text-soft); font-size: 0.92rem; }
.award__media {
  margin: -34px -26px 18px;
  background: var(--blue-100);
}
.award__media img {
  display: block;
  width: 100%;
  height: auto;
}
.award__link {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border: 1px solid var(--blue-300);
  border-radius: 999px;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.award__link:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

/* La sección de noticias no aparece si está vacía */
.section:has(#noticiasRoot:empty) { display: none; }

/* ------- Reconocimientos en redes / prensa ------- */
.press {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.press-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue-600);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 38, 71, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.press-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.press-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-100);
}
.press-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.press-card:hover .press-card__media img { transform: scale(1.04); }
.press-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.press-card__src {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue-600);
}
.press-card h3 {
  color: var(--blue-900);
  font-size: 1.08rem;
  line-height: 1.35;
  margin-top: 8px;
}
.press-card .award__meta { margin-top: 8px; margin-bottom: 0; }
.press-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-top: 10px;
  flex: 1;
}
.press-card__link {
  margin-top: 16px;
  align-self: flex-start;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
  border-bottom: 2px solid var(--blue-200);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.press-card__link:hover { border-color: var(--blue-600); }
@media (max-width: 760px) {
  .press { grid-template-columns: 1fr; }
}
.press--single {
  max-width: 540px;
  margin: 0 auto;
}

/* ---------------- Galería ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--blue-900);
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery__item::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 16px 14px;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 38, 67, 0.92));
  border-bottom: 4px solid var(--blue-400);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; transform: translateY(0); }
.gallery__note {
  margin-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.gallery__note code {
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  color: var(--blue-800);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.8rem;
}

/* ---------------- Actividades (timeline) ---------------- */
.timeline {
  list-style: none;
  max-width: 860px;
  margin-inline: auto;
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 132px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(var(--blue-700), var(--blue-300));
  border-radius: 3px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 44px;
  padding: 18px 0;
  position: relative;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 126px;
  top: 26px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--blue-500);
  border: 3px solid var(--blue-900);
}
.timeline__date {
  text-align: right;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--blue-700);
  padding-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.timeline__body {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-700);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-left-color 0.2s ease;
}
.timeline__body:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
  border-left-color: var(--blue-400);
}
.timeline__body h3 { color: var(--blue-900); font-size: 1.05rem; margin-bottom: 4px; }
.timeline__body p { color: var(--text-soft); font-size: 0.93rem; }

/* ---------------- Actividades: filtros y tarjetas ---------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--blue-200);
  background: #fff;
  color: var(--blue-800);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.87rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.filter:hover { background: var(--blue-100); transform: translateY(-2px); }
.filter.is-active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 92, 173, 0.3);
}

.activities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.activity {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.activity:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue-300);
}
.activity__media {
  height: 108px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  position: relative;
}
.activity__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-700));
}
.activity__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.activity__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.activity__tag {
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  color: var(--blue-800);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
}
.activity__date { font-size: 0.8rem; font-weight: 700; color: var(--blue-600); }
.activity h3 { color: var(--blue-900); font-size: 1.15rem; margin-bottom: 6px; }
.activity__body > p { color: var(--text-soft); font-size: 0.93rem; margin-bottom: 14px; }
.activity__meta {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 20px;
}
.activity__actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.activity__actions .btn {
  flex: 1;
  min-width: 130px;
  padding: 10px 14px;
  font-size: 0.87rem;
  text-align: center;
}

.btn--outline {
  background: #fff;
  border-color: var(--blue-300);
  color: var(--blue-700);
}
.btn--outline:hover { background: var(--blue-100); color: var(--blue-800); }

/* ---------------- Modales ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(5, 20, 38, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border-top: 5px solid var(--blue-600);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  padding: 30px 32px 32px;
  box-shadow: 0 30px 60px rgba(5, 20, 38, 0.45);
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal__close:hover { background: var(--blue-700); color: #fff; }
.modal__tag {
  display: inline-block;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  color: var(--blue-800);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.modal h3 { color: var(--blue-900); font-size: 1.4rem; margin-bottom: 16px; padding-right: 34px; }
.modal h4 {
  color: var(--blue-800);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 10px;
}
.modal__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.modal__facts li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.modal__facts span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 2px;
}
.modal__facts strong { color: var(--blue-900); font-size: 0.9rem; font-weight: 700; }
.modal__desc { color: var(--text-soft); font-size: 0.95rem; }
.modal__topics { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.modal__topics li {
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  color: var(--blue-800);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.modal__actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.form__optional { color: var(--text-soft); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* ---------------- Contacto ---------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.contact__block { margin-bottom: 24px; }
.contact__label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-800);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--blue-400);
}
.contact__block a { font-weight: 600; }
.contact__block p { color: var(--text-soft); font-size: 0.95rem; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social__link {
  background: #fff;
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--blue-800);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social__link:hover {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
  transform: translateY(-2px);
}

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue-700);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form__row { margin-bottom: 18px; }
.form__row label {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--blue-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--blue-100);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 114, 201, 0.15);
}
.form textarea { resize: vertical; }
.form__error {
  display: block;
  color: #b3312b;
  font-size: 0.78rem;
  margin-top: 5px;
  min-height: 1em;
}
.form input.is-invalid,
.form textarea.is-invalid { border-color: #b3312b; }
.form__success {
  margin-top: 16px;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  border-left: 4px solid var(--blue-600);
  color: var(--blue-900);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
}

/* ---------------- Footer ---------------- */
.footer {
  background: linear-gradient(180deg, var(--blue-900), var(--blue-950));
  color: rgba(255, 255, 255, 0.82);
  padding: 46px 0 34px;
  border-top: 4px solid var(--blue-500);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand .logo__mark { border-bottom-color: var(--blue-300); }
.footer__brand p { font-size: 0.9rem; line-height: 1.4; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.87rem;
  transition: color 0.15s ease;
}
.footer__nav a:hover { color: var(--blue-300); }
.footer__copy {
  width: 100%;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 20, 38, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(1000px, 92vw);
  max-height: 74vh;
  border-radius: 12px;
  border-bottom: 5px solid var(--blue-400);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__caption { color: #fff; font-size: 0.95rem; text-align: center; }
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: 0;
  color: var(--blue-300);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox__close:hover { opacity: 1; }

/* ---------------- Logo en el encabezado ---------------- */
.logo img { height: 44px; width: auto; display: block; }

@media (max-width: 1180px) {
  .logo img { height: 38px; }
  .nav__link { padding: 8px 9px; font-size: 0.87rem; }
  .header__inner { gap: 14px; }
}

/* ---------------- Juntas directivas ---------------- */
.board-block { margin-bottom: 54px; }
.board-block:last-child { margin-bottom: 0; }
.board-block__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--blue-200);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.board-block__head h3 { color: var(--blue-900); font-size: 1.3rem; }
.board-block__head h3 small { font-size: 0.85rem; color: var(--text-soft); font-weight: 500; }
.board-block__year {
  background: var(--blue-700);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 999px;
}
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px;
}
.board-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.board-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--blue-300);
}
.board-card__avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--blue-600), var(--blue-900));
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  border: 3px solid var(--blue-300);
}
.board-card__avatar--empty {
  background: var(--blue-100);
  color: var(--blue-400);
  border: 3px dashed var(--blue-300);
}
.board-card__avatar--photo {
  padding: 0;
  overflow: hidden;
  background: var(--blue-100);
}
.board-card__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.board-card:hover .board-card__avatar--photo img { transform: scale(1.06); }
.board-card__role {
  display: inline-block;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  color: var(--blue-800);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.board-card h3 { color: var(--blue-900); font-size: 1.05rem; margin-bottom: 4px; }
.board-card p { color: var(--text-soft); font-size: 0.88rem; }
.board-card--empty p { color: var(--blue-600); font-style: italic; }

/* ---------------- Capítulos: un apartado por capítulo ---------------- */
.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.chapter-card {
  --cap-accent: var(--blue-600);
  --cap-ink: #fff;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--cap-accent);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: 0 8px 24px rgba(10, 38, 71, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.chapter-card__sigla {
  display: inline-block;
  align-self: flex-start;
  background: var(--cap-accent);
  color: var(--cap-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--cap-accent) 45%, transparent);
}
.chapter-card__name {
  margin-top: 14px;
  color: var(--blue-900);
  font-size: 1.02rem;
  line-height: 1.35;
}
.chapter-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 10px;
  flex: 1;
}
.chapter-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-top: 16px;
}
.chapter-card__tags li {
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  color: var(--blue-800);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}
.chapter-card__ig {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cap-accent);
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--cap-accent) 40%, transparent);
  align-self: flex-start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.chapter-card__ig:hover {
  border-color: var(--cap-accent);
  transform: translateX(2px);
}
.chapter-card__media {
  margin: -26px -24px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--blue-100);
}
.chapter-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------- Modo administrador ---------------- */
body.admin-mode { padding-bottom: 76px; }
body.admin-mode main :is(h1, h2, h3, h4, p, li, .badge, .eyebrow, .chip,
    .activity__tag, .activity__date, .datalist strong, .datalist span,
    .quicklink__arrow, .contact__label, .board-card__role):hover {
  background: rgba(20, 114, 201, 0.08);
  outline: 1px dashed var(--blue-400);
  outline-offset: 2px;
  cursor: text;
}
body.admin-mode main [contenteditable="true"]:focus {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  background: #fff;
}
body.admin-mode main img { cursor: pointer; }

.admin-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  background: var(--blue-950);
  color: #fff;
  font-size: 0.82rem;
  border-top: 3px solid var(--blue-400);
  box-shadow: 0 -6px 20px rgba(5, 20, 38, 0.4);
}
.admin-bar button {
  background: var(--blue-700);
  border: 0;
  color: #fff;
  padding: 7px 13px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.admin-bar button:hover { background: var(--blue-500); }
.admin-bar__user strong { color: var(--blue-300); }
.admin-bar__hint { opacity: 0.7; margin-left: auto; }
.admin-toast {
  position: fixed;
  bottom: 78px;
  right: 16px;
  z-index: 310;
  background: var(--blue-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}
@media (max-width: 820px) {
  .admin-bar__hint { display: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .split, .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats, .stats--light { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .burger { display: flex; order: 3; }
  .header__cta { margin-left: auto; }

  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 2px;
    padding: 14px 6% 22px;
    border-bottom: 4px solid var(--blue-500);
    box-shadow: 0 20px 30px rgba(10, 38, 71, 0.16);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    margin-left: 0;
    z-index: 99;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 13px 10px; font-size: 1rem; border-bottom: 1px solid var(--blue-100); }

  .hero { padding-top: 140px; }
  .page-hero { padding-top: 130px; }
  .timeline::before { left: 8px; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; padding-left: 34px; }
  .timeline__item::before { left: 2px; top: 22px; }
  .timeline__date { text-align: left; padding-top: 0; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .stats, .stats--light { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats strong { font-size: 1.5rem; }
  .form { padding: 22px; }
  .header__cta { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
