/* =============================================================
   FotoPrivada - hoja de estilos unica
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografia
   5. Componentes · 6. Herramienta · 7. Secciones · 8. Anuncios
   9. Responsive · 10. Movimiento reducido
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --paper: #ffffff;
  --surface: #f5f8f8;
  --surface-2: #eaf1f0;
  --ink: #0c1a1d;
  --ink-soft: #47595d;
  --ink-mute: #78898d;
  --line: #dde7e6;
  --line-strong: #c6d6d4;

  --accent: #0e8a72;
  --accent-ink: #0a6a58;
  --accent-soft: #e2f4ef;

  --warn: #a8560a;
  --warn-soft: #fdf1e0;
  --warn-line: #f0cf9e;

  --danger: #b3261e;
  --danger-soft: #fdecea;
  --danger-line: #f2c2bd;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;

  --shadow-s: 0 1px 2px rgba(12, 26, 29, .05);
  --shadow: 0 2px 4px rgba(12, 26, 29, .04), 0 8px 24px rgba(12, 26, 29, .06);
  --shadow-l: 0 4px 8px rgba(12, 26, 29, .05), 0 20px 48px rgba(12, 26, 29, .10);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", var(--sans);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

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

  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1120px;
  --maxw-narrow: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1315;
    --surface: #111a1d;
    --surface-2: #17242a;
    --ink: #e7f0f0;
    --ink-soft: #a5b8bb;
    --ink-mute: #7a8f93;
    --line: #223337;
    --line-strong: #2f454a;

    --accent: #34c0a0;
    --accent-ink: #5ad4b7;
    --accent-soft: #0e2f29;

    --warn: #e0a55c;
    --warn-soft: #2c2113;
    --warn-line: #4a3a1e;

    --danger: #f08b83;
    --danger-soft: #2e1614;
    --danger-line: #4d2723;

    --shadow-s: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-l: 0 4px 8px rgba(0, 0, 0, .3), 0 20px 48px rgba(0, 0, 0, .45);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { 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, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
::selection { background: var(--accent); color: #fff; }

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

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw-narrow); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--accent); color: #fff;
  border-radius: var(--radius-s); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.hide { display: none !important; }

/* =============================================================
   4. Tipografia
   ============================================================= */
.eyebrow {
  display: block; font-family: var(--sans);
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-ink);
}
.h1 { font-size: clamp(1.9rem, 1.25rem + 2.6vw, 3rem); }
.h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2rem); }
.h3 { font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem); }
.lead { font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem); color: var(--ink-soft); }
.muted { color: var(--ink-mute); font-size: .875rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.prose h3 { margin: 1.75rem 0 .6rem; color: var(--ink); }
.prose ul { margin: 0 0 1rem 1.15rem; color: var(--ink-soft); }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* Ficha de datos del titular (paginas legales): etiquetas alineadas en columna */
.legal-id {
  display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem;
  margin: 0 0 1.5rem; padding: 1.1rem 1.25rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.legal-id dt {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-mute); padding-top: .18rem;
}
.legal-id dd { margin: 0; color: var(--ink); line-height: 1.5; }
.legal-id dd a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 539.98px) {
  .legal-id { grid-template-columns: 1fr; gap: .15rem; }
  .legal-id dd { margin-bottom: .7rem; }
  .legal-id dd:last-child { margin-bottom: 0; }
}

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- Cabecera --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 62px; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 1.06rem;
}
/* El simbolo va en el verde de la marca, igual que en el logo oficial. */
.brand svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.brand i { font-style: normal; color: var(--accent); }
.site-nav { margin-left: auto; min-width: 0; }
.site-nav ul {
  display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a {
  display: block; padding: .45rem .68rem; border-radius: var(--radius-s); white-space: nowrap;
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.15rem; border-radius: var(--radius-s);
  font-weight: 600; font-size: .95rem; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out),
              transform .18s var(--ease-out), opacity .18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--accent-ink); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover:not([disabled]) { background: var(--surface-2); }
.btn-quiet {
  background: none; color: var(--ink-soft); padding: .4rem .6rem; font-weight: 500;
  font-size: .875rem; text-decoration: underline; text-underline-offset: 3px;
}
.btn-quiet:hover { color: var(--ink); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* --- Insignia de privacidad --- */
.privacy-badge {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .85rem 1rem; border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent-ink); font-size: .9rem; line-height: 1.5;
}
.privacy-badge svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.privacy-badge strong { font-weight: 700; }
.privacy-badge p { margin: 0; }

