/* Entregas Bframe — portal del cliente (mismo estilo que bframe.cl) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #E8E3DB;
  --bg-alt: #EFEBE4;
  --card: #F4F0E9;
  --border: #CFC7BB;
  --accent: #5A0B0A;
  --accent-hi: #5A0B0A;
  --khaki: #3A3633;
  --ivory: #1C1917;
  --on-dark: #F4F0E9;
  --charcoal: #3A3633;
  --frame: #2E2A27;
  --ok: #2F7A4A;
  --warn: #9A6A12;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Montserrat", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--khaki);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
}
body.lock { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--ivory); margin: 0; line-height: 1.2; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--khaki); outline-offset: 2px; }

/* ---------- marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; }
.brand-badge {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: var(--ivory); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px;
}
.brand-word { font-weight: 600; letter-spacing: 0.5px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--ivory);
  padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--khaki); }
.btn.ghost:hover { border-color: var(--khaki); color: var(--ivory); background: transparent; }
.btn.small { padding: 8px 14px; font-size: 0.82rem; }
.btn.big { padding: 14px 26px; font-size: 1rem; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn svg, .icon-btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(21, 18, 16, 0.85); color: var(--ivory);
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- ingreso ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 34px 28px; text-align: center;
}
.login-card .brand { margin-bottom: 22px; }
.login-card h1 { font-size: 1.35rem; margin-bottom: 8px; }
.login-card p { margin: 0 0 22px; font-size: 0.9rem; }
.field { display: block; text-align: left; margin-bottom: 14px; }
.field span { display: block; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; color: var(--khaki); }
.input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--ivory);
  border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 1rem;
}
.input:focus { outline: none; border-color: var(--khaki); }
.input.code { text-align: center; letter-spacing: 3px; font-weight: 600; font-size: 1.1rem; text-transform: uppercase; }
textarea.input { resize: vertical; min-height: 78px; }
.msg-err { color: #e58a8a; font-size: 0.85rem; min-height: 1.3em; margin: 6px 0 12px; }
.fine { font-size: 0.78rem; opacity: 0.7; margin-top: 18px; }

/* ---------- estructura ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px; background: rgba(232, 227, 219, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.top-right { display: flex; align-items: center; gap: 14px; font-size: 0.85rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.hero { padding: 44px 0 26px; }
.eyebrow { font-size: 0.74rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-hi); font-weight: 600; margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 10px; }
.hero .note { max-width: 640px; margin: 0 0 18px; white-space: pre-wrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.meta { font-size: 0.82rem; opacity: 0.8; }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin: 8px 0 24px; overflow-x: auto; }
.tab {
  background: none; border: none; color: var(--khaki); padding: 12px 16px; font-weight: 500; font-size: 0.95rem;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab .n { opacity: 0.6; margin-left: 6px; font-size: 0.82rem; }
.tab[aria-selected="true"] { color: var(--ivory); border-bottom-color: var(--accent-hi); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar .grow { flex: 1; }
.chip {
  border: 1px solid var(--border); background: transparent; color: var(--khaki);
  border-radius: 999px; padding: 7px 14px; font-size: 0.82rem; font-weight: 500;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ivory); }
.empty { padding: 50px 0; text-align: center; opacity: 0.7; }

/* ---------- fotos ---------- */
.photos { columns: 3 260px; column-gap: 14px; padding-bottom: 60px; }
.photo {
  position: relative; display: block; width: 100%; padding: 0; margin: 0 0 14px; break-inside: avoid;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); aspect-ratio: 3 / 2;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s, transform 0.4s; }
