/* ArtIMG — hoja de contactos: mesa de luz clara, tiras de película negras y lápiz graso rojo. */

/* ===== Fuentes ===== */
@font-face { font-family: "Inter"; src: url("../vendor/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../vendor/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../vendor/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../vendor/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../vendor/fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../vendor/fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ground: #F3F4F5;
  --surface: #FFFFFF;
  --raised: #E9EBED;
  --film: #141517;
  --film-2: #202226;
  --film-3: #2C2F34;
  --film-ink: #F3F4F5;
  --film-muted: #A6ABB3;
  --ink: #111214;
  --ink-2: #464B53;
  --faint: #656B74;
  --line: #E1E4E8;
  --control: #C9CED4;
  --red: #D12F2B;
  --red-ink: #AD221E;
  --red-tint: #FCEAE9;
  --pencil: #D12F2B;
  --pencil-film: #FF7B6D;
  --gold: #F2A516;
  --ok: #1F7A4C;
  --r-xl: 22px;
  --r-lg: 14px;
  --r-md: 10px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; overflow-x: clip; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--red-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: #F8C9C6; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(209, 47, 43, .45); outline-offset: 2px; border-radius: 6px; }
input, textarea { caret-color: var(--red); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.num, .tab { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { flex: none; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2A2D31; }
.btn.ghost { background: var(--raised); color: var(--ink); }
.btn.ghost:hover { background: #DDE0E4; }
.btn.sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn.big { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn.xl { min-height: 60px; padding: 16px 30px; font-size: 18px; }
.btn.full { width: 100%; }
.icobtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: background-color 150ms ease, transform 140ms var(--ease-out); }
.icobtn:hover { background: var(--raised); }
.icobtn:active { transform: scale(.94); }

/* ===== Lápiz graso: círculo rojo hecho a mano ===== */
.pencil { position: relative; display: inline-grid; place-items: center; padding: 6px 16px 7px; font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1; color: var(--pencil); white-space: nowrap; }
.pencil svg { position: absolute; inset: -4px -6px; width: calc(100% + 12px); height: calc(100% + 8px); overflow: visible; }
.pencil path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 420; stroke-dashoffset: 0; }
.pencil > span { position: relative; }
.pencil.soft { font-size: 20px; }
.js .pencil path { animation: draw 700ms var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 420; } }

/* ===== Barra superior ===== */
.top { position: sticky; top: 0; z-index: 50; background: var(--surface); }
.topin { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.03em; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--red); font-weight: 800; }
.navlink { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.navlink:hover, .navlink[aria-expanded="true"] { background: var(--ground); color: var(--ink); }
.navlink svg { transition: transform 200ms var(--ease-out); }
.navlink[aria-expanded="true"] svg.chev { transform: rotate(180deg); }
.menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); box-shadow: 0 24px 48px rgba(17, 18, 20, .12); max-height: calc(100dvh - 64px); overflow: auto; }
.menu.open { display: block; animation: menuIn 200ms var(--ease-out); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.menuin { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gut) 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 28px; }
.menuin h4 { margin: 8px 0 6px; font-size: 13px; font-weight: 600; color: var(--faint); }
.menuin a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.menuin a svg { color: var(--faint); flex: none; }
.menuin a:hover, .menuin a[aria-current] { background: var(--ground); }
.menuin a[aria-current] svg { color: var(--red); }

/* ===== Portada: héroe ===== */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 96px) var(--gut); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 44px) clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { padding-right: 8px; align-self: start; padding-top: clamp(8px, 2vw, 28px); }
.hero h1 { grid-column: 1 / -1; font-size: clamp(2.3rem, 6.6vw, 6rem); line-height: .96; letter-spacing: -.05em; font-weight: 800; margin: 0; padding-right: var(--gut); }
.hero h1 span { display: block; }
.hero .lead { font-size: clamp(1.06rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--ink); max-width: 40ch; margin: 0 0 30px; }
.hero-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero-drop .drop-hint { margin: 0; color: var(--ink-2); font-size: 15px; }
.hero-result { margin-top: 26px; }
.hero-result .lab { margin: 0 0 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.hero-actions:empty { display: none; }
.hero-actions { margin-bottom: 12px; }
.hero-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color 150ms ease, transform 140ms var(--ease-out), color 150ms ease; }
.chip:hover { background: var(--red-tint); color: var(--red-ink); }
.chip:active { transform: scale(.97); }
.chip svg { color: var(--red); }

