/* Audio a texto — papel cuadriculado de tkaed */

:root {
  --paper: #f2f6f3;
  --card: #ffffff;
  --ink: #112a3a;
  --pencil: #4d626e;
  --line: rgba(17, 42, 58, 0.14);
  --amber: #f2b632;
  --amber-soft: rgba(242, 182, 50, 0.32);
  --ok: #2e7d5b;
  --no: #a8324a;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.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; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h2 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

main, .top, .foot { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }
.brand { font-family: var(--serif); font-size: 1.1rem; text-decoration: none; }
.top nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.top nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--amber); }

.intro { padding: 0.6rem 0 1.2rem; max-width: 46rem; }
.intro h1 { font-size: clamp(1.85rem, 6vw, 3.2rem); margin-bottom: 0.5rem; }
.lede { font-size: 1.05rem; color: var(--pencil); max-width: 40rem; margin: 0; }

.tool { background: var(--card); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 7px 7px 0 var(--amber); overflow: hidden; margin-bottom: 2rem; }
.next { background: var(--ink); color: var(--paper); padding: 1rem 1.1rem 1.1rem; }
.next p { margin: 0; }
.next-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.next-date { font-family: var(--serif); font-size: clamp(1.4rem, 4.5vw, 1.9rem); line-height: 1.2; }
.next-what { font-size: 0.98rem; font-weight: 500; opacity: 0.92; }
.tool-body { padding: 1.1rem; }

.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 120px; padding: 0.9rem; cursor: pointer;
  border: 2px dashed var(--ink); border-radius: 6px; background: #fff;
}
.drop:hover, .drop.over { background: var(--amber-soft); }
.drop:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.drop-main { font-weight: 700; font-size: 1.05rem; }
.drop-sub { font-size: 0.88rem; color: var(--pencil); }

/* Opciones */
.opts { border: 0; padding: 0; margin: 1.1rem 0 0; min-width: 0; }
.opts legend { font-weight: 700; font-size: 0.95rem; padding: 0; margin-bottom: 0.4rem; }
.q-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
@media (min-width: 760px) { .q-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.q { display: flex; gap: 0.55rem; align-items: flex-start; cursor: pointer; border: 2px solid var(--line); border-radius: 6px; padding: 0.55rem 0.7rem; background: #fff; }
.q:has(input:checked) { border-color: var(--ink); box-shadow: 3px 3px 0 var(--amber); }
.q input { margin: 0.3rem 0 0; accent-color: var(--ink); width: 1.1rem; height: 1.1rem; flex: none; }
.q b { display: block; font-size: 1rem; }
.q small { display: block; color: var(--pencil); font-size: 0.85rem; line-height: 1.35; }
.q .got { color: var(--ok); font-weight: 700; }
.row-opts { margin-top: 0.8rem; }
.lang { font-size: 0.9rem; font-weight: 700; }
select {
  display: block; font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 4px; padding: 0.35rem 0.5rem; min-height: 42px; margin-top: 0.15rem; min-width: 11rem;
}
.dl-note { font-size: 0.9rem; color: var(--pencil); margin: 0.8rem 0 0; }
.dl-note:empty { display: none; }

/* Lista de audios */
.list { margin-top: 1rem; }
.item { border-top: 2px solid var(--ink); padding: 0.8rem 0 0.9rem; }
.item-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 0.8rem; }
.item-name { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.item-state { font-size: 0.88rem; color: var(--pencil); font-variant-numeric: tabular-nums; }
.item.err .item-state { color: var(--no); font-weight: 500; }
.item.done .item-state { color: var(--ok); font-weight: 700; }
.bar { height: 8px; border: 1.5px solid var(--ink); border-radius: 999px; margin-top: 0.4rem; overflow: hidden; background: #fff; }
.bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width 0.3s; }
.text {
  margin-top: 0.5rem; padding: 0.7rem 0.8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem;
}
.text:empty { display: none; }
.item.busy .text { color: var(--pencil); }
.acts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.mini {
  font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink); cursor: pointer;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; padding: 0.2rem 0.65rem; min-height: 36px;
}
.mini:hover, .mini:focus-visible { background: var(--amber-soft); }

.all { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.btn-out {
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; min-height: 40px;
  background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 0.35rem 0.9rem; box-shadow: 3px 3px 0 var(--amber);
}
.btn-out:hover, .btn-out:focus-visible { background: var(--amber-soft); }
.btn-link { font: inherit; background: none; border: 0; padding: 0.6rem 0.2rem; cursor: pointer; color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.space { margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--pencil); }
.space .btn-link { font-size: 0.85rem; padding: 0.3rem 0; }

.ad-slot { min-height: 90px; margin: 2rem 0; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 4px; color: rgba(77, 98, 110, 0.55); font-size: 0.8rem; }

.how, .seo, .faq { max-width: 46rem; margin: 3rem 0; }
.how h2, .faq h2 { margin-bottom: 1rem; }
.how .h-lim { margin-top: 2rem; }
.seo h2 { margin: 1.8rem 0 0.8rem; }
.seo h2:first-child { margin-top: 0; }
.steps, .lims { padding-left: 1.4rem; margin: 0; }
.steps li, .lims li { margin-bottom: 0.8rem; padding-left: 0.3rem; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0.6rem 0 0; color: var(--pencil); }

.foot { padding: 2rem 0 3rem; border-top: 2px solid var(--ink); color: var(--pencil); font-size: 0.9rem; }
.foot p { margin: 0; }
.noscript { background: var(--amber); padding: 1rem; text-align: center; margin: 0; }

@media (max-width: 420px) {
  .top nav a[href="#como-funciona"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bar i { transition: none; } }

/* Escondido hasta que AdSense apruebe; entonces borrar esta regla y poner los bloques. */
.ad-slot { display: none !important; }