.photo.loaded img { opacity: 1; }
.photo:hover img { transform: scale(1.03); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 12, 11, 0.55), transparent 40%); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.photo:hover::after, .photo:focus-visible::after { opacity: 1; }
.photo .bf { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(122, 20, 20, 0.45); font-weight: 700; font-size: 1.6rem; letter-spacing: 2px; }
.photo.loaded .bf { display: none; }
.badges { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; justify-content: space-between; gap: 6px; z-index: 2; pointer-events: none; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 0.74rem; font-weight: 600;
  background: rgba(21, 18, 16, 0.78); color: var(--ivory); border: 1px solid rgba(247, 243, 234, 0.2);
}
.badge svg { width: 13px; height: 13px; }
.badge.fav { color: #ff8e9a; }

/* ---------- videos ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding-bottom: 60px; }
.vcard { display: block; width: 100%; background: none; border: none; padding: 0; text-align: left; color: inherit; font: inherit; }
.vthumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(145deg, #2a1a17, #120e0d); transition: border-color 0.2s, transform 0.2s; }
.vcard:hover .vthumb { border-color: var(--accent-hi); transform: translateY(-3px); }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vthumb .bf { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(122, 20, 20, 0.45); font-weight: 700; font-size: 2.2rem; letter-spacing: 2px; }
.play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(21, 18, 16, 0.6); border: 1px solid rgba(247, 243, 234, 0.6); display: grid; place-items: center; transition: background 0.2s;
}
.vcard:hover .play { background: var(--accent); border-color: var(--accent); }
.play svg { width: 22px; height: 22px; margin-left: 3px; color: var(--ivory); }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(21, 18, 16, 0.8); color: var(--ivory); border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; font-weight: 600; }
.vinfo { display: block; padding: 12px 2px 0; }
.vinfo strong { display: block; color: var(--ivory); font-weight: 600; }
.vinfo small { display: block; opacity: 0.75; }
.status { display: inline-block; margin-top: 8px; font-size: 0.74rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); }
.status.approved { color: var(--ok); border-color: var(--ok); }
.status.changes { color: var(--warn); border-color: var(--warn); }

/* ---------- archivos ---------- */
.files { display: grid; gap: 10px; padding-bottom: 60px; max-width: 760px; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.file .ico { width: 38px; height: 38px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; flex: none; }
.file .ico svg { width: 20px; height: 20px; }
.file .nm { flex: 1; min-width: 0; }
.file .nm strong { display: block; color: var(--ivory); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .nm small { opacity: 0.7; }

/* ---------- visor (fotos y videos) ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) 380px; background: #0d0b0a;
}
.stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; padding: 16px; }
.stage .photo-img { max-width: 100%; max-height: calc(100vh - 32px); object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.stage .close { position: absolute; top: 14px; left: 14px; z-index: 5; }
.stage .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; }
.stage .prev { left: 14px; } .stage .next { right: 14px; }
.side { background: var(--bg-alt); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.side-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--border); }
.side-head h2 { font-size: 1.05rem; margin-bottom: 4px; word-break: break-word; }
.side-head .sub { font-size: 0.8rem; opacity: 0.7; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.heart.on { background: var(--accent); border-color: var(--accent); }
.review { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.review p { margin: 0 0 8px; font-size: 0.82rem; }
.review .row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.ok { border-color: var(--ok); background: transparent; color: var(--ok); }
.btn.ok.on { background: var(--ok); color: #0d0b0a; }
.btn.warn { border-color: var(--warn); background: transparent; color: var(--warn); }
.btn.warn.on { background: var(--warn); color: #0d0b0a; }

.comments { flex: 1; overflow-y: auto; padding: 14px 18px; min-height: 120px; }
.comments h3 { font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; color: var(--khaki); }
.cm { padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.cm.admin { border-color: rgba(155, 28, 28, 0.55); }
.cm-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.78rem; margin-bottom: 4px; }
.cm-head b { color: var(--ivory); font-weight: 600; }
.cm-head .when { opacity: 0.6; margin-left: auto; }
.cm-quote { margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid var(--oxblood, #7a1414); background: rgba(247, 243, 234, 0.05); border-radius: 0 6px 6px 0; font-size: 0.8rem; opacity: 0.85; word-break: break-word; }
.cm-quote b { font-weight: 600; }
.cm p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 0.9rem; color: var(--ivory); }
.tc { border: 1px solid var(--accent-hi); background: transparent; color: var(--ivory); border-radius: 6px; padding: 1px 8px; font-size: 0.76rem; font-weight: 600; font-family: inherit; }
.tc:hover { background: var(--accent); }
.tag { font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; border-radius: 6px; padding: 1px 7px; background: var(--accent); color: var(--ivory); }
.tag.old { background: transparent; border: 1px solid var(--border); color: inherit; opacity: 0.7; }
.tag.done { background: transparent; border: 1px solid var(--ok); color: var(--ok); }
.cm-form { padding: 12px 18px 16px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.cm-form .row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.cm-form .input { font-size: 0.9rem; padding: 10px 12px; margin-bottom: 8px; }
.cm-form .hint { font-size: 0.78rem; flex: 1; opacity: 0.85; }
.cm-form label.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 0.78rem; }

/* ---------- reproductor ---------- */
.stage.video { grid-template-rows: minmax(0, 1fr); padding: 16px 16px 16px 64px; }
.player { position: relative; width: 100%; max-height: calc(100vh - 32px); background: #000; border-radius: 10px; overflow: hidden; display: grid; }
.player video { width: 100%; height: 100%; max-height: calc(100vh - 100px); display: block; background: #000; }
.player.fs { max-height: none; border-radius: 0; }
.player.fs video { max-height: 100vh; height: 100%; }
.big-play {
  position: absolute; left: 50%; top: calc(50% - 24px); width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  background: rgba(21, 18, 16, 0.65); border: 1px solid rgba(247, 243, 234, 0.7); display: grid; place-items: center; color: var(--ivory);
}
.big-play svg { width: 30px; height: 30px; margin-left: 4px; }
.ctrl {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82)); transition: opacity 0.25s;
}
.player.idle .ctrl { opacity: 0; }
.player.idle { cursor: none; }
.seek-wrap { position: relative; height: 22px; display: flex; align-items: center; }
.seek { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 3px; background: rgba(247, 243, 234, 0.25); margin: 0; cursor: pointer; }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--accent-hi); }
.seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--accent-hi); }
.marks { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; }
.mark { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--warn); border: 2px solid #0d0b0a; pointer-events: auto; padding: 0; }
.ctrl-row { display: flex; align-items: center; gap: 6px; color: var(--ivory); font-size: 0.82rem; }
.ctrl-row .icon-btn { width: 36px; height: 36px; background: transparent; border-color: transparent; }
.ctrl-row .icon-btn:hover { background: rgba(247, 243, 234, 0.16); border-color: transparent; }
.time { font-variant-numeric: tabular-nums; margin: 0 6px; white-space: nowrap; }
.sp { flex: 1; }
.speed { background: transparent; color: var(--ivory); border: 1px solid rgba(247, 243, 234, 0.3); border-radius: 6px; padding: 4px 8px; font-size: 0.78rem; }
.vol { width: 70px; }

