@import url("/assets/fonts/fonts.css");

:root {
  color-scheme: dark;
  --red: #d62b34;
  --red-bright: #da3039;
  --red-dark: #8f1118;
  --ink: #08090a;
  --panel: #0e0f11;
  --panel-2: #131416;
  --line: rgba(255, 255, 255, .08);
  --muted: #858893;
  --text: #eeeeee;
  --display: "Space Grotesk", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.auth-view { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(440px, .95fr); }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 58px clamp(46px, 7vw, 110px); background: radial-gradient(circle at 75% 40%, rgba(214, 43, 52, .21), transparent 34%), linear-gradient(145deg, #0b0c0e, #050506); border-right: 1px solid var(--line); }
.auth-brand::after { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; bottom: -220px; border: 1px solid rgba(214,43,52,.28); border-radius: 50%; box-shadow: 0 0 0 80px rgba(214,43,52,.025), 0 0 0 160px rgba(214,43,52,.018); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand img { width: 118px; height: 82px; object-fit: contain; }
.auth-brand span, .eyebrow, .admin-header > div > span, .panel-head span, .welcome-card span, .metric-grid > button > span { color: var(--red-bright); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.auth-brand h1 { margin: 19px 0 18px; max-width: 650px; font: 600 clamp(48px, 5.7vw, 84px)/.96 var(--display); letter-spacing: -.06em; }
.auth-brand p { max-width: 500px; color: #a9abb3; font-size: 17px; line-height: 1.7; }
.auth-brand > small { color: #686b73; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.auth-panel { display: grid; place-items: center; min-height: 100vh; padding: 48px; }
.auth-card { width: min(100%, 430px); }
.auth-card h1,
.auth-card h2 { margin: 13px 0 9px; font: 600 36px/1.1 var(--display); letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 34px; color: var(--muted); line-height: 1.6; }
.auth-card label, .editor-card > label { display: grid; gap: 9px; margin: 18px 0; color: #bfc1c7; font-size: 12px; font-weight: 600; }
.auth-card input, .editor-card input, .editor-card textarea, .editor-card select, .chat-compose textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #101113; color: var(--text); padding: 14px 15px; transition: border .2s, box-shadow .2s; }
.auth-card input:focus, .editor-card input:focus, .editor-card textarea:focus, .editor-card select:focus, .chat-compose textarea:focus { border-color: rgba(214,43,52,.65); box-shadow: 0 0 0 3px rgba(214,43,52,.1); }
.auth-card label small, .editor-card label small { color: #666973; font-weight: 400; }
.auth-card > button, .primary-action, .welcome-card button { border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-card > button { width: 100%; display: flex; justify-content: space-between; margin-top: 26px; padding: 15px 17px; }
.auth-card > small { display: block; margin-top: 22px; color: #656872; text-align: center; }
.form-message { min-height: 20px; margin-top: 12px; color: #ff8b91; font-size: 12px; }
.form-message.success { color: #76d6a5; }

.admin-app { min-height: 100vh; display: block; }
.admin-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 220px; display: flex; flex-direction: column; background: #090a0b; border-right: 1px solid var(--line); padding: 24px 15px; }
.admin-logo { display: grid; place-items: center; height: 95px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.admin-logo img { width: 92px; height: 68px; object-fit: contain; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar button, .sidebar-bottom a { position: relative; width: 100%; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 9px; background: transparent; color: #8b8e98; padding: 12px 14px; cursor: pointer; text-decoration: none; font-size: 13px; text-align: left; }
.admin-sidebar button:hover, .sidebar-bottom a:hover, .admin-sidebar button.active { background: rgba(214,43,52,.09); color: white; }
.admin-sidebar button.active::before { content: ""; position: absolute; left: -15px; width: 2px; height: 21px; background: var(--red); box-shadow: 0 0 16px var(--red); }
.admin-sidebar nav button > svg,
.sidebar-bottom a > svg,
.sidebar-bottom button > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--red-bright);
  stroke-width: 1.8;
}
.admin-menu svg { width: 19px; height: 19px; stroke-width: 1.8; }
.admin-sidebar b { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 10px; background: var(--red); color: white; font-size: 10px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 17px; }
.admin-workspace { min-width: 0; margin-left: 220px; background: radial-gradient(circle at 70% 0%, rgba(143,17,24,.07), transparent 25%), #0b0c0d; }
.admin-header { height: 105px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(26px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(10,11,12,.85); backdrop-filter: blur(16px); }
.admin-header h1 { margin: 5px 0 0; font: 600 25px/1 var(--display); letter-spacing: -.035em; }
.profile-chip { display: flex; align-items: center; gap: 11px; }
.profile-chip > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(214,43,52,.38); border-radius: 50%; background: rgba(214,43,52,.1); color: #fff; font-weight: 700; }
.profile-chip div { display: grid; gap: 2px; }
.profile-chip strong { font-size: 12px; }
.profile-chip small { color: var(--muted); font-size: 10px; }
.admin-menu { display: none; }
.admin-view { display: none; padding: clamp(28px, 4vw, 55px); }
.admin-view.active { display: block; }
.welcome-card { min-height: 210px; display: flex; align-items: end; justify-content: space-between; gap: 30px; overflow: hidden; position: relative; padding: 35px 39px; border: 1px solid rgba(214,43,52,.2); border-radius: 16px; background: radial-gradient(circle at 78% 40%, rgba(214,43,52,.22), transparent 26%), linear-gradient(120deg, #131416, #0d0e10); }
.welcome-card::after { content: "BB"; position: absolute; right: 50px; top: -35px; color: rgba(255,255,255,.022); font: 700 210px/1 var(--display); letter-spacing: -.12em; }
.welcome-card > * { position: relative; z-index: 1; }
.welcome-card h2 { margin: 9px 0 7px; font: 600 37px/1.05 var(--display); letter-spacing: -.05em; }
.welcome-card p { margin: 0; color: #92959e; }
.welcome-card button { padding: 13px 16px; white-space: nowrap; }
.welcome-card button span { color: inherit; margin-left: 10px; font-size: 16px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 16px 0; }
.metric-grid > button { width: 100%; min-height: 150px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 13px; color: inherit; background: var(--panel); text-align: left; cursor: pointer; }
.metric-grid > button.accent { border-color: rgba(214,43,52,.28); background: linear-gradient(145deg, rgba(214,43,52,.12), var(--panel) 65%); }
.metric-grid > button:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }
.metric-grid strong { margin: 18px 0 7px; font: 600 35px/1 var(--display); letter-spacing: -.05em; }
.metric-grid small { margin-top: auto; color: #6f727b; }
.panel-card, .editor-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.panel-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 6px 0 0; font: 600 18px/1 var(--display); letter-spacing: -.03em; }
.activity-list { min-height: 170px; }
.activity-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 13px; align-items: center; padding: 15px 24px; border-bottom: 1px solid rgba(255,255,255,.045); }
.activity-item:last-child { border: 0; }
.activity-item > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(214,43,52,.09); color: var(--red-bright); }
.activity-item strong { display: block; font-size: 12px; }
.activity-item p, .activity-item time { margin: 3px 0 0; color: #747780; font-size: 11px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-toolbar p { margin: 0; color: var(--muted); }
.primary-action { padding: 12px 15px; }
.content-layout, .team-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, .75fr); gap: 18px; align-items: start; }
.publication-layout { grid-template-columns: minmax(360px,.82fr) minmax(480px,1.18fr); }
.publication-list-card .panel-head > small { max-width: 155px; color: #686b73; font-size: 9px; line-height: 1.4; text-align: right; }
.admin-list { min-height: 180px; }
.admin-list-item { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 19px 24px; border-bottom: 1px solid rgba(255,255,255,.045); cursor: pointer; }
.admin-list-item:last-child { border-bottom: 0; }
.admin-list-item:hover { background: rgba(255,255,255,.018); }
.admin-list-item h3 { margin: 0 0 7px; font-size: 14px; }
.admin-list-item p { margin: 0; color: #757882; font-size: 12px; line-height: 1.45; }
.admin-list-meta { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.tag { display: inline-flex; border: 1px solid rgba(214,43,52,.25); border-radius: 99px; background: rgba(214,43,52,.07); color: #e76a70; padding: 4px 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tag.muted { border-color: var(--line); background: rgba(255,255,255,.025); color: #777a83; }
.admin-list-item > time { color: #61646d; font-size: 10px; white-space: nowrap; }
.announcement-list-row { grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; }
.announcement-list-row > div:nth-child(2) { min-width: 0; overflow: hidden; }
.announcement-list-row h3,
.announcement-list-row p { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement-list-row .admin-list-meta { max-width: 100%; flex-wrap: wrap; }
.announcement-list-image { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg,#17181b,#0a0b0c); color: #d62b34; font: 700 15px var(--display); }
.announcement-list-image img { width: 100%; height: 100%; object-fit: cover; }
.announcement-row-actions { display: grid; justify-items: end; gap: 8px; }
.announcement-row-actions time { color: #61646d; font-size: 9px; }
.announcement-row-buttons { display: flex; gap: 6px; }
.announcement-row-buttons button { border: 1px solid var(--line); border-radius: 7px; background: transparent; padding: 6px 8px; color: #8c8f97; cursor: pointer; font-size: 9px; }
.announcement-row-buttons button:hover { border-color: rgba(214,43,52,.35); color: #eee; }
.announcement-row-buttons .quick-delete-announcement { color: #db6b71; }
.editor-card { padding-bottom: 20px; }
.editor-card > label, .editor-card > .check-row, .editor-card > .editor-actions, .editor-card > .form-message, .editor-card > .form-intro { margin-left: 24px; margin-right: 24px; }
.editor-card textarea { resize: vertical; line-height: 1.55; }
.icon-button { border: 0; background: transparent; color: #7e818a; font-size: 24px; cursor: pointer; }
.check-row { display: flex; gap: 22px; margin-top: 18px; color: #979aa3; font-size: 12px; }
.check-row label { display: flex; gap: 8px; align-items: center; }
.check-row input { accent-color: var(--red); }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.danger-action { margin-right: auto; border: 1px solid rgba(214,43,52,.25); border-radius: 9px; background: transparent; color: #e86a70; padding: 11px 14px; cursor: pointer; }
.form-intro { color: var(--muted); font-size: 12px; line-height: 1.5; }
.publication-editor { position: sticky; top: 112px; }
.publication-editor > .publication-fields-grid { margin: 0 24px; }
.publication-fields-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.publication-fields-grid label { display: grid; gap: 7px; margin: 0 0 17px; color: #aaa; font-size: 11px; font-weight: 600; }
.announcement-image-upload > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.announcement-image-preview { min-height: 175px; display: grid; place-items: center; align-content: center; gap: 7px; overflow: hidden; border: 1px dashed rgba(214,43,52,.34); border-radius: 12px; background: radial-gradient(circle at 50% 20%,rgba(214,43,52,.08),transparent 48%),#0b0c0d; color: #d62b34; cursor: pointer; }
.announcement-image-preview b { font-size: 28px; font-weight: 400; }
.announcement-image-preview strong { color: #d3d4d8; font-size: 11px; }
.announcement-image-preview small { color: #71747d; font-size: 9px; }
.announcement-image-preview img { width: 100%; height: 210px; object-fit: cover; }
.remove-announcement-image { display: block; margin: -7px 24px 18px auto; }
.partner-logo-upload > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.partner-logo-preview { min-height: 125px; display: grid; place-items: center; align-content: center; gap: 7px; overflow: hidden; border: 1px dashed rgba(214,43,52,.34); border-radius: 11px; background: rgba(214,43,52,.045); color: #d62b34; cursor: pointer; }
.partner-logo-preview b { font-size: 25px; font-weight: 400; }
.partner-logo-preview small { color: #777a83; font-size: 9px; }
.partner-logo-preview img { width: 100%; height: 125px; object-fit: contain; background: #090a0b; padding: 13px; }
.remove-partner-logo { display: block; margin: -7px 24px 18px auto; }
.partner-list-logo { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #090a0b; color: #d0d1d6; font-weight: 700; }
.partner-list-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.partner-list-row { grid-template-columns: 44px 1fr auto; align-items: center; }
.team-layout #user-form { padding-bottom: 34px; }
.team-layout #user-form > label,
.team-layout #user-form > .form-intro,
.team-layout #user-form > .form-message { width: min(560px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.team-layout #user-form > .form-intro { margin-top: 22px; margin-bottom: 24px; text-align: center; }
.team-layout #user-form > label { margin-top: 20px; margin-bottom: 20px; }
.team-layout #user-form > .primary-action { display: block; min-width: 180px; margin: 30px auto 4px; padding: 13px 24px; }
.team-layout #user-form > .form-message { margin-top: 12px; text-align: center; }
.conversation-layout { height: calc(100vh - 215px); min-height: 540px; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; }
.inbox, .chat-panel { min-height: 0; overflow: hidden; }
.inbox-list { height: calc(100% - 78px); overflow: auto; }
.conversation-item { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 11px; align-items: start; border: 0; border-bottom: 1px solid rgba(255,255,255,.045); background: transparent; padding: 16px 18px; text-align: left; cursor: pointer; }
.conversation-item:hover, .conversation-item.active { background: rgba(214,43,52,.065); }
.conversation-item.has-unread { box-shadow: inset 3px 0 #d62b34; background: rgba(214,43,52,.035); }
.conversation-item.is-closed { opacity: .68; }
.conversation-item.is-closed:hover, .conversation-item.is-closed.active { opacity: 1; }
.conversation-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #1b1c1f; color: #d6d7dc; font-weight: 700; }
.conversation-item strong { display: block; color: #dedfe3; font-size: 12px; }
.conversation-row-title { display: flex; align-items: center; gap: 7px; }
.conversation-state { border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 2px 6px; color: #8c8f97; font-size: 7px; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.conversation-state.open { border-color: rgba(93,224,160,.2); color: #75cfa3; }
.conversation-state.pending { border-color: rgba(214,43,52,.25); color: #e37076; }
.conversation-state.visitor-closed { border-color: rgba(232,166,73,.3); background: rgba(232,166,73,.06); color: #e8a649; }
.conversation-item p { max-width: 175px; margin: 5px 0 0; overflow: hidden; color: #72757e; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.conversation-item time { color: #595c64; font-size: 9px; }
.conversation-item b { position: absolute; }
.chat-panel { display: flex; flex-direction: column; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.chat-header h2 { margin: 0 0 4px; font: 600 16px/1.2 var(--display); }
.chat-header p { margin: 0; color: #747780; font-size: 11px; }
.chat-header-actions { display: flex; align-items: center; gap: 10px; }
.chat-status { border: 1px solid rgba(93,224,160,.18); border-radius: 999px; background: rgba(93,224,160,.055); padding: 7px 10px; color: #75cfa3; font-size: 9px; font-weight: 700; }
.chat-status.pending { border-color: rgba(214,43,52,.2); background: rgba(214,43,52,.06); color: #df7278; }
.chat-status.closed { border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.03); color: #858891; }
.chat-status.visitor-closed { border-color: rgba(232,166,73,.3); background: rgba(232,166,73,.07); color: #e8a649; }
.close-conversation { border: 1px solid rgba(214,43,52,.4); border-radius: 8px; background: rgba(214,43,52,.09); color: #ef8a8f; padding: 9px 12px; cursor: pointer; font: 700 9px var(--body); transition: background .2s, border-color .2s, color .2s; }
.close-conversation:hover { border-color: rgba(214,43,52,.7); background: rgba(214,43,52,.18); color: #fff; }
.chat-messages { flex: 1; overflow: auto; padding: 25px; }
.message { max-width: 72%; margin-bottom: 15px; }
.message.staff { margin-left: auto; }
.message small { display: block; margin: 0 0 5px; color: #666a73; font-size: 9px; }
.message.staff small { text-align: right; }
.message p { margin: 0; border: 1px solid var(--line); border-radius: 4px 13px 13px 13px; background: #151619; padding: 12px 14px; color: #c9cbd1; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.message.staff p { border-color: rgba(214,43,52,.24); border-radius: 13px 4px 13px 13px; background: rgba(214,43,52,.11); }
.chat-compose { display: flex; gap: 10px; padding: 17px; border-top: 1px solid var(--line); }
.chat-compose textarea { min-height: 48px; max-height: 100px; resize: none; }
.chat-compose button { min-width: 95px; }
.chat-user-closed-notice { display:flex; align-items:center; gap:14px; margin:18px 22px 0; border:1px solid rgba(232,166,73,.24); border-radius:12px; background:linear-gradient(135deg,rgba(232,166,73,.1),rgba(232,166,73,.025)); padding:14px 16px; }
.chat-user-closed-notice > i { width:32px; height:32px; flex:0 0 auto; display:grid; place-items:center; border:1px solid rgba(232,166,73,.32); border-radius:50%; color:#e8a649; font:700 13px var(--display); }
.chat-user-closed-notice strong { display:block; margin-bottom:4px; color:#e7d7bd; font-size:12px; }
.chat-user-closed-notice p { margin:0; color:#8f8a82; font-size:10px; line-height:1.5; }
.chat-closed-notice { display:flex; align-items:center; justify-content:center; gap:8px; border-top:1px solid var(--line); background:rgba(255,255,255,.018); padding:18px 22px; color:#70737b; text-align:center; }
.chat-closed-notice strong { color:#a2a4aa; font-size:11px; }
.chat-closed-notice span { font-size:10px; }
.empty-state { display: grid; place-items: center; padding: 35px; color: #676a73; font-size: 12px; text-align: center; }
.empty-state.large { height: 100%; align-content: center; }
.empty-state.large i { color: var(--red); font-size: 36px; font-style: normal; }
.empty-state.large strong { margin-top: 13px; color: #bbbcc2; font-size: 14px; }
.empty-state.large p { max-width: 320px; line-height: 1.5; }
.team-user-actions { display: flex; align-items: center; gap: 8px; }
.small-action { border: 1px solid var(--line); border-radius: 7px; background: transparent; color: #92959e; padding: 7px 9px; cursor: pointer; font-size: 10px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; transform: translateY(20px); opacity: 0; pointer-events: none; border: 1px solid rgba(214,43,52,.3); border-radius: 10px; background: #17181a; box-shadow: 0 16px 45px rgba(0,0,0,.35); padding: 13px 17px; color: #eee; font-size: 12px; transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }

/* Archivo privado de whitelist */
.whitelist-toolbar { align-items: flex-end; }
.whitelist-tools { display: flex; gap: 9px; }
.whitelist-tools input,
.whitelist-tools select { min-height: 43px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #101113; color: #c9cbd1; padding: 0 13px; font-size: 11px; }
.whitelist-tools input { width: min(300px,30vw); }
.whitelist-tools select { min-width: 165px; }
.whitelist-tools input:focus,
.whitelist-tools select:focus { border-color: rgba(214,43,52,.5); box-shadow: 0 0 0 3px rgba(214,43,52,.08); }
.whitelist-admin-layout { min-width: 0; display: grid; grid-template-columns: minmax(340px,.72fr) minmax(520px,1.28fr); gap: 17px; align-items: start; }
.whitelist-folder-list,
.whitelist-file { min-height: calc(100vh - 245px); overflow: hidden; }
.whitelist-folder-list .panel-head > small { color: #686b73; font-size: 9px; }
.whitelist-list { max-height: calc(100vh - 324px); overflow-y: auto; }
.whitelist-folder-row { display: grid; grid-template-columns: minmax(0,1fr) 56px; border-bottom: 1px solid rgba(255,255,255,.045); }
.whitelist-folder-row .whitelist-folder { border-bottom: 0; }
.whitelist-folder-pdf { display: grid; place-items: center; align-content: center; gap: 4px; border-left: 1px solid rgba(255,255,255,.045); background: rgba(255,255,255,.008); color: #8c8f98; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-decoration: none; transition: color .2s,background .2s,border-color .2s; }
.whitelist-folder-pdf span { color: #d62b34; font-size: 13px; line-height: 1; }
.whitelist-folder-pdf:hover { border-left-color: rgba(214,43,52,.22); background: rgba(214,43,52,.07); color: #fff; }
.deletion-request-badge { display: inline-flex; width: fit-content; margin-top: 8px; border: 1px solid rgba(239,85,93,.38); border-radius: 999px; background: rgba(214,43,52,.1); padding: 5px 8px; color: #ef747b; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .1em; }
.deletion-request-alert { margin: 20px 30px 0; border: 1px solid rgba(239,85,93,.35); border-radius: 12px; background: rgba(214,43,52,.075); padding: 15px 17px; }
.deletion-request-alert strong { color: #f2d6d8; font-size: 12px; }
.deletion-request-alert p { margin: 5px 0 0; color: #ba898d; font-size: 10px; line-height: 1.6; }
.whitelist-folder { position: relative; width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; align-items: start; border: 0; border-bottom: 1px solid rgba(255,255,255,.045); background: transparent; padding: 18px 20px; color: inherit; text-align: left; cursor: pointer; transition: background .2s,box-shadow .2s; }
.whitelist-folder > div { min-width: 0; overflow: hidden; }
.whitelist-folder:hover,
.whitelist-folder.active { background: linear-gradient(90deg,rgba(214,43,52,.075),rgba(214,43,52,.015)); box-shadow: inset 2px 0 #d62b34; }
.folder-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(214,43,52,.2); border-radius: 9px; background: rgba(214,43,52,.055); color: #df3c45; font-size: 14px; }
.whitelist-folder small { display: block; overflow: hidden; margin-bottom: 5px; color: #d74a51; font-size: 8px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; text-overflow: ellipsis; }
.whitelist-folder strong { display: block; overflow: hidden; color: #e0e1e5; font: 600 13px var(--display); white-space: nowrap; text-overflow: ellipsis; }
.whitelist-folder p { width: 100%; max-width: 100%; margin: 6px 0 0; overflow: hidden; color: #70737c; font-size: 10px; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.whitelist-folder time { grid-column: 3; color: #575a62; font-size: 8px; }
.whitelist-state { display: inline-flex; width: fit-content; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); padding: 5px 8px; color: #898c95; font-size: 7px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.whitelist-state.pending { border-color: rgba(232,166,73,.25); background: rgba(232,166,73,.055); color: #dfa557; }
.whitelist-state.reviewing { border-color: rgba(103,162,235,.25); background: rgba(103,162,235,.055); color: #76a8e8; }
.whitelist-state.accepted { border-color: rgba(93,224,160,.22); background: rgba(93,224,160,.055); color: #75cfa3; }
.whitelist-state.rejected { border-color: rgba(214,43,52,.27); background: rgba(214,43,52,.065); color: #e27177; }
.whitelist-state.archived { color: #90939b; }
.whitelist-file { min-width: 0; display: flex; flex-direction: column; }
.whitelist-file-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 27px 30px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 92% 0,rgba(214,43,52,.08),transparent 42%); }
.whitelist-file-head > div:first-child { min-width: 0; }
.whitelist-file-head > div:first-child > span { color: #dc3b44; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.whitelist-file-head h2 { margin: 8px 0 5px; font: 600 26px/1 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; word-break: break-word; }
.whitelist-file-head p { margin: 0; color: #777a83; font-size: 11px; }
.whitelist-file-head > div:last-child { display: flex; align-items: center; gap: 8px; }
.copy-reference { border: 1px solid var(--line); border-radius: 8px; background: transparent; color: #8f929b; padding: 8px 10px; cursor: pointer; font-size: 8px; }
.copy-reference:hover { border-color: rgba(214,43,52,.3); color: #e6e7e9; }
.download-reference { border: 1px solid rgba(214,43,52,.28); border-radius: 8px; background: rgba(214,43,52,.065); color: #e1747a; padding: 8px 11px; cursor: pointer; font-size: 8px; font-weight: 700; letter-spacing: .06em; transition: border-color .2s,background .2s,color .2s; }
.download-reference:hover { border-color: rgba(214,43,52,.56); background: rgba(214,43,52,.13); color: #fff; }
.whitelist-file-body { min-width: 0; flex: 1; padding: 30px; }
.whitelist-file-body section { min-width: 0; margin-bottom: 29px; }
.whitelist-file-body section > small { color: #da3b44; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.whitelist-file-body section > p { max-width: 100%; margin: 11px 0 0; color: #b3b5bc; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.whitelist-file-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 18px; border-top: 1px solid var(--line); color: #656871; font-size: 9px; }
.whitelist-review-form { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 14px; padding: 24px 30px 28px; border-top: 1px solid var(--line); background: rgba(255,255,255,.012); }
.whitelist-review-form label { display: grid; align-content: start; gap: 8px; color: #a8abb3; font-size: 10px; font-weight: 600; }
.whitelist-review-form label small { color: #62656d; font-weight: 400; }
.whitelist-review-form select,
.whitelist-review-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #0d0e10; color: #d4d5d9; padding: 12px; font-size: 11px; }
.whitelist-review-form textarea { resize: vertical; line-height: 1.55; }
.whitelist-review-form select:focus,
.whitelist-review-form textarea:focus { border-color: rgba(214,43,52,.45); }
.whitelist-review-form > div { grid-column: 1/-1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.whitelist-review-form .danger-action { margin-right: auto; }

@media (max-width: 1180px) {
  .whitelist-admin-layout { grid-template-columns: 1fr; }
  .whitelist-folder-list,
  .whitelist-file { min-height: 0; }
  .whitelist-list { max-height: 450px; }
}

@media (max-width: 720px) {
  .whitelist-toolbar,
  .whitelist-tools { width: 100%; align-items: stretch; flex-direction: column; }
  .whitelist-tools input,
  .whitelist-tools select { width: 100%; }
  .whitelist-file-head { flex-direction: column; padding: 22px; }
  .whitelist-file-body { padding: 24px 22px; }
  .whitelist-review-form { grid-template-columns: 1fr; padding: 22px; }
  .whitelist-review-form > div { align-items: stretch; flex-direction: column-reverse; }
  .whitelist-review-form .danger-action { width: 100%; margin: 0; }
}

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout, .team-layout { grid-template-columns: 1fr; }
  .editor-card { order: -1; }
}

@media (max-width: 1180px) {
  .publication-layout { grid-template-columns: 1fr; }
  .publication-editor { position: static; order: -1; }
}

@media (max-width: 720px) {
  .publication-fields-grid { grid-template-columns: 1fr; gap: 0; }
  .announcement-list-row { grid-template-columns: 48px minmax(0,1fr); }
  .announcement-list-image { width: 48px; height: 48px; }
  .announcement-row-actions { grid-column: 1/-1; width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .chat-header { align-items: flex-start; flex-direction: column; }
  .chat-header-actions { width: 100%; justify-content: space-between; }
  .chat-closed-notice { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .auth-view { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 28px; }
  .admin-app { display: block; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 20px 0 50px rgba(0,0,0,.4); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-workspace { margin-left: 0; }
  .admin-header { height: 84px; padding: 0 20px; }
  .admin-menu { display: block; border: 0; background: transparent; font-size: 20px; }
  .admin-header > div:nth-child(2) { margin-right: auto; margin-left: 14px; }
  .profile-chip div { display: none; }
  .admin-view { padding: 20px; }
  .welcome-card { min-height: 240px; align-items: flex-start; flex-direction: column; padding: 28px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid > button { min-height: 135px; padding: 18px; }
  .conversation-layout { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .inbox { max-height: 330px; }
  .chat-panel { min-height: 550px; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
  .profile-chip { display: none; }
  .section-toolbar { align-items: flex-start; flex-direction: column; }
  .message { max-width: 88%; }
}

/* ============================================================
   PANEL 2026 — interfaz administrativa unificada
   ============================================================ */
:root {
  --admin-bg: #070709;
  --admin-surface: #0d0e11;
  --admin-surface-raised: #111216;
  --admin-border: rgba(255,255,255,.075);
  --admin-border-red: rgba(214,43,52,.28);
  --admin-radius: 17px;
  --admin-radius-lg: 22px;
  --admin-shadow: 0 26px 75px rgba(0,0,0,.26);
}

body {
  background:
    radial-gradient(700px 420px at 84% -8%,rgba(214,43,52,.085),transparent 64%),
    var(--admin-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #fff; background: rgba(214,43,52,.55); }
:where(button,a,input,textarea,select):focus-visible { outline: 2px solid rgba(237,56,66,.9); outline-offset: 3px; }

/* Acceso */
.auth-view { grid-template-columns: minmax(420px,1.12fr) minmax(430px,.88fr); background: #070709; }
.auth-brand {
  padding: clamp(44px,6vw,82px) clamp(44px,7vw,104px);
  border-right-color: var(--admin-border);
  background:
    radial-gradient(circle at 74% 40%,rgba(214,43,52,.17),transparent 36%),
    linear-gradient(145deg,#0b0c0f,#060608);
}
.auth-brand::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.045); border-radius: 24px; pointer-events: none; }
.auth-brand::after { border-color: rgba(214,43,52,.18); }
.auth-brand img { width: 126px; height: 88px; }
.auth-brand h1 { max-width: 720px; font-size: clamp(48px,5.3vw,78px); }
.auth-panel { padding: 54px; background: rgba(7,8,10,.72); }
.auth-card { width: min(100%,440px); padding: 36px; border: 1px solid var(--admin-border); border-radius: var(--admin-radius-lg); background: linear-gradient(150deg,rgba(17,18,22,.94),rgba(9,10,12,.96)); box-shadow: var(--admin-shadow); }
.auth-card h1,
.auth-card h2 { font-size: 34px; }
.auth-card input,
.editor-card input,
.editor-card textarea,
.editor-card select,
.chat-compose textarea { border-color: rgba(255,255,255,.085); border-radius: 11px; background: #0b0c0e; }

/* Estructura principal */
.admin-sidebar {
  width: 238px;
  padding: 22px 16px;
  border-right-color: var(--admin-border);
  background: rgba(7,8,10,.97);
  box-shadow: 18px 0 60px rgba(0,0,0,.12);
}
.admin-logo { height: 104px; margin-bottom: 24px; border-bottom-color: var(--admin-border); }
.admin-logo img { width: 104px; height: 76px; }
.admin-sidebar nav { gap: 6px; }
.admin-sidebar button,
.sidebar-bottom a { min-height: 46px; padding: 13px 14px; border-radius: 11px; font-size: 12px; }
.admin-sidebar button:hover,
.sidebar-bottom a:hover { background: rgba(255,255,255,.035); }
.admin-sidebar button.active {
  color: #fff;
  background: linear-gradient(90deg,rgba(214,43,52,.14),rgba(214,43,52,.045));
  box-shadow: inset 0 0 0 1px rgba(214,43,52,.11);
}
.admin-sidebar button.active::before { left: -16px; height: 24px; }
.sidebar-bottom { border-top-color: var(--admin-border); }

.admin-workspace {
  min-height: 100vh;
  margin-left: 238px;
  background:
    radial-gradient(circle at 78% 0,rgba(143,17,24,.055),transparent 28%),
    linear-gradient(180deg,#0a0b0d,#08090b 48%,#070709);
}
.admin-header {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 96px;
  padding: 0 clamp(26px,4vw,58px);
  border-bottom-color: var(--admin-border);
  background: rgba(9,10,12,.88);
  backdrop-filter: blur(22px) saturate(130%);
}
.admin-header h1 { font-size: 27px; }
.profile-chip > span { width: 40px; height: 40px; background: rgba(214,43,52,.075); }
.admin-view { width: min(100%,1540px); margin-inline: auto; padding: clamp(30px,4vw,58px); }

/* Superficies y jerarquía */
.welcome-card {
  min-height: 228px;
  padding: clamp(34px,4vw,48px);
  border-color: rgba(214,43,52,.18);
  border-radius: var(--admin-radius-lg);
  background:
    radial-gradient(circle at 82% 34%,rgba(214,43,52,.15),transparent 30%),
    linear-gradient(125deg,rgba(19,20,24,.96),rgba(10,11,13,.97));
  box-shadow: var(--admin-shadow);
}
.welcome-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(180deg,#d62b34,transparent 75%); }
.welcome-card h2 { font-size: clamp(35px,3.2vw,46px); }
.welcome-card p { color: #9699a2; }
.metric-grid { gap: 16px; margin: 18px 0; }
.metric-grid > button {
  min-height: 158px;
  padding: 25px;
  border-color: var(--admin-border);
  border-radius: var(--admin-radius);
  background: linear-gradient(150deg,rgba(16,17,21,.96),rgba(11,12,14,.97));
  transition: transform .2s ease,border-color .2s ease;
}
.metric-grid > button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.12); }
.metric-grid > button.accent { border-color: rgba(214,43,52,.24); background: linear-gradient(145deg,rgba(214,43,52,.10),rgba(13,14,17,.96) 62%); }
.metric-grid strong { font-size: 38px; }

.panel-card,
.editor-card {
  border-color: var(--admin-border);
  border-radius: var(--admin-radius);
  background: linear-gradient(150deg,rgba(15,16,19,.96),rgba(11,12,14,.97));
  box-shadow: 0 22px 65px rgba(0,0,0,.13);
}
.panel-head { min-height: 82px; padding: 20px 26px; border-bottom-color: var(--admin-border); }
.panel-head h2 { font-size: 19px; }
.activity-item,
.admin-list-item { padding-inline: 26px; border-bottom-color: rgba(255,255,255,.05); }
.admin-list-item { padding-block: 21px; }
.admin-list-item:hover { background: rgba(255,255,255,.02); }
.section-toolbar { margin-bottom: 24px; }
.section-toolbar p { color: #92959e; }

.primary-action,
.auth-card > button,
.welcome-card button { border-radius: 10px; background: linear-gradient(135deg,#d72b34,#9c141b); box-shadow: 0 12px 32px rgba(177,25,33,.15); transition: transform .2s ease,filter .2s ease,box-shadow .2s ease; }
.primary-action:hover,
.auth-card > button:hover,
.welcome-card button:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 15px 38px rgba(177,25,33,.22); }
.danger-action { border-radius: 9px; background: rgba(214,43,52,.035); }

/* Contenido y partners */
.content-layout,
.team-layout { grid-template-columns: minmax(0,1.25fr) minmax(370px,.75fr); gap: 20px; }
.publication-layout { grid-template-columns: minmax(390px,.88fr) minmax(480px,1.12fr); }
.publication-editor { top: 118px; }
.editor-card { padding-bottom: 24px; }
.editor-card > label,
.editor-card > .check-row,
.editor-card > .editor-actions,
.editor-card > .form-message,
.editor-card > .form-intro { margin-left: 26px; margin-right: 26px; }
.publication-editor > .publication-fields-grid { margin-inline: 26px; }
.announcement-image-preview,
.partner-logo-preview { border-color: rgba(214,43,52,.25); border-radius: 13px; background: radial-gradient(circle at 50% 10%,rgba(214,43,52,.065),transparent 48%),#0a0b0d; }
.announcement-list-image,
.partner-list-logo { border-radius: 11px; }

/* Consultas */
.conversation-layout { height: calc(100vh - 220px); min-height: 590px; grid-template-columns: 350px minmax(0,1fr); gap: 18px; }
.inbox,
.chat-panel { border-radius: var(--admin-radius); }
.conversation-item { padding: 17px 19px; }
.conversation-item:hover { background: rgba(255,255,255,.022); }
.conversation-item.active { background: linear-gradient(90deg,rgba(214,43,52,.10),rgba(214,43,52,.025)); }
.chat-header { min-height: 76px; padding: 18px 24px; }
.chat-messages { padding: 28px; }
.message p { border-radius: 5px 14px 14px 14px; background: #141519; }
.message.staff p { border-radius: 14px 5px 14px 14px; background: rgba(214,43,52,.10); }
.chat-compose { padding: 18px; }

/* Equipo */
.team-layout { align-items: start; }
.team-layout #user-form { padding-bottom: 38px; }
.team-layout #user-form > label,
.team-layout #user-form > .form-intro,
.team-layout #user-form > .form-message { width: min(610px,calc(100% - 56px)); }

/* Archivo de whitelist */
.whitelist-toolbar { margin-bottom: 24px; }
.whitelist-admin-layout { grid-template-columns: minmax(380px,.74fr) minmax(560px,1.26fr); gap: 20px; }
.whitelist-folder-list,
.whitelist-file { min-height: calc(100vh - 250px); }
.whitelist-folder { padding: 19px 21px; }
.whitelist-folder:hover,
.whitelist-folder.active { background: linear-gradient(90deg,rgba(214,43,52,.09),rgba(214,43,52,.018)); }
.whitelist-file-head { padding: 30px 32px; background: radial-gradient(circle at 92% 0,rgba(214,43,52,.065),transparent 42%); }
.whitelist-file-head h2 { font-size: 29px; }
.whitelist-file-body { padding: 34px 32px; }
.whitelist-file-body section { margin-bottom: 32px; }
.whitelist-file-body section > p { color: #b8bac1; font-size: 14px; line-height: 1.9; }
.whitelist-review-form { grid-template-columns: 210px minmax(0,1fr); gap: 16px; padding: 26px 32px 31px; }

/* Scrollbars discretas */
.admin-app * { scrollbar-width: thin; scrollbar-color: rgba(214,43,52,.48) transparent; }
.admin-app *::-webkit-scrollbar { width: 7px; height: 7px; }
.admin-app *::-webkit-scrollbar-track { background: transparent; }
.admin-app *::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: rgba(214,43,52,.48); background-clip: padding-box; }

@media (max-width: 1220px) {
  .content-layout,
  .team-layout,
  .publication-layout { grid-template-columns: 1fr; }
  .publication-editor { position: static; }
  .whitelist-admin-layout { grid-template-columns: 1fr; }
  .whitelist-folder-list,
  .whitelist-file { min-height: 0; }
}

@media (max-width: 820px) {
  .auth-view { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 24px; }
  .auth-card { padding: 28px; }
  .admin-sidebar { width: 244px; transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-workspace { margin-left: 0; }
  .admin-header { height: 84px; padding: 0 20px; }
  .admin-view { padding: 22px; }
  .conversation-layout { height: auto; grid-template-columns: 1fr; }
  .inbox { max-height: 350px; }
  .chat-panel { min-height: 560px; }
  .whitelist-review-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .admin-view { padding: 16px; }
  .welcome-card { min-height: 255px; align-items: flex-start; flex-direction: column; padding: 27px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid > button { min-height: 138px; }
  .panel-head { padding-inline: 20px; }
  .activity-item,
  .admin-list-item { padding-inline: 20px; }
  .publication-fields-grid { grid-template-columns: 1fr; }
  .whitelist-file-head { flex-direction: column; padding: 24px 21px; }
  .whitelist-file-body { padding: 27px 21px; }
  .whitelist-review-form { padding: 22px 21px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Gestión de votaciones */
.poll-admin-layout { grid-template-columns: minmax(360px,.82fr) minmax(500px,1.18fr); align-items: start; }
.poll-editor { position: sticky; top: 118px; }
.poll-list-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 15px; align-items: center; cursor: pointer; }
.poll-list-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(214,43,52,.24); border-radius: 10px; color: #ef414a; background: rgba(214,43,52,.06); }
.poll-option-editors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 26px 22px; }
.poll-options-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 26px 14px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); }
.poll-options-toolbar > div { display: flex; align-items: baseline; gap: 10px; }
.poll-options-toolbar strong { color: #ececf1; font-size: 13px; }
.poll-options-toolbar small { color: #71747e; font-size: 10px; }
.poll-option-editor { min-width: 0; padding: 18px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.012); }
.poll-option-editor legend { padding: 0 8px; color: #e33a43; font: 700 9px var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.poll-option-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.poll-option-heading strong { color: #e33a43; font: 700 9px var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.poll-option-heading button { padding: 6px 9px; border: 1px solid rgba(214,43,52,.2); border-radius: 7px; color: #a8aab2; background: transparent; font-size: 10px; cursor: pointer; }
.poll-option-heading button:hover { color: #fff; border-color: rgba(214,43,52,.55); background: rgba(214,43,52,.08); }
.poll-option-editor > label { display: block; margin-bottom: 14px; }
.poll-image-upload { position: relative; }
.poll-image-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.poll-image-preview { display: grid; min-height: 128px; margin-top: 8px; place-items: center; align-content: center; gap: 5px; overflow: hidden; border: 1px dashed rgba(214,43,52,.23); border-radius: 10px; color: #878a94; background: #0a0b0d; cursor: pointer; }
.poll-image-preview b { color: #e43a43; font-size: 20px; }
.poll-image-preview strong { color: #c9cad0; font-size: 12px; }
.poll-image-preview img { width: 100%; height: 145px; object-fit: cover; }

/* Superficies más limpias y una interacción sin saltos. */
.admin-sidebar nav button,
.admin-list-item,
.metric-grid > button { transform: none !important; transition: color .2s ease,border-color .2s ease,background-color .2s ease,box-shadow .2s ease !important; }
.admin-sidebar nav button:hover { background: rgba(255,255,255,.025); }
.admin-list-item:hover,
.metric-grid > button:hover { border-color: rgba(214,43,52,.22); background: rgba(214,43,52,.035); box-shadow: inset 2px 0 #d62b34; }

@media (max-width: 1220px) {
  .poll-admin-layout { grid-template-columns: 1fr; }
  .poll-editor { position: static; }
}
@media (max-width: 680px) {
  .poll-option-editors { grid-template-columns: 1fr; margin-inline: 20px; }
  .poll-options-toolbar { align-items: stretch; flex-direction: column; margin-inline: 20px; }
  .poll-list-row { grid-template-columns: 36px minmax(0,1fr); }
  .poll-list-row > time { grid-column: 2; }
}

/* Recuperación local de contraseña */
.recovery-view { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 50% 0,rgba(214,43,52,.10),transparent 35%),#08090a; }
.recovery-card { width: min(100%,520px); padding: 38px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(12,13,16,.96); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.recovery-logo { display: block; width: 92px; height: 72px; margin: 0 auto 24px; }
.recovery-logo img { width: 100%; height: 100%; object-fit: contain; }
.recovery-account { display: flex; justify-content: space-between; gap: 20px; margin: 24px 0; padding: 15px 17px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; color: #858892; background: rgba(255,255,255,.018); font-size: 12px; }
.recovery-account strong { color: #eee; }
.recovery-success { padding: 28px 0 10px; text-align: center; }
.recovery-success > span { display: grid; width: 54px; height: 54px; margin: 0 auto 22px; place-items: center; border-radius: 50%; color: white; background: #b82028; font-size: 22px; }
.recovery-success p { color: #9699a3; }
.recovery-success a { display: inline-flex; min-height: 44px; margin-top: 18px; align-items: center; padding: 0 22px; border-radius: 9px; color: white; background: linear-gradient(135deg,#d62b34,#99131b); font-size: 12px; font-weight: 700; }
