/* ============================================================
   Malla curricular — 3 módulos / 6 ciclos, Mobile First
   Cada módulo agrupa dos ciclos consecutivos.
   ============================================================ */
.curriculum {
  color: var(--color-navy);
  background:
    radial-gradient(circle at 8% 4%, rgba(8,170,165,.07), transparent 22%),
    #fff;
}

.curriculum__intro {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.curriculum__intro .section-badge {
  margin: 0 auto 12px;
}

.curriculum__intro .section-heading {
  margin-bottom: 10px;
}

.curriculum__intro > p:last-child {
  max-width: 680px;
  margin-inline: auto;
  color: var(--color-slate-500);
  font-size: .84rem;
  line-height: 1.6;
}

.tab-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid rgba(8,170,165,.12);
  border-radius: 15px;
  background: #effaf9;
}

.tab-strip__btn {
  min-width: 0;
  min-height: 60px;
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 10px;
  color: var(--color-slate-500);
  background: transparent;
  font-family: var(--font-heading);
  font-size: .64rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tab-strip__btn small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .78;
}

.tab-strip__number {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.tab-strip__btn[aria-selected="true"] {
  color: var(--module-text, #fff);
  background: var(--module-color);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--module-color) 23%, transparent);
}

.module-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(8,170,165,.13);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #f7fcfb 100%);
  box-shadow: var(--shadow-card);
}

.module-panel[hidden] { display: none; }

.module-panel__main,
.module-panel__aside { min-width: 0; }

.module-panel__eyebrow {
  width: fit-content;
  margin-bottom: 11px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--module-color) 30%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--module-color) 72%, var(--color-navy));
  background: color-mix(in srgb, var(--module-color) 8%, #fff);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.module-panel__title {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--color-navy);
  font-size: clamp(1.16rem, 1.04rem + .55vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.module-panel__cycles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.module-cycle {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--module-color) 17%, var(--color-slate-200));
  border-radius: 14px;
  background: rgba(255,255,255,.82);
}

.module-cycle__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid color-mix(in srgb, var(--module-color) 15%, var(--color-slate-200));
}

.module-cycle__number {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: color-mix(in srgb, var(--module-color) 78%, var(--color-navy));
  background: color-mix(in srgb, var(--module-color) 12%, #fff);
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
}

.module-cycle__label,
.module-cycle__header small {
  display: block;
}

.module-cycle__label {
  margin-bottom: 2px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: .86rem;
  font-weight: 800;
}

.module-cycle__header small {
  color: var(--color-slate-500);
  font-size: .61rem;
  font-weight: 700;
}

.module-panel__courses {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-panel__courses li {
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--color-slate-200);
  border-radius: 10px;
  color: var(--color-slate-700);
  background: #fff;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.35;
}

.module-panel__courses li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--module-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--module-color) 12%, transparent);
}

.module-cycle__meta {
  width: fit-content;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--module-color) 70%, var(--color-navy));
  background: color-mix(in srgb, var(--module-color) 8%, #fff);
  font-size: .62rem;
  line-height: 1;
}

.module-cycle__meta strong { font-weight: 900; }
.module-cycle__meta span { margin-left: 4px; font-weight: 800; }

.module-panel__aside {
  display: grid;
  align-content: start;
  gap: 10px;
}

.module-panel__hours,
.module-panel__note,
.module-panel__step,
.module-panel__degree,
.module-panel__cert {
  min-width: 0;
  padding: 14px;
  border-radius: 13px;
}

.module-panel__hours {
  border: 1px solid rgba(8,170,165,.17);
  background: var(--color-cyan-pale);
}

.module-panel__hours strong,
.module-panel__hours span {
  display: block;
}

.module-panel__hours strong {
  margin-bottom: 4px;
  color: var(--color-cyan-dark);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
}

.module-panel__hours span {
  color: var(--color-slate-600);
  font-size: .7rem;
  line-height: 1.45;
}

.module-panel__note {
  border: 1px solid rgba(8,45,69,.1);
  background: var(--color-slate-50);
}

.module-panel__note strong,
.module-panel__note span {
  display: block;
}

.module-panel__note strong {
  margin-bottom: 4px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: .74rem;
  font-weight: 800;
}

.module-panel__note span {
  color: var(--color-slate-600);
  font-size: .68rem;
  line-height: 1.45;
}

.module-panel__step {
  border: 1px dashed color-mix(in srgb, var(--module-color) 42%, transparent);
  color: color-mix(in srgb, var(--module-color) 72%, var(--color-navy));
  background: color-mix(in srgb, var(--module-color) 6%, #fff);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.35;
}

.module-panel__cert {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid color-mix(in srgb, var(--module-color) 32%, transparent);
  background: color-mix(in srgb, var(--module-color) 8%, #fff);
}

.module-panel__cert-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: color-mix(in srgb, var(--module-color) 76%, var(--color-navy));
}

.module-panel__cert span,
.module-panel__cert strong { display: block; }

.module-panel__cert span {
  margin-bottom: 2px;
  color: var(--color-slate-500);
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.module-panel__cert strong {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: .82rem;
  line-height: 1.25;
}

.module-panel__cert--final {
  border-color: rgba(255,194,11,.35);
  background: #fff9df;
}

.module-panel__degree {
  border: 1px solid rgba(8,45,69,.12);
  background: var(--color-navy);
}

.module-panel__degree strong,
.module-panel__degree span { display: block; }

.module-panel__degree strong {
  margin-bottom: 4px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: .9rem;
}

.module-panel__degree span {
  color: rgba(255,255,255,.78);
  font-size: .68rem;
  line-height: 1.45;
}

@media (min-width: 520px) {
  .module-cycle .module-panel__courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .curriculum__intro { margin-bottom: 36px; }

  .tab-strip {
    max-width: 720px;
    margin: 0 auto 28px;
    gap: 8px;
  }

  .tab-strip__btn {
    min-height: 68px;
    font-size: .72rem;
  }

  .tab-strip__btn small { font-size: .6rem; }
  .tab-strip__number { font-size: 1.15rem; }

  .module-panel { padding: 24px; }
  .module-cycle { padding: 16px; }
}

@media (min-width: 900px) {
  .module-panel {
    grid-template-columns: minmax(0, 2.15fr) minmax(250px, .72fr);
    gap: 28px;
    padding: 30px;
  }

  .module-panel__cycles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-cycle .module-panel__courses { grid-template-columns: minmax(0, 1fr); }

  .module-panel__aside {
    padding-left: 26px;
    border-left: 1px solid rgba(8,170,165,.12);
  }
}

@media (hover: hover) and (pointer: fine) {
  .tab-strip__btn:hover { transform: translateY(-1px); }
}
