/* =============================================================
   PixelDune — hoja de estilos única
   1 Tokens · 2 Reset · 3 Utilidades · 4 Botones · 5 Fondo espacial
   6 Cabecera · 7 Hero · 8 Tool card · 9 Dropzone · 10 Editor
   11 Controles · 12 Resultado / comparador · 13 Anuncios
   14 Contenido · 15 Ejemplos · 16 FAQ · 17 Más herramientas
   18 Footer · 19 Consentimiento · 20 Horizonte pixelado
   21 Responsive · 22 Reduced-motion
   ============================================================= */

/* ===================== 1. TOKENS ===================== */
:root {
  --space-deep: #0a0618;
  --space-violet: #3a1660;
  --space-magenta: #8c2f6b;
  --sunset-orange: #ff6a3d;
  --sunset-gold: #ffb347;
  --ground-dark: #140a24;

  --bg: var(--ground-dark);
  --surface: #170f2c;
  --surface-translucent: rgba(24, 15, 46, .78);
  --surface-2: #1f1440;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);

  --ink: #f7f1ff;
  --ink-2: #d3c4ee;
  --muted: #9d8cc4;

  --accent: #ff7a45;
  --accent-dark: #e0592a;
  --accent-ink: #200d00;
  --accent-soft: rgba(255, 122, 69, .16);
  --accent-2: #ff4fa3;
  --accent-3: #ffcf5c;
  --ok: #7dffc4;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 16px 34px -16px rgba(0, 0, 0, .55), 0 3px 10px -3px rgba(0, 0, 0, .4);
  --shadow-lg: 0 34px 68px -24px rgba(0, 0, 0, .65), 0 10px 24px -10px rgba(0, 0, 0, .45);
  --glow-accent: 0 0 0 1px rgba(255, 122, 69, .3), 0 12px 30px -10px rgba(255, 122, 69, .45);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", var(--sans);
  --pixel: "Silkscreen", "JetBrains Mono", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1080px;
  --space-5: 3.5rem;
}

