/* Herramientas — pensada para alguien que no quiere pelear con la computadora:
   letra grande y legible (Atkinson Hyperlegible), un solo acento (cobre), botones
   enormes, y nada que se mueva. Claro y oscuro. */
:root {
  --fondo: #f4f3ee; --superficie: #ffffff; --superficie-2: #e9e7df;
  --texto: #1b1a17; --texto-suave: #5f5b52; --borde: #d6d2c6;
  --acento: #b4531f; --acento-suave: #f6e3d7; --sobre-acento: #ffffff;
  --neg: #a83f3f; --pos: #2f7a52;
  --sombra: 0 1px 2px rgba(30, 25, 15, 0.05), 0 6px 18px rgba(30, 25, 15, 0.08);
  --f: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #121311; --superficie: #1c1d1a; --superficie-2: #161714;
    --texto: #f1efe8; --texto-suave: #a39e92; --borde: #33342f;
    --acento: #e0844f; --acento-suave: #3a2418; --sobre-acento: #121311;
    --neg: #e08078; --pos: #5cc088;
    --sombra: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --fondo: #121311; --superficie: #1c1d1a; --superficie-2: #161714;
  --texto: #f1efe8; --texto-suave: #a39e92; --borde: #33342f;
  --acento: #e0844f; --acento-suave: #3a2418; --sobre-acento: #121311;
  --neg: #e08078; --pos: #5cc088;
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--texto); font-family: var(--f);
  font-size: 18px; line-height: 1.5; padding: 0 16px 40px; min-height: 100vh;
}
a { color: var(--acento); }
h1 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 18px; text-wrap: balance; }
h2 { font-size: 1.4rem; margin: 0 0 6px; }
.mini { font-size: 0.92rem; color: var(--texto-suave); }

.cabecera { max-width: 860px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; }
.marca { font-weight: 700; font-size: 1.15rem; color: var(--texto); text-decoration: none; letter-spacing: 0.01em; }
.cabecera form { margin: 0; }
button.enlace { background: none; border: 1px solid var(--borde); color: var(--texto-suave); font: inherit; font-size: 0.95rem; padding: 6px 14px; border-radius: 10px; cursor: pointer; }
button.enlace:hover { color: var(--texto); border-color: var(--texto-suave); }

.pagina { max-width: 860px; margin: 10px auto 0; }
.herramientas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 26px; }
.herramienta {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; min-height: 96px;
  background: var(--superficie); border: 2px solid var(--borde); border-radius: 16px;
  color: var(--texto); text-decoration: none; box-shadow: var(--sombra);
}
.herramienta strong { font-size: 1.12rem; }
.herramienta span { font-size: 0.95rem; color: var(--texto-suave); }
.herramienta em { font-size: 0.85rem; color: var(--neg); font-style: normal; }
.herramienta:hover { border-color: var(--acento); }
.herramienta.elegida { border-color: var(--acento); background: var(--acento-suave); }
.herramienta.apagada { opacity: 0.6; }
.herramienta:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }

.trabajo { background: var(--superficie); border: 1px solid var(--borde); border-radius: 20px; padding: 24px 22px 26px; box-shadow: var(--sombra); scroll-margin-top: 16px; }
.trabajo > p { margin: 0 0 18px; color: var(--texto-suave); }
.zona {
  display: block; position: relative; cursor: pointer; border: 3px dashed var(--borde); border-radius: 16px;
  padding: 34px 20px; text-align: center; background: var(--fondo); transition: border-color .12s, background .12s;
}
.zona:hover, .zona.arrastrando { border-color: var(--acento); background: var(--acento-suave); }
.zona.con-archivo { border-style: solid; border-color: var(--pos); }
.zona input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.zona-texto { display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.zona-texto strong { font-size: 1.25rem; }
.zona-texto span { color: var(--texto-suave); font-size: 0.95rem; overflow-wrap: anywhere; }
button.grande {
  display: block; width: 100%; margin-top: 16px; padding: 18px; font: inherit; font-size: 1.25rem; font-weight: 700;
  background: var(--acento); color: var(--sobre-acento); border: none; border-radius: 14px; cursor: pointer; min-height: 60px;
}
button.grande:hover { filter: brightness(1.06); }
button.grande:disabled { opacity: 0.7; cursor: wait; }
button.grande:focus-visible { outline: 3px solid var(--texto); outline-offset: 3px; }
#estado { margin: 12px 0 0; text-align: center; }

.avisos { max-width: 860px; margin: 8px auto 0; }
.aviso { padding: 12px 16px; border-radius: 12px; background: var(--superficie-2); border: 1px solid var(--borde); margin: 0 0 10px; }
.aviso.error { border-color: var(--neg); color: var(--neg); background: color-mix(in srgb, var(--neg) 8%, var(--superficie)); }
.aviso.ok { border-color: var(--pos); color: var(--pos); }

.login { display: flex; justify-content: center; padding-top: 8vh; }
.tarjeta-login { width: 100%; max-width: 400px; background: var(--superficie); border: 1px solid var(--borde); border-radius: 20px; padding: 28px 26px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 14px; }
.tarjeta-login h1 { margin: 0; font-size: 1.6rem; }
.tarjeta-login .mini { margin: -6px 0 4px; }
.tarjeta-login label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.95rem; }
.tarjeta-login input { font: inherit; font-size: 1.1rem; padding: 12px 14px; border: 2px solid var(--borde); border-radius: 12px; background: var(--fondo); color: var(--texto); }
.tarjeta-login input:focus { outline: none; border-color: var(--acento); }
.tarjeta-login button { padding: 14px; font: inherit; font-size: 1.1rem; font-weight: 700; background: var(--acento); color: var(--sobre-acento); border: none; border-radius: 12px; cursor: pointer; }

.pie { max-width: 860px; margin: 30px auto 0; color: var(--texto-suave); font-size: 0.9rem; text-align: center; }
@media (prefers-reduced-motion: reduce) { .zona { transition: none; } }
