:root { --blue: #0870ef; --navy: #071a43; --text: #273d5e; --muted: #718098; --line: #dfe7f1; --soft: #f3f7fc; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--soft); font-family: Inter, sans-serif; }
a { color: inherit; text-decoration: none; }
.promotor-body { min-height: 100vh; }

/* Topbar — idéntico a aula-topbar */
.promotor-topbar { position: sticky; top: 0; z-index: 10; display: flex; min-height: 74px; padding: 0 max(24px, calc((100% - 1180px) / 2)); align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.promotor-brand { display: flex; gap: 10px; align-items: center; }
.promotor-brand img { width: 43px; height: 43px; object-fit: contain; }
.promotor-brand span { display: grid; }
.promotor-brand strong { color: var(--navy); font-size: .95rem; }
.promotor-brand small { color: var(--muted); font-size: .62rem; }

/* Nav — mismo patrón que aula-primary-nav */
.promotor-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; padding: 4px; border: 1px solid #d9e4f1; border-radius: 10px; background: #f7faff; }
.promotor-nav a { padding: 8px 11px; border-radius: 7px; color: #60728b; font-size: .63rem; font-weight: 850; }
.promotor-nav a.is-active { color: #086cf0; background: #e8f2ff; }
.promotor-nav a:hover:not(.is-active) { background: #eef3fa; color: var(--navy); }

/* Account — idéntico a aula-account */
.promotor-account { display: flex; gap: 10px; align-items: center; }
.promotor-credits { padding: 6px 10px; border-radius: 8px; color: #0d6938; background: #e4f8ee; font-size: .63rem; font-weight: 900; }
.promotor-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #0875f8, #1044ac); font-weight: 900; }
.promotor-account > div { display: grid; gap: 2px; }
.promotor-account strong { color: var(--navy); font-size: .72rem; }
.promotor-account small { color: var(--muted); font-size: .58rem; }
.promotor-account > a { margin-left: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: #50617a; font-size: .65rem; font-weight: 800; }

/* Main — idéntico a aula-main */
.promotor-main { width: min(1180px, calc(100% - 48px)); min-height: calc(100vh - 130px); margin: 0 auto; padding: 42px 0 65px; }

/* Footer — idéntico a aula-footer */
.promotor-footer { display: flex; min-height: 58px; padding: 0 max(24px, calc((100% - 1180px) / 2)); align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #7d899b; background: #fff; font-size: .65rem; }
.promotor-footer a { color: var(--blue); font-weight: 800; }

/* Breadcrumb — idéntico a aula-breadcrumb */
.promotor-breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 30px; color: #7b899c; font-size: .65rem; }
.promotor-breadcrumb a { color: var(--blue); }

/* Eyebrow — idéntico a aula-eyebrow */
.promotor-eyebrow { margin: 0; color: var(--blue) !important; font-size: .66rem !important; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }

/* Dashboard head — idéntico a aula-dashboard-head */
.promotor-dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.promotor-dashboard-head h1 { margin: 8px 0; color: var(--navy); font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -.05em; }
.promotor-dashboard-head p:not(.promotor-eyebrow) { margin: 0; color: var(--muted); font-size: .82rem; }
.promotor-dashboard-head > a { padding: 10px 14px; border: 1px solid #cfdbea; border-radius: 9px; color: var(--blue); background: #fff; font-size: .68rem; font-weight: 850; }

/* Stats — patrón de aula-certificate-stats escalado a 4 */
.promotor-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.promotor-stat { display: flex; gap: 11px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 8px 25px rgba(29,62,106,.05); }
.promotor-stat > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: var(--blue); font-weight: 900; font-size: .9rem; }
.promotor-stat > div { display: grid; gap: 1px; }
.promotor-stat b { color: var(--navy); font-size: 1.12rem; }
.promotor-stat small { color: var(--muted); font-size: .58rem; }
.promotor-stat a { color: var(--blue); font-size: .61rem; font-weight: 850; margin-top: 2px; }
.promotor-stat.accent > span { background: #0b9763; }

/* Card — idéntico a aula-module */
.promotor-card { margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(32, 64, 110, .05); }
.promotor-card-head { display: flex; gap: 15px; padding: 23px; border-bottom: 1px solid var(--line); align-items: end; justify-content: space-between; }
.promotor-card-head h2 { margin: 0; color: var(--navy); font-size: 1.1rem; }

/* Table */
.promotor-table-wrap { overflow-x: auto; }
.promotor-table { width: 100%; border-collapse: collapse; font-size: .7rem; }
.promotor-table th { padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .6rem; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.promotor-table td { padding: 14px 18px; border-bottom: 1px solid #f0f4f9; }
.promotor-table tr:last-child td { border-bottom: 0; }

/* Empty — idéntico a aula-empty */
.promotor-empty { display: grid; max-width: 720px; margin: 40px auto; justify-items: center; padding: 55px; text-align: center; color: var(--muted); font-size: .76rem; line-height: 1.65; }

/* Badges — patrón aula-certificate-state */
.promotor-badge { display: inline-block; width: max-content; padding: 4px 7px; border-radius: 99px; font-size: .52rem; font-weight: 900; text-transform: uppercase; }
.promotor-badge.self { color: #785c14; background: #fff4d8; }
.promotor-badge.approved { color: #08734c; background: #dcf4e8; }
.promotor-badge.rejected { color: #a33742; background: #fbe5e8; }
.promotor-badge.pending { color: #785c14; background: #fff4d8; }

/* Buttons — idéntico a botones del aula */
.promotor-button { display: inline-flex; align-items: center; padding: 10px 14px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #0876f7, #0754cf); font: inherit; font-size: .68rem; font-weight: 900; cursor: pointer; white-space: nowrap; box-shadow: 0 10px 24px rgba(8,101,224,.15); }
.promotor-button.outline { color: var(--blue); background: transparent; border: 1px solid #c9d8e8; box-shadow: none; }
.promotor-button.outline:hover { background: #f2f8ff; }

/* Credits badge */
.promotor-credits-badge { padding: 6px 10px; border-radius: 8px; color: #0d6938; background: #e4f8ee; font-size: .63rem; font-weight: 900; white-space: nowrap; }

/* Alert — idéntico a aula-alert */
.promotor-alert { margin: 0 0 18px; padding: 11px 13px; border-radius: 9px; color: #176540; background: #ebfaf3; font-size: .7rem; }
.promotor-alert.error { color: #a32d2d; background: #fff0f0; }
.promotor-alert.success { color: #176540; background: #ebfaf3; }

/* Notice — patrón aula-pending */
.promotor-notice { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; margin-bottom: 28px; padding: 17px 19px; border: 1px solid #ffe0a9; border-radius: 14px; background: #fff9ed; color: #694714; font-size: .72rem; }
.promotor-notice a { color: #9b6106; font-weight: 800; }

/* Two col */
.promotor-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Form — idéntico a aula-login-card forms */
.promotor-form { padding: 23px; }
.promotor-form fieldset { border: 0; margin: 0; padding: 0; }
.promotor-form legend { display: block; margin-bottom: 16px; color: var(--navy); font-size: .84rem; font-weight: 800; }
.promotor-form label { display: grid; gap: 7px; margin-bottom: 15px; color: #354863; font-size: .68rem; font-weight: 800; }
.promotor-form input, .promotor-form select, .promotor-form textarea { height: 46px; padding: 0 13px; border: 1px solid #cfdae7; border-radius: 10px; color: var(--navy); font: inherit; font-size: .74rem; outline: 0; }
.promotor-form input:focus, .promotor-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,112,239,.1); }
.promotor-form input[type="file"] { height: auto; padding: 10px 13px; }
.promotor-form-footer { display: flex; gap: 14px; align-items: center; padding: 0 23px 23px; }
.promotor-form-footer a { color: var(--muted); font-size: .68rem; font-weight: 700; }

/* Course grid — patrón aula-certificate-grid */
.promotor-course-grid { display: grid; gap: 11px; padding: 20px 23px; }
.promotor-course-card { display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: center; padding: 18px; border: 1px solid #dce6f0; border-radius: 15px; background: #fff; box-shadow: 0 10px 30px rgba(25,56,98,.055); }
.promotor-course-info h3 { margin: 5px 0; color: var(--navy); font-size: .84rem; }
.promotor-course-info > p { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.5; max-width: 550px; }
.promotor-course-prices { display: flex; gap: 14px; margin-top: 8px; font-size: .64rem; font-weight: 700; }
.promotor-price-public { color: var(--muted); text-decoration: line-through; }
.promotor-price-credits { color: var(--blue); font-weight: 900; }
.promotor-enrolled-count { display: block; margin-top: 4px; color: var(--muted); font-size: .57rem; }
.promotor-course-actions { display: flex; flex-direction: column; gap: 8px; align-items: end; flex-shrink: 0; }
.promotor-course-actions form { margin: 0; }

/* Login — idéntico a aula-login */
.promotor-login-shell { display: grid; grid-template-columns: minmax(360px, 520px) 1fr; min-height: calc(100vh - 240px); overflow: hidden; border: 1px solid var(--line); border-radius: 27px; background: #fff; box-shadow: 0 25px 70px rgba(31, 66, 120, .1); }
.promotor-login-card { display: flex; padding: 55px 62px; flex-direction: column; justify-content: center; }
.promotor-login-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 17px; background: #eaf3ff; }
.promotor-login-mark img { width: 46px; height: 46px; object-fit: contain; }
.promotor-login-card h1 { margin: 9px 0; color: var(--navy); font-size: 2.25rem; line-height: 1.07; letter-spacing: -.045em; }
.promotor-login-card > p:not(.promotor-eyebrow) { margin: 0 0 26px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.promotor-login-card form { display: grid; gap: 15px; }
.promotor-login-card label { display: grid; gap: 7px; color: #354863; font-size: .68rem; font-weight: 800; }
.promotor-login-card input { height: 46px; padding: 0 13px; border: 1px solid #cfdae7; border-radius: 10px; color: var(--navy); font: inherit; outline: 0; }
.promotor-login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,112,239,.1); }
.promotor-login-card button { height: 48px; margin-top: 3px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #0876f7, #0754cf); font: inherit; font-size: .75rem; font-weight: 900; cursor: pointer; box-shadow: 0 10px 24px rgba(8,101,224,.25); }
.promotor-login-card > small { margin-top: 20px; color: #8a96a8; font-size: .62rem; line-height: 1.55; }
.promotor-back { margin-top: 16px; color: var(--blue); font-size: .68rem; font-weight: 800; }
.promotor-login-aside { display: flex; padding: 65px; flex-direction: column; justify-content: end; color: #fff; background: radial-gradient(circle at 70% 20%, rgba(0,164,255,.6), transparent 30%), linear-gradient(145deg, #062251, #0870ef); }
.promotor-login-aside > span { font-size: .67rem; font-weight: 900; letter-spacing: .1em; }
.promotor-login-aside h2 { max-width: 520px; margin: 15px 0 25px; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.05em; }
.promotor-login-aside ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.promotor-login-aside li { color: rgba(255,255,255,.78); font-size: .78rem; }
.promotor-login-aside li::before { content: "\2713"; margin-right: 8px; color: #72d6ff; font-weight: 900; }

/* Materials — patrón aula-attachment */
.promotor-materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.promotor-material-card { display: inline-flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); font-size: .68rem; font-weight: 700; transition: border-color .15s; }
.promotor-material-card:hover { border-color: var(--blue); color: var(--blue); }
.promotor-material-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; color: #fff; background: var(--blue); font-size: .55rem; font-weight: 900; }
.promotor-material-card div { display: grid; gap: 3px; min-width: 0; }
.promotor-material-card strong { color: var(--navy); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promotor-material-card small { color: var(--muted); font-size: .58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Certificate banner — idéntico a aula-certificate-banner */
.promotor-cert-banner { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; margin-bottom: 20px; padding: 17px 20px; border: 1px solid #badccf; border-radius: 15px; background: linear-gradient(135deg, #f1fbf6, #f5faff); }
.promotor-cert-banner > span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; color: #fff; background: #0a9360; font-size: 1.2rem; font-weight: 900; }
.promotor-cert-banner > div { display: grid; gap: 4px; }
.promotor-cert-banner b { color: var(--navy); font-size: .8rem; }
.promotor-cert-banner small { color: var(--muted); font-size: .61rem; }
.promotor-cert-banner > a { padding: 10px 13px; border-radius: 9px; color: #fff; background: #0870ef; font-size: .65rem; font-weight: 900; }

/* Responsive — mismo breakpoints que aula */
@media (max-width: 900px) {
  .promotor-stats { grid-template-columns: repeat(2, minmax(0, 220px)); }
  .promotor-two-col { grid-template-columns: 1fr; }
  .promotor-course-card { grid-template-columns: 1fr; }
  .promotor-course-actions { flex-direction: row; align-items: center; }
  .promotor-login-shell { grid-template-columns: 1fr; }
  .promotor-login-aside { min-height: 360px; }
  .promotor-topbar { gap: 10px; }
  .promotor-nav { order: 3; width: 100%; justify-content: center; }
  .promotor-nav a { flex: 1; text-align: center; }
  .promotor-topbar { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 650px) {
  .promotor-stats { grid-template-columns: 1fr 1fr; }
  .promotor-topbar { padding: 0 16px; }
  .promotor-account > div { display: none; }
  .promotor-main { width: calc(100% - 28px); padding-top: 26px; }
  .promotor-login-card { padding: 36px 24px; }
  .promotor-login-aside { display: none; }
  .promotor-course-actions { flex-direction: column; }
  .promotor-cert-banner { grid-template-columns: 42px 1fr; }
  .promotor-cert-banner > a { grid-column: 1 / -1; text-align: center; }
}

/* Formularios de matrícula y recarga */
.promotor-form label > small { color: var(--muted); font-size: .59rem; font-weight: 500; line-height: 1.45; }
.promotor-account-preview { display: grid; gap: 4px; margin-bottom: 16px; padding: 15px; border: 1px solid #d9e6f4; border-radius: 12px; background: #f5f9ff; }
.promotor-account-preview strong { color: var(--navy); font-size: .78rem; }
.promotor-account-preview span { color: var(--muted); font-size: .65rem; overflow-wrap: anywhere; }
.promotor-file-drop { padding: 14px; border: 1px dashed #afc8e8; border-radius: 13px; background: #f6faff; }
.promotor-file-drop input[type="file"] { width: 100%; border-style: solid; background: #fff; }
.promotor-recharge-layout { grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); align-items: start; }
.promotor-card-head p:not(.promotor-eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.5; }
.promotor-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: .58rem; line-height: 1.4; }
@media (max-width: 900px) { .promotor-recharge-layout { grid-template-columns: 1fr; } }