/* ===================== 2. RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; letter-spacing: -.01em; font-weight: 700; font-family: var(--display); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; border-radius: 6px; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ===================== 3. UTILIDADES ===================== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.container + .container { margin-top: var(--space-5); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.section-kicker {
  display: block; font-family: var(--pixel); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent-3); margin-bottom: .7rem;
}
.section-sub { color: var(--ink-2); margin-top: .35rem; margin-bottom: 1.4rem; max-width: 62ch; }
.section-tint { background: color-mix(in srgb, var(--surface) 55%, transparent); border-block: 1px solid var(--line); }
.noscript-note {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--ink-2); margin-bottom: 1rem;
}
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: .5rem; }

/* ===================== 4. BOTONES ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .96rem;
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background .16s var(--ease-out), border-color .16s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,122,69,.4), 0 18px 36px -12px rgba(255,122,69,.55); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent-3); color: var(--accent-3); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; width: 100%; }
.btn-text {
  color: var(--accent-3); font-weight: 600; font-size: .92rem; border-bottom: 1px solid transparent;
  transition: border-color .16s var(--ease-out), color .16s var(--ease-out);
}
.btn-text:hover { border-color: currentColor; color: var(--accent-2); }
.copy-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 8px; color: var(--muted); flex-shrink: 0; border: 1px solid transparent;
}
.copy-btn:hover { color: var(--accent-3); background: var(--surface-2); border-color: var(--line); }
.copy-btn.is-copied { color: var(--ok); }

/* ===================== 5. FONDO ESPACIAL ===================== */
.bg-scene {
  position: fixed; inset: 0; height: 100vh; z-index: -3; pointer-events: none;
  background: linear-gradient(180deg,
    var(--space-deep) 0%,
    var(--space-violet) 38%,
    var(--space-magenta) 58%,
    var(--sunset-orange) 74%,
    var(--ground-dark) 92%);
}
.bg-horizon-glow {
  position: fixed; left: 50%; bottom: 4vh; width: min(90vw, 1200px); height: 40vh;
  transform: translateX(-50%); z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 179, 71, .55), rgba(255, 106, 61, .18) 45%, transparent 75%);
  filter: blur(6px);
}
.bg-planet {
  position: fixed; top: 9vh; right: 8vw; width: clamp(60px, 9vw, 120px); height: clamp(60px, 9vw, 120px);
  border-radius: 50%; z-index: -2; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, #ffe3b0, #ffb347 42%, #b85a2e 78%, #5c2716 100%);
  box-shadow: 0 0 40px rgba(255, 179, 71, .35), inset -10px -8px 20px rgba(0,0,0,.35);
}
.bg-stars {
  position: fixed; inset: 0; height: 100vh; z-index: -2; pointer-events: none; opacity: .85;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 22% 8%, #fff, transparent),
    radial-gradient(1px 1px at 35% 22%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 48% 12%, #fff, transparent),
    radial-gradient(1px 1px at 62% 6%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 75% 18%, #fff, transparent),
    radial-gradient(1px 1px at 85% 10%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 93% 25%, #fff, transparent),
    radial-gradient(1px 1px at 5% 32%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 30%, #fff, transparent),
    radial-gradient(1px 1px at 28% 35%, #fff, transparent),
    radial-gradient(1px 1px at 70% 33%, #fff, transparent);
  animation: starTwinkle 5s ease-in-out infinite alternate;
}
@keyframes starTwinkle { from { opacity: .55; } to { opacity: .95; } }
.bg-mountains { position: fixed; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; width: 100%; height: auto; }
.bg-particles { position: fixed; inset: 0; height: 100vh; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-particle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent-3); opacity: .5;
  animation: particleDrift 14s linear infinite;
}
@keyframes particleDrift {
  from { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .55; }
  90% { opacity: .35; }
  to { transform: translateY(-60px) translateX(12px); opacity: 0; }
}

/* ===================== 6. CABECERA ===================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ground-dark) 72%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--ground-dark); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); flex-shrink: 0;
}
.brand-name { font-size: 1.12rem; font-family: var(--display); color: var(--ink); }
.site-nav { display: none; gap: 1.5rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); align-items: center; }
.site-nav a { padding: .25rem 0; border-bottom: 2px solid transparent; transition: border-color .2s var(--ease-out), color .2s var(--ease-out); }
.site-nav a:hover { color: var(--accent-3); border-bottom-color: var(--accent-3); }
.site-nav .btn { padding: .55rem 1.1rem; font-size: .88rem; }
@media (min-width: 720px) { .site-nav { display: flex; } }

/* ===================== 7. HERO ===================== */
.hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) 2rem; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); max-width: 18ch; color: var(--ink); }
.hero h1 .hero-accent { color: var(--accent); }
.hero-sub { margin-top: 1.1rem; color: var(--ink-2); max-width: 58ch; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.hero-privacy-note { margin-top: 1rem; color: var(--muted); font-size: .88rem; font-family: var(--mono); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; }
.hero-fact { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.hero-fact svg { color: var(--ok); flex-shrink: 0; }

/* ===================== 8. TOOL CARD ===================== */
.tool-card {
  background: var(--surface-translucent); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.2vw, 2rem); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
@supports (backdrop-filter: blur(1px)) {
  .tool-card { backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
}
.tool-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
}
.tool-card [data-panel] { display: none; }
.tool-card[data-state="idle"] [data-panel="upload"] { display: block; }
.tool-card[data-state="editor"] [data-panel="editor"],
.tool-card[data-state="working"] [data-panel="editor"],
.tool-card[data-state="done"] [data-panel="editor"] { display: block; }
.tool-card[data-state="working"] [data-panel="working"] { display: block; }
.tool-card[data-state="done"] [data-panel="result"] { display: block; }
.tool-card[data-state="error"] [data-panel="error"] { display: block; }

/* ===================== 9. DROPZONE ===================== */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: .9rem; padding: clamp(2.5rem, 8vw, 4.5rem) 1.5rem; border-radius: var(--radius);
  border: 2px dashed var(--line-strong); background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out);
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); flex-shrink: 0;
}
.dropzone-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.dropzone-sub { color: var(--muted); font-size: .92rem; }
.dropzone-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.dropzone-formats { margin-top: .3rem; color: var(--muted); font-size: .78rem; font-family: var(--mono); }

/* ===================== 10. EDITOR ===================== */
.editor-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.editor-preview {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: repeating-conic-gradient(#241a3d 0% 25%, #1a1230 0% 50%) 50% / 18px 18px;
  aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.editor-preview img { width: 100%; height: 100%; object-fit: contain; }
.file-meta { margin-top: .55rem; color: var(--muted); font-size: .82rem; font-family: var(--mono); }
.editor-actions { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* ===================== 11. CONTROLES ===================== */
.controls { display: grid; gap: 1.4rem; }
.control-group { display: grid; gap: .6rem; }
.control-label { font-size: .84rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
.control-label .slider-value { font-family: var(--mono); color: var(--accent-3); font-weight: 700; }

.pixel-size-group, .palette-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.pixel-size-btn {
  min-width: 46px; padding: .5rem .7rem; border-radius: var(--radius-sm); font-family: var(--pixel); font-size: .8rem;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink-2);
  transition: border-color .16s var(--ease-out), color .16s var(--ease-out), background .16s var(--ease-out);
}
.pixel-size-btn:hover { border-color: var(--accent-3); color: var(--ink); }
.pixel-size-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.palette-btn {
  display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem .5rem .5rem; border-radius: 999px;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 600;
  transition: border-color .16s var(--ease-out), color .16s var(--ease-out);
}
.palette-btn:hover { border-color: var(--accent-3); color: var(--ink); }
.palette-btn.is-active { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.palette-swatch { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--line-strong); }

.slider-row input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: var(--surface-2); outline: none;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--ground-dark); box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer; margin-top: -1px;
}
.slider-row input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ground-dark);
  box-shadow: 0 0 0 1px var(--accent); cursor: pointer;
}

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.toggle-row .control-label { margin: 0; }
.toggle-desc { color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.toggle-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line);
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out);
}
.toggle-track::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--ink-2); transition: transform .18s var(--ease-out), background .18s var(--ease-out);
}
.toggle-switch input:checked ~ .toggle-track { background: var(--accent-soft); border-color: var(--accent); }
.toggle-switch input:checked ~ .toggle-track::before { transform: translateX(20px); background: var(--accent); }
.toggle-switch input:focus-visible ~ .toggle-track { outline: 2px solid var(--accent-3); outline-offset: 2px; }

