/* Llegué — sistema de diseño compartido (landing + panel) */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.ada540c0e24a.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.202cfb54d4e6.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --paper: #f3f3ef;
  --surface: #ffffff;
  --surface-2: #f8f8f5;
  --ink: #15171c;
  --ink-2: #565b6a;
  --line: #dcdcd5;
  --line-strong: #c4c4bb;
  --cobalt: #2b45d6;
  --cobalt-hover: #2238b4;
  --cobalt-wash: #e7ebfc;
  --on-cobalt: #ffffff;
  --butter: #ffd84d;
  --green: #11805a;
  --green-wash: #def4ea;
  --amber: #8a5300;
  --amber-wash: #fdeccb;
  --red: #b42f25;
  --red-wash: #fbe1de;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(21, 23, 28, .06), 0 6px 18px -8px rgba(21, 23, 28, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121419;
    --surface: #1b1e25;
    --surface-2: #20242c;
    --ink: #eceef2;
    --ink-2: #a2a8b6;
    --line: #2d313b;
    --line-strong: #404552;
    --cobalt: #8ea2ff;
    --cobalt-hover: #a9b8ff;
    --cobalt-wash: #232a52;
    --on-cobalt: #0f1330;
    --green: #4fd1a1;
    --green-wash: #14352a;
    --amber: #f2bb5a;
    --amber-wash: #3a2c10;
    --red: #ff8f84;
    --red-wash: #3d1b18;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px -10px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--font-body); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
::selection { background: var(--butter); color: #15171c; }
input, select, textarea, button { caret-color: var(--cobalt); font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--cobalt); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-hover); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 99; }
.skip:focus { left: 8px; }

/* ── botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--cobalt); color: var(--on-cobalt); font-weight: 650; text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s var(--ease), border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--cobalt-hover); color: var(--on-cobalt); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--cobalt-wash); color: var(--ink); }
.btn-danger { background: var(--red-wash); color: var(--red); border-color: transparent; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 .8rem; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 0 1.6rem; font-size: 1.05rem; }
.htmx-request .btn, .btn.htmx-request { opacity: .7; }

/* ── formularios ── */
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field > label { font-weight: 600; font-size: .95rem; }
.help { color: var(--ink-2); font-size: .875rem; }
.input { width: 100%; min-height: 44px; padding: .55rem .8rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 96px; }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-wash); }
input[type="color"].input { padding: 4px; width: 72px; cursor: pointer; }
.check { width: 20px; height: 20px; accent-color: var(--cobalt); }
.field.is-check { display: flex; align-items: center; gap: .6rem; }
.field.is-check > label { order: 2; font-weight: 500; }
.field-error, .errorlist { color: var(--red); font-size: .9rem; margin: 0; padding: 0; list-style: none; font-weight: 500; }
.field.has-error .input { border-color: var(--red); }
.checklist { display: grid; gap: .5rem; }
.checklist label { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.form-narrow { max-width: 560px; }
.form-grid { display: grid; gap: 0 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── etiquetas de estado ── */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 99px; font-size: .85rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge-ok { background: var(--green-wash); color: var(--green); border-color: transparent; }
.badge-warn { background: var(--amber-wash); color: var(--amber); border-color: transparent; }
.badge-bad { background: var(--red-wash); color: var(--red); border-color: transparent; }
.badge-info { background: var(--cobalt-wash); color: var(--cobalt); border-color: transparent; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: inline-block; flex: none; }
.dot-ok { background: var(--green); }
.dot-bad { background: var(--red); }

/* ── mensajes ── */
.messages { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.message { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.message.success { background: var(--green-wash); border-color: transparent; color: var(--green); }
.message.error { background: var(--red-wash); border-color: transparent; color: var(--red); }
.message.warning { background: var(--amber-wash); border-color: transparent; color: var(--amber); }
.message .icon { margin-top: .2rem; }

/* ── logo ── */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 700 1.2rem/1 var(--font-display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-lockup { display: inline-flex; align-items: center; gap: .6rem; }
.brand .symbol { width: 32px; height: 32px; flex: none; }
.brand .wordmark { height: 22px; width: auto; flex: none; overflow: visible; color: var(--ink); }
.brand .wm-accent { stroke: var(--cobalt); }
.brand-sub { font-weight: 600; }

/* ═════════ PANEL ═════════ */
.scrim { display: none; }
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 1.1rem .9rem; display: flex; flex-direction: column; gap: 1.2rem; }
.org-chip { display: grid; gap: .1rem; padding: .6rem .75rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.org-chip strong { font: 650 1rem var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-chip span { font-size: .85rem; color: var(--ink-2); }
.nav { display: grid; gap: 2px; }
.nav h3 { font: 600 .85rem var(--font-body); letter-spacing: 0; color: var(--ink-2); padding: .9rem .75rem .3rem; }
.nav a { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: 0 .75rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 550; transition: background-color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { background: var(--cobalt-wash); color: var(--cobalt); }
.nav .count { margin-left: auto; font-size: .8rem; }
.sidebar-foot { margin-top: auto; display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--cobalt-wash); color: var(--cobalt); display: grid; place-items: center; font: 700 .8rem var(--font-display); flex: none; }
.topbar { display: none; }
.main { padding: 1.75rem clamp(1rem, 3vw, 2.5rem) 4rem; min-width: 0; max-width: 1280px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.page-head p { color: var(--ink-2); margin-top: .3rem; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.trial-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .6rem 1rem; margin-bottom: 1.25rem; background: var(--butter); color: #15171c; border-radius: var(--radius-sm); font-weight: 550; }
.trial-bar a { color: #15171c; font-weight: 700; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.1rem; }
.panel-body { padding: 1.15rem; }
.stack { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.cols { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }

.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-bottom: 1.25rem; }
.filters .field { margin: 0; min-width: 150px; }
.filters .field > label { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.filters .input { min-height: 40px; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.segmented a { padding: .5rem .95rem; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .95rem; min-height: 40px; display: grid; place-items: center; }
.segmented a + a { border-left: 1px solid var(--line); }
.segmented a.is-active { background: var(--cobalt-wash); color: var(--cobalt); }

/* tablas */
.table-wrap { overflow-x: auto; position: relative; } /* position: contiene a los .sr-only absolutos */
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--ink-2); padding: .7rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; }
.table .row-actions { display: flex; gap: .4rem; justify-content: flex-end; }
.table tr.is-void td { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.table tr.is-void td:last-child, .table tr.is-void .keep { text-decoration: none; }
.person { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.person b { font-weight: 600; display: block; line-height: 1.2; }
.person small { color: var(--ink-2); }

/* vacío */
.empty { display: grid; justify-items: start; gap: .6rem; padding: 2rem 1.25rem; color: var(--ink-2); }
.empty h3 { color: var(--ink); font-size: 1.15rem; }
.empty p { max-width: 52ch; }

/* lista "ahora" */
.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist li { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.15rem; border-bottom: 1px solid var(--line); }
.rowlist li:last-child { border-bottom: 0; }
.rowlist .grow { flex: 1; min-width: 0; }
.rowlist .grow b { font-weight: 600; display: block; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowlist .grow small { color: var(--ink-2); }
.time { font-weight: 650; font-variant-numeric: tabular-nums; }
.attention { display: grid; gap: .25rem; }
.att-group { padding: .9rem 1.15rem; border-bottom: 1px solid var(--line); }
.att-group:last-child { border-bottom: 0; }
.att-group h3 { font: 650 .95rem var(--font-body); display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.att-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; }
.att-group li { display: flex; justify-content: space-between; gap: .75rem; font-size: .95rem; }
.att-group li small { color: var(--ink-2); }
.ok-note { color: var(--green); font-weight: 600; display: flex; gap: .5rem; align-items: center; padding: 1.1rem 1.15rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 0 var(--green); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(17, 128, 90, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(17, 128, 90, 0); } }

/* turnos */
.shift-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 6px; font-size: .85rem; font-weight: 600; background: var(--cobalt-wash); color: var(--ink); border: 1px solid var(--line); }
.shift-chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.shift-chip button { background: none; border: 0; padding: 0 2px; cursor: pointer; color: var(--ink-2); line-height: 1; min-width: 20px; min-height: 20px; }
.shift-chip button:hover { color: var(--red); }
.grid-scroll { overflow-x: auto; position: relative; }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 880px; font-size: .9rem; }
.grid th, .grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: .45rem; vertical-align: top; }
.grid th { background: var(--surface-2); font-weight: 600; text-align: left; position: sticky; top: 0; }
.grid th.is-today { background: var(--cobalt-wash); color: var(--cobalt); }
.grid td:first-child, .grid th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 170px; border-right: 1px solid var(--line-strong); }
.grid th:first-child { background: var(--surface-2); }
.grid td.cell { min-width: 120px; }
.cell-inner { display: grid; gap: .3rem; }
.cell select { min-height: 32px; padding: 0 .4rem; font-size: .85rem; color: var(--ink-2); background: transparent; border: 1px dashed var(--line-strong); border-radius: 6px; width: 100%; cursor: pointer; }
.cell select:hover { border-color: var(--cobalt); color: var(--cobalt); }
.cell-inner .shift-chip { justify-content: space-between; }

/* pasos (onboarding) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--font-display); background: var(--surface-2); border: 1px solid var(--line-strong); }
.step.is-done .step-n { background: var(--green-wash); color: var(--green); border-color: transparent; }
.step.is-current { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-wash); }
.step h2 { font-size: 1.15rem; margin-bottom: .25rem; }
.step p { color: var(--ink-2); }
.code-box { display: flex; align-items: center; gap: .5rem; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .35rem .35rem .35rem .8rem; font: 500 .9rem ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.code-box code { flex: 1; user-select: all; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem 1.25rem; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }

/* planes (panel) */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.usage { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.usage > i { display: block; height: 100%; background: var(--cobalt); border-radius: 99px; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-form { display: grid; align-content: center; justify-items: start; padding: clamp(1.5rem, 5vw, 4rem); gap: 1.6rem; }
.auth-form form { width: 100%; max-width: 440px; }
.auth-side { background: var(--cobalt); color: var(--on-cobalt); display: grid; align-content: center; padding: clamp(1.5rem, 5vw, 4rem); gap: 1.5rem; }
.auth-side h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 18ch; }
.auth-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; max-width: 44ch; }
.auth-side li { display: flex; gap: .7rem; }
.auth-side .icon { margin-top: .25rem; color: var(--butter); }

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 40; transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: var(--shadow); }
  .nav-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(10, 12, 16, .5); z-index: 30; }
  .nav-open .scrim { display: block; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .75rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar button { min-width: 44px; min-height: 44px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { order: -1; padding-block: 2rem; }
  .auth-side ul { display: none; }
}
@media (max-width: 560px) {
  .main { padding-top: 1.1rem; }
  .table th, .table td { padding: .6rem .7rem; }
  .step { grid-template-columns: 1fr; }
}

@media print {
  .sidebar, .topbar, .filters, .actions, .trial-bar, .btn { display: none !important; }
  .app { display: block; }
  body { background: #fff; color: #000; }
  .panel { border-color: #999; }
}

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

/* ═════════ App instalada / celular ═════════ */
.install-banner { display: none; align-items: center; gap: .75rem; padding: .7rem .9rem; margin-bottom: 1.1rem; background: var(--cobalt-wash); border-radius: var(--radius-sm); }
.install-banner[hidden] { display: none !important; }
.install-banner p { flex: 1; font-size: .95rem; line-height: 1.35; }
.install-banner .icon { color: var(--cobalt); }
.ios-hint { font-size: .85rem; color: var(--ink-2); }
.ios-hint summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; }
[data-install][hidden], [data-install-btn][hidden], [data-install-ios][hidden] { display: none !important; }
@media (max-width: 960px) {
  .install-banner { display: flex; }
  .topbar { padding-top: calc(.5rem + env(safe-area-inset-top)); padding-left: calc(.75rem + env(safe-area-inset-left)); padding-right: calc(.75rem + env(safe-area-inset-right)); }
  .main { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
  /* Para el dueño en el celular: primero quién trabaja y qué requiere atención */
  #live .cols, #live .stack { display: contents; }
  #live .cols > .stack > .panel { grid-column: 1; }
  #live .cols { display: grid; gap: 1.25rem; }
  #live .o1 { order: 1; } #live .o2 { order: 2; } #live .o3 { order: 3; } #live .o4 { order: 4; } #live .o5 { order: 5; }
}
@media (display-mode: standalone) {
  .install-banner, [data-install] { display: none !important; }
  body { overscroll-behavior-y: contain; }
}

/* ═════════ Foto del trabajador y cámara ═════════ */
.avatar-photo { object-fit: cover; }
.photo-field { display: flex; gap: 1.1rem; align-items: flex-start; flex-wrap: wrap; margin-top: .4rem; }
.photo-frame { width: 132px; height: 132px; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--line-strong); overflow: hidden; display: grid; place-items: center; flex: none; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { display: grid; justify-items: center; gap: .3rem; color: var(--ink-2); font-size: .9rem; }
.photo-empty .icon { width: 2rem; height: 2rem; }
.photo-actions { flex: 1; min-width: 220px; display: grid; gap: .6rem; align-content: start; }
.photo-remove { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.fcam-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fcam-botones { display: flex; flex-wrap: wrap; gap: .5rem; }
.fcam-visor-wrap { position: fixed; inset: 0; z-index: 100; background: #0b0d11; color: #fff; display: grid; grid-template-rows: 1fr auto auto; }
.fcam-visor { position: relative; overflow: hidden; min-height: 0; }
.fcam-visor video, .fcam-visor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcam-visor video.is-mirror { transform: scaleX(-1); }
.fcam-guia { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fcam-cab { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: calc(.75rem + env(safe-area-inset-top)) .9rem .75rem; z-index: 2; }
.fcam-texto { padding: .8rem 1.1rem; text-align: center; font-size: .95rem; color: #d7dbe3; }
.fcam-texto strong { display: block; color: #fff; font-size: 1.05rem; }
.fcam-pie { display: flex; justify-content: center; gap: .75rem; padding: .75rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); }
.fcam-obturador { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: transparent; cursor: pointer; position: relative; }
.fcam-obturador::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; transition: transform .12s var(--ease); }
.fcam-obturador:active::after { transform: scale(.88); }
.fcam-visor-wrap .btn-ghost { color: #fff; }
.fcam-visor-wrap .btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.fcam-error { display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 2rem; text-align: center; grid-row: 1 / -1; }

.field-error .errorlist { margin: 0; padding: 0; list-style: none; }
