/* =============================================================
   1. Tokens — dark/mono/gradient, matching ai.myswebdesign.com
   ============================================================= */
:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --surface: #17171a;
  --surface-alt: #141414;
  --border: rgba(250, 250, 250, 0.12);
  --border-soft: rgba(250, 250, 250, 0.07);
  --text: #fafafa;
  --text-muted: #a3a3a3;
  --text-muted-2: #6b6b6f;
  --accent: #7c5cff;
  --accent-dark: #6a45ff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --accent-ink: #0a0a0a;

  --gradient-1: #7c5cff;
  --gradient-2: #ff3d81;
  --gradient-3: #3aa0ff;
  --gradient-4: #00e5c7;

  --success: #00e5c7;
  --danger: #ff3d81;
  --warn: #ffb020;

  --sans: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --container: 1120px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-wrap: anywhere;
  overscroll-behavior-y: none;
  position: relative;
}
/* subtle film-grain texture, matches the sibling site's tech feel */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  opacity: 0.045; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: .6em; }
h3 { font-size: 1.1rem; }
.subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .8rem;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto;
}

.grad-text {
  color: transparent;
  background-image: linear-gradient(90deg, var(--gradient-1), var(--gradient-3));
  background-clip: text; -webkit-background-clip: text;
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Header / nav --- */
.site-header {
  border-bottom: 1px solid transparent;
  background: transparent;
  position: sticky; top: 0; z-index: 100;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-3));
  color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 800;
  flex-shrink: 0;
}
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { font-weight: 500; font-size: .85rem; color: var(--text-muted); transition: color .2s var(--ease-out); }
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); color: var(--text); font-size: 1.1rem; align-items: center; justify-content: center;
}
@media (max-width: 719px) {
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter); gap: .9rem;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
}

/* --- Tool card (the hero component) --- */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.tool-field { margin-bottom: 1.1rem; }
.tool-field:last-child { margin-bottom: 0; }
.tool-field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .5rem; color: var(--text-muted); }
.tool-field .hint { font-size: .82rem; color: var(--text-muted-2); margin-top: .3rem; }
.tool-input, .tool-select {
  width: 100%; padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg-2); color: var(--text);
  font-size: 1rem; font-family: var(--sans); transition: border-color .2s var(--ease-out);
}
.tool-input:focus, .tool-select:focus { border-color: var(--accent); outline: none; }
.tool-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 540px) { .tool-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .tool-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  transition: transform .25s var(--ease-out), background .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--text); }
.btn-secondary.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.result-panel {
  margin-top: 1.3rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid var(--border);
  display: none;
}
.result-panel.is-visible { display: block; }
.result-big {
  font-size: clamp(1.1rem, 3.2vw, 1.8rem); font-weight: 800; font-family: var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
  color: transparent;
  background-image: linear-gradient(90deg, var(--gradient-1), var(--gradient-3));
  background-clip: text; -webkit-background-clip: text;
}
.result-big-lg { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.result-label { font-size: .8rem; color: var(--text-muted); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .04em; }

.copy-btn {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .85rem;
  color: var(--accent); padding: .3rem .6rem; border-radius: 6px; transition: background .2s var(--ease-out);
}
.copy-btn:hover { background: var(--accent-soft); }
.copy-btn.is-copied { color: var(--success); }

.privacy-badge {
  display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.2rem;
  padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border-soft);
  font-size: .85rem; color: var(--text-muted);
}
.privacy-badge svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--success); margin-top: 1px; }

.error-state {
  display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255,61,129,.1); border: 1px solid rgba(255,61,129,.35); color: var(--danger); font-size: .9rem;
}
.error-state.is-visible { display: block; }

/* --- Ad slots --- */
.ad-slot {
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted-2); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  margin-block: 2rem; background: var(--bg-2);
}

/* --- Sections --- */
.tool-hero, .home-hero {
  position: relative; overflow: clip;
  padding-block: clamp(1.8rem, 5vw, 3.2rem) 1rem;
}
.tool-hero::before, .home-hero::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle 420px at 15% 15%, color-mix(in srgb, var(--gradient-1) 35%, transparent) 0%, transparent 65%),
    radial-gradient(circle 460px at 85% 10%, color-mix(in srgb, var(--gradient-3) 28%, transparent) 0%, transparent 65%);
  filter: blur(60px) saturate(140%);
}
.tool-body { padding-block: 1rem 3rem; position: relative; z-index: 1; }
.tool-body .container { max-width: 760px; }
.tool-hero .container { max-width: 760px; }

