/**
 * Sucre Tec — capa visual del portal (hub, auth, marca).
 * No afecta tablas ni formularios CRUD internos.
 */
:root {
  --st-blue: #133b8a;
  --st-blue-mid: #1d4fb3;
  --st-blue-soft: #eef4ff;
  --st-cyan: #0ea5c9;
  --st-violet: #6d5ce7;
  --st-green: #0d8a4a;
  --st-amber: #d97706;
  --st-text: #1a2744;
  --st-muted: #5a6578;
  --st-card: #ffffff;
  --st-radius: 14px;
  --st-shadow: 0 8px 28px rgba(19, 59, 138, 0.08);
  --st-font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

body.portal-ui {
  font-family: var(--st-font);
  color: var(--st-text);
  background-color: #eef3fb;
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(14, 165, 201, 0.14), transparent 55%),
    radial-gradient(ellipse 90% 60% at -10% 100%, rgba(109, 92, 231, 0.1), transparent 50%),
    linear-gradient(180deg, #f4f8ff 0%, #eef3fb 100%);
  min-height: 100vh;
}

body.portal-ui::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(19, 59, 138, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 59, 138, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  z-index: 0;
}

body.portal-ui .wrap,
body.portal-ui > main,
body.portal-ui #imgppal {
  position: relative;
  z-index: 1;
}

/* —— Marca / logo —— */
.portal-brand {
  text-align: center;
  padding: 10px 16px 4px;
}

.portal-brand img {
  display: inline-block;
  max-width: 300px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(19, 59, 138, 0.12));
  transition: transform 0.25s ease;
}

.portal-brand.compact img {
  max-width: 140px;
}

.portal-brand .portal-tagline {
  margin: 6px auto 0;
  max-width: 420px;
  font-size: 0.82rem;
  color: var(--st-muted);
  letter-spacing: 0.02em;
}

.portal-brand .portal-tagline strong {
  color: var(--st-blue);
  font-weight: 700;
}

.portal-home-link {
  margin: 0 0 6px;
  text-align: center;
  font-size: 0.88rem;
}

.portal-home-link a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--st-blue-mid);
  font-weight: 600;
  text-decoration: none;
}

.portal-home-link a:hover {
  text-decoration: underline;
}

.portal-logo-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
}

.portal-logo-link:focus-visible {
  outline: 2px solid var(--st-blue-mid);
  outline-offset: 4px;
}

#imgppal .portal-logo-link img {
  transition: transform 0.2s ease, filter 0.2s ease;
}

#imgppal .portal-logo-link:hover img {
  transform: scale(1.02);
  filter: drop-shadow(0 6px 16px rgba(19, 59, 138, 0.16));
}

/* —— Tarjetas hub y auth —— */
body.portal-ui .card-auth,
body.portal-ui .hub-panel {
  border: 1px solid rgba(19, 59, 138, 0.12);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
}

body.portal-ui .card-auth > h1,
body.portal-ui .card-auth > h2,
body.portal-ui .hub-panel > h2 {
  color: var(--st-blue);
}

.hub-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(19, 59, 138, 0.15);
}

.hub-panel-head-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--st-blue-soft), #fff);
  border: 1px solid rgba(19, 59, 138, 0.12);
  color: var(--st-blue-mid);
  box-shadow: 0 4px 12px rgba(29, 79, 179, 0.12);
}

.hub-panel-head-icon svg {
  width: 26px;
  height: 26px;
}

.hub-panel-head-text h2 {
  margin: 0 0 4px;
}

.hub-panel-head-text p {
  margin: 0;
}

.hub-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 201, 0.12);
  color: #0c6b8a;
  border: 1px solid rgba(14, 165, 201, 0.25);
}

.hub-chip svg {
  width: 12px;
  height: 12px;
}

