/* Applicate — puerta, dashboard y aula (estructura visual) */
html { height: 100%; background: #0f172a; }
.ap-wco { display: none; }
@media (display-mode: window-controls-overlay) {
  .ap-wco {
    display: block;
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    width: 100%;
    height: env(titlebar-area-height, 40px);
    background: #0f172a;
    pointer-events: none;
  }
  .ap-wco::after {
    content: "";
    position: absolute;
    top: 0;
    left: env(titlebar-area-x, 0);
    width: env(titlebar-area-width, 100%);
    height: 100%;
    -webkit-app-region: drag;
    app-region: drag;
    pointer-events: auto;
  }
  body.ap-body { padding-top: env(titlebar-area-height, 0px); }
  .ap-side { height: calc(100vh - env(titlebar-area-height, 0px)); }
  .ap-app { min-height: calc(100vh - env(titlebar-area-height, 0px)); }
}
body.ap-body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

.ap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.ap-top__logo { height: 42px; width: auto; display: block; }
.ap-top__back {
  color: #166534;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.ap-top__back:hover { text-decoration: underline; }

.ap-gate {
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}
.ap-login-foot {
  margin: 16px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.ap-login-foot__link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-left: 4px;
  color: #2563eb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ap-login-foot__link:hover { text-decoration: underline; }

.ap-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 22px 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.ap-card h1, .ap-card h2 { margin: 0 0 8px; font-size: 22px; }
.ap-card .ap-lead {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.ap-field { margin: 0 0 12px; }
.ap-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}
.ap-field input,
.ap-field select {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  line-height: 46px;
  background-color: #fff;
  color: #0f172a;
}
.ap-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23334155' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}
.ap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-row-phone { display: flex; gap: 8px; }
.ap-row-phone select { flex: 0 0 min(42%, 168px); }
.ap-row-phone input { flex: 1; }
@media (max-width: 520px) {
  .ap-row { grid-template-columns: 1fr; }
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}
.ap-btn:disabled { opacity: 0.65; cursor: wait; }
.ap-btn:hover:not(:disabled) { background: #15803d; }
.ap-btn-ghost {
  background: #0f172a;
  width: auto;
  padding: 8px 12px;
  font-size: 13px;
}

.ap-msg {
  display: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.ap-msg.is-on { display: block; }
.ap-msg.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ap-msg.warn { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.ap-msg.ok { background: #ecfdf5; color: #166534; border: 1px solid #86efac; }

.ap-soon-box {
  margin-top: 8px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #1e3a8a;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.ap-soon-box strong { color: #1e3a8a; display: block; font-size: 16px; margin-bottom: 4px; }

/* Dashboard */
.ap-app { display: none; min-height: 100vh; background: #f8fafc; }
.ap-app.is-on { display: flex; }

.ap-side {
  width: 72px;
  flex-shrink: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 8px;
  transition: width 0.18s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}
.ap-app.is-on .ap-side:hover,
.ap-side.is-open {
  width: 232px;
}
.ap-side__brand {
  height: 64px;
  margin: 0 0 14px;
  padding: 4px 3px;
  border-radius: 12px;
  background-color: #fff;
  background-image: url("../assets/Applicate Logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-sizing: border-box;
}
.ap-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ap-side__out {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.ap-side__out .ap-ico { width: 22px; text-align: center; flex-shrink: 0; font-size: 16px; }
.ap-side__out .ap-lbl {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.ap-app.is-on .ap-side:hover .ap-side__out .ap-lbl,
.ap-side.is-open .ap-side__out .ap-lbl {
  opacity: 1;
  transform: none;
}
.ap-side__out:hover { background: #1d4ed8; color: #fff; }
.ap-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ap-nav button .ap-ico { width: 22px; text-align: center; flex-shrink: 0; font-size: 16px; }
.ap-nav button .ap-lbl {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.ap-app.is-on .ap-side:hover .ap-lbl,
.ap-side.is-open .ap-lbl {
  opacity: 1;
  transform: none;
}
.ap-nav button.is-on,
.ap-nav button:hover { background: #1d4ed8; color: #fff; }

.ap-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.ap-search {
  position: relative;
  flex: 1;
  max-width: 420px;
  min-width: 0;
}
.ap-head__search {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
}
.ap-head__search:focus {
  outline: 2px solid #1e3a8a;
  border-color: #1e3a8a;
  background: #fff;
}
.ap-search__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.ap-search__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.ap-search__list button:hover { background: #eff6ff; }
.ap-search__meta {
  flex-shrink: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.ap-search__empty {
  padding: 8px 10px;
  color: #64748b;
  font-size: 13px;
}
.ap-head__right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ap-student {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  max-width: 280px;
  padding: 6px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.ap-student__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.ap-student__name {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.ap-main { flex: 1; min-width: 0; padding: 22px 24px 48px; }
.ap-admin-bar {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ap-hero {
  position: relative;
  isolation: isolate;
  border-radius: 16px;
  overflow: hidden;
  min-height: clamp(200px, 28vw, 280px);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  color: #0f172a;
  background-color: #eef6f0;
  background-image: url("../assets/Applicate Portada.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 78% 45%;
}
.ap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.82) 32%,
    rgba(255, 255, 255, 0.28) 54%,
    rgba(255, 255, 255, 0) 70%
  );
}
.ap-hero__copy {
  position: relative;
  z-index: 1;
  width: min(34rem, 56%);
  padding: clamp(20px, 3.6vw, 40px) clamp(18px, 3vw, 36px);
}
.ap-hero h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ap-hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 4px;
}
.ap-hero__logo {
  height: clamp(72px, 9vw, 104px);
  width: auto;
  max-width: min(420px, 100%);
  margin-left: -22px;
  object-fit: contain;
  display: block;
}
.ap-hero p {
  margin: 0;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.45;
  color: #334155;
  max-width: 28rem;
}
@media (max-width: 720px) {
  .ap-hero {
    align-items: flex-end;
    min-height: clamp(220px, 58vw, 300px);
    background-position: 70% 28%;
  }
  .ap-hero::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 38%,
      rgba(255, 255, 255, 0.88) 72%,
      rgba(255, 255, 255, 0.96) 100%
    );
  }
  .ap-hero__copy {
    width: 100%;
    max-width: none;
    padding: 18px 16px 20px;
  }
}

.ap-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.ap-section-title h3 { margin: 0; font-size: 18px; }
.ap-count { color: #64748b; font-size: 13px; font-weight: 700; }

.ap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.ap-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
}
.ap-page {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.ap-page.is-on {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}
.ap-page:hover { border-color: #1e3a8a; }

.ap-slot {
  background: #fff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
}
.ap-slot:hover { border-color: #16a34a; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); }
.ap-slot__cover {
  height: 120px;
  background: repeating-linear-gradient(
    135deg,
    #f1f5f9,
    #f1f5f9 10px,
    #e2e8f0 10px,
    #e2e8f0 20px
  );
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}
.ap-slot__body { padding: 12px 14px 16px; }
.ap-slot__body h3 { margin: 0 0 6px; font-size: 15px; }
.ap-slot__price { margin: 0 0 2px; color: #14532d; font-size: 15px; font-weight: 800; }
.ap-slot__body .ap-slot__fx,
.ap-fx {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.ap-slot__body p { margin: 0 0 12px; color: #64748b; font-size: 13px; line-height: 1.4; }
#apPaypalButtons { min-height: 48px; margin-top: 10px; }
.ap-slot__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-lock-btn,
.ap-save-btn,
.ap-view-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.ap-lock-btn {
  background: #0f172a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ap-lock-btn:hover { background: #1e293b; }
.ap-view-btn { background: #16a34a; color: #fff; }
.ap-save-btn { background: #f1f5f9; color: #334155; }
.ap-slot.is-open { border-style: solid; border-color: #86efac; }

.ap-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.ap-list li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.ap-list__empty {
  background: transparent !important;
  border-style: dashed !important;
  color: #64748b;
}

.ap-sheet {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 18px;
}
.ap-sheet[hidden] { display: none; }
.ap-sheet__card--reg {
  width: min(560px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  text-align: left;
}
.ap-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.ap-sheet__head h3 { margin: 0; }
.ap-sheet__x {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.ap-sheet__card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  box-sizing: border-box;
  text-align: center;
}
.ap-sheet__card h3 {
  margin: 0 0 8px;
  text-align: left;
}
.ap-sheet__card .ap-muted {
  text-align: left;
}
.ap-sheet__card .ap-btn {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.ap-btn-wa {
  background: #128c7e;
  text-decoration: none;
  color: #fff;
}
.ap-btn-wa:hover { background: #0e7a6e; }
.ap-sheet__close {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.ap-panel { display: none; }
.ap-panel.is-on { display: block; }
.ap-muted { color: #64748b; line-height: 1.5; }
.ap-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) {
  .ap-split { grid-template-columns: 1fr; }
}
.ap-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  min-height: 140px;
}
.ap-box h3 { margin: 0 0 8px; font-size: 16px; }

.ap-cert-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ap-cert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ap-cert:hover { border-color: #1e3a8a; }
.ap-cert__main { display: grid; gap: 2px; min-width: 0; }
.ap-cert__main strong { font-size: 15px; }
.ap-cert__sub { color: #64748b; font-size: 13px; }
.ap-cert__go { color: #1e3a8a; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ap-cert-back { width: auto; margin: 0 0 12px; }
.ap-diploma-fit { width: 100%; overflow: hidden; }
.ap-pdf-shot {
  position: fixed;
  left: -12000px;
  top: 0;
  width: 920px;
  background: #fff;
  z-index: -1;
  pointer-events: none;
}
.ap-pdf-shot .ap-diploma {
  display: block !important;
  height: 620px !important;
  transform: none !important;
}
.ap-pdf-shot .ap-diploma__kicker { margin: 28px 0 0 !important; }
.ap-pdf-shot .ap-diploma__name { margin: 14px auto 12px !important; }
.ap-pdf-shot .ap-diploma__course { margin: 28px auto 0 !important; }
.ap-pdf-shot .ap-diploma__sign { margin: 48px auto 36px !important; }

/* Constancia */
.ap-diploma {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 920px;
  max-width: none;
  height: 620px;
  min-height: 620px;
  margin: 0;
  padding: 28px 40px 36px;
  box-sizing: border-box;
  border-radius: 6px;
  background:
    radial-gradient(circle at 0 0, rgba(29, 78, 216, 0.07), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(22, 163, 74, 0.08), transparent 30%),
    #fff;
  border: 3px solid #1e3a8a;
  box-shadow:
    inset 0 0 0 5px #fff,
    inset 0 0 0 6px #86efac,
    0 14px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.ap-diploma__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 46%, #16a34a 100%);
}
.ap-diploma__bar--foot {
  top: auto;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #16a34a 0%, #1e3a8a 100%);
}
.ap-diploma__logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 8px 0 8px;
}
.ap-diploma__logos img { height: 58px; width: auto; max-width: 46%; object-fit: contain; }
.ap-diploma__word {
  text-align: center;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 28px;
  color: #1e3a8a;
  margin: 0;
}
.ap-diploma__word::after {
  content: "";
  display: block;
  width: 168px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #1e3a8a, #16a34a);
}
.ap-diploma__kicker,
.ap-diploma__line {
  text-align: center;
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.ap-diploma__kicker { margin-top: auto; }
.ap-diploma__name {
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 14px;
  padding: 0 8px 6px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.01em;
  background: none;
  border-bottom: 1px solid #cbd5e1;
}
.ap-diploma__course {
  width: fit-content;
  max-width: 86%;
  margin: auto auto 0;
  padding: 0 4px 4px;
  text-align: center;
  color: #166534;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  border-bottom: 2px solid #86efac;
}
.ap-diploma__meta {
  position: absolute;
  left: 36px;
  bottom: 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.ap-diploma__sign {
  margin: auto auto 48px;
  max-width: 280px;
  text-align: center;
}
.ap-diploma__qr {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 72px;
}
.ap-diploma__qr img {
  width: 64px;
  height: 64px;
  display: block;
  background: #fff;
  border-radius: 4px;
}
.ap-diploma__qr span {
  font-size: 8px;
  line-height: 1.2;
  color: #64748b;
  letter-spacing: 0;
}
.ap-diploma__sign img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 220px;
  margin: 0 auto 4px;
  object-fit: contain;
}
.ap-diploma__signline {
  display: block;
  height: 1px;
  background: #1e3a8a;
  margin: 0 24px 8px;
}
.ap-diploma__sign strong { display: block; color: #0f172a; font-size: 14px; }
.ap-diploma__sign span { color: #64748b; font-size: 12px; }
.ap-diploma__download {
  max-width: 280px;
  margin-top: 14px;
}

/* Aula */
.ap-aula-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ap-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.ap-tabs button {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.ap-tabs button.is-on { background: #0f172a; color: #fff; border-color: #0f172a; }
.ap-video {
  position: relative;
  background: #0b1220;
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  overflow: hidden;
}
.ap-video:fullscreen,
.ap-video:-webkit-full-screen {
  border-radius: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.ap-video__mark {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  padding: 4px 8px;
  line-height: 0;
}
.ap-video__mark img {
  height: 20px;
  width: auto;
  display: block;
}
.ap-video:fullscreen .ap-video__mark img,
.ap-video:-webkit-full-screen .ap-video__mark img {
  height: 26px;
}
.ap-video__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #86efac;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #86efac;
  margin-bottom: 10px;
}
.ap-video__fs {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
}
.ap-files {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
  color: #64748b;
}
.ap-slot__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ap-save-btn.is-on {
  background: #dcfce7;
  color: #166534;
}
.ap-list__meta {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}
.ap-lesson {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  padding: 0;
}
.ap-lesson:hover { color: #166534; }
.ap-profile {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}
.ap-profile > div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}
.ap-profile dt {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.ap-profile dd { margin: 4px 0 0; }
.ap-profile-edit {
  margin-top: 18px;
  max-width: 420px;
}
.ap-profile-edit p {
  margin: 0 0 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}
.ap-profile-edit .ap-btn {
  display: inline-flex;
  width: auto;
  text-decoration: none;
}
#apVideoInner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.ap-video iframe,
.ap-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: #000;
}
.ap-legal {
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}
.ap-legal p { margin: 0 0 6px; }
.ap-legal strong { color: #64748b; font-weight: 700; }

@media (max-width: 960px) {
  .ap-app.is-on { flex-direction: row; }
  .ap-side,
  .ap-app.is-on .ap-side:hover {
    width: 72px;
    transition: none;
  }
  .ap-side.is-open + .ap-shell {
    margin-left: 72px;
  }
  .ap-side.is-open,
  .ap-app.is-on .ap-side.is-open,
  .ap-app.is-on .ap-side.is-open:hover {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: min(260px, 86vw);
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.35);
  }
  .ap-nav { flex-direction: column; flex-wrap: nowrap; }
  .ap-app.is-on .ap-side:hover .ap-nav button .ap-lbl,
  .ap-app.is-on .ap-side:hover .ap-side__out .ap-lbl,
  .ap-nav button .ap-lbl,
  .ap-side__out .ap-lbl {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: translateX(-6px);
  }
  .ap-side.is-open .ap-nav button .ap-lbl,
  .ap-side.is-open .ap-side__out .ap-lbl,
  .ap-app.is-on .ap-side.is-open:hover .ap-nav button .ap-lbl,
  .ap-app.is-on .ap-side.is-open:hover .ap-side__out .ap-lbl {
    opacity: 1;
    max-width: 160px;
    overflow: visible;
    transform: none;
  }
  .ap-side__brand { cursor: pointer; }
  .ap-side,
  .ap-side button,
  .ap-side__brand {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .ap-main { padding: 16px 14px 40px; }
}
@media (max-width: 960px) and (hover: none) {
  .ap-nav button:hover,
  .ap-side__out:hover {
    background: transparent;
    color: #e2e8f0;
  }
  .ap-nav button.is-on,
  .ap-nav button.is-on:hover {
    background: #1d4ed8;
    color: #fff;
  }
}