/* ---------- avisos ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ivory); color: #151210;
  padding: 10px 18px; border-radius: 10px; font-weight: 500; font-size: 0.88rem; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  max-width: calc(100vw - 32px);
}
.footer { padding: 30px 0 50px; font-size: 0.8rem; opacity: 0.6; text-align: center; border-top: 1px solid var(--border); }

/* ---------- móvil ---------- */
@media (max-width: 860px) {
  .viewer { grid-template-columns: 1fr; grid-template-rows: minmax(0, 52vh) minmax(0, 1fr); overflow: hidden; }
  .stage { padding: 56px 8px 8px; }
  .stage.video { padding: 56px 0 0; }
  .stage .photo-img { max-height: calc(52vh - 64px); }
  .player { border-radius: 0; max-height: calc(52vh - 56px); }
  .player video { max-height: calc(52vh - 56px); }
  .side { border-left: none; border-top: 1px solid var(--border); }
  .stage .close { top: 8px; left: 8px; }
  .vol { display: none; }
  .hero { padding-top: 30px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  .photos { columns: 2 140px; column-gap: 10px; }
  .photo { margin-bottom: 10px; }
  .top { padding: 10px 14px; }
  .btn.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Avisos por correo */
.notify { max-width: 560px; margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.notify[hidden] { display: none; }
.notify-t { font-size: 0.88rem; margin: 0 0 12px; opacity: 0.9; }
.emails { list-style: none; margin: 0 0 12px; padding: 0; }
.emails li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; word-break: break-all; }
.notify-form { display: flex; gap: 10px; }
.notify-form .input { flex: 1; min-width: 0; }
.notify .msg-err { margin: 8px 0 0; }

.link-btn { background: none; border: none; color: var(--khaki); font: inherit; font-size: 0.82rem; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.link-btn:hover { color: var(--ivory); }

/* Cuenta del cliente: lista de trabajos */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 8px 0 30px; }
.wcard { text-align: left; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; color: var(--ivory); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.wcard:hover { border-color: var(--khaki); transform: translateY(-2px); }
.wcard strong { font-size: 1.1rem; line-height: 1.3; }
.wcard.expired { opacity: 0.6; }
.pc-top { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-note { font-size: 0.86rem; opacity: 0.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { font-size: 0.8rem; opacity: 0.65; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.4px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); }
.badge.active { color: var(--warn); border-color: var(--warn); }
.badge.done { color: var(--ok); border-color: var(--ok); }
.badge.warn { color: var(--khaki); }
.status-line { margin: 0 0 14px; }
.fine-link { display: inline-block; margin-top: 18px; font-size: 0.85rem; color: var(--khaki); }
.wcard:focus-visible, .fine-link:focus-visible { outline: 2px solid var(--khaki); outline-offset: 2px; }


/* =====================================================================
   Tema Bframe (claro): beige, tarjetas, botones carbón, tipografías del sitio
   ===================================================================== */
body { font-size: 15px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; letter-spacing: 0.2px; }
.brand { gap: 0; }
.brand img { display: block; height: 30px; width: auto; }
.brand .brand-tag { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--border); font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; color: var(--khaki); }
.eyebrow { color: var(--accent); letter-spacing: 3px; }
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
.tagline-s { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }

/* botones */
.btn { background: var(--charcoal); border-color: var(--charcoal); color: var(--on-dark); border-radius: 0; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.78rem; padding: 12px 22px; }
.btn:hover { background: #26231F; border-color: #26231F; }
.btn.ghost { background: transparent; border: 1.5px solid var(--charcoal); color: var(--charcoal); }
.btn.ghost:hover { background: var(--charcoal); color: var(--on-dark); border-color: var(--charcoal); }
.btn.small { padding: 8px 14px; font-size: 0.72rem; }
.btn.big { font-size: 0.85rem; }
.btn.ok { border: 1.5px solid var(--ok); background: transparent; color: var(--ok); }
.btn.ok:hover { background: transparent; border-color: var(--ok); }
.btn.ok.on { background: var(--ok); color: var(--on-dark); }
.btn.warn { border: 1.5px solid var(--warn); background: transparent; color: var(--warn); }
.btn.warn:hover { background: transparent; border-color: var(--warn); }
.btn.warn.on { background: var(--warn); color: var(--on-dark); }
.icon-btn { border-radius: 0; background: var(--card); border-color: var(--border); color: var(--ivory); }
.icon-btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--on-dark); }
.heart.on { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }

/* tarjetas */
.login-card, .panel, .storage, .notify, .file, .wcard, .pcard, .modal-card, .cm { border-radius: 0; background: var(--card); }
.login-card { border-top: 4px solid var(--accent); }
.wcard:hover, .pcard:hover { border-color: var(--accent); }
.input { border-radius: 0; background: #fff; color: var(--ivory); border-color: var(--border); }
.input:focus { border-color: var(--accent); }
.field span { color: var(--khaki); font-weight: 600; letter-spacing: 1.5px; }
.msg-err { color: #A32422; }
.chip { border-radius: 0; border: 1.5px solid var(--charcoal); color: var(--charcoal); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.72rem; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.tabs { border-bottom-color: var(--border); }
.tab { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem; font-weight: 600; }
.tab[aria-selected="true"] { color: var(--ivory); border-bottom-color: var(--accent); }
.badge, .status, .pill { border-radius: 0; }
.badge.active { color: var(--warn); } .badge.done { color: var(--ok); }
.pill.new, .tag { background: var(--accent); border-color: var(--accent); color: var(--on-dark); border-radius: 0; }
.tc { border-color: var(--accent); color: var(--accent); border-radius: 0; background: transparent; }
.tc:hover { background: var(--accent); color: var(--on-dark); }

/* fotos y videos (sobre fondo oscuro de "marco") */
.photo, .vthumb { border-radius: 0; border-color: var(--border); }
.vthumb { background: linear-gradient(145deg, #3a3633, #1f1b19); }
.photo .bf, .vthumb .bf, .irow .th { color: rgba(244, 240, 233, 0.35); }
.badge { background: rgba(46, 42, 39, 0.82); color: var(--on-dark); border-color: rgba(244, 240, 233, 0.25); }
.badge.fav { color: #ff9aa5; }
.play, .big-play { background: rgba(46, 42, 39, 0.6); border-color: rgba(244, 240, 233, 0.7); color: var(--on-dark); }
.play svg, .big-play svg { color: var(--on-dark); }
.vcard:hover .play { background: var(--accent); border-color: var(--accent); }
.vcard:hover .vthumb { border-color: var(--accent); }
.dur { background: rgba(46, 42, 39, 0.85); color: var(--on-dark); border-radius: 0; }
.vinfo strong { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; }

/* visor: escenario oscuro tipo marco, panel lateral claro */
.viewer { background: var(--frame); }
.stage .photo-img, .player { border-radius: 0; }
.stage .icon-btn, .ctrl-row .icon-btn { background: rgba(46, 42, 39, 0.85); border-color: rgba(244, 240, 233, 0.25); color: var(--on-dark); }
.stage .icon-btn:hover { background: var(--accent); border-color: var(--accent); }
.ctrl-row { color: var(--on-dark); }
.ctrl-row .icon-btn { background: transparent; border-color: transparent; }
.ctrl-row .icon-btn:hover { background: rgba(244, 240, 233, 0.16); border-color: transparent; }
.speed { color: var(--on-dark); border-radius: 0; }
.seek::-webkit-slider-thumb { background: var(--on-dark); border-color: var(--accent); }
.seek::-moz-range-thumb { background: var(--on-dark); border-color: var(--accent); }
.side { background: var(--bg-alt); }
.cm.admin { border-color: var(--accent); }
.cm-quote { border-left-color: var(--accent); background: rgba(28, 25, 23, 0.05); }
.comments h3, .kind-h { color: var(--accent); }
.cm-form { background: var(--bg-alt); }

/* varios */
.toast { background: var(--charcoal); color: var(--on-dark); border-radius: 0; }
.footer { opacity: 0.7; letter-spacing: 1px; }
.modal-bg { background: rgba(28, 25, 23, 0.7); }
.drop { border-radius: 0; }
.drop.over { background: rgba(90, 11, 10, 0.08); border-color: var(--accent); }
.qi, .irow, .ic, .secret, .warn-box { border-radius: 0; background: var(--card); }
.secret { background: #fff; }
.qi .bar i { background: var(--accent); } .qi.done .bar i { background: var(--ok); }
.ic.unseen { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ic .ic-answer { border-left-color: var(--accent); background: rgba(28, 25, 23, 0.05); }
.view-media { background: var(--frame); border-radius: 0; }
.storage .bar { background: rgba(28, 25, 23, 0.12); }
.link-btn { color: var(--accent); } .link-btn:hover { color: var(--ivory); }
.link-btn.danger { color: #A32422; }
.back { color: var(--accent); } .back:hover { color: var(--ivory); }
:focus-visible { outline-color: var(--accent); }