/* —— Grid de módulos —— */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.hub-btn {
  position: relative;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 14px 12px;
  border-radius: var(--st-radius);
  border: 1px solid rgba(19, 59, 138, 0.14);
  background: var(--st-card);
  color: var(--st-text);
  cursor: pointer;
  text-align: left;
  line-height: 1.25;
  font: inherit;
  box-shadow: 0 2px 10px rgba(19, 59, 138, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  overflow: hidden;
}

.hub-btn::after {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  opacity: 0.12;
  background: var(--hub-accent, var(--st-blue-mid));
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hub-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(19, 59, 138, 0.14);
  border-color: rgba(29, 79, 179, 0.35);
}

.hub-btn:hover::after {
  transform: scale(1.15);
  opacity: 0.18;
}

.hub-btn:focus-visible {
  outline: 2px solid var(--st-blue-mid);
  outline-offset: 2px;
}

.hub-btn.active {
  background: linear-gradient(145deg, #173f8f, #0f2d66);
  border-color: #0f2d66;
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 45, 102, 0.35);
}

.hub-btn.active .hub-icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hub-btn.active .hub-desc {
  color: rgba(255, 255, 255, 0.82);
}

.hub-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hub-icon-bg, var(--st-blue-soft));
  border: 1px solid var(--hub-icon-border, rgba(29, 79, 179, 0.15));
  color: var(--hub-accent, var(--st-blue-mid));
}

.hub-icon svg {
  width: 22px;
  height: 22px;
}

.hub-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.2;
}

.hub-desc {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--st-muted);
  line-height: 1.3;
}

