/* ═══════════════════════════════════════════════════
   Misión de Sabios · CENIGAA
   Diseño alineado al marco visual del proyecto
   ═══════════════════════════════════════════════════ */

/* ── Hero ── */
.ms-hero {
  background: #0d1126;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
  overflow: hidden;
}
.ms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 50% 100%, rgba(0, 91, 190, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 25%,  rgba(24, 95, 165, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.ms-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ms-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}
.ms-back:hover { color: rgba(255, 255, 255, 0.75); }

.ms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.ms-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
}
.ms-year {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.ms-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}
.ms-hero-title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.ms-hero-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.72;
  max-width: 580px;
  margin: 0 0 1.25rem;
}

.ms-hero-quote {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  padding: 0.9rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
  line-height: 1.7;
  max-width: 620px;
  text-align: left;
  margin: 0;
}

/* ── Barra de estadísticas ── */
.ms-stats-bar {
  background: #1D6B3A;
  padding: 1.1rem 2rem;
}
.ms-stats-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
.ms-stat-item {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.ms-stat-item:last-child { border-right: none; }
.ms-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.ms-stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 0.3rem;
  text-align: center;
}

/* ── Intro ── */
.ms-intro {
  background: #ffffff;
}
.ms-intro-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}
.ms-intro-inner h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark, #003366);
  margin-bottom: 0.6rem;
  text-align: left;
}
.ms-intro-inner p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.8;
  max-width: 780px;
  text-align: left;
}

/* ── Contenido ── */
.ms-content {
  background: #ffffff;
}
.ms-content-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

@keyframes ms-fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tarjetas de foco ── */
.foco-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.foco-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.foco-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.foco-card.open {
  border-color: #d1d5db;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.foco-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
}

.foco-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 1px;
}
.foco-badge-n {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}
.foco-badge-tag {
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.8;
}

.foco-header-text { flex: 1; text-align: left; }
.foco-bloque-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}
.foco-nombre {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  margin: 0;
}
.foco-subtitulo {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

.foco-chevron {
  width: 18px;
  height: 18px;
  color: #9ca3af;
  transition: transform 0.22s;
  flex-shrink: 0;
}
.foco-card.open .foco-chevron { transform: rotate(180deg); }

.foco-body {
  display: none;
  padding: 0 1.25rem 1.25rem 4.75rem;
}
.foco-card.open .foco-body {
  display: block;
  animation: ms-fadeUp 0.22s ease;
}

.foco-desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  border-left: 2px solid #e5e7eb;
  padding-left: 0.9rem;
}

.lineas-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}
.lineas-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.linea-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #f9fafb;
  border: 0.5px solid #e5e7eb;
}
.linea-code {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.15rem;
  white-space: nowrap;
}
.linea-text {
  font-size: 0.825rem;
  color: #4b5563;
  line-height: 1.55;
}

.grupos-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.grupos-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.grupo-chip {
  padding: 0.2rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}
.chip-e { background: #fff4ee; border-color: #CC5500; color: #7a3300; }
.chip-a { background: #eef6e6; border-color: #3B6D11; color: #244e0b; }
.chip-b { background: #e8f2fb; border-color: #185FA5; color: #0c3f74; }
.chip-t { background: #eeecfe; border-color: #534AB7; color: #362f8a; }

/* ── Bloque de cierre ── */
.ms-cierre {
  background: #0d1126;
  padding: 2.75rem 2rem;
}
.ms-cierre-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}
.ms-cierre-inner::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-size: 9rem;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}
.ms-cierre-tag {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
  display: block;
}
.ms-cierre p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: left;
}
.ms-cierre-src {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ms-hero { padding-top: calc(80px + 1.5rem); padding-left: 1.25rem; padding-right: 1.25rem; }
  .ms-hero-inner { text-align: left; align-items: flex-start; }
  .ms-stats-bar { padding: 1rem; }
  .ms-stat-item { min-width: 100px; }
  .ms-intro-inner, .ms-content-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .foco-body { padding-left: 1.25rem; }
  .ms-cierre { padding: 2rem 1.25rem; }
}