.generate-btn { margin-top: .4rem; }
.working-panel {
  display: flex; align-items: center; justify-content: center; gap: .9rem; padding: 2.5rem 1rem; flex-direction: column;
  color: var(--ink-2); text-align: center;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.working-label { font-family: var(--pixel); font-size: .82rem; letter-spacing: .03em; color: var(--accent-3); }

.privacy-badge { display: flex; align-items: center; gap: .55rem; margin-top: 1.5rem; color: var(--ok); font-size: .88rem; font-weight: 600; }
.privacy-badge svg { flex-shrink: 0; }
.honest-limit { margin-top: .5rem; color: var(--muted); font-size: .82rem; max-width: 68ch; }

.error-panel { text-align: center; padding: 2.25rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.error-panel svg { color: var(--accent-2); }
.error-text { color: var(--ink-2); max-width: 46ch; }

/* ===================== 12. RESULTADO / COMPARADOR ===================== */
.result-panel { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.result-heading { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem; color: var(--ink); }
.compare { display: grid; gap: .75rem; }
.compare-figure {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: repeating-conic-gradient(#241a3d 0% 25%, #1a1230 0% 50%) 50% / 18px 18px; aspect-ratio: 4 / 3;
}
.compare-figure img, .compare-figure canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare-figure canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
.compare-after-wrap {
  position: absolute; inset: 0; overflow: hidden; --pos: 50%;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--accent-3);
  box-shadow: 0 0 10px rgba(255, 207, 92, .7); transform: translateX(-1px); pointer-events: none;
}
.compare-divider::before, .compare-divider::after {
  content: ""; position: absolute; top: 50%; width: 30px; height: 30px; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--accent-3); opacity: 0;
}
.compare-label { position: absolute; top: .6rem; font-family: var(--pixel); font-size: .68rem; padding: .3rem .55rem;
  border-radius: 6px; background: rgba(10, 6, 24, .65); color: var(--ink); pointer-events: none; letter-spacing: .03em; }
.compare-label--before { left: .6rem; }
.compare-label--after { right: .6rem; }
.compare-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0;
}
.compare-range::-webkit-slider-runnable-track { height: 4px; background: var(--line-strong); border-radius: 999px; }
.compare-range::-webkit-slider-thumb {
  -webkit-appearance: none; margin-top: -12px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--ground-dark); box-shadow: 0 0 0 1px var(--accent); cursor: ew-resize;
}
.compare-range::-moz-range-track { height: 4px; background: var(--line-strong); border-radius: 999px; }
.compare-range::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); border: 4px solid var(--ground-dark);
  box-shadow: 0 0 0 1px var(--accent); cursor: ew-resize;
}

.result-actions { margin-top: 1.4rem; display: grid; gap: .8rem; }
.result-actions-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.result-actions-row .btn { flex: 1 1 160px; }
.result-links { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; margin-top: .3rem; }

/* ===================== 13. ANUNCIOS ===================== */
.ad-slot {
  min-height: 90px; display: grid; place-items: center; gap: .2rem;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  color: var(--muted); font-size: .78rem; text-align: center; padding: .75rem;
}
.ad-slot strong { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--pixel); }
.ad-slot--infeed { min-height: 250px; }

