/* =============================================================
   Herramientas 360 — sistema visual único para todas las páginas
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --border: #e2e8f3;
  --border-strong: #cfd8ea;
  --text: #171d2b;
  --muted: #56607a;
  --muted-2: #808aa3;
  --accent: #4f46e5;
  --accent-600: #4338ca;
  --accent-050: #eef0fe;
  --secure: #0d9488;
  --secure-700: #0f766e;
  --secure-050: #e5f6f3;
  --danger: #dc2626;
  --danger-050: #fdecec;
  --success: #16a34a;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .06);
  --shadow-lg: 0 16px 48px rgba(16, 24, 40, .14);
  --radius: 18px;
  --radius-sm: 11px;
  --gutter: clamp(16px, 4vw, 28px);
  --maxw: 1160px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", var(--sans);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1220;
    --surface: #161c2d;
    --surface-2: #1d2740;
    --border: #263149;
    --border-strong: #33415f;
    --text: #eaeefb;
    --muted: #a3adc6;
    --muted-2: #7c88a5;
    --accent: #7c78f0;
    --accent-600: #8f8bf5;
    --accent-050: #20244a;
    --secure: #2dd4bf;
    --secure-700: #14b8a6;
    --secure-050: #10322f;
    --danger: #f87171;
    --danger-050: #3a1e22;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 55px rgba(0, 0, 0, .5);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
ul, ol { padding-left: 1.15em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--accent); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =============================================================
   3. Layout helpers
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 1rem; }

/* =============================================================
   4. Header / nav
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.14rem; letter-spacing: -.03em; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--secure)); color: #fff; flex: 0 0 auto;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand b { color: var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .5rem .8rem; border-radius: 9px; font-weight: 600; font-size: .93rem; color: var(--muted);
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.nav a.nav__cta { background: var(--accent); color: #fff; }
.nav a.nav__cta:hover { background: var(--accent-600); color: #fff; }
.nav__toggle { display: none; }

@media (max-width: 720px) {
  .nav__toggle {
    display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px;
    border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  }
  .nav {
    position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: .2rem;
    padding: .7rem var(--gutter) 1rem; background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .75rem .8rem; }
}

/* =============================================================
   5. Buttons & badges
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: 12px; font-weight: 700; font-size: .98rem;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  transition: transform .18s var(--ease-out), background .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; }
.btn--primary { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 34%, transparent); }
.btn--primary:hover { background: var(--accent-600); color: #fff; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.08rem; border-radius: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: transparent; border-color: var(--border-strong); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }

.badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .34rem .7rem;
  border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--secure-050); color: var(--secure-700);
}
.badge svg { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-050); color: var(--accent); }

/* =============================================================
   6. Hero (tool page)
   ============================================================= */
.tool-hero { padding: clamp(28px, 5vw, 52px) 0 8px; text-align: center; }
.tool-hero .pill { margin-bottom: .9rem; }
.tool-hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.tool-hero p.sub { max-width: 620px; margin: .8rem auto 0; color: var(--muted); font-size: 1.08rem; }

/* =============================================================
   7. Tool card + states
   ============================================================= */
.tool-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px);
  margin-top: 1.6rem;
}
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  min-height: 230px; padding: 2rem 1.2rem; text-align: center; cursor: pointer;
  border: 2px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: var(--accent-050); }
.dropzone__icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: var(--surface); color: var(--accent); border: 1px solid var(--border); }
.dropzone__icon svg { width: 30px; height: 30px; }
.dropzone strong { font-size: 1.1rem; }
.dropzone small { color: var(--muted-2); }
.dropzone__browse { color: var(--accent); font-weight: 700; text-decoration: underline; }

.privacy-note {
  display: flex; align-items: center; gap: .6rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1rem; padding: .7rem 1rem; border-radius: 12px; text-align: center;
  background: var(--secure-050); color: var(--secure-700); font-weight: 600; font-size: .92rem;
}
.privacy-note svg { width: 18px; height: 18px; flex: 0 0 auto; }
.limits-note { margin-top: .55rem; text-align: center; color: var(--muted-2); font-size: .84rem; }

/* progress */
.progress { margin: 1.2rem 0 .5rem; }
.progress__bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--secure)); transition: width .25s var(--ease-out); }
.progress__label { margin-top: .55rem; text-align: center; color: var(--muted); font-size: .92rem; }