.info-block { margin-block: 2.2rem; }
.info-block p { margin-bottom: 1rem; color: var(--text-muted); }
.info-block ul { padding-left: 1.2rem; color: var(--text-muted); margin-bottom: 1rem; }
.info-block li { margin-bottom: .4rem; }

.steps { display: grid; gap: 1rem; margin-block: 1.5rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 1.1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--text);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin-bottom: .6rem;
}

details.faq-item {
  border-bottom: 1px solid var(--border); padding-block: .9rem;
}
details.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; flex-shrink: 0; }
details.faq-item[open] summary::after { content: "\2013"; }
details.faq-item p { margin-top: .6rem; color: var(--text-muted); }

/* --- More tools cross-link --- */
.more-tools { margin-block: 2.5rem; }
.tool-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 540px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-mini-card {
  display: block; padding: 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.tool-mini-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-mini-card .tool-mini-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: .7rem;
}
.tool-mini-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.tool-mini-card p { font-size: .85rem; color: var(--text-muted); }
.category-tag {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent); background: var(--accent-soft); padding: .2rem .55rem; border-radius: 5px; margin-bottom: .6rem;
}

/* --- Home hero --- */
.home-hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.home-hero h1 { max-width: 22ch; margin-inline: auto; margin-bottom: .8rem; }
.home-hero .eyebrow { justify-content: center; }
.home-hero .subtitle { margin-inline: auto; }
.category-section { padding-block: 1.5rem; position: relative; z-index: 1; }
.category-section h2 { display: flex; align-items: center; gap: .5rem; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); margin-top: 3rem; position: relative; z-index: 1; }
.site-footer .container { padding-block: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: .78rem; color: var(--text-muted-2); }

/* Legal pages */
.legal-page .container { max-width: 720px; padding-block: 2.5rem 4rem; }
.legal-page h2 { margin-top: 1.6rem; }
.legal-page p, .legal-page li { color: var(--text-muted); margin-bottom: .8rem; }

/* Password strength meter */
.strength-meter { height: 6px; border-radius: 4px; background: var(--bg-2); overflow: hidden; margin-top: .6rem; }
.strength-fill { height: 100%; width: 0%; background: var(--danger); transition: width .25s var(--ease-out), background .25s var(--ease-out); }
.strength-label { font-size: .82rem; font-weight: 600; margin-top: .3rem; color: var(--text-muted); }

.checkbox-row { display: flex; align-items: center; gap: .5rem; font-size: .9rem; padding-block: .3rem; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--accent); }

.password-output {
  font-family: var(--mono); font-size: 1.1rem; word-break: break-all;
  background: var(--bg-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
}

/* IP tool */
.ip-display {
  font-family: var(--mono); font-size: clamp(1.3rem, 4.2vw, 2rem); font-weight: 800;
  overflow-wrap: anywhere; word-break: break-all;
  color: transparent;
  background-image: linear-gradient(90deg, var(--gradient-1), var(--gradient-3));
  background-clip: text; -webkit-background-clip: text;
}
.info-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1rem; }
@media (min-width: 540px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-item { padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--bg-2); font-size: .85rem; overflow-wrap: anywhere; border: 1px solid var(--border-soft); }
.info-item .k { color: var(--text-muted-2); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }

/* Amortization table */
.amort-table-wrap { overflow-x: auto; overflow-y: auto; max-height: 460px; margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table.amort-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 480px; font-family: var(--mono); }
table.amort-table th, table.amort-table td { padding: .55rem .7rem; text-align: right; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
table.amort-table th:first-child, table.amort-table td:first-child { text-align: left; }
table.amort-table thead th { background: var(--bg-2); font-weight: 700; position: sticky; top: 0; color: var(--text-muted); }
table.amort-table tbody tr:hover { background: var(--border-soft); }
@media print { .site-header, .site-footer, .ad-slot, .more-tools, .info-block { display: none; } }

/* QR tool */
.qr-preview-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1rem; }
#qr-canvas-holder { background: #fff; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.swatches { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.swatches input[type="color"] { width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--border); padding: 2px; background: var(--surface); }
.style-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 540px) { .style-picker { grid-template-columns: repeat(4, 1fr); } }
.style-option {
  padding: .6rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); text-align: center;
  font-size: .85rem; font-weight: 600; color: var(--text-muted); transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.style-option.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