/* ===================== 14. CONTENIDO ===================== */
.prose-section { padding-block: clamp(2.5rem, 5.5vw, 3.75rem); }
.prose-section h2 { color: var(--ink); }
.prose-section p { color: var(--ink-2); margin-top: .9rem; max-width: 74ch; }
.how-it-works { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: steps; }
.how-it-works li { counter-increment: steps; position: relative; padding-left: 3rem; color: var(--ink-2); }
.how-it-works li::before {
  content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: -.2rem;
  width: 2.1rem; height: 2.1rem; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-3); font-weight: 700; font-family: var(--pixel); font-size: .78rem;
}
.how-it-works strong { color: var(--ink); display: block; margin-bottom: .2rem; }

.privacy-section {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface-translucent); display: flex; gap: 1.25rem; align-items: flex-start;
}
.privacy-section-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm); flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ok), #2fb787); color: #052015;
}
.privacy-section h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.privacy-section p { color: var(--ink-2); }

/* ===================== 15. EJEMPLOS ===================== */
.examples-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.example-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
  transition: transform .18s var(--ease-out), border-color .18s var(--ease-out);
}
.example-card:hover { transform: translateY(-3px); border-color: var(--accent-3); }
.example-mosaic { display: grid; aspect-ratio: 1 / 1; }
.example-mosaic span { display: block; }
.example-name { display: block; text-align: center; padding: .7rem .5rem; font-family: var(--pixel); font-size: .74rem; color: var(--ink); letter-spacing: .02em; }

/* ===================== 16. FAQ ===================== */
.faq-list { display: grid; gap: .6rem; }
.faq-item { background: var(--surface-translucent); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.faq-item summary { font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--accent-3); border-radius: 2px; transition: transform .2s var(--ease-out), opacity .2s var(--ease-out);
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item[open] .faq-icon::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.faq-item p { margin-top: .8rem; color: var(--ink-2); }

/* ===================== 17. MÁS HERRAMIENTAS ===================== */
.more-tools { padding-block: clamp(2.5rem, 5.5vw, 3.75rem); }
.more-tools-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.more-tool-card {
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--surface-translucent); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), transform .18s var(--ease-out);
}
.more-tool-card:hover { border-color: var(--accent-3); transform: translateY(-2px); box-shadow: var(--shadow); }
.more-tool-name { font-weight: 700; font-family: var(--display); font-size: 1rem; color: var(--ink); }
.more-tool-desc { color: var(--muted); font-size: .87rem; }

/* ===================== 18. FOOTER ===================== */
.site-footer { padding-block: 2.25rem; margin-top: var(--space-5); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-brand { color: var(--muted); font-size: .9rem; }
.footer-nav { display: flex; gap: 1.1rem; font-size: .88rem; color: var(--ink-2); flex-wrap: wrap; }
.footer-nav a:hover { color: var(--accent-3); }

/* ===================== 19. CONSENTIMIENTO ===================== */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--space-deep); color: #fff; padding: 1.1rem var(--gutter); border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -12px rgba(0,0,0,.5);
}
.consent-banner[hidden] { display: none; }
.consent-inner {
  max-width: var(--maxw); margin-inline: auto; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 1rem;
}
.consent-text { font-size: .88rem; color: color-mix(in srgb, #fff 82%, transparent); max-width: 62ch; }
.consent-text a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.consent-actions .btn { padding: .6rem 1.05rem; font-size: .86rem; }

/* ===================== 20. HORIZONTE PIXELADO ===================== */
.pixel-horizon { margin-top: 1.75rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pixel-horizon svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }

/* ===================== 21. RESPONSIVE ===================== */
@media (min-width: 720px) {
  .editor-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
  .compare-figure { aspect-ratio: 16 / 10; }
  .editor-preview { aspect-ratio: 16 / 10; }
}
@media (max-width: 539px) {
  .header-inner { height: 56px; }
  .brand-name { font-size: 1rem; }
  .bg-planet { top: 2vh; right: 6vw; width: 48px; height: 48px; }
  .result-actions-row { flex-direction: column; }
  .result-actions-row .btn { flex: 1 1 auto; }
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: stretch; }
  .consent-actions .btn { flex: 1; }
  .privacy-section { flex-direction: column; }
}

/* ===================== 22. REDUCED-MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-stars { animation: none; opacity: .8; }
  .bg-particles { display: none; }
  .spinner { animation-duration: 1.4s; }
}