/* state visibility driven by data-state on .tool-card */
[data-state] .state { display: none; }
[data-state="idle"] .state--idle,
[data-state="working"] .state--working,
[data-state="done"] .state--done,
[data-state="error"] .state--error { display: block; }

.result-head { display: flex; align-items: center; gap: .6rem; justify-content: center; margin-bottom: 1rem; color: var(--success); font-weight: 700; }
.result-head svg { width: 22px; height: 22px; }
.error-box { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 12px; background: var(--danger-050); color: var(--danger); font-weight: 600; }
.error-box svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.reset-link { display: inline-block; margin-top: 1rem; color: var(--muted); font-weight: 600; text-decoration: underline; }

/* before / after compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.compare figure { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .7rem; text-align: center; }
.compare img { width: 100%; height: 180px; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#e9edf5 0% 25%, #ffffff 0% 50%) 50% / 20px 20px; }
.compare figcaption { margin-top: .5rem; font-size: .86rem; color: var(--muted); }
.compare figcaption b { display: block; font-size: 1.05rem; color: var(--text); }
.saving-tag { display: inline-block; margin-top: .4rem; font-weight: 800; color: var(--success); }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } .compare img { height: 150px; } }

/* file rows (batch) */
.file-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-top: .6rem; }
.file-row__thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; border: 1px solid var(--border); }
.file-row__body { flex: 1 1 auto; min-width: 0; }
.file-row__name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row__meta { font-size: .8rem; color: var(--muted-2); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: background .18s, color .18s, border-color .18s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.is-danger:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.drag-handle { cursor: grab; touch-action: none; }
.file-row.is-dragging { opacity: .5; }

/* thumbnail grid (pdf editor, pdf->jpg) */
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .9rem; margin-top: 1rem; }
.page-thumb { position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.page-thumb canvas, .page-thumb img { width: 100%; height: auto; background: #fff; transition: transform .25s var(--ease-out); }
.page-thumb.is-removed { opacity: .35; filter: grayscale(1); }
.page-thumb__num { position: absolute; top: 6px; left: 6px; background: rgba(20,26,40,.72); color: #fff; font-size: .72rem; font-weight: 700; padding: .12rem .45rem; border-radius: 6px; }
.page-thumb__actions { display: flex; gap: .35rem; padding: .45rem; border-top: 1px solid var(--border); }
.page-thumb__actions .icon-btn { width: 100%; height: 32px; }
.page-thumb__sel { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; }

/* controls */
.control-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1.1rem 0; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label { font-weight: 700; font-size: .86rem; color: var(--muted); }
.field input[type="number"], .field input[type="text"], .field select {
  padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); min-width: 90px;
}
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); cursor: pointer; }
.slider-wrap { display: flex; align-items: center; gap: 1rem; }
.slider-wrap output { font-weight: 800; min-width: 3.2em; text-align: right; color: var(--accent); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 4px; gap: 3px; }
.seg button { padding: .45rem .9rem; border-radius: 8px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.checkbox { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.preview-stage { position: relative; margin-top: 1rem; border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface) 0% 50%) 50% / 22px 22px; border: 1px solid var(--border); }
.preview-stage img, .preview-stage canvas { margin-inline: auto; }

/* recortar */
.crop-wrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.crop-wrap img { max-height: 62vh; width: auto; max-width: 100%; user-select: none; -webkit-user-drag: none; }
.crop-box { position: absolute; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(10,14,25,.5); cursor: move; touch-action: none; }
.crop-h { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--accent); border-radius: 50%; touch-action: none; }
.crop-h.tl { left: -9px; top: -9px; cursor: nwse-resize; }
.crop-h.tr { right: -9px; top: -9px; cursor: nesw-resize; }
.crop-h.bl { left: -9px; bottom: -9px; cursor: nesw-resize; }
.crop-h.br { right: -9px; bottom: -9px; cursor: nwse-resize; }

/* =============================================================
   8. Homepage
   ============================================================= */