/* --- Dropzone (paleta, favicons) --- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 2rem 1rem; border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  background: var(--bg-2); text-align: center; cursor: pointer; transition: border-color .2s var(--ease-out);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); }
.dropzone .hint { color: var(--text-muted-2); }
.dropzone input[type="file"] { display: none; }
.dropzone img { max-height: 120px; border-radius: 8px; margin-top: .5rem; }

/* --- Color swatches (paleta) --- */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; margin-top: 1rem; }
.swatch-card { border-radius: var(--radius-sm); aspect-ratio: 1.4; display: flex; align-items: flex-end; overflow: hidden; border: 1px solid var(--border); }
.swatch-label { background: rgba(0,0,0,.55); color: #fff; width: 100%; padding: .5rem .6rem; font-family: var(--mono); font-size: .78rem; display: flex; flex-direction: column; gap: .1rem; }
.swatch-label .hint { color: rgba(255,255,255,.75); font-size: .7rem; }

/* --- Favicon preview grid --- */
.fav-preview-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; justify-content: center; }
.fav-snippet { font-family: var(--mono); font-size: .8rem; white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-top: 1rem; color: var(--text-muted); }

/* --- JSON viewer --- */
.json-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .json-layout { grid-template-columns: 1fr 1fr; } }
.json-textarea, .json-output-pre {
  width: 100%; min-height: 320px; padding: .9rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg-2); color: var(--text);
  font-family: var(--mono); font-size: .85rem; line-height: 1.5; resize: vertical; overflow: auto;
}
.json-output-pre { white-space: pre-wrap; word-break: break-word; margin: 0; }
.tok-key { color: var(--gradient-3); }
.tok-string { color: var(--gradient-4); }
.tok-number { color: var(--accent); }
.tok-bool, .tok-null { color: var(--gradient-2); }
.json-stats { font-size: .8rem; color: var(--text-muted-2); margin-top: .5rem; }

/* --- Speed test gauge --- */
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-block: 1rem; }
.gauge-svg { transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--border); stroke-width: 12; }
.gauge-fill { fill: none; stroke: url(#gaugeGrad); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .4s var(--ease-out); }
.gauge-center { position: relative; display: grid; place-items: center; }
.gauge-value-wrap { position: absolute; text-align: center; }
.gauge-value { font-family: var(--mono); font-size: 2.2rem; font-weight: 800; color: var(--text); }
.gauge-unit { font-size: .85rem; color: var(--text-muted); }
.vel-results { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; margin-top: 1rem; }
.vel-result-item { text-align: center; padding: .8rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border-soft); }
.vel-result-item .result-label { margin-bottom: .3rem; }
.vel-result-item .result-big { font-size: 1.2rem; }

/* --- Days counter mode panels --- */
.mode-picker { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }

/* --- File processing rows (conversor/compresor/pdf tools) --- */
.file-row {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--bg-2);
  border: 1px solid var(--border-soft); margin-top: .6rem; font-size: .85rem;
}
.file-row-name { flex: 1 1 auto; min-width: 120px; font-weight: 600; overflow-wrap: anywhere; }
.file-row .hint { color: var(--text-muted-2); }
.file-row .btn { padding: .4rem .8rem; font-size: .8rem; }

/* --- Signature pad (firmar-pdf) --- */
.sig-pad-wrap { background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; touch-action: none; }
.pdf-page-wrap { overflow: auto; max-height: 640px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2); margin-top: 1rem; }
.pdf-page-wrap canvas { cursor: crosshair; display: block; margin-inline: auto; }

/* --- Invoice item rows --- */
.fac-item-row { margin-bottom: .6rem; }

/* --- Redimensionador preview --- */
.rr-preview-wrap { display: flex; justify-content: center; margin-top: 1.2rem; }
.rr-preview-wrap canvas { max-width: 100%; max-height: 420px; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* =============================================================
   9. Reduced-motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
