/* ACV2S Gallery — panel del fotógrafo */
:root {
  --bg: #fafafa;
  --bg-2: #f0f0f0;
  --card: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #404040;
  --muted: #757575;
  --line: #e4e4e4;
  --accent: #dc2626;
  --accent-bg: #fef2f2;
  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --warn: #a16207;
  --warn-bg: #fefce8;
  --heart: #e11d48;
  --serif: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 400; margin: 0; }
.serif { font-family: var(--sans); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.eyebrow { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cargando { min-height: 60vh; display: grid; place-items: center; }
.cargando span { width: 26px; height: 26px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: gira 600ms linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ───── layout ───── */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 26px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.brand { font: 700 18px/1 var(--sans); letter-spacing: -.02em; padding: 0 12px 24px; }
.brand small { display: block; font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--bg-2); } }
.nav a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.nav a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.nav svg { width: 17px; height: 17px; flex: none; }
.side .bottom { margin-top: auto; padding: 12px; font-size: 12px; color: var(--muted); word-break: break-all; }
.main { min-width: 0; padding: 30px clamp(16px, 3vw, 44px) 80px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; gap: 2px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); }
  .brand { padding: 0 8px 0 4px; font-size: 21px; }
  .brand small, .side .bottom { display: none; }
  .nav { display: flex; gap: 2px; }
  .nav a { padding: 8px 10px; white-space: nowrap; font-size: 13px; }
  .nav a svg { display: none; }
  .main { padding: 20px 16px 80px; }
}

/* ───── piezas ───── */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head h1 { font: 600 clamp(22px, 3vw, 30px)/1.15 var(--sans); letter-spacing: -.025em; }
.head .acc { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 9px; background: var(--ink); color: var(--bg); padding: 10px 18px; font: 600 13px/1 var(--sans); display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease-out), opacity 150ms ease, background-color 150ms ease; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { opacity: .88; } }
.btn:disabled { opacity: .45; transform: none; cursor: default; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.sm { padding: 7px 12px; font-size: 12px; }
.btn.danger { background: var(--accent); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.wa { background: #0a0a0a; color: #fff; }
.btn svg { width: 15px; height: 15px; }
.icon-btn { border: 0; background: none; padding: 6px; border-radius: 8px; color: var(--ink-2); display: inline-grid; place-items: center; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--bg-2); color: var(--ink); } }
.icon-btn svg { width: 17px; height: 17px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card + .card { margin-top: 14px; }
.card h3 { font: 600 16px/1.3 var(--sans); letter-spacing: -.01em; margin-bottom: 4px; }
.card .sub { color: var(--muted); margin: 0 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.chip.borrador { background: var(--bg-2); }
.chip.enviada, .chip.eligiendo { background: #e8e8e8; color: #262626; }
.chip.esperando_pago { background: var(--warn-bg); color: var(--warn); }
.chip.retoque { background: #0a0a0a; color: #fff; }
.chip.entregada { background: var(--ok-bg); color: var(--ok); }
.chip.rojo { background: var(--accent); color: #fff; }

/* formularios */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 6px; font-weight: 500; font-size: 13px; }
label.f small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=password], input[type=tel], input[type=url], select, textarea {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%; outline: none; transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); background: var(--card); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); }
.check small { display: block; font-weight: 400; color: var(--muted); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
@media (max-width: 640px) { .seg { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); } }
.seg button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 12px; text-align: left; display: grid; gap: 3px; transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out); }
.seg button:active { transform: scale(0.98); }
.seg button b { font-weight: 600; font-size: 13px; }
.seg button small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.seg button.on { border-color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink); }
input[type=range] { width: 100%; accent-color: var(--ink); }
.guardado { font-size: 12px; color: var(--ok); opacity: 0; transition: opacity 200ms ease; }
.guardado.on { opacity: 1; }

