/* DobleCorchea — portal (login, registro) y panel de gestión */

input[type="email"], input[type="password"], input[type="tel"], input[type="search"], input[type="date"], input[type="time"], textarea {
  border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 10px; min-height: 36px;
}
textarea { padding: 8px 10px; resize: vertical; width: 100%; line-height: 1.45; }
.field input, .field select, .field textarea { width: 100%; }
.field select { height: 44px; font-size: 15px; }
.field textarea { font-size: 14px; }
input:disabled, select:disabled, textarea:disabled { opacity: .6; }
a { color: var(--yellow); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.block { display: block; }
.bad-text { color: var(--danger); }
.link-text { color: var(--yellow); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.form-error { color: #ffb3bb; background: rgba(255, 77, 94, .12); border: 1px solid rgba(255, 77, 94, .35); padding: 9px 12px; border-radius: 10px; margin: 0 0 14px; font-size: 13px; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-danger { background: var(--danger); border: 0; color: #fff; }
.btn-ghost-danger { border-color: rgba(255, 77, 94, .45); color: #ffb3bb; background: transparent; }
a.btn { text-decoration: none; color: var(--text); }
a.btn-primary { color: #19191b; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; font-size: 13.5px; }
.check-row input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-grid .span2 { grid-column: 1 / -1; }
.pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.lead.small { font-size: 14px; }

/* ---------- portal ---------- */
.portal-narrow { flex: 1; width: min(560px, 100%); margin: 0 auto; padding: 32px 16px 40px; }
.portal-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 16px; margin-bottom: 22px; }
.portal-brand img { border-radius: 11px; }
.steps-mini { list-style: none; padding: 0; margin: -6px 0 20px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.steps-mini b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #19191b; font-size: 11px; margin-right: 6px; }

.plans-section { width: min(1120px, 100%); margin: 0 auto; padding: 8px 20px 40px; }
.plans-head h2 { font-size: 26px; margin: 0 0 6px; }
.plans-head .lead { margin-bottom: 20px; max-width: 70ch; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.plan-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; }
.plan-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); opacity: .6; }
.plan-card.individual::before { opacity: 1; }
.plan-kind { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.plan-card h3 { margin: 4px 0 10px; font-size: 16px; }
.plan-price { margin: 0 0 8px; display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 26px; font-weight: 800; }
.plan-price small { color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 13px; margin: 0; }
.plans-note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* ================================================================ PANEL */
body.panel { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: var(--bg); }
.side {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 12px;
}
.side .portal-brand { margin: 0 6px 16px; font-size: 14px; }
.nav { display: grid; gap: 2px; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px;
}
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--grad-soft); color: #fff; box-shadow: inset 3px 0 0 var(--magenta); }
.nav a.active .ic { color: var(--yellow); }
.nav-count { margin-left: auto; font-style: normal; background: var(--magenta); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.me-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #19191b; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.side-user-text { min-width: 0; flex: 1; }
.side-user-text b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-text small { color: var(--muted); font-size: 11.5px; }
.side-scrim { display: none; }

.main { min-width: 0; padding: 0 28px 48px; }
.main-head { display: flex; align-items: center; gap: 12px; min-height: 72px; flex-wrap: wrap; padding: 10px 0; }
.main-head h1 { font-size: 22px; margin: 0; flex: 1; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-btn { display: none; }
.panel-view { transition: opacity .15s; }
.panel-view.loading { opacity: .5; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.card h2 { font-size: 16px; margin: 0 0 12px; }
.card h2 + h2, .card p + h2, .card div + h2 { margin-top: 20px; }
.card h3 { font-size: 15.5px; margin: 0 0 2px; }
.card h4, .modal-body h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.narrow-card { max-width: 720px; }
.section-title { font-size: 15px; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.count { background: var(--panel-3); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.hello { font-size: 16px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.two-col > .card { margin-bottom: 0; }

.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--muted); margin-bottom: 16px; }
.empty.error { color: #ffb3bb; border-color: rgba(255, 77, 94, .4); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 22px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi.warn { border-color: rgba(247, 148, 29, .55); }
.kpi.bad { border-color: rgba(255, 77, 94, .55); }

/* insignias */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--panel-3); color: var(--text); white-space: nowrap; vertical-align: middle; }
.badge.ok { background: rgba(62, 207, 142, .16); color: #7ee2b3; }
.badge.warn { background: rgba(247, 148, 29, .16); color: var(--yellow); }
.badge.bad { background: rgba(255, 77, 94, .16); color: #ff9aa5; }
.badge.info { background: rgba(230, 25, 126, .18); color: #ff8cc4; }
.badge.muted { color: var(--muted); }
.rate { font-weight: 700; }
.rate.ok { color: #7ee2b3; } .rate.warn { color: var(--yellow); } .rate.bad { color: #ff9aa5; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #7ee2b3; white-space: nowrap; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(62, 207, 142, .2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(62, 207, 142, 0); } }

/* tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: var(--panel-2); }
table.data td select, table.data td input { height: 32px; font-size: 13px; }
table.data td input { width: 100%; min-width: 140px; }
table.compact td, table.compact th { padding: 7px 10px; }
.modal-body .table-wrap { background: var(--bg-2); }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* tarjetas de curso */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-bottom: 16px; }
.cards .card { margin: 0; }
.course-card { display: flex; flex-direction: column; gap: 6px; }
.course-card p { margin: 0; display: flex; align-items: center; gap: 7px; }
.course-card p .ic { width: 16px; height: 16px; color: var(--orange); }
.course-card.inactive { opacity: .6; }
.course-card.link { text-decoration: none; color: var(--text); }
.course-card.link:hover { border-color: var(--magenta); }
.course-card.wide .table-wrap { margin: 12px 0 0; background: var(--bg-2); }
.course-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.course-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.course-card .next b { color: var(--yellow); }

/* acceso del alumno */
.access-card { display: grid; gap: 14px; }
.access-card.ok { border-color: rgba(62, 207, 142, .4); }
.access-card.locked { border-color: rgba(247, 148, 29, .5); background: linear-gradient(135deg, rgba(230, 25, 126, .08), rgba(247, 148, 29, .06)), var(--panel); }
.access-main { display: flex; gap: 16px; align-items: flex-start; }
.access-main h2 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.access-main p { margin: 0; }
.access-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); color: var(--yellow); }
.access-card.ok .access-icon { background: rgba(62, 207, 142, .15); color: #7ee2b3; }
.access-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-help { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.pay-help summary { cursor: pointer; font-weight: 700; }
.pay-help p { margin: 8px 0 0; color: var(--muted); }

/* barras de herramientas */
.toolbar-row, .tabs-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.tabs-row a.seg-btn { text-decoration: none; color: var(--text); }
.inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.search { display: flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; flex: 1; min-width: 200px; max-width: 360px; }
.search input { border: 0; background: transparent; flex: 1; height: 36px; padding: 0; outline: none; }
.search .ic { width: 16px; height: 16px; color: var(--muted); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.inline-form select { flex: 1; min-width: 200px; }
.notice { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); border-color: rgba(230, 25, 126, .5); background: var(--grad-soft); }
.notice > span:first-child { color: var(--yellow); }
.notice div { flex: 1; }
.notice small { display: block; color: var(--muted); }
.live-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.live-row:last-child { border-bottom: 0; }
.activity { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13px; }
.activity small { display: block; color: var(--muted); font-size: 11.5px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 8px; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.sched-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.sched-row input[type="number"] { width: 76px; }
.perm-list { display: grid; gap: 2px; margin-bottom: 8px; }
.perm-list .check-row { margin: 0 0 6px; }
.user-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* diálogo */
dialog#modal {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
dialog#modal.wide { width: min(820px, calc(100vw - 24px)); }
dialog#modal::backdrop { background: rgba(10, 10, 12, .7); backdrop-filter: blur(3px); }
.modal-form { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.modal-form header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px 22px; border-bottom: 1px solid var(--line); }
.modal-form header h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 18px 22px 6px; overflow-y: auto; }
.modal-form > .form-error { margin: 0 22px 10px; }
.modal-form footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }

#toasts { bottom: 24px; }
.toast.ok { border-color: var(--ok); }
.toast.error { border-color: var(--danger); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body.panel { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; z-index: 40; left: 0; top: 0; width: 260px; transform: translateX(-102%); transition: transform .2s;
  }
  body.nav-open .side { transform: none; }
  body.nav-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .5); }
  .menu-btn { display: inline-grid; }
  .main { padding: 0 16px 40px; }
  .main-head h1 { font-size: 19px; }
}
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .head-actions { width: 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 18px; }
  /* tablas como fichas */
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { display: none; }
  table.data tr { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; }
  table.data td { border: 0; padding: 6px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.data td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; flex: none; }
  table.data td[data-label=""]::before { content: none; }
  table.data td .row-actions { justify-content: flex-end; }
  table.data .num { text-align: right; }
  .modal-body .table-wrap { background: transparent; }
}

/* ---------- aula virtual ---------- */
.lesson-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.lesson-list .unit-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 14px 0 2px; }
.lesson { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.lesson.done { border-left: 3px solid var(--ok); }
.lesson.skipped { opacity: .7; }
.lesson-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); font-weight: 800; font-size: 13px; }
.lesson.done .lesson-n { background: rgba(62, 207, 142, .2); color: #7ee2b3; }
.lesson-main { min-width: 0; }
.lesson-obj { margin: 6px 0 0; color: var(--text); opacity: .9; }
.goals summary { cursor: pointer; }
.goals p { margin: 10px 0 0; }
.file-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.file-list li { display: inline-flex; align-items: center; gap: 2px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 280px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip small { color: var(--muted); }
.file-chip .ic { width: 15px; height: 15px; flex: none; }
.uploader { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.uploader label.btn { cursor: pointer; }
.media-view audio, .media-view video, .media-view img { width: 100%; max-height: 70vh; border-radius: 10px; background: #000; }
.media-view audio { background: transparent; }
.feedback { margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--yellow); background: var(--bg-2); border-radius: 8px; }
.danger-zone { margin-top: 18px; display: flex; gap: 8px; }
.score-grid { display: grid; gap: 8px; }
.score-row { display: grid; grid-template-columns: 1.2fr 90px 2fr; gap: 8px; align-items: center; }
.task-card h3 { margin-bottom: 6px; }
.bar { height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin: 6px 0; min-width: 90px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.mini-kpis { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin: 8px 0 12px; }
.todo { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
table.gradebook td, table.gradebook th { padding: 6px 8px; }
/* pensum */
.unit { padding: 14px 16px; }
.unit-headrow { display: flex; gap: 8px; align-items: center; }
.unit-title { flex: 1; font-weight: 700; font-size: 15px; }
.unit-desc { width: 100%; margin: 8px 0; }
.unit-lessons { display: grid; gap: 8px; margin: 6px 0 10px; }
.p-lesson { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg-2); display: grid; gap: 6px; }
.p-lesson-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.p-lesson-row > input { flex: 1 1 220px; }
.p-lesson .mini { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.p-lesson .mini input { width: 64px; }
.unit input, .unit textarea { border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); padding: 0 10px; min-height: 34px; font: inherit; }
.unit textarea { padding: 6px 10px; width: 100%; }
@media (max-width: 640px) {
  .lesson { grid-template-columns: 28px 1fr; }
  .lesson .row-actions { grid-column: 1 / -1; }
  .score-row { grid-template-columns: 1fr 80px; }
  .score-row input:last-child { grid-column: 1 / -1; }
}

/* ---------- pago en línea ---------- */
.access-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods { display: grid; gap: 12px; margin-top: 8px; }
.payphone-btn { background: #ff6b00; border: 0; color: #fff; flex-direction: column; height: auto; padding: 10px; gap: 0; }
.payphone-btn small { font-weight: 500; opacity: .9; font-size: 11.5px; }
.payphone-btn:hover:not(:disabled) { background: #ff7d1f; }
.paypal-box { background: #fff; border-radius: 12px; padding: 12px 12px 4px; min-height: 60px; }
.paypal-box .muted { color: #555; }
.price-local { color: var(--muted); font-size: 12.5px; }

/* créditos */
.credits { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.45; }
.credits a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 2px; }
.credits a:hover { color: var(--text); text-decoration-color: var(--orange); }
.side-credits { margin: 10px 4px 0; font-size: 10.5px; opacity: .75; }

/* representantes y reportes mensuales */
.chip.active { background: var(--grad); color: #19191b; border-color: transparent; }
a.chip { text-decoration: none; }
.family-head { display: flex; align-items: center; gap: 16px; }
.family-head .me-avatar { width: 56px; height: 56px; font-size: 20px; flex: none; }
.family-head h2 { margin: 0 0 2px; }
.family-head p { margin: 2px 0; }
.family-cols { margin-top: 6px; }
.family-cols h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.notice-inline { padding: 8px 12px; border-radius: 10px; margin: 8px 0; }
.notice-inline.bad { background: rgba(255, 77, 94, .12); color: #ffb3bb; }
.report-frame { width: 100%; height: min(70vh, 900px); border: 1px solid var(--line); border-radius: 12px; background: #f3f0f7; }
.month-pick { display: inline-flex; align-items: center; gap: 8px; }
.month-pick input { width: auto; }
.guardian-box { border: 1px solid rgba(230, 25, 126, .45); border-radius: 12px; padding: 12px 14px 4px; margin: 4px 0 14px; background: var(--grad-soft); min-width: 0; }
.guardian-box legend { font-weight: 700; padding: 0 6px; }
.guardian-box legend small { font-weight: 500; color: var(--muted); }
.i18n-box { border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 12px; padding: 10px 14px; margin: 4px 0 14px; }
.i18n-box summary { cursor: pointer; font-weight: 600; }
.i18n-box[open] summary { margin-bottom: 8px; }

/* Multi-academia: vista previa de la marca y aviso de prueba */
.brand-preview { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; }
.brand-preview img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.06); }
#academyBanner { margin: 0 0 12px; }