/* Acentos por módulo */
.hub-btn[data-hub="misDatos"] { --hub-accent: #1d4fb3; --hub-icon-bg: #eef4ff; }
.hub-btn[data-hub="miGrupo"],
.hub-btn[data-hub="misGrupos"] { --hub-accent: #6d5ce7; --hub-icon-bg: #f0edff; --hub-icon-border: rgba(109, 92, 231, 0.2); }
.hub-btn[data-hub="proyectos"] { --hub-accent: #0d8a4a; --hub-icon-bg: #ecfdf3; --hub-icon-border: rgba(13, 138, 74, 0.2); }
.hub-btn[data-hub="misActividades"],
.hub-btn[data-hub="misActividadesGestion"] { --hub-accent: #d97706; --hub-icon-bg: #fff7ed; --hub-icon-border: rgba(217, 119, 6, 0.2); }
.hub-btn[data-hub="bitacoras"] { --hub-accent: #0ea5c9; --hub-icon-bg: #ecfeff; --hub-icon-border: rgba(14, 165, 201, 0.2); }
.hub-btn[data-hub="lups"] { --hub-accent: #7c3aed; --hub-icon-bg: #f5f3ff; --hub-icon-border: rgba(124, 58, 237, 0.2); }
.hub-btn[data-hub="conocimiento"] { --hub-accent: #2563eb; --hub-icon-bg: #eff6ff; }
.hub-btn[data-hub="oportunidadesFormacion"] { --hub-accent: #059669; --hub-icon-bg: #ecfdf5; }
.hub-btn[data-hub="asistencia"] { --hub-accent: #dc2626; --hub-icon-bg: #fef2f2; }
.hub-btn[data-hub="notificacionesTutor"] { --hub-accent: #ea580c; --hub-icon-bg: #fff7ed; }
.hub-btn[data-hub="crud"] { --hub-accent: #475569; --hub-icon-bg: #f1f5f9; }

.hub-content-head[data-hub="misDatos"],
.hub-modal-head[data-hub="misDatos"] { --hub-accent: #1d4fb3; --hub-icon-bg: #eef4ff; }
.hub-content-head[data-hub="miGrupo"],
.hub-content-head[data-hub="misGrupos"],
.hub-modal-head[data-hub="miGrupo"],
.hub-modal-head[data-hub="misGrupos"] { --hub-accent: #6d5ce7; --hub-icon-bg: #f0edff; --hub-icon-border: rgba(109, 92, 231, 0.2); }
.hub-content-head[data-hub="proyectos"],
.hub-modal-head[data-hub="proyectos"] { --hub-accent: #0d8a4a; --hub-icon-bg: #ecfdf3; --hub-icon-border: rgba(13, 138, 74, 0.2); }
.hub-content-head[data-hub="misActividades"],
.hub-modal-head[data-hub="misActividades"] { --hub-accent: #d97706; --hub-icon-bg: #fff7ed; --hub-icon-border: rgba(217, 119, 6, 0.2); }
.hub-content-head[data-hub="bitacoras"],
.hub-modal-head[data-hub="bitacoras"] { --hub-accent: #0ea5c9; --hub-icon-bg: #ecfeff; --hub-icon-border: rgba(14, 165, 201, 0.2); }
.hub-content-head[data-hub="lups"],
.hub-modal-head[data-hub="lups"] { --hub-accent: #7c3aed; --hub-icon-bg: #f5f3ff; --hub-icon-border: rgba(124, 58, 237, 0.2); }
.hub-content-head[data-hub="conocimiento"],
.hub-modal-head[data-hub="conocimiento"] { --hub-accent: #2563eb; --hub-icon-bg: #eff6ff; }
.hub-content-head[data-hub="oportunidadesFormacion"],
.hub-modal-head[data-hub="oportunidadesFormacion"] { --hub-accent: #059669; --hub-icon-bg: #ecfdf5; }
.hub-content-head[data-hub="asistencia"],
.hub-modal-head[data-hub="asistencia"] { --hub-accent: #dc2626; --hub-icon-bg: #fef2f2; }
.hub-content-head[data-hub="notificaciones"],
.hub-content-head[data-hub="notificacionesTutor"],
.hub-modal-head[data-hub="notificaciones"],
.hub-modal-head[data-hub="notificacionesTutor"] { --hub-accent: #ea580c; --hub-icon-bg: #fff7ed; }
.hub-content-head[data-hub="crud"],
.hub-modal-head[data-hub="crud"] { --hub-accent: #475569; --hub-icon-bg: #f1f5f9; }

/* Auth — más amigable */
body.portal-ui .auth-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.portal-ui .auth-section-title svg {
  width: 22px;
  height: 22px;
  color: var(--st-cyan);
  flex-shrink: 0;
}

body.portal-ui .nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#imgppal.compact,
.portal-brand.compact {
  padding-top: 6px;
}

#imgppal.compact img,
.portal-brand.compact img {
  max-width: 140px;
}

body.portal-ui .portal-welcome {
  text-align: center;
  border: 1px solid rgba(19, 59, 138, 0.1);
  background: linear-gradient(165deg, #ffffff 0%, #f3f8ff 55%, #faf5ff 100%);
}

body.portal-ui .portal-welcome h1 {
  color: var(--st-blue);
}

@media (max-width: 520px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hub-btn {
    min-height: 108px;
    padding: 12px 10px;
  }
  .hub-label {
    font-size: 0.88rem;
  }
  .hub-desc {
    display: none;
  }
}

/* —— Modales del hub —— */
.hub-feature-backdrop {
  background: rgba(15, 35, 80, 0.52);
  backdrop-filter: blur(4px);
}

.hub-feature-modal {
  border: 1px solid rgba(19, 59, 138, 0.14);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 45, 102, 0.22);
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.modal-hub-head,
.gob-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(19, 59, 138, 0.1);
  background: linear-gradient(90deg, #f3f8ff 0%, #faf5ff 55%, #fff 100%);
  flex-shrink: 0;
}

.hub-modal-head-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.hub-modal-head-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hub-icon-bg, var(--st-blue-soft));
  border: 1px solid var(--hub-icon-border, rgba(29, 79, 179, 0.15));
  color: var(--hub-accent, var(--st-blue-mid));
}

.hub-modal-head-icon svg {
  width: 22px;
  height: 22px;
}

.modal-hub-head h3,
.gob-modal-head h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--st-blue);
  line-height: 1.25;
}

.hub-modal-head-desc {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--st-muted);
  font-weight: 500;
}

.modal-hub-scroll,
.gob-modal-scroll {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, #fafcff 0%, #fff 120px);
}

.hub-feature-modal .modal-hub-scroll,
.hub-feature-modal .gob-modal-scroll {
  max-height: calc(90vh - 72px);
}

.hub-placeholder {
  color: var(--st-muted);
  line-height: 1.5;
}

.hub-placeholder > .card,
.modal-hub-scroll > .card,
.gob-modal-scroll > .card,
.hub-content-panel.card {
  border: 1px solid rgba(19, 59, 138, 0.1);
  border-radius: var(--st-radius);
  box-shadow: 0 4px 16px rgba(19, 59, 138, 0.06);
}

/* Paneles inline (gob) */
.hub-content-panel.card {
  border: 1px solid rgba(19, 59, 138, 0.12);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
}

.hub-content-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(19, 59, 138, 0.12);
}

.hub-content-head .hub-modal-head-icon {
  width: 44px;
  height: 44px;
}

.hub-content-head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--st-blue);
}

.hub-content-head p {
  margin: 0;
}

/* Alertas */
body.portal-ui .alert-modal-box {
  border-radius: 14px;
  border: 1px solid rgba(19, 59, 138, 0.12);
  box-shadow: 0 16px 40px rgba(19, 59, 138, 0.18);
  overflow: hidden;
}

body.portal-ui .alert-modal-box .modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--st-blue);
}

/* —— Páginas públicas —— */
body.portal-public {
  font-family: var(--st-font);
  color: var(--st-text);
  background-color: #eef3fb;
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(14, 165, 201, 0.14), transparent 55%),
    radial-gradient(ellipse 90% 60% at -10% 100%, rgba(109, 92, 231, 0.1), transparent 50%),
    linear-gradient(180deg, #f4f8ff 0%, #eef3fb 100%);
  min-height: 100vh;
  margin: 0;
}

body.portal-public::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(19, 59, 138, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 59, 138, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  z-index: 0;
}

body.portal-public .ep-wrap,
body.portal-public .pp-page-inner {
  position: relative;
  z-index: 1;
}

.ep-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.ep-hero {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px 16px 8px;
}

.ep-hero img {
  max-width: 220px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(19, 59, 138, 0.12));
}

.ep-hero h1 {
  margin: 12px 0 6px;
  color: var(--st-blue);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
}

.ep-hero .muted {
  color: var(--st-muted);
  margin: 0 auto;
  max-width: 520px;
}

.ep-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.ep-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--st-blue-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.ep-back:hover {
  text-decoration: underline;
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.ep-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(19, 59, 138, 0.12);
  border-radius: var(--st-radius);
  padding: 14px;
  box-shadow: 0 4px 16px rgba(19, 59, 138, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
  position: relative;
}

.ep-card::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(13, 138, 74, 0.1);
  pointer-events: none;
}

.ep-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 79, 179, 0.35);
  box-shadow: 0 12px 28px rgba(19, 59, 138, 0.14);
}

.ep-card-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ep-card-thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(19, 59, 138, 0.1);
  flex-shrink: 0;
}

.ep-card-thumb-fallback {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef4ff, #ecfeff);
  color: var(--st-blue-mid);
  border: 1px solid rgba(19, 59, 138, 0.1);
}

.ep-card-thumb-fallback svg {
  width: 32px;
  height: 32px;
}

.ep-card-body {
  flex: 1;
  min-width: 0;
}

.ep-card h2 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--st-blue);
  line-height: 1.25;
}

.ep-card p {
  margin: 0 0 4px;
  font-size: 0.86rem;
  color: var(--st-muted);
}

.ep-badge {
  color: var(--st-green);
  font-weight: 700;
  font-size: 0.8rem;
}

.ep-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--st-text);
}

/* Proyecto público — refinamientos sobre pp-* */
body.portal-public.pp-page .pp-hero {
  position: relative;
  overflow: hidden;
}

body.portal-public.pp-page .pp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

body.portal-public.pp-page .pp-section {
  border: 1px solid rgba(19, 59, 138, 0.1);
  border-radius: var(--st-radius);
  box-shadow: 0 6px 20px rgba(19, 59, 138, 0.07);
}

body.portal-public.pp-page .pp-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.portal-public.pp-page .pp-section h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 201, 0.2);
  flex-shrink: 0;
}

/* —— Landing pública (index) —— */
.land-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 48px;
  position: relative;
  z-index: 1;
}

.land-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  margin: 0 -16px 12px;
  background: rgba(244, 248, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 59, 138, 0.1);
}

.land-nav-bar {
  display: contents;
}

.land-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(19, 59, 138, 0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--st-blue);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(19, 59, 138, 0.08);
}