/* ───── lista de galerías ───── */
.galerias { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.gcard { text-decoration: none; display: block; }
.gcard .img { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--bg-2); position: relative; }
.gcard { transition: transform 160ms var(--ease-out); }
.gcard:active { transform: scale(0.98); }
.gcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gcard:hover .img img { transform: scale(1.03); } }
/* Entrada escalonada de las tarjetas (30–80ms entre cada una) */
.galerias .gcard { animation: sube 300ms var(--ease-out) both; }
.galerias .gcard:nth-child(2) { animation-delay: 40ms; }
.galerias .gcard:nth-child(3) { animation-delay: 80ms; }
.galerias .gcard:nth-child(4) { animation-delay: 120ms; }
.galerias .gcard:nth-child(5) { animation-delay: 160ms; }
.galerias .gcard:nth-child(n+6) { animation-delay: 200ms; }
@keyframes sube { from { opacity: 0; transform: translateY(8px); } }
.gcard .img .chip { position: absolute; top: 10px; left: 10px; }
.gcard .img .alerta { position: absolute; top: 10px; right: 10px; }
.gcard h3 { font: 600 15px/1.3 var(--sans); letter-spacing: -.01em; margin: 10px 0 2px; }
.gcard p { margin: 0; color: var(--muted); font-size: 13px; }
.gcard .vacia { display: grid; place-items: center; height: 100%; color: var(--muted); font: 500 13px var(--sans); }
.empty { text-align: center; padding: 70px 20px; }
.empty h2 { font: 600 22px/1.2 var(--sans); letter-spacing: -.02em; margin-bottom: 10px; }

