/* Panel de redacción */
:root {
  --ink: #141a22; --ink-2: #455060; --muted: #7a8494; --line: #e2e6ec; --bg: #f3f5f8; --card: #fff;
  --navy: #0d1b2e; --navy-2: #1b3255; --red: #c8102e; --green: #1f6f43; --amber: #a36a00; --blue: #1f4e8c;
  --radius: 8px; --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #f2a7b3; outline-offset: 1px; }
h1, h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { background: #eef1f5; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

/* Layout */
body.admin { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: #c7d0dc; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 10px; color: #fff; padding: 4px 8px 22px; }
.side-brand:hover { text-decoration: none; }
.side-brand svg { width: 34px; height: 34px; }
.side-brand span { display: flex; flex-direction: column; font-weight: 800; font-size: 17px; line-height: 1.1; }
.side-brand small { font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #f08a9a; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { color: #c7d0dc; padding: 9px 12px; border-radius: 6px; font-weight: 600; font-size: 14.5px; }
.sidebar nav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: #fff; color: var(--navy); }
.side-user { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid #22385a; display: flex; flex-direction: column; font-size: 13.5px; }
.side-user strong { color: #fff; }
.side-user .link { color: #f08a9a; padding: 6px 0 0; }
.admin-main { padding: 26px 32px 60px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h1 { font-size: 26px; letter-spacing: -.01em; }

/* Componentes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: #b9c1cc; text-decoration: none; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: #a50d26; border-color: #a50d26; color: #fff; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; font-weight: 600; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--red); }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.alert ul { margin: 4px 0 0; padding-left: 1.2em; }
.alert-ok { background: #ecf7f0; border-color: #b6e0c5; color: #155a36; }
.alert-error { background: #fdf0f2; border-color: #f3c0c8; color: #8a1024; }
.alert-info { background: #eef4fc; border-color: #c4d7f2; color: #1d4277; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.panel h2 { font-size: 15px; margin-bottom: 12px; }
.empty-panel { text-align: center; color: var(--muted); padding: 40px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.cols-2-1 { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.stat-warn strong { color: var(--amber); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li a { font-weight: 600; color: var(--ink); }
.list li span { font-size: 13px; }
.ranked { counter-reset: r; }
.ranked li { padding-left: 30px; position: relative; }
.ranked li::before { counter-increment: r; content: counter(r); position: absolute; left: 0; top: 8px; font-weight: 800; color: var(--red); font-size: 18px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1f5; color: var(--ink-2); white-space: nowrap; }
.badge-publicado { background: #e3f4ea; color: var(--green); }
.badge-revision { background: #fff3da; color: var(--amber); }
.badge-borrador { background: #eef1f5; color: var(--ink-2); }
.badge-archivado { background: #f1eef5; color: #6b5a80; }
.badge-programado { background: #e6eefb; color: var(--blue); }
.badge-role-admin { background: var(--navy); color: #fff; }
.badge-role-editor { background: #e6eefb; color: var(--blue); }
.flags { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.flag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 3px; background: #eef1f5; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.flag-red { background: var(--red); color: #fff; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }

/* Tablas y filtros */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font: inherit; background: #fff; }
.filters input { min-width: 240px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.panel .table-wrap { border: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .nowrap { white-space: nowrap; }
.title-cell { min-width: 280px; }
.title-cell a { font-weight: 600; color: var(--ink); }
.actions { white-space: nowrap; }
.actions > * { margin-right: 10px; display: inline-block; }
.actions form { display: inline; }
tr.inactive td { opacity: .55; }
.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 600; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .dots { border: 0; background: none; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=datetime-local], .field select, .field textarea {
  font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #cfd5dd; border-radius: 7px; background: #fff; width: 100%; }
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid #c8d8f0; }
.field input[type=color] { width: 60px; height: 38px; padding: 2px; border: 1px solid #cfd5dd; border-radius: 7px; }
.hint { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.counter { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: auto; }
.counter.over { color: var(--red); }
.row { display: flex; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: 14px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--red); }
.check span { display: flex; flex-direction: column; }
.check small { color: var(--muted); font-size: 12.5px; }
.role-help { padding-left: 1.1em; margin: -6px 0 14px; }
.dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0 0 10px; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.editor-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.editor-side { position: sticky; top: 18px; }
.input-title { font-size: 22px !important; font-weight: 700 !important; font-family: Georgia, "Times New Roman", serif !important; }
#body { font-family: Georgia, "Times New Roman", serif; font-size: 16.5px; line-height: 1.7; min-height: 420px; }
.body-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.body-head label { font-weight: 600; font-size: 14px; }
.toolbar { display: flex; gap: 4px; flex-wrap: wrap; }
.toolbar button { border: 1px solid var(--line); background: #fafbfc; border-radius: 5px; padding: 4px 9px; font: inherit; font-size: 13px; cursor: pointer; }
.toolbar button:hover { background: #eef1f5; }
.thumb { width: 100%; border-radius: 6px; margin-bottom: 6px; aspect-ratio: 16/9; object-fit: cover; }
input[type=file] { font-size: 13px; width: 100%; }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, #1b3255, var(--navy) 60%); padding: 20px; }
.login-card { background: #fff; width: 100%; max-width: 400px; border-radius: 14px; padding: 32px 30px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-brand { display: flex; align-items: center; gap: 12px; color: var(--navy); margin-bottom: 20px; }
.login-brand svg { width: 42px; height: 42px; }
.login-brand div { display: flex; flex-direction: column; line-height: 1.05; }
.login-brand small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 800; }
.login-brand strong { font-family: Georgia, serif; font-size: 24px; }
.login-card h1 { font-size: 18px; margin-bottom: 16px; color: var(--ink-2); }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.login-card input { font: inherit; padding: 10px 12px; border: 1px solid #cfd5dd; border-radius: 7px; }
.login-card .back { display: block; text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

@media (max-width: 1100px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-side { position: static; }
  .cols-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  body.admin { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 12px; }
  .side-brand { padding-bottom: 10px; }
  .sidebar nav { flex-direction: row; overflow-x: auto; }
  .sidebar nav a { white-space: nowrap; }
  .side-user { flex-direction: row; gap: 10px; align-items: center; padding-top: 10px; margin-top: 10px; }
  .side-user .link { padding: 0; }
  .admin-main { padding: 18px 14px 40px; }
}

/* Logo */
.sidebar { background: #020b1c; }
.side-brand img { width: 52px; height: auto; border-radius: 6px; flex: none; }
.side-brand small { color: #f7891e; }
.login-page { background: radial-gradient(circle at 20% 10%, #13254a, #020b1c 60%); }
.login-logo { display: block; width: 200px; height: auto; margin: 0 auto 18px; border-radius: 12px; }
.login-card h1 { text-align: center; }

/* Asistente IA */
.ai-panel { border: 1px solid #f3c9a0; background: linear-gradient(180deg, #fff8f1, #fff); border-radius: 10px; padding: 16px 18px; margin: 4px 0 18px; }
.ai-panel.busy { opacity: .85; }
.ai-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ai-head strong { display: block; }
.ai-head small { color: var(--muted); font-size: 12.5px; }
.ai-badge { background: linear-gradient(135deg, #f7891e, #dd252f); color: #fff; font-weight: 800; border-radius: 8px; padding: 6px 9px; font-size: 13px; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.btn-ai { border-color: #f3c9a0; color: #a14a00; }
.btn-ai:hover { background: #fff1e2; }
.btn-ai:disabled { opacity: .5; cursor: progress; }
.ai-status { font-size: 13px; color: var(--ink-2); }
.ai-result { margin-top: 16px; border-top: 1px dashed #f3c9a0; padding-top: 14px; }
.ai-result h3 { margin: 0 0 10px; font-size: 15px; }
.ai-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.ai-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 4px; }
.ai-title { font-family: Georgia, serif; font-size: 19px; font-weight: 700; margin: 0; }
.ai-body { white-space: pre-wrap; font-family: Georgia, serif; font-size: 15px; line-height: 1.6; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 420px; overflow: auto; margin: 0; }
.ai-result ul { margin: 0; padding-left: 1.1em; font-size: 13.5px; }
@media (max-width: 900px) { .ai-cols { grid-template-columns: 1fr; } }

/* Publicidad, encuestas y comentarios */
.ad-thumb { width: 120px; aspect-ratio: 16/6; object-fit: cover; border-radius: 6px; float: left; margin: 0 12px 4px 0; }
.thumb-wide { aspect-ratio: 5/1; }
.poll-admin { border-bottom: 1px solid var(--line); padding: 12px 0; }
.poll-admin.inactive { opacity: .65; }
.poll-admin-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.result-line { display: grid; grid-template-columns: minmax(0, 1fr) 140px 90px; gap: 10px; align-items: center; font-size: 13.5px; padding: 2px 0; }
.result-line .bar { height: 8px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.result-line .bar span { display: block; height: 100%; background: var(--blue); }
.result-line b { text-align: right; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 600; color: var(--ink); }
.tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.comment-mod-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.comment-text { background: #f7f9fb; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }

/* ===================== Panel en móvil (≤ 800 px) ===================== */
.side-menu { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.side-toggle, .side-quick { display: none; }
@media (max-width: 800px) {
  body.admin { grid-template-columns: minmax(0, 1fr); font-size: 15px; }
  .sidebar { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
  .side-brand { padding: 0; margin-right: auto; }
  .side-brand img { width: 38px; }
  .side-brand span { font-size: 15px; }
  .side-quick { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--red); color: #fff; font-size: 24px; font-weight: 700; line-height: 1; }
  .side-quick:hover { text-decoration: none; color: #fff; }
  .side-toggle { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid #2a4370; background: #0b1a33; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
  .side-toggle svg { width: 18px; height: 18px; }
  .side-menu { display: none; flex-basis: 100%; padding: 6px 0 4px; }
  .sidebar.is-open .side-menu { display: flex; }
  .sidebar nav { flex-direction: column; overflow: visible; gap: 2px; }
  .sidebar nav a { padding: 11px 12px; font-size: 15px; }
  .side-user { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; padding: 10px 12px 2px; }
  .side-user .link { padding: 0; margin-left: auto; }

  .admin-main { padding: 14px 12px 40px; }
  .admin-head { margin-bottom: 14px; gap: 10px; }
  .admin-head h1 { font-size: 21px; }
  .admin-head .btn { padding: 8px 12px; font-size: 14px; }
  .panel { padding: 14px; margin-bottom: 14px; }
  .cols, .cols-2-1 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
  .stat { padding: 10px 12px; }
  .stat span { font-size: 11px; }
  .stat strong { font-size: 24px; }

  /* Filtros apilados */
  .filters { flex-direction: column; }
  .filters input, .filters select, .filters .btn { width: 100%; min-width: 0; }

  /* Tablas como tarjetas */
  .table-wrap { border: 0; background: none; overflow-x: auto; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards thead { display: none; }
  .table-cards tr { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
  .panel .table-cards tr { border-color: var(--line); }
  .table-cards td { border: 0; padding: 0; text-align: left; }
  .table-cards td.title-cell { min-width: 0; font-size: 15.5px; margin-bottom: 6px; }
  .table-cards td:not(.title-cell):not(.actions) { display: inline-block; width: auto; font-size: 12.5px; color: var(--muted); margin: 0 10px 4px 0; }
  .table-cards td.num { text-align: left; }
  .table-cards td.num::after { content: ""; }
  .table-cards td.actions { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); white-space: normal; display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .table-cards td.actions > * { margin: 0; }
  .table-cards .link, .table-cards td.actions a { font-size: 14px; padding: 4px 0; }
  .ad-thumb { width: 100%; float: none; margin: 0 0 8px; aspect-ratio: 16 / 6; }

  /* Formularios cómodos al tacto (16 px evita el zoom automático en iPhone) */
  .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=url],
  .field input[type=date], .field input[type=datetime-local], .field select, .field textarea, .filters input, .filters select { font-size: 16px; }
  .row { flex-direction: column; gap: 0; }
  .btn { min-height: 42px; }

  /* Editor */
  .editor { gap: 14px; }
  .editor-main { padding: 14px; }
  .input-title { font-size: 19px !important; }
  #body { min-height: 300px; font-size: 16px; }
  .toolbar { gap: 4px; }
  .toolbar button { padding: 6px 9px; font-size: 13px; }
  .ai-panel { padding: 12px; }
  .ai-actions .btn { flex: 1 1 100%; }
  .editor-side .btn-primary { position: sticky; bottom: 10px; box-shadow: 0 6px 16px rgba(200, 16, 46, .35); }

  /* Encuestas y comentarios */
  .result-line { grid-template-columns: minmax(0, 1fr) 70px 64px; font-size: 12.5px; }
  .comment-mod-head { flex-direction: column; gap: 2px; }
  .tabs a { flex: 1; text-align: center; padding: 8px 6px; font-size: 13.5px; }
  .dl { grid-template-columns: 70px minmax(0, 1fr); }
  .dl dd { word-break: break-word; }
}
@media (max-width: 800px) {
  .table-cards td.num[data-label]::before { content: attr(data-label) ": "; }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .editor-side .btn-primary.btn-block { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; z-index: 60; min-height: 48px; font-size: 16px; box-shadow: 0 8px 22px rgba(200, 16, 46, .4); }
  .admin-main:has(.editor) { padding-bottom: 90px; }
}
.poll-admin-head .badge { align-self: flex-start; flex: none; }
@media (max-width: 800px) { body.admin { grid-template-rows: auto 1fr; align-content: start; } .sidebar { align-self: start; } }
.subhead-admin { font-size: 14px; margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Boletín */
.nl-bar { height: 12px; background: #eef1f5; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.nl-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f7891e, #dd252f); transition: width .4s; }
.nl-text { margin: 6px 0; font-size: 14px; }
.nl-preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 10px; background: #eef1f6; }
.nl-articles { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; margin-bottom: 14px; }
.nl-articles .check { border-bottom: 1px solid var(--line); }
.nl-articles .check:last-child { border-bottom: 0; }
.nl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.nl-send { border-top: 1px dashed var(--line); padding-top: 12px; }
@media (max-width: 800px) { .nl-preview { height: 520px; } .nl-actions .btn, .nl-send .btn { width: 100%; } }

/* Selector de tema en el panel */
.theme-picker { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 8px; margin: 0 0 16px; }
.theme-picker legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.theme-opt { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.theme-opt:last-of-type { border-bottom: 0; }
.theme-opt input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.theme-opt span:last-child { display: flex; flex-direction: column; font-size: 14px; }
.theme-opt small { color: var(--muted); font-size: 12.5px; }
.theme-swatch { display: flex; gap: 3px; padding: 5px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.theme-swatch i { display: block; width: 16px; height: 22px; border-radius: 4px; }
.theme-swatch-oscuro { background: #061026; }
.theme-swatch-oscuro i { background: #0f2147; } .theme-swatch-oscuro i:nth-child(2) { background: #ff7a1a; } .theme-swatch-oscuro i:nth-child(3) { background: #2fd0f0; }
.theme-swatch-blanco { background: #ffffff; }
.theme-swatch-blanco i { background: #f1f3f6; border: 1px solid #e3e7ee; } .theme-swatch-blanco i:nth-child(2) { background: #ff7a1a; border: 0; } .theme-swatch-blanco i:nth-child(3) { background: #081634; border: 0; }
.theme-swatch-gris { background: #eef1f5; }
.theme-swatch-gris i { background: #ffffff; } .theme-swatch-gris i:nth-child(2) { background: #ff7a1a; } .theme-swatch-gris i:nth-child(3) { background: #081634; }
.cause-preview { width: 100%; max-width: 360px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin: 4px 0 12px; display: block; }

/* Reacciones editables en el editor */
.rx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.rx-field { margin: 0; }
.rx-field span { font-size: 13px; }
.rx-field input { width: 100%; }

/* Ojo para ver la contraseña */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px !important; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: #6b7280; border-radius: 8px; cursor: pointer; padding: 0; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: #111827; background: rgba(0, 0, 0, .06); }
.pw-toggle svg { width: 22px; height: 22px; }