/* --- Avisos --- */
.notice {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .8rem .95rem; border-radius: var(--radius-s);
  font-size: .875rem; line-height: 1.5; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-soft);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice-warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.notice-danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.notice strong { font-weight: 700; }

/* =============================================================
   6. La herramienta (tarjeta, estados, resultados)
   ============================================================= */
.tool-wrap { padding: clamp(1.5rem, 1rem + 3vw, 3rem) 0 0; }
.tool-head { text-align: center; margin-bottom: 1.5rem; }
.tool-head .h1 { margin: .5rem 0 .6rem; }
.tool-head .lead { max-width: 46rem; margin-inline: auto; }

.tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: clamp(1rem, .7rem + 1.4vw, 1.75rem);
}
.tool-card + .privacy-badge { margin-top: 1rem; }

/* Estados: una sola propiedad data-state gobierna la tarjeta */
.tool-card [data-when] { display: none; }
.tool-card[data-state="idle"]    [data-when~="idle"],
.tool-card[data-state="engine"]  [data-when~="engine"],
.tool-card[data-state="working"] [data-when~="working"],
.tool-card[data-state="done"]    [data-when~="done"],
.tool-card[data-state="error"]   [data-when~="error"] { display: block; }
.tool-card[data-state="done"]    [data-when~="done"].is-flex,
.tool-card[data-state="idle"]    [data-when~="idle"].is-flex { display: flex; }

/* --- Zona de arrastre --- */
.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; text-align: center;
  min-height: 210px; padding: 1.75rem 1.25rem;
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out);
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); border-style: solid; }
.dropzone-icon {
  width: 46px; height: 46px; color: var(--accent);
}
.dropzone-title { font-family: var(--display); font-weight: 700; font-size: 1.06rem; }
.dropzone-hint { font-size: .875rem; color: var(--ink-mute); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* --- Opciones --- */
.options { display: grid; gap: .9rem; margin-top: 1.1rem; }
.option-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem;
  padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface);
}
.option-row > label:first-child { font-weight: 600; font-size: .9rem; min-width: 8.5rem; }
.option-row input[type="range"] { flex: 1 1 160px; accent-color: var(--accent); min-width: 130px; }
.option-row select, .option-row input[type="number"], .option-row input[type="text"] {
  padding: .5rem .65rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--paper); font-size: .9rem; min-width: 6rem;
}
.option-row output { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; color: var(--accent-ink); min-width: 3.5rem; }
.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface-2); border-radius: var(--radius-s); }
.seg button {
  padding: .42rem .8rem; border-radius: 6px; font-size: .875rem; font-weight: 600;
  color: var(--ink-soft); transition: background .16s var(--ease-out), color .16s var(--ease-out);
}
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--accent-ink); box-shadow: var(--shadow-s); }

/* --- Progreso --- */
.progress-block { text-align: center; padding: 1.5rem .5rem; }
.progress-label { font-weight: 600; margin-bottom: .8rem; }
.progress-sub { font-size: .85rem; color: var(--ink-mute); margin-top: .7rem; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 99px; transition: width .25s var(--ease-soft); }