/* ───── detalle ───── */
.back { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 22px; counter-reset: s; }
.step { position: relative; padding: 12px 12px 12px 42px; border-radius: 12px; background: var(--bg-2); color: var(--muted); font-size: 12.5px; line-height: 1.3; min-height: 54px; display: flex; align-items: center; transition: background-color 300ms ease, color 300ms ease; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); background: var(--card); color: var(--muted); }
.step.done { color: var(--ink-2); }
.step.done::before { content: "✓"; background: var(--ok); color: #fff; }
.step.now { background: var(--ink); color: var(--bg); font-weight: 600; }
.step.now::before { background: var(--bg); color: var(--ink); }
@media (max-width: 860px) { .stepper { grid-template-columns: 1fr; } .step { min-height: 0; padding: 9px 12px 9px 42px; } .step:not(.now) { display: none; } }

.banner { border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner.rojo { background: var(--accent); color: #fff; }
.banner.rojo .eyebrow { color: rgba(255,255,255,.8); }
.banner.lila { background: var(--card); border: 1px solid var(--ink); flex-direction: column; align-items: stretch; }
.banner.lila > div:first-child { width: 100%; }
.banner h3 { font: 600 17px/1.3 var(--sans); letter-spacing: -.01em; margin: 6px 0 0; }
.banner .acc { display: flex; gap: 8px; flex-wrap: wrap; }
.banner.rojo .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.banner.rojo .btn:not(.ghost) { background: #fff; color: var(--accent); }

.detalle { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .detalle { grid-template-columns: 1fr; } }
.ptabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.ptabs button { border: 0; background: none; padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 150ms ease, border-color 150ms ease; }
.ptabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

.aside { position: sticky; top: 20px; display: grid; gap: 14px; }
@media (max-width: 1100px) { .aside { position: static; } }
.aside .card { padding: 18px; }
.stat { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.stat:last-child { border-bottom: 0; }
.stat span { color: var(--muted); }
.stat b { font: 500 12.5px/1.4 var(--mono); text-align: right; }
.enlace { font: 12px/1.4 var(--mono); background: var(--bg-2); border-radius: 8px; padding: 10px; word-break: break-all; margin: 10px 0; }
.aside .acc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aside .acc .full { grid-column: 1 / -1; }

/* dropzone + fotos */
.drop { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 28px 18px; text-align: center; background: var(--card); transition: border-color 150ms ease, background-color 150ms ease, transform 200ms var(--ease-out); }
.drop.over { border-color: var(--ink); background: var(--bg-2); transform: scale(1.01); }
.drop h3 { font: 600 16px/1.3 var(--sans); margin-bottom: 4px; }
.drop p { color: var(--muted); margin: 0 0 14px; }
.drop .acc { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.subidas { margin-top: 12px; }
.progreso { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-align: left; display: grid; gap: 8px; animation: sube 240ms var(--ease-out); }
.progreso-txt { display: flex; justify-content: space-between; font-size: 14px; }
.progreso-txt span { font: 500 13px var(--mono); color: var(--muted); }
.progreso .bar { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; position: relative; }
.progreso .bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 300ms var(--ease-out); }
.progreso:not(.listo) .bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: brillo 1.4s linear infinite; }
@keyframes brillo { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progreso.listo .bar i { background: var(--ok); }
.progreso-sub { font-size: 12px; color: var(--muted); }
.progreso-err { font-size: 12px; color: var(--accent); }
.subida { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font: 12px/1.3 var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.subida .bar { grid-column: 1 / -1; height: 3px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.subida { animation: sube 200ms var(--ease-out) both; }
/* Barra de progreso: scaleX (GPU) y lineal, como todo movimiento constante */
.subida .bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 200ms linear, background-color 200ms ease; }
.subida.err { border-color: var(--accent); color: var(--accent); }
.subida.ok .bar i { background: var(--ok); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 12px; flex-wrap: wrap; }
.filtros { display: flex; gap: 4px; background: var(--bg-2); padding: 3px; border-radius: 999px; }
.filtros button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); }
.filtros button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ft { position: relative; aspect-ratio: 1; background: var(--bg-2); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.ft img { width: 100%; height: 100%; object-fit: cover; }
.ft .proc { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 11px/1.3 var(--mono); color: var(--muted); padding: 8px; }
.ft .proc.err { color: var(--accent); }
.ft img { animation: fade 300ms var(--ease-out) both; }
.ft .hov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 50%); opacity: 0; transition: opacity 150ms ease; display: flex; align-items: flex-end; justify-content: space-between; padding: 8px; color: #fff; }
@media (hover: hover) and (pointer: fine) { .ft:hover .hov { opacity: 1; } }
@media (hover: none) { .ft .hov { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 40%); } }
.ft .hov span { font: 10.5px/1.2 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft .hov .tools { display: flex; gap: 2px; flex: none; }
.ft .hov button { background: rgba(255,255,255,.18); border: 0; border-radius: 7px; color: #fff; width: 28px; height: 28px; display: grid; place-items: center; font-size: 14px; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.ft .hov button:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .ft .hov button:hover { background: rgba(255,255,255,.35); } }
.ft .badges { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.ft .badge { font: 600 10px/1 var(--sans); padding: 4px 6px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--ink); }
.ft .badge.sel { background: var(--heart); color: #fff; }
.ft .badge.ent { background: var(--ok); color: #fff; }
.ft::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--heart); opacity: 0; transition: opacity 150ms ease; pointer-events: none; }
.ft.elegida::after { opacity: 1; }

.lr { font: 12px/1.6 var(--mono); background: var(--bg-2); border-radius: 8px; padding: 12px; word-break: break-all; max-height: 140px; overflow: auto; margin: 10px 0; user-select: all; }

/* presentación */
.focal { position: relative; border-radius: 12px; overflow: hidden; cursor: crosshair; background: var(--bg-2); }
.focal img { width: 100%; max-height: 420px; object-fit: contain; background: #111; }
.focal .pt { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.35), inset 0 0 0 2px rgba(0,0,0,.2); pointer-events: none; }
.previews { display: grid; grid-template-columns: 1fr 110px; gap: 12px; align-items: end; margin-top: 12px; }
.prev { border-radius: 8px; overflow: hidden; background: #111; position: relative; border: 4px solid var(--ink); }
.prev.desk { aspect-ratio: 16/10; }
.prev.mob { aspect-ratio: 9/19; border-radius: 16px; }
.prev img { width: 100%; height: 100%; object-fit: cover; }
.prev span { position: absolute; left: 8px; bottom: 6px; color: #fff; font: 600 12px/1 var(--sans); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; max-height: 220px; overflow: auto; margin-top: 10px; }
.picker img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: pointer; outline: 2px solid transparent; outline-offset: 1px; transition: outline-color 150ms ease, transform 160ms var(--ease-out); }
.picker img:active { transform: scale(0.95); }
.picker img.on { outline-color: var(--ink); }

/* actividad */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transform: translateY(-1px); }
.timeline li.confirmado::before, .timeline li.entregada::before { background: var(--ok); }
.timeline li.aviso_pago::before { background: var(--accent); }
.timeline li.eligio::before { background: var(--heart); }
.timeline time { font: 11.5px/1 var(--mono); color: var(--muted); white-space: nowrap; }

/* marca de agua */
.wm { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .wm { grid-template-columns: 1fr; } }
.wm canvas { width: 100%; height: auto; border-radius: 12px; background: var(--bg-2); display: block; }
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.logo-box { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; place-items: center; min-height: 130px; text-align: center; }
.logo-box.dark { background: #1a1a1a; color: #ddd; }
.logo-box img { max-height: 54px; width: auto; }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(20,18,16,.45); display: grid; place-items: center; padding: 16px; animation: fade 200ms var(--ease-out); }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 18px; padding: 26px; width: min(480px, 100%); max-height: 90vh; overflow: auto; animation: modal-in 240ms var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: scale(0.96); } }
.modal h2 { font: 600 20px/1.25 var(--sans); letter-spacing: -.02em; margin-bottom: 6px; }
.modal .acc { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

.lb { position: fixed; inset: 0; z-index: 100; background: rgba(12,11,10,.96); display: flex; flex-direction: column; color: #fff; animation: fade 200ms var(--ease-out); }
.lb-top { display: flex; justify-content: space-between; padding: 14px 16px; font: 12.5px var(--mono); color: rgba(255,255,255,.75); }
.lb-top button { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; }
.lb-stage { flex: 1; display: grid; place-items: center; position: relative; min-height: 0; padding: 0 56px 24px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 22px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .box { width: min(400px, 100%); text-align: center; }
.login h1 { font: 700 34px/1 var(--sans); letter-spacing: -.03em; margin-bottom: 8px; }
.login .box > p { color: var(--muted); margin: 0 0 28px; }
.login form { display: grid; gap: 10px; }
.login .o { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0; }
.login .o::before, .login .o::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 0); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; z-index: 200; font-size: 13.5px; max-width: calc(100vw - 32px); text-align: center; opacity: 1; transition: opacity 250ms ease, transform 250ms var(--ease-out); }
@starting-style { .toast { opacity: 0; transform: translate(-50%, 8px); } }
.toast.sale { opacity: 0; transform: translate(-50%, 4px) scale(0.98); transition-duration: 150ms; }
.toast.err { background: var(--accent); color: #fff; }
.help h3 { font: 600 16px/1.3 var(--sans); margin: 22px 0 6px; }
.help p, .help li { color: var(--ink-2); max-width: 680px; }

/* Movimiento reducido: sin desplazamientos, se conservan los fundidos */
@media (prefers-reduced-motion: reduce) {
  .galerias .gcard, .subida, .modal, .ft img { animation: fade 200ms ease both !important; }
  .btn:active, .gcard:active, .seg button:active, .icon-btn:active, .picker img:active, .ft .hov button:active { transform: none; }
  .gcard:hover .img img, .drop.over { transform: none !important; }
}

/* RAW Pro */
.rawpro { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.rawpro.ok { color: var(--ok); }
.rawpro a { color: inherit; font-weight: 600; }
.pasos { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); }
.timeline li.rawpro::before { background: var(--ink); }

.titulo-edit .icon-btn { vertical-align: middle; margin-left: 4px; }
.titulo-edit .icon-btn svg { width: 20px; height: 20px; }

/* Acciones principales arriba: WhatsApp manda */
.head .acc .btn.wa svg { width: 16px; height: 16px; }
.aside .enlace-card { border-color: var(--ink); }
.nota-raw { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* Tipografías */
.fuentes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fuente { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 14px 12px 10px; text-align: left; display: grid; gap: 6px; transition: border-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out); }
.fuente:active { transform: scale(0.98); }
.fuente.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fuente .muestra { font-size: 22px; line-height: 1.1; letter-spacing: -.01em; }
.fuente small { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.ft .badge.com { background: #fff; }
.lb-com { padding: 0 16px calc(14px + env(safe-area-inset-bottom)); color: rgba(255,255,255,.85); font-size: 14px; text-align: center; }

/* Cobros: cuentas y paquetes */
.cuenta-row { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; background: var(--card); }
.row3 { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 10px; }
.row4 { display: grid; grid-template-columns: 1.4fr .8fr .9fr .7fr; gap: 10px; }
.titular-row { grid-template-columns: 1fr; }
.cuenta-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@media (max-width: 640px) { .row3, .row4 { grid-template-columns: 1fr 1fr; } }
details summary::-webkit-details-marker { display: none; }

/* Confirmaciones dentro de la app */
.confirm { text-align: center; }
.confirm h2 { margin-top: 6px; }
.confirm .lead { margin: 0 auto; max-width: 360px; }
.confirm .acc { justify-content: center; }
.confirm .acc .btn { min-width: 120px; }
.confirm-ico { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); animation: pop-in 320ms var(--ease-out); }
.confirm-ico svg { width: 24px; height: 24px; }
.confirm-ico.danger { background: var(--accent-bg); color: var(--accent); }
@keyframes pop-in { from { transform: scale(0.8); opacity: 0; } }
.modal .acc .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