.land-nav-toggle:hover {
  border-color: rgba(29, 79, 179, 0.35);
}

.land-nav-toggle:focus-visible {
  outline: 2px solid var(--st-blue-mid);
  outline-offset: 2px;
}

.land-nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}

.land-nav-toggle-icon::before,
.land-nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.land-nav-toggle-icon::before {
  top: -6px;
}

.land-nav-toggle-icon::after {
  top: 6px;
}

.land-nav.is-open .land-nav-toggle-icon {
  background: transparent;
}

.land-nav.is-open .land-nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.land-nav.is-open .land-nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.land-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--st-text);
  font-weight: 700;
  font-size: 0.95rem;
}

.land-nav-brand img {
  height: 36px;
  width: auto;
}

.land-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.land-nav-links a {
  color: var(--st-blue-mid);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.land-nav-links a:hover {
  text-decoration: underline;
}

.land-nav-links a[aria-current="page"] {
  color: var(--st-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.land-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--st-green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid rgba(13, 138, 74, 0.35);
  box-shadow: 0 4px 14px rgba(13, 138, 74, 0.22);
}

.land-nav-cta:hover {
  filter: brightness(1.05);
}

.land-hero {
  text-align: center;
  padding: 28px 12px 20px;
}

.land-hero img.land-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(19, 59, 138, 0.14));
}