/* --- Lista de archivos --- */
.file-list { display: grid; gap: .7rem; margin-top: 1rem; }
.file-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: .9rem;
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
}
.file-thumb {
  width: 56px; height: 56px; border-radius: 6px; object-fit: cover;
  background: var(--surface-2); border: 1px solid var(--line);
}
.file-thumb-ph {
  width: 56px; height: 56px; border-radius: 6px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-mute);
  font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-align: center; line-height: 1.1;
}
.file-meta { min-width: 0; }
.file-name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { font-size: .8rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.file-sub .arrow { color: var(--ink-mute); margin: 0 .3rem; }
.file-sub .after { color: var(--accent-ink); font-weight: 600; }
.file-sub .saved { color: var(--accent-ink); font-weight: 700; }
.file-sub .grew { color: var(--warn); font-weight: 700; }
.file-actions { display: flex; align-items: center; gap: .4rem; }
.file-row .bar { grid-column: 1 / -1; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-soft);
  transition: background .16s var(--ease-out), color .16s var(--ease-out);
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* --- Comparativa antes / despues --- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.compare figure {
  margin: 0; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); text-align: center;
}
.compare figure.is-after { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.compare img { width: 100%; height: 170px; object-fit: contain; border-radius: 6px; background: var(--surface-2); }
.compare .ph {
  width: 100%; height: 170px; border-radius: 6px; background: var(--surface-2);
  display: grid; place-items: center; padding: 1rem; text-align: center;
  color: var(--ink-mute); font-size: .8rem; line-height: 1.4;
}
.compare figcaption { margin-top: .55rem; font-size: .8rem; }
.compare .cap-label { display: block; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .7rem; color: var(--ink-mute); }
.compare .is-after .cap-label { color: var(--accent-ink); }
.compare .cap-size { font-variant-numeric: tabular-nums; font-weight: 600; }

/* --- Resultado --- */
.result-head { text-align: center; margin-bottom: 1rem; }
.result-badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem;
  border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: .82rem; font-weight: 700;
}
.result-badge svg { width: 15px; height: 15px; }
.result-headline { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); margin-top: .6rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.1rem; }
.reset-row { text-align: center; margin-top: .9rem; }

/* --- Panel EXIF --- */
.exif-alert {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--danger-soft); border: 1px solid var(--danger-line); color: var(--danger);
  margin-bottom: 1rem;
}
.exif-alert svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.exif-alert-title { font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.exif-alert p { font-size: .88rem; margin-top: .3rem; line-height: 1.5; }
.exif-alert a { color: inherit; text-decoration: underline; font-weight: 700; text-underline-offset: 2px; }
.exif-clean {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent-ink); margin-bottom: 1rem;
}
.exif-clean svg { width: 24px; height: 24px; flex: none; }
.exif-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.exif-table caption {
  text-align: left; font-family: var(--display); font-weight: 800; font-size: 1rem;
  color: var(--ink); padding-bottom: .5rem;
}
.exif-table th, .exif-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.exif-table th { font-weight: 600; color: var(--ink-mute); width: 42%; font-size: .82rem; }
.exif-table td { color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.exif-table tr.is-risk th, .exif-table tr.is-risk td { color: var(--danger); font-weight: 600; }
.exif-empty { padding: 1rem; text-align: center; color: var(--ink-mute); font-size: .875rem; }
.exif-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.exif-preview img { width: 100%; max-height: 260px; object-fit: contain; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line); }

/* --- Recorte para redes --- */
.crop-layout { display: grid; gap: 1.1rem; }
.crop-stage {
  position: relative; width: 100%; max-width: 460px; margin-inline: auto;
  background: var(--surface-2); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); touch-action: none; cursor: grab; user-select: none;
}
.crop-stage.is-dragging { cursor: grabbing; }
.crop-stage img { position: absolute; top: 0; left: 0; max-width: none; will-change: transform; pointer-events: none; }
.crop-frame-label {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  padding: .22rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 700;
  background: rgba(8, 20, 22, .74); color: #fff; font-variant-numeric: tabular-nums;
  pointer-events: none; letter-spacing: .02em;
}
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: .5rem; }
.format-btn {
  display: flex; flex-direction: column; gap: .15rem; align-items: flex-start;
  padding: .6rem .7rem; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: var(--surface); text-align: left;
  transition: border-color .16s var(--ease-out), background .16s var(--ease-out);
}
.format-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.format-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.format-net { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); }
.format-btn[aria-pressed="true"] .format-net { color: var(--accent-ink); }
.format-name { font-size: .875rem; font-weight: 600; line-height: 1.2; }
.format-size { font-size: .75rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.format-group { margin-bottom: .9rem; }
.format-group > h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: .45rem; font-family: var(--sans); font-weight: 700; }

/* =============================================================
   7. Secciones de contenido
   ============================================================= */
.section { padding: clamp(2.25rem, 1.5rem + 3vw, 3.75rem) 0; }
.section-head { margin-bottom: 1.5rem; }
.section-head .h2 { margin-bottom: .45rem; }

/* --- Como funciona (3 pasos) --- */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
.step {
  position: relative; padding: 1.35rem 1.25rem 1.25rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}
.step-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: .85rem;
}
.step-icon svg { width: 22px; height: 22px; }
.step-n {
  position: absolute; top: 1.1rem; right: 1.2rem;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  color: var(--line-strong); line-height: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .9rem; color: var(--ink-soft); }

