/* =========================================================
   Biblie · Panel de publicación
   ========================================================= */
:root {
  --bg: #F4F6F8; --card: #FFFFFF; --ink: #17202A; --ink-2: #3E4954; --muted: #5A6573;
  --line: #DDE2E8; --line-strong: #C9D1DA;
  --accent: #1D5C78; --accent-hover: #164A61; --accent-soft: #E6F0F4;
  --side: #17202A; --side-ink: #E8ECF0; --side-muted: #A3AEBA; --side-hover: #26313D; --side-accent: #7FC1DD;
  --pub-bg: #E3F1E7; --pub: #23573A;
  --prog-bg: #E6F0F4; --prog: #1D5C78;
  --rev-bg: #F7ECD9; --rev: #7A4E0E;
  --bor-bg: #ECEFF2; --bor: #3E4954;
  --arc-bg: #EFEFEF; --arc: #555555;
  --gap: #9B2F22; --gap-line: #C9776C; --gap-bg: #FBEDEA;
  --danger: #A3271A;
  --serif: 'Literata', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img, svg { vertical-align: middle; }
img, video { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; }
.text-warn { color: var(--rev); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--bg); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

.h1 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.h2 { font-size: 20px; margin: 0 0 12px; }
.h3 { font-size: 16px; margin: 0 0 10px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--light { background: var(--side-accent); border-color: var(--side-accent); color: #0B1A22; }
.btn--light:hover { background: #9BD0E6; color: #0B1A22; border-color: #9BD0E6; }
.btn--danger { color: var(--danger); border-color: #E3B3AC; }
.btn--danger:hover { background: #FBEDEA; color: var(--danger); border-color: var(--danger); }
.btn--block { width: 100%; }
.btn--small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn--lg { min-height: 50px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); }
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--accent); cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn:hover { text-decoration: underline; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Estructura ---------- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 250px; max-width: 100%; background: var(--side); color: var(--side-ink); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; }
.side__top { display: flex; align-items: center; justify-content: space-between; }
.side__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--side-ink); text-decoration: none; padding: 2px 6px; }
.side__brand img { display: block; height: 28px; width: auto; }
.side__brand span { display: flex; flex-direction: column; line-height: 1.15; }
.side__brand small { color: var(--side-muted); font-size: 13px; }
.side__brand:hover { color: #fff; }
.side__toggle { display: none; background: transparent; border: 1px solid #3A4754; color: var(--side-ink); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.side__body { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #C9D1DA; text-decoration: none; font-weight: 600; font-size: 15px; }
.side__nav a span:first-of-type { flex: 1; }
.side__nav a:hover { background: var(--side-hover); color: #fff; }
.side__nav a[aria-current="page"] { background: var(--side-hover); color: #fff; font-weight: 700; }
.badge { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #E7B65C; color: #17202A; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side__user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: #1F2A35; color: var(--side-ink); text-decoration: none; }
.side__user span { display: flex; flex-direction: column; line-height: 1.2; }
.side__user small { color: var(--side-muted); }
.side__user:hover { color: #fff; background: var(--side-hover); }
.side__links { display: flex; justify-content: space-between; gap: 8px; padding: 0 6px; }
.side__links a, .side__links .linkbtn { color: var(--side-muted); font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.side__links a:hover, .side__links .linkbtn:hover { color: #fff; }
.side__links form { margin: 0; }
.main { flex: 999 1 640px; min-width: 0; padding: 28px clamp(16px, 3vw, 36px) 48px; display: flex; flex-direction: column; gap: 18px; }

@media (min-width: 900px) {
  .side { flex: 0 0 250px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
@media (max-width: 899px) {
  .side { flex-basis: 100%; padding: 12px 14px; gap: 0; position: sticky; top: 0; z-index: 30; }
  .side__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .side__body { display: none; padding-top: 16px; }
  .menu-open .side__body { display: flex; }
}

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head p { margin: 4px 0 0; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; text-decoration: none; margin-bottom: 6px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.layout-2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.layout-2 > :first-child { flex: 3 1 560px; min-width: 0; }
.layout-2 > :last-child { flex: 1 1 280px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--tight { gap: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card--flush { padding: 16px; }
.card--accent { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.empty-card { text-align: center; color: var(--muted); }

/* ---------- Avisos (flash) ---------- */
.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid; font-size: 15px; }
.alert + .alert { margin-top: 8px; }
.alert--success { background: var(--pub-bg); border-color: #B9DCC4; color: var(--pub); }
.alert--error { background: var(--gap-bg); border-color: #EBC3BB; color: #7E2519; }
.alert--warn { background: var(--rev-bg); border-color: #E8CFA3; color: #6A430C; }
.alert--info { background: var(--accent-soft); border-color: #BFDCE8; color: #1D4A5E; }
.alert a { color: inherit; font-weight: 700; }
.alert--row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }

/* ---------- Pastillas de estado ---------- */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill--publicado { background: var(--pub-bg); color: var(--pub); }
.pill--programado { background: var(--prog-bg); color: var(--prog); }
.pill--en_revision { background: var(--rev-bg); color: var(--rev); }
.pill--borrador { background: var(--bor-bg); color: var(--bor); }
.pill--archivado { background: var(--arc-bg); color: var(--arc); }
.pill--sin_cubrir { background: #fff; color: var(--gap); border: 1px dashed var(--gap-line); }

/* ---------- Calendario ---------- */
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav__label { min-width: 150px; text-align: center; font-weight: 700; font-size: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.sw--publicado { background: var(--pub-bg); border: 1px solid var(--pub); }
.sw--programado { background: var(--prog-bg); border: 1px solid var(--prog); }
.sw--en_revision { background: var(--rev-bg); border: 1px solid var(--rev); }
.sw--borrador { background: var(--bor-bg); border: 1px solid var(--bor); }
.sw--sin_cubrir { background: #fff; border: 1px dashed var(--gap-line); }
.cal-scroll { overflow-x: auto; }
.cal { min-width: 680px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dow { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 8px 4px; }
.cal__day { min-height: 108px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: var(--ink); overflow: hidden; }
a.cal__day:hover { border-color: var(--accent); color: var(--ink); box-shadow: 0 2px 8px rgba(23,32,42,.08); }
.cal__day.is-past { background: #FAFBFC; }
.cal__day.st--sin_cubrir { border: 1px dashed var(--gap-line); }
.cal__day.st--vacio { background: transparent; border-color: transparent; }
.cal__num { font-weight: 700; font-size: 15px; }
.cal__day.is-today .cal__num { align-self: flex-start; min-width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.cal__day .pill { align-self: flex-start; }
.cal__title { font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal__author { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__take { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }

.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-list li { display: flex; flex-direction: column; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list li .pill { align-self: flex-start; }
.mini-list a { font-weight: 700; text-decoration: none; }
.kv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kv li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.kv li span:first-child { color: var(--muted); }
.stat { margin: 0; font-size: 16px; }
.stat strong { font-size: 28px; font-family: var(--serif); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.stat-card span { font-size: 14px; color: var(--muted); }
.stat-card strong { font-family: var(--serif); font-size: 30px; }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form--tight { gap: 10px; margin-top: 10px; }
.form--narrow { max-width: 640px; }
.form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.form legend { font-weight: 700; padding: 0 6px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-weight: 700; font-size: 14px; }
.fld input:not([type="checkbox"]):not([type="file"]), .fld select, .fld textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; font-size: 16px; line-height: 1.5;
}
.fld textarea { resize: vertical; }
.fld textarea.serif { font-size: 17px; line-height: 1.65; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld input[readonly] { background: var(--bg); }
.fld--inline { flex: 1 1 200px; }
.input-title { font-family: var(--serif); font-weight: 600; font-size: 21px !important; }
.hint { font-size: 13px; color: var(--muted); }
.hint--ok { color: var(--pub); font-weight: 600; }
.hint--bad { color: var(--gap); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Editor ---------- */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.stepper li.done { background: var(--pub-bg); border-color: transparent; color: var(--pub); }
.stepper li.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper li.current span { background: rgba(255,255,255,.2); }
.importer summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.importer summary::-webkit-details-marker { display: none; }
.importer summary strong::before { content: '▸ '; color: var(--accent); }
.importer[open] summary strong::before { content: '▾ '; }
.importer[open] summary { margin-bottom: 12px; }
.importer textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px !important; background: #FAFBFC !important; }
.importer .row { margin-top: 10px; }
#parseResult { margin-top: 12px; }
/* ---------- Adjuntos ---------- */
.attach { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.attach legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.dropzone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px; border: 2px dashed var(--line-strong); border-radius: 12px; background: #FAFBFC; color: var(--muted); transition: border-color .15s, background .15s; }
.dropzone > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dropzone small { flex-basis: 100%; line-height: 1.45; }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone label.btn { cursor: pointer; }
.dropzone:focus-within { border-color: var(--accent); }
.att-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.att-list:empty { display: none; }
.att { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.att__thumb { flex: none; width: 64px; height: 64px; border-radius: 9px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--accent); }
.att__thumb img { width: 100%; height: 100%; object-fit: cover; }
.att__ext { font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; }
.att--audio .att__thumb { background: var(--accent-soft); }
.att__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.att__name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att__info input[type="text"] { width: 100%; min-height: 38px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 14px; }
.att__info input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.att__info audio { width: 100%; height: 36px; }
.att__info progress { width: 100%; height: 8px; accent-color: var(--accent); }
.att__actions { flex: none; display: flex; flex-direction: column; gap: 4px; }
.icon-btn--sm { width: 36px; height: 32px; border-radius: 8px; cursor: pointer; }
.icon-btn--sm[disabled] { opacity: .35; cursor: default; }
.icon-btn--danger { color: var(--danger); }
.icon-btn--danger:hover { color: var(--danger); border-color: var(--danger); background: #FBEDEA; }
.att--uploading { background: #FAFBFC; }
.att--error { border-color: #EBC3BB; background: var(--gap-bg); }
.att--error .att__status { color: #7E2519; }
@media (min-width: 640px) { .att__actions { flex-direction: row; } }
.media-note { font-size: 13px; color: var(--muted); display: inline-flex; gap: 10px; flex-wrap: wrap; }

.notif-preview { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg); max-width: 460px; }
.notif-preview img { border-radius: 9px; }
.notif-preview div { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.notif-preview span { color: var(--ink-2); }
.actionbar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); margin: 6px -20px -20px; padding: 14px 20px; border-radius: 0 0 16px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.actionbar p { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.timeline form { margin: 2px 0 0; }
.tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.copy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.copy code { flex: 1 1 260px; padding: 8px 10px; }

/* ---------- Tablas ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .count { font-size: 12px; background: var(--bg); border-radius: 999px; padding: 1px 7px; margin-left: 4px; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; min-width: 620px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #FAFBFC; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table td a { text-decoration: none; }
.row-muted td { opacity: .6; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; }

/* ---------- Revisión / vista previa ---------- */
.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.review-card__head p { margin: 0; }
.review-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-card__actions form { margin: 0; }
.inline-form { display: flex; gap: 8px; flex: 1 1 320px; }
.verse-sm { margin: 0; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-family: var(--serif); font-style: italic; }
.verse-sm strong { font-family: var(--sans); font-style: normal; color: var(--accent); }
.reading-sm { font-family: var(--serif); font-size: 17px; line-height: 1.65; }
details > summary { cursor: pointer; font-weight: 600; }
.phone { max-width: 420px; margin: 0 auto; border: 10px solid #17202A; border-radius: 36px; background: #fff; box-shadow: 0 10px 40px rgba(23,32,42,.18); overflow: hidden; }
.phone__screen { max-height: 760px; overflow-y: auto; padding: 22px 20px 28px; }
.ph-eyebrow { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.ph-title { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin: 0 0 16px; }
.ph-verse { margin: 0 0 18px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.ph-verse blockquote { margin: 0 0 8px; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.6; }
.ph-verse figcaption { font-weight: 700; color: var(--accent); }
.ph-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.ph-reading { font-family: var(--serif); font-size: 18px; line-height: 1.7; }
.ph-reading p { margin: 0 0 1em; }
.ph-prayer { background: var(--accent-soft); padding: 14px 16px; border-radius: 14px; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-tags span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; }
.ph-sign { color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }

/* ---------- Equipo ---------- */
.credentials { display: grid; gap: 6px; margin: 10px 0; }
.credentials div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.credentials span { min-width: 150px; font-weight: 600; }
.roles { display: grid; gap: 8px; font-size: 15px; }
.roles .pill { margin-right: 6px; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: min(320px, 85vw); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 10px 30px rgba(23,32,42,.15); display: flex; flex-direction: column; gap: 10px; }

/* ---------- Páginas sueltas (login / instalar) ---------- */
.plain { background: var(--bg); }
.plain__main { max-width: 460px; margin: 0 auto; padding: 48px 16px; display: flex; flex-direction: column; gap: 18px; }
.plain__main:has(.panel--wide) { max-width: 720px; }
.plain__brand { display: flex; align-items: center; gap: 12px; }
.plain__brand img { display: block; height: 40px; width: auto; }
.plain__brand div { display: flex; flex-direction: column; line-height: 1.2; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.plain__brand span { color: var(--muted); font-size: 15px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.panel .h1 { font-size: 26px; }
.panel p { margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; }
.checklist li.ok svg { color: var(--pub); }
.checklist li.bad svg { color: var(--gap); }
.checklist small { display: block; color: var(--muted); }
.ph-hero { display: block; width: 100%; border-radius: 14px; margin: 0 0 16px; }
.ph-audio { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ph-audio audio { width: 100%; height: 36px; }
.ph-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.ph-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ph-files { margin: 0; padding-left: 18px; }
.icon-preview { display: flex; gap: 18px; align-items: flex-end; margin: 6px 0 4px; }
.icon-preview figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.icon-preview img { border-radius: 16px; border: 1px solid var(--line); }
.icon-preview img[width="32"] { border-radius: 6px; }
.icon-preview__mask { border-radius: 50% !important; }

/* Texto justificado en la vista previa y en la revisión */
.ph-reading p, .reading-sm p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}
.hint--info { color: #6A430C; font-weight: 600; }
.cal__day--list { gap: 6px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; }
.cal__add { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; color: var(--accent); border: 1px solid var(--line); }
.cal__add:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.cal__item { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); padding: 5px; margin: 0 -3px; border-radius: 8px; }
.cal__item + .cal__item { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.cal__item:hover { background: var(--bg); color: var(--ink); }
.cal__item .pill { align-self: flex-start; }
.hint--block { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: #1D4A5E; font-size: 14px; }