.land-tagline {
  margin: 10px auto 16px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--st-blue-mid);
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  letter-spacing: 0.01em;
}

.land-hero-lead {
  max-width: 560px;
  margin: 0 auto 18px;
  color: var(--st-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.land-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.land-btn:hover {
  transform: translateY(-1px);
}

.land-btn--primary {
  background: linear-gradient(135deg, #1a9e52, var(--st-green));
  color: #fff;
  box-shadow: 0 8px 22px rgba(13, 138, 74, 0.28);
  border-color: rgba(13, 138, 74, 0.35);
}

.land-btn--secondary {
  background: #fff;
  color: var(--st-blue-mid);
  border-color: rgba(29, 79, 179, 0.25);
  box-shadow: 0 4px 14px rgba(19, 59, 138, 0.08);
}

.land-section {
  margin-top: 36px;
  scroll-margin-top: 72px;
}

.land-section-head {
  margin-bottom: 16px;
}

.land-section-head h2 {
  margin: 0 0 6px;
  color: var(--st-blue);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.land-section-head p {
  margin: 0;
  color: var(--st-muted);
  max-width: 640px;
}

.land-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.land-info-card {
  background: #fff;
  border-radius: var(--st-radius);
  overflow: hidden;
  border: 1px solid rgba(19, 59, 138, 0.1);
  box-shadow: 0 4px 16px rgba(19, 59, 138, 0.06);
}

.land-info-card__head {
  padding: 10px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
}

.land-info-card__head--blue {
  background: linear-gradient(135deg, #1d4fb3, #2563c7);
}

.land-info-card__head--green {
  background: linear-gradient(135deg, #1a9e52, var(--st-green));
}

.land-info-card__body {
  padding: 14px 16px 16px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.land-info-card__body p {
  margin: 0;
}

.land-info-card__body ul,
.land-info-card__body ol {
  margin: 0;
  padding-left: 1.2rem;
}

.land-info-card__body li + li {
  margin-top: 6px;
}

.land-portals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.land-portal-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(19, 59, 138, 0.12);
  border-radius: var(--st-radius);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(19, 59, 138, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.land-portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 79, 179, 0.35);
  box-shadow: 0 10px 24px rgba(19, 59, 138, 0.12);
}

.land-portal-card h3 {
  margin: 0 0 6px;
  color: var(--st-blue);
  font-size: 1.05rem;
}

.land-portal-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--st-muted);
  line-height: 1.4;
}

.land-portal-card .land-portal-go {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--st-blue-mid);
}

.land-news-empty,
.land-contact-card {
  background: #fff;
  border: 1px dashed rgba(19, 59, 138, 0.2);
  border-radius: var(--st-radius);
  padding: 18px 16px;
  color: var(--st-muted);
}

.land-faq-list {
  display: grid;
  gap: 8px;
}

.land-faq-item {
  background: #fff;
  border: 1px solid rgba(19, 59, 138, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.land-faq-item summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--st-blue);
  list-style: none;
}

.land-faq-item summary::-webkit-details-marker {
  display: none;
}

.land-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--st-muted);
  font-weight: 700;
}

.land-faq-item[open] summary::after {
  content: "−";
}

.land-faq-item div {
  padding: 0 14px 12px;
  font-size: 0.92rem;
  color: var(--st-muted);
  line-height: 1.45;
}

.land-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(19, 59, 138, 0.12);
  text-align: center;
  font-size: 0.86rem;
  color: var(--st-muted);
}