/* --- Ideas de uso --- */
.uses { display: grid; gap: .8rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
.use {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.1rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.use-mark {
  width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.use-mark svg { width: 17px; height: 17px; }
.use h3 { font-size: .96rem; margin-bottom: .2rem; }
.use p { font-size: .875rem; color: var(--ink-soft); }

/* --- FAQ --- */
.faq { display: grid; gap: .55rem; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s);
  overflow: hidden;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem 1.1rem; cursor: pointer; font-weight: 600; font-size: .95rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details[open] summary { color: var(--accent-ink); }
.faq .faq-body { padding: 0 1.1rem 1.05rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.6; }
.faq .faq-body p + p { margin-top: .7rem; }
.faq .faq-body strong { color: var(--ink); font-weight: 600; }

/* --- Mas herramientas --- */
.tool-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.tool-link {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.1rem 1.15rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.tool-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-link-icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.tool-link-icon svg { width: 21px; height: 21px; }
.tool-link h3 { font-size: 1rem; margin-bottom: .2rem; }
.tool-link p { font-size: .875rem; color: var(--ink-soft); }
.tool-link .go { font-size: .82rem; font-weight: 600; color: var(--accent-ink); margin-top: .45rem; display: inline-block; }

/* --- Portada --- */
.hero { padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); text-align: center; }
.hero .h1 { margin: .7rem auto .8rem; max-width: 20ch; }
.hero .lead { max-width: 44rem; margin-inline: auto; }
.hero-privacy { max-width: 40rem; margin: 1.6rem auto 0; text-align: left; }
.pillars { display: grid; gap: .9rem; grid-template-columns: 1fr; margin-top: 1rem; }
.pillar {
  padding: 1.15rem 1.2rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); text-align: left;
}
.pillar-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: .7rem; }
.pillar-icon svg { width: 19px; height: 19px; }
.pillar h3 { font-size: .98rem; margin-bottom: .25rem; }
.pillar p { font-size: .875rem; color: var(--ink-soft); }

/* =============================================================
   8. Huecos de anuncios (marcadores, sin codigo real)
   ============================================================= */
.ad-slot {
  position: relative; display: grid; place-items: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink-mute);
  margin-inline: auto; overflow: hidden;
}
.ad-slot::before {
  content: "ANUNCIO";
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
}
.ad-leaderboard { min-height: 96px; max-width: 728px; margin-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.ad-incontent { min-height: 250px; max-width: 336px; margin-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

.ad-corner {
  position: fixed; right: 12px; bottom: 12px; z-index: 60;
  width: 232px; max-width: calc(100vw - 24px);
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-l);
  padding: .55rem;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.ad-corner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ad-corner .ad-slot { min-height: 120px; width: 100%; border-radius: 6px; }
.ad-corner-close {
  position: absolute; top: -9px; right: -9px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink-soft);
  box-shadow: var(--shadow-s); font-size: 1rem; line-height: 1;
}
.ad-corner-close:hover { background: var(--surface-2); color: var(--ink); }

/* =============================================================
   Pie
   ============================================================= */
.site-footer {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--line); background: var(--paper);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0 2rem;
}
.footer-top { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.footer-about p { font-size: .875rem; color: var(--ink-soft); margin-top: .7rem; max-width: 34ch; }
.footer-col h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .7rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-col a { font-size: .9rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--ink-mute);
}
.footer-credits { font-size: .78rem; color: var(--ink-mute); line-height: 1.5; }
.footer-credits a { text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   9. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .exif-grid { grid-template-columns: 260px 1fr; align-items: start; }
  .crop-layout { grid-template-columns: minmax(0, 460px) 1fr; align-items: start; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 539.98px) {
  .compare { grid-template-columns: 1fr; }
  .file-row { grid-template-columns: 46px 1fr; }
  .file-thumb, .file-thumb-ph { width: 46px; height: 46px; }
  .file-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .site-nav a { padding: .4rem .55rem; font-size: .85rem; }
  .brand span { display: none; }
}

/* =============================================================
   10. Movimiento reducido: solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ad-corner { transition: opacity .01s linear; transform: none; }
}

/* Sin JavaScript */
.no-js-note {
  padding: 1rem 1.1rem; border-radius: var(--radius-s);
  background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn);
  font-size: .9rem; text-align: center;
}