/* Hoja de contactos: papel blanco, tira de película negra que sale por el borde derecho */
.hero-sheet { position: relative; background: var(--surface); border-radius: var(--r-xl) 0 0 var(--r-xl); padding: 26px 0 22px 26px; min-width: 0; }
.strip { position: relative; display: flex; gap: 14px; padding: 26px 0 26px 18px; background: var(--film); border-radius: 6px 0 0 6px; overflow: hidden; }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background-image: radial-gradient(circle at 7px 4.5px, var(--film-3) 0 3.2px, transparent 3.6px); background-size: 22px 9px; opacity: .9; }
.strip::before { top: 8px; }
.strip::after { bottom: 8px; }
.strip .frame { flex: none; margin: 0; }
.strip .frame img { width: 100%; height: 100%; object-fit: cover; background: var(--film-2); }
.strip .frame.big { width: min(38vw, 520px); aspect-ratio: 3 / 2; }
.strip .frame.small { width: min(16vw, 220px); aspect-ratio: 2 / 3; }
.strip .frame figcaption { color: var(--film-muted); font-size: 13px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .frame.big figcaption .fname { color: var(--film-ink); font-weight: 600; }
.strip .frame .shotbox { position: relative; width: 100%; height: 100%; overflow: hidden; }
.strip .frame.loading img { opacity: .4; }
.notes { list-style: none; margin: 18px 0 0; padding: 0 26px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1.15; color: var(--pencil); min-height: 44px; }
.notes li { display: inline-flex; align-items: center; gap: 6px; }
.notes li > svg { width: 18px; height: 18px; stroke-width: 2.2; }
.notes .pencil { font-size: 24px; }
.notes .n-gps:not(.warn) { color: var(--ok); }
.js .hero-sheet .strip { animation: pull 900ms var(--ease-out) both; }
@keyframes pull { from { transform: translateX(14%); opacity: 0; } }
.hero-sheet.mine .frame.big img { animation: develop 600ms ease both; }
@keyframes develop { from { opacity: 0; filter: brightness(1.6) saturate(.2); } }
body.dragging .hero-sheet { outline: 3px dashed var(--red); outline-offset: -10px; }

/* ===== Portada: herramientas ===== */
.tools { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--gut) 0; }
.sec-h { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; margin: 0 0 14px; }
.sec-sub { font-size: 18px; color: var(--ink-2); margin: 0 0 30px; max-width: 60ch; }
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 320px; max-width: 460px; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { width: 100%; min-height: 54px; padding: 12px 18px 12px 52px; border-radius: 999px; border: 2px solid transparent; background: var(--surface); font-size: 17px; transition: border-color 150ms ease; }
.search input:focus { outline: 0; border-color: var(--red); }
.search input::placeholder { color: var(--faint); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.catchip { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--raised); color: var(--ink-2); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out); }
.catchip:hover { color: var(--ink); background: #DDE0E4; }
.catchip:active { transform: scale(.97); }
.catchip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tgroup { margin-top: 40px; }
.tgroup h3 { font-size: 15px; font-weight: 600; color: var(--faint); margin: 0 0 14px; letter-spacing: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 30px 22px; list-style: none; margin: 0; padding: 0; }
.tile a { display: block; text-decoration: none; color: var(--ink); }
.tile .thumb { aspect-ratio: 4 / 3; background: var(--film); overflow: hidden; display: grid; place-items: center; color: var(--film-muted); }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.tile b { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.tile b .srv { color: var(--faint); }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .tile a:hover .thumb img { transform: scale(1.04); }
  .tile a:hover b { color: var(--red-ink); }
}
.tile a:active .thumb { transform: scale(.985); transition: transform 140ms var(--ease-out); }
#noresults { margin: 36px 0 0; font-size: 18px; color: var(--ink-2); }

/* ===== Portada: dónde se procesan ===== */
.where { max-width: var(--wrap); margin: clamp(80px, 10vw, 160px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.where h2 { grid-column: 1 / -1; }
.where-local { background: var(--surface); border-radius: var(--r-xl) 0 0 var(--r-xl); padding: clamp(28px, 4vw, 52px); }
.where-server { background: var(--film); color: var(--film-ink); border-radius: 0 var(--r-xl) var(--r-xl) 0; padding: clamp(28px, 4vw, 52px); }
.where h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; }
.where p { margin: 0; font-size: 18px; max-width: 46ch; }
.where-server p { color: #D9DCE0; }
.where-local .big { font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; margin: 0 0 18px; }
.where-server ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.where-server li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; }
.where-server li svg { color: var(--pencil-film); }

/* ===== Portada: búsquedas, preguntas ===== */
.quick { max-width: var(--wrap); margin: clamp(80px, 10vw, 150px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; }
.quick h2 { margin: 0; }
.quick-groups { display: grid; gap: 26px; }
.quick-groups h3 { font-size: 15px; font-weight: 600; color: var(--faint); margin: 0 0 10px; }
.quick-groups div div { display: flex; flex-wrap: wrap; gap: 8px; }
.faq { max-width: var(--wrap); margin: clamp(80px, 10vw, 150px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; }
.faq h2 { margin: 0; }
details { background: var(--surface); border-radius: var(--r-lg); margin: 0 0 10px; }
summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 18px; position: relative; border-radius: var(--r-lg); transition: background-color 150ms ease; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23656B74' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 18px 18px; transition: transform 200ms var(--ease-out); }
details[open] summary::after { transform: rotate(180deg); }
summary:hover { background: #FAFAFB; }
details p { margin: 0; padding: 0 22px 20px; color: var(--ink); max-width: 68ch; }
.sister { max-width: var(--wrap); margin: 56px auto 0; padding: 0 var(--gut); }
.sister a { display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: var(--surface); border-radius: var(--r-xl); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 17px; transition: transform 140ms var(--ease-out); }
.sister a:active { transform: scale(.99); }
.sister img { width: 40px; height: 40px; flex: none; }
.sister svg { margin-left: auto; color: var(--red); flex: none; }

/* ===== Pie ===== */
footer { margin-top: clamp(96px, 12vw, 180px); background: var(--film); color: var(--film-ink); }
.foot { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gut) 28px; }
.fname-big { font-size: clamp(4rem, 15vw, 13rem); font-weight: 800; letter-spacing: -.06em; line-height: .82; margin: 0 0 clamp(36px, 5vw, 64px); color: var(--film-ink); }
.fname-big b { color: var(--pencil-film); font-weight: 800; }
.fcols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.fcols h3 { font-size: 14px; color: var(--film-muted); font-weight: 600; margin: 0 0 12px; }
.fcols a { display: block; padding: 5px 0; color: var(--film-ink); text-decoration: none; font-size: 15px; }
.fcols a:hover { color: var(--pencil-film); }
.fbottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; color: var(--film-muted); font-size: 14px; }
.fbottom p { margin: 0; }

/* ===== Página de herramienta ===== */
.tool-head { max-width: var(--wrap); margin: 0 auto; padding: 26px var(--gut) 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red-ink); text-decoration: underline; }
.tool-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; margin: 0 0 10px; }
.tool-head p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 64ch; }
.tool-head .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tool-head .chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.tool-head .chip.on svg { color: #fff; }

/* ===== Mesa de trabajo ===== */
.ws { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.drop { position: relative; background: var(--surface); border-radius: var(--r-xl); min-height: 380px; padding: clamp(28px, 5vw, 56px) 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: box-shadow 200ms ease; }
.slots { display: flex; gap: 12px; margin-bottom: 30px; }
.slots i { width: 78px; aspect-ratio: 3 / 2; border-radius: 3px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--control); transition: transform 300ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease; }
.slots i:nth-child(2) { width: 96px; }
.drop .btn.xl { min-width: min(100%, 300px); }
.drop-hint { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; }
.drop-meta { margin: 6px 0 0; color: var(--faint); font-size: 14px; max-width: 60ch; }
.drop-meta:empty { display: none; }
.drop-privacy { display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 0; color: var(--ink-2); font-size: 14px; }
.drop-privacy svg { color: var(--ok); flex: none; }
body.dragging .drop { box-shadow: inset 0 0 0 3px var(--red); }
body.dragging .slots i { background: var(--red-tint); box-shadow: inset 0 0 0 1.5px var(--red); transform: translateY(-6px) rotate(-2deg); }
body.dragging .slots i:nth-child(2) { transform: translateY(-10px); }
body.dragging .slots i:nth-child(3) { transform: translateY(-6px) rotate(2deg); }

.ws-work, .ws-done { display: grid; grid-template-columns: minmax(0, 1fr) 372px; align-items: stretch; }
.stage { position: relative; background: var(--film); color: var(--film-ink); border-radius: var(--r-xl) 0 0 var(--r-xl); padding: 22px; min-height: 460px; min-width: 0; }
.side { background: var(--surface); border-radius: 0 var(--r-xl) var(--r-xl) 0; display: flex; flex-direction: column; min-width: 0; }
.side-in { padding: 24px 24px 8px; flex: 1; }
.side-h { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 16px; }
.bar { padding: 14px 24px 24px; position: sticky; bottom: 0; background: var(--surface); border-radius: 0 0 var(--r-xl) 0; }
.bar .btn + .btn { margin-top: 8px; }

/* Cuadros de la tira */
.film { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 20px 16px; }
.film.compact { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 12px; }
.frame { position: relative; min-width: 0; animation: frameIn 320ms var(--ease-out) both; }
@keyframes frameIn { from { opacity: 0; transform: translateY(8px); } }
.film .frame:nth-child(2) { animation-delay: 40ms; } .film .frame:nth-child(3) { animation-delay: 80ms; } .film .frame:nth-child(4) { animation-delay: 120ms; } .film .frame:nth-child(5) { animation-delay: 160ms; } .film .frame:nth-child(n+6) { animation-delay: 200ms; }
.shot { position: relative; aspect-ratio: 4 / 3; background: var(--film-2); display: grid; place-items: center; overflow: hidden; }
.shot img { max-width: 100%; max-height: 100%; object-fit: contain; transform: rotate(var(--r, 0deg)) scale(calc(var(--sx, 1) * var(--k, 1)), calc(var(--sy, 1) * var(--k, 1))); transition: transform 260ms var(--ease-out), opacity 300ms ease; opacity: 0; }
.frame.ready .shot img, .results .shot img { opacity: 1; }
.frame:not(.ready):not(.nothumb) .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.shot .fmt { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(20, 21, 23, .78); color: var(--film-ink); font-size: 11px; font-weight: 600; }
.frame.on .shot { box-shadow: 0 0 0 3px var(--pencil-film); }
.cap { display: grid; gap: 1px; margin-top: 9px; font-size: 13px; line-height: 1.35; }
.cap b { color: var(--film-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap span { color: var(--film-muted); font-variant-numeric: tabular-nums; }
.cap .note { color: #E7C9A6; }
.fx, .fdl { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 999px; border: 0; display: grid; place-items: center; background: rgba(20, 21, 23, .8); color: #fff; cursor: pointer; transition: opacity 150ms ease, transform 140ms var(--ease-out), background-color 150ms ease; }
.fx:hover { background: var(--red); }
.fx:active, .fdl:active { transform: scale(.92); }
.fdl { background: var(--red); }
.fdl:hover { background: var(--red-ink); }
@media (hover: hover) and (pointer: fine) { .frame .fx { opacity: 0; } .frame:hover .fx, .frame .fx:focus-visible { opacity: 1; } }
.ftools { display: flex; gap: 4px; margin-top: 8px; }
.ftools button { flex: 1; min-height: 36px; border-radius: 8px; border: 0; background: var(--film-2); color: var(--film-ink); display: grid; place-items: center; cursor: pointer; transition: background-color 150ms ease, transform 140ms var(--ease-out); }
.ftools button:hover { background: var(--film-3); }
.ftools button:active { transform: scale(.94); }
.addframe button { width: 100%; aspect-ratio: 4 / 3; border: 1.5px dashed #484C53; border-radius: 4px; background: transparent; color: var(--film-muted); display: grid; place-content: center; justify-items: center; gap: 6px; font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color 150ms ease, color 150ms ease; }
.addframe button:hover { border-color: var(--pencil-film); color: var(--film-ink); }
.frame.dragging { opacity: .45; }
.frame[draggable="true"] .shot { cursor: grab; }
.fileicon { display: grid; justify-items: center; gap: 6px; color: var(--film-muted); font-weight: 700; font-size: 13px; }
.results .pencil { position: absolute; right: 8px; bottom: 6px; color: var(--pencil-film); font-size: 26px; }
.failed .cap span { color: #FFB4AA; }

/* Vista previa grande (herramientas con vista previa) */
.preview { margin-bottom: 22px; display: grid; place-items: center; min-height: 280px; background: var(--film-2); border-radius: 4px; overflow: hidden; }
.preview canvas, .preview img { max-width: 100%; max-height: 62vh; display: block; }

/* Estado de trabajo */
.status { position: absolute; inset: 0 var(--gut); z-index: 5; display: grid; place-items: center; background: rgba(20, 21, 23, .66); border-radius: var(--r-xl); animation: fade 180ms ease both; }
.status.quiet { background: rgba(243, 244, 245, .6); }
@keyframes fade { from { opacity: 0; } }
.status-in { width: min(360px, 86%); background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.status-l { display: block; font-weight: 600; margin-bottom: 12px; }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(.03); transition: transform 240ms var(--ease-out); }

/* Opciones */
.opts { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.lab { font-size: 14px; font-weight: 600; color: var(--ink); }
.help { margin: 0; font-size: 13px; color: var(--faint); line-height: 1.45; }
.field input[type="text"], .field input[type="number"], .field input[type="url"], .field input[type="email"], .field select, .field textarea, .inp { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--control); background: var(--surface); font-size: 16px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.field textarea { resize: vertical; min-height: 88px; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(209, 47, 43, .16); }
.field select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23464B53' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ground); }
.seg button { flex: 1 1 auto; min-height: 38px; padding: 7px 12px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.range { display: flex; align-items: center; gap: 12px; }
.range output { min-width: 52px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { flex: 1; accent-color: var(--red); height: 28px; }
.num { display: flex; align-items: center; gap: 8px; }
.num span { color: var(--faint); font-size: 14px; }
.color { display: flex; align-items: center; gap: 12px; }
.color input[type="color"] { width: 48px; height: 40px; padding: 0; border: 1px solid var(--control); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.color input[type="color"]::-webkit-color-swatch-wrapper { padding: 4px; }
.color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.color span { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.filepick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fname { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; }
.pair .lock { margin-bottom: 2px; }
.lock[aria-pressed="true"] { color: var(--red); }
.grid9 { display: grid; grid-template-columns: repeat(3, 40px); gap: 6px; }
.grid9 button { width: 40px; height: 40px; border-radius: 8px; border: 0; background: var(--ground); cursor: pointer; display: grid; place-items: center; transition: background-color 150ms ease; }
.grid9 button::after { content: ""; width: 10px; height: 10px; border-radius: 99px; background: var(--control); }
.grid9 button[aria-pressed="true"] { background: var(--red-tint); }
.grid9 button[aria-pressed="true"]::after { background: var(--red); }

/* Resultado */
.done-h { display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -.02em; margin: 0 0 12px; }
.done-h svg { color: var(--ok); }
.done-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 22px; }
.done-sum b { font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.done-sum .from { color: var(--faint); }
.done-sum .pencil { font-size: 24px; }
.done-actions { display: grid; gap: 10px; margin: 8px 0 24px; }
.next { display: grid; gap: 8px; padding-top: 18px; }
.next select { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--control); background: var(--surface); }

/* Avisos */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 13px 18px; border-radius: var(--r-lg); font-size: 15px; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
@starting-style { .toast { opacity: 0; transform: translateY(10px); } }
.toast.out { opacity: 0; transform: translateY(6px); }

/* ===== Texto de ayuda (lectura) ===== */
.info { max-width: var(--wrap); margin: clamp(64px, 8vw, 112px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; }
.info-main { max-width: 70ch; }
.info .intro { font-size: 19px; line-height: 1.6; margin: 0 0 40px; }
.info h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.15; margin: 0 0 18px; }
.steps { list-style: none; counter-reset: s; margin: 0 0 48px; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 0 52px; min-height: 36px; font-size: 17px; line-height: 1.5; display: flex; align-items: center; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--pencil); box-shadow: inset 0 0 0 2px var(--pencil); }
.tips { list-style: none; margin: 0 0 48px; padding: 0; display: grid; gap: 12px; }
.tips li { display: flex; gap: 12px; font-size: 17px; }
.tips svg { color: var(--ok); flex: none; margin-top: 3px; }
.info-side h2 { font-size: 20px; }
.minitiles { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 8px; }
.minitiles a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--ink); transition: transform 140ms var(--ease-out); }
.minitiles a:active { transform: scale(.985); }
.minitiles img { width: 64px; height: 48px; object-fit: cover; flex: none; background: var(--film); }
.minitiles b { display: block; font-size: 15px; }
.minitiles span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .minitiles a:hover b { color: var(--red-ink); } }
.freeline { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; margin: 8px 0 0; }
.freeline svg { color: var(--ok); }

/* Páginas de texto (privacidad, contacto…) */
.doc { max-width: 76ch; margin: 0 auto; padding: 28px var(--gut) 0; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1.05; margin: 10px 0 20px; }
.doc h2 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 12px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc .updated { color: var(--faint); font-size: 15px; }
.credits { list-style: none; padding: 0; display: grid; gap: 12px; }
.credits li { background: var(--surface); border-radius: var(--r-lg); padding: 14px 18px; }
.credits b { display: block; }
.form { display: grid; gap: 16px; background: var(--surface); padding: 24px; border-radius: var(--r-xl); margin-top: 24px; }
.form .hp { position: absolute; left: -9999px; }

/* ===== Aparición al desplazarse ===== */
[data-reveal].pre > * { opacity: 0; transform: translateY(20px); }
[data-reveal].in > * { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
[data-reveal].in > *:nth-child(2) { transition-delay: 70ms; } [data-reveal].in > *:nth-child(3) { transition-delay: 140ms; } [data-reveal].in > *:nth-child(4) { transition-delay: 210ms; } [data-reveal].in > *:nth-child(n+5) { transition-delay: 280ms; }

/* ===== Herramientas con editor propio ===== */
.canvasbox { position: relative; display: grid; place-items: center; min-height: 420px; user-select: none; -webkit-user-select: none; }
.canvasbox canvas { max-width: 100%; max-height: 68vh; display: block; }
/* Solo los lienzos que se arrastran bloquean el desplazamiento con el dedo */
.canvasbox :is(#cv, #sv, #ec, #dw, #fc, #pc) { touch-action: none; }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #D9DCE0 25%, transparent 25%), linear-gradient(-45deg, #D9DCE0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #D9DCE0 75%), linear-gradient(-45deg, transparent 75%, #D9DCE0 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 20px; background: var(--ground); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 30%; min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background-color 160ms ease, color 160ms ease; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform 140ms var(--ease-out); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatches button:active { transform: scale(.92); }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.presets button { border: 0; padding: 0; background: none; cursor: pointer; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.presets canvas, .presets img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; box-shadow: 0 0 0 0 var(--red); transition: box-shadow 150ms ease; }
.presets button[aria-pressed="true"] canvas { box-shadow: 0 0 0 3px var(--red); }
.presets button[aria-pressed="true"] { color: var(--ink); }
.layouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.layouts button { aspect-ratio: 1; border: 0; padding: 6px; border-radius: 10px; background: var(--ground); cursor: pointer; transition: background-color 150ms ease; }
.layouts button[aria-pressed="true"] { background: var(--red-tint); box-shadow: inset 0 0 0 2px var(--red); }
.layouts svg { width: 100%; height: 100%; }
.layouts rect { fill: #B9BFC6; }
.layouts button[aria-pressed="true"] rect { fill: var(--red); }
.box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); cursor: move; touch-action: none; }
.box.sel { border-color: var(--pencil-film); }
.box .h { position: absolute; width: 18px; height: 18px; right: -10px; bottom: -10px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 2px var(--red); cursor: nwse-resize; }
.box .del { position: absolute; top: -14px; right: -14px; width: 28px; height: 28px; border-radius: 99px; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; }
.textlayer { position: absolute; cursor: move; touch-action: none; white-space: pre; line-height: 1.1; outline: 1.5px dashed transparent; outline-offset: 4px; }
.textlayer.sel { outline-color: rgba(255, 255, 255, .85); }
.outbox { width: 100%; min-height: 280px; font-size: 16px; line-height: 1.55; border-radius: var(--r-md); border: 1px solid var(--control); padding: 14px; resize: vertical; background: var(--surface); color: var(--ink); }
.swatch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.swatch-list li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; }
.swatch-list i { width: 56px; height: 56px; border-radius: 12px; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatch-list b { font-variant-numeric: tabular-nums; }
.swatch-list span { display: block; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bigpalette { display: flex; width: 100%; height: 96px; border-radius: 6px; overflow: hidden; margin-top: 18px; }
.bigpalette i { flex: var(--w) 1 0; }
.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--film-muted); }
.meta-list b { color: var(--film-ink); font-weight: 600; }
.meta-list .warn { color: var(--pencil-film); }
.tabbar { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; color: var(--film-muted); font-size: 14px; }
.urlrow { display: flex; gap: 10px; }
.urlrow input { flex: 1; }
.shotprev { display: grid; place-items: center; min-height: 420px; color: var(--film-muted); text-align: center; padding: 20px; }
.shotprev img { max-height: 70vh; width: auto; box-shadow: 0 0 0 1px var(--film-3); }
.qrbox { display: grid; place-items: center; min-height: 420px; }
.qrbox canvas, .qrbox svg { width: min(360px, 80%); height: auto; background: #fff; border-radius: 6px; box-shadow: 0 0 0 12px #fff; }
.favprev { display: grid; gap: 22px; justify-items: center; padding: 20px 0; }
.favtab { display: flex; align-items: center; gap: 10px; background: #2B2D31; color: #E8EAED; padding: 10px 16px; border-radius: 10px 10px 0 0; font-size: 13px; min-width: 240px; }
.favtab img { width: 16px; height: 16px; }
.favsizes { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; justify-content: center; }
.favsizes figure { margin: 0; display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--film-muted); }
.favsizes img { background: transparent; }
.code { width: 100%; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; border-radius: var(--r-md); border: 1px solid var(--control); padding: 12px; min-height: 140px; background: #FAFAFB; }

/* ===== Pantallas medianas y celulares ===== */
@media (max-width: 1100px) {
  .menuin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-right: var(--gut); }
  .hero-sheet { margin-right: calc(var(--gut) * -1); }
  .strip .frame.big { width: min(64vw, 420px); }
  .strip .frame.small { width: min(28vw, 180px); }
  .strip .frame.small figcaption { display: none; }
  .ws-work, .ws-done { grid-template-columns: 1fr; }
  .stage { border-radius: var(--r-xl) var(--r-xl) 0 0; min-height: 300px; padding: 16px; }
  .side { border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .bar { position: sticky; bottom: 0; z-index: 6; border-radius: 0; box-shadow: 0 -10px 24px rgba(17, 18, 20, .08); padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); margin: 0 calc(var(--gut) * -1); }
  .where { grid-template-columns: 1fr; }
  .where-local { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .where-server { border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .quick, .faq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topin { min-height: 58px; gap: 4px; }
  .navlink .lbl { display: none; }
  .navlink { padding: 8px 10px; }
  .menuin { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 9.3vw, 2.6rem); }
  .hero-drop .btn.xl { width: 100%; }
  .hero-sheet { padding: 16px 0 16px 16px; }
  .notes { font-size: 22px; padding-right: 16px; }
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .tile a { display: grid; grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: start; }
  .tile .thumb { grid-row: 1 / 3; }
  .tile b { font-size: 17px; margin: 2px 0 2px; }
  .tile p { font-size: 15px; }
  .strip .frame.small figcaption { display: none; }
  .film { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .drop { min-height: 320px; }
  .slots i { width: 60px; } .slots i:nth-child(2) { width: 74px; }
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-head p { font-size: 16px; }
  .info .intro { font-size: 17px; }
  .steps li, .tips li { font-size: 16px; }
  .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  [data-reveal].pre > * { opacity: 1; transform: none; }
}

/* Datos ocultos */
.exifbox { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; padding: 18px; align-items: start; text-align: left; }
.exifbox img { width: 100%; max-height: 340px; object-fit: contain; }
.exif-h { font-size: 16px; color: var(--film-ink); margin: 0 0 10px; }
.maplink { color: var(--pencil-film); font-weight: 600; }
@media (max-width: 640px) { .exifbox { grid-template-columns: 1fr; } }
.posrow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.ocrout { margin-top: 22px; }
.ocrout .outbox { min-height: 320px; }

/* Recorte (Cropper.js) con los colores del sitio */
.cropbox { height: min(64vh, 620px); min-height: 320px; }
.cropbox img { display: block; max-width: 100%; }
.cropper-view-box { outline: 2px solid var(--pencil-film); outline-color: rgba(255, 123, 109, .95); }
.cropper-line, .cropper-point { background-color: var(--pencil-film); }
.cropper-point.point-se { width: 10px; height: 10px; }
.cropper-modal { background-color: #000; opacity: .55; }
.cropper-dashed { border-color: rgba(255, 255, 255, .6); }
.headguide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.headguide ellipse { fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 1.6; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.headguide line { stroke: var(--pencil-film); stroke-width: 1.6; vector-effect: non-scaling-stroke; }

/* Escenario claro (QR, captura de página) */
.stage.light { background: #F8F9FA; color: var(--ink); }
.stage.light .tabbar, .stage.light .help { color: var(--faint); }
.qrin { display: grid; gap: 16px; }
.urlform { display: grid; gap: 8px; }
.urlform .inp { min-height: 54px; font-size: 18px; border-radius: 999px; padding: 12px 22px; }
.stage.light .shotprev { color: var(--faint); }
.edpanel { display: grid; gap: 14px; }
.drawwrap { position: relative; display: inline-block; max-width: 100%; }
.drawwrap canvas { display: block; max-width: 100%; max-height: 68vh; }
.boxes { position: absolute; inset: 0; }
#ebox[data-mode="draw"] canvas { cursor: crosshair; }
#ebox[data-mode="text"] canvas { cursor: move; }
.pickdot { display: inline-block; width: 14px; height: 14px; border-radius: 99px; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.muted { color: var(--faint); }

/* Índice de guías */
.guide-index { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gut) clamp(64px, 8vw, 112px); }
.guide-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 10px; margin: 0; }
.guide-list a { padding: 14px; }
.guide-list img { width: 88px; height: 66px; }

@media (max-width: 640px) {
  .canvasbox { min-height: 200px; }
}