.land-footer a {
  color: var(--st-blue-mid);
  font-weight: 600;
  text-decoration: none;
}

.land-footer a:hover {
  text-decoration: underline;
}

.land-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.st-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  align-items: center;
}

.st-social--start {
  justify-content: flex-start;
}

.st-social--footer {
  margin-bottom: 14px;
}

.st-social__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.st-social__link:hover {
  color: #555;
}

.st-social svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.land-contact-card .st-social {
  margin-top: 8px;
}

.land-contact-card .st-social__heading {
  margin: 16px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--st-blue);
}

@media (max-width: 760px) {
  .land-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px;
  }

  .land-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .land-nav-toggle {
    display: inline-flex;
  }

  .land-nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(19, 59, 138, 0.1);
  }

  .land-nav.is-open .land-nav-links {
    display: flex;
  }

  .land-nav-links a {
    padding: 11px 6px;
    border-bottom: 1px solid rgba(19, 59, 138, 0.08);
    font-size: 0.95rem;
  }

  .land-nav-links a:last-child {
    border-bottom: 0;
  }

  .land-nav-cta {
    margin-top: 8px;
    justify-content: center;
    text-align: center;
    padding: 11px 14px;
  }

  body.land-nav-open {
    overflow: hidden;
  }

  .land-info-grid,
  .land-portals {
    grid-template-columns: 1fr;
  }

  .land-hero {
    padding-top: 16px;
  }
}

/* —— Grupo / proyecto / miembros —— */
.st-avatar {
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(19, 59, 138, 0.12);
  background: #f4f8ff;
  flex-shrink: 0;
}

.st-avatar--square {
  border-radius: 14px;
}

.st-avatar--md {
  width: 56px;
  height: 56px;
}

.st-avatar--lg {
  width: 72px;
  height: 72px;
}

.st-avatar--xl {
  width: 96px;
  height: 96px;
}

.st-grupo-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.st-grupo-header-text h3 {
  margin: 0 0 6px;
  color: var(--st-blue);
}

.st-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.st-member-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(19, 59, 138, 0.1);
  border-radius: var(--st-radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(19, 59, 138, 0.05);
}

.st-member-card h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  color: var(--st-text);
  line-height: 1.25;
}

.st-member-body {
  flex: 1;
  min-width: 0;
}

.st-member-tel {
  margin: 0;
  font-size: 0.82rem;
}

.st-badge-cap {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(29, 79, 179, 0.12);
  color: var(--st-blue-mid);
  vertical-align: middle;
}

.st-badge-pat {
  color: var(--st-green);
  font-weight: 700;
  font-size: 0.86rem;
}

.st-proyectos-mini-list {
  display: grid;
  gap: 10px;
}

.st-proyecto-mini-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(19, 59, 138, 0.12);
  border-radius: 12px;
  background: linear-gradient(165deg, #fff 0%, #f8fbff 100%);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.st-proyecto-mini-card:hover {
  border-color: rgba(29, 79, 179, 0.35);
  box-shadow: 0 6px 18px rgba(19, 59, 138, 0.1);
}

.st-proyecto-mini-card--static {
  cursor: default;
}

.st-proyecto-mini-body {
  flex: 1;
  min-width: 0;
}

.st-proyecto-mini-body strong {
  color: var(--st-blue);
}

.st-proyecto-mini-body .hint {
  margin: 4px 0 0;
  font-size: 0.84rem;
}

.st-nav-strip {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(19, 59, 138, 0.1);
  border-radius: var(--st-radius);
  background: linear-gradient(165deg, #fff 0%, #f3f8ff 100%);
}

.st-section-title {
  margin: 16px 0 8px;
  font-size: 1rem;
  color: var(--st-blue);
}

.st-grupo-imagen-upload {
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px dashed rgba(19, 59, 138, 0.2);
  border-radius: 12px;
  background: #fafcff;
}