.home-hero { text-align: center; padding: clamp(40px, 7vw, 92px) 0 clamp(20px, 3vw, 40px); }
.home-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.home-hero .grad { background: linear-gradient(120deg, var(--accent), var(--secure)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero p { max-width: 640px; margin: 1.1rem auto 0; color: var(--muted); font-size: 1.15rem; }
.home-hero .home-badges { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

.cat-block { margin-top: clamp(30px, 5vw, 52px); }
.cat-block__head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.cat-block__head h2 { font-size: 1.5rem; }
.cat-block__head .cat-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-050); color: var(--accent); }
.cat-block__head .cat-ico svg { width: 22px; height: 22px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tool-tile {
  position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}
.tool-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.tool-tile__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, var(--accent-050), var(--secure-050)); color: var(--accent); }
.tool-tile__ico svg { width: 26px; height: 26px; }
.tool-tile h3 { font-size: 1.14rem; }
.tool-tile p { color: var(--muted); font-size: .93rem; line-height: 1.5; flex: 1 1 auto; }
.tool-tile .go { color: var(--accent); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.tool-tile__star { position: absolute; top: 1rem; right: 1rem; }

/* =============================================================
   9. Content sections
   ============================================================= */
.section { padding: clamp(30px, 5vw, 56px) 0; }
.section h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.section h2.center { text-align: center; }
.section .lead { color: var(--muted); max-width: 720px; margin-top: .6rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 800; margin-bottom: .8rem; }
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .94rem; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.usecases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.usecase { display: flex; gap: .8rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.usecase__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--secure-050); color: var(--secure-700); flex: 0 0 auto; }
.usecase__ico svg { width: 21px; height: 21px; }
.usecase h3 { font-size: 1rem; margin-bottom: .2rem; }
.usecase p { color: var(--muted); font-size: .9rem; }

.prose { max-width: 760px; }
.prose p { margin-top: 1rem; color: var(--muted); }
.prose h3 { margin-top: 1.7rem; font-size: 1.2rem; }

.faq { max-width: 800px; margin-top: 1.2rem; }
.faq details { border: 1px solid var(--border); border-radius: 13px; background: var(--surface); margin-top: .7rem; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 1.2rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 1.2rem 1.15rem; color: var(--muted); }

/* related */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.3rem; }

/* layout with sidebar */
.tool-layout { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (min-width: 1024px) { .tool-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.tool-aside { display: flex; flex-direction: column; gap: 1.2rem; }
@media (min-width: 1024px) { .tool-aside { position: sticky; top: 84px; } }

/* =============================================================
   10. Ad slots (placeholders)
   ============================================================= */
.ad-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: 13px; background: var(--surface-2);
  color: var(--muted-2); font-size: .72rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase;
}
.ad-slot::before { content: "Anuncio"; }
.ad-slot--leader { min-height: 100px; margin: 1.6rem 0; }
.ad-slot--incontent { min-height: 250px; margin: 2rem 0; }
.ad-slot--rect { min-height: 250px; }
@media (min-width: 1024px) { .ad-slot--rect { min-height: 600px; } }

/* =============================================================
   11. Footer
   ============================================================= */
.site-footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--border); background: var(--surface); }
.site-footer__inner { padding: clamp(30px, 5vw, 52px) 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--display); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: .9rem; }
.site-footer a { color: var(--muted); font-size: .93rem; display: block; padding: .22rem 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer__brand p { color: var(--muted); font-size: .93rem; margin-top: .7rem; max-width: 34ch; }
.site-footer__legal { border-top: 1px solid var(--border); padding: 1.1rem 0; text-align: center; color: var(--muted-2); font-size: .84rem; }
.site-footer__legal .credits { margin-top: .3rem; font-size: .78rem; }
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* =============================================================
   12. Cookie banner
   ============================================================= */
.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  width: min(680px, calc(100% - 24px)); z-index: 300;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem;
  transition: transform .4s var(--ease-out); opacity: 0;
}
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie-banner p { flex: 1 1 260px; font-size: .9rem; color: var(--muted); }
.cookie-banner p a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; margin-left: auto; }

/* =============================================================
   13. Utility / motion
   ============================================================= */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.hidden { display: none !important; }
.mt-2 { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

noscript .noscript-note {
  display: block; margin-top: 1rem; padding: 1rem; border-radius: 12px;
  background: var(--danger-050); color: var(--danger); font-weight: 600; text-align: center;
}
