/**
 * Núcleo Colegios — sobre capa visual institucional (ni-bg + ni-header).
 * Requiere: instituciones/css/instituciones-tokens.css y instituciones/css/instituciones.css
 */
body.collegios-inst {
  padding-top: 0 !important;
  background: transparent !important;
  color: var(--ni-text) !important;
}

.collegios-inst .hero {
  text-align: center;
  padding: clamp(4rem, 12vw, 6rem) 20px clamp(3rem, 8vw, 4.5rem);
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(138, 43, 226, 0.35);
  background:
    radial-gradient(ellipse 85% 70% at 50% 0%, rgba(124, 58, 237, 0.25), transparent 55%),
    linear-gradient(rgba(5, 5, 16, 0.72), rgba(5, 5, 16, 0.88)),
    url("https://raw.githubusercontent.com/nucleodigital-cl/N-cleo-digital/claude/landing-page-hero-kSpzt/images/Gemini_Generated_Image_ki410kki410kki41.png");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.collegios-inst .hero h1 {
  font-family: var(--ni-font-display, "Sora", sans-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  max-width: 900px;
}

.collegios-inst .hero .sub-large {
  font-family: var(--ni-font-display, "Sora", sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 40px;
  max-width: 850px;
  line-height: 1.1;
  color: var(--ni-cyan);
  text-shadow: 0 2px 24px rgba(34, 211, 238, 0.25);
}

.collegios-inst .section-programa-outer {
  background: linear-gradient(180deg, rgba(18, 10, 40, 0.55) 0%, rgba(5, 5, 16, 0.92) 100%);
  color: var(--ni-text);
  width: 100%;
}

.collegios-inst .module-card {
  padding: 32px 0;
  text-align: center;
}

.collegios-inst .module-card h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 5px;
  color: #f1f5f9;
}

.collegios-inst .module-card .prog-sub {
  color: var(--ni-text-muted);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.collegios-inst .step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.collegios-inst .step h3 {
  font-size: 1.5rem;
  margin: 15px 0 10px;
  font-weight: 800;
}

.collegios-inst .step-cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.collegios-inst .step {
  padding: 40px 30px;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #e2e8f0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.collegios-inst .step h3 {
  color: #fff;
}

.collegios-inst .step p {
  color: var(--ni-text-muted);
}

.collegios-inst .step-cta {
  color: var(--ni-cyan);
  border-color: rgba(34, 211, 238, 0.55);
}

.collegios-inst .step:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.2);
}

.collegios-inst .step:hover .step-cta {
  background: rgba(34, 211, 238, 0.18);
  color: #fff;
}

.collegios-inst .section-contacto-outer {
  background: transparent;
  padding: 2.5rem 0 3rem;
}

.collegios-inst .form-box {
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.collegios-inst .legal-card h4 {
  color: #fff;
}

.collegios-inst .site-footer {
  border-top-color: rgba(139, 92, 246, 0.28);
}
