/* tkaed — portada. Misma familia visual que las herramientas: papel milimetrado, tinta azul, ámbar */

:root {
  --paper: #f2f6f3;
  --card: #ffffff;
  --ink: #112a3a;
  --pencil: #4d626e;
  --line: rgba(17, 42, 58, 0.14);
  --amber: #f2b632;
  --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 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h2 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

main, .top, .foot { width: min(1080px, 100% - 2rem); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.45rem; text-decoration: none; letter-spacing: 0.01em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 4px; background: var(--ink);
  box-shadow: 3px 3px 0 var(--amber);
}
.top nav { display: flex; gap: 1.25rem; font-size: 0.95rem; flex-wrap: wrap; }
.top nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--amber); }

/* Hero */
.hero { padding: 1.5rem 0 1.75rem; max-width: 50rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 0.75rem; }
.lede { font-size: 1.15rem; color: var(--pencil); max-width: 40rem; margin: 0; }

/* Tools */
.tools-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 1rem; margin-bottom: 1.2rem; }
.finder input {
  font: inherit; color: var(--ink); background: var(--card);
  border: 2px solid var(--ink); border-radius: 4px; padding: 0.5rem 0.75rem; width: min(320px, 100%);
}
.finder { flex: 0 1 320px; }
.finder input { width: 100%; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card { min-width: 0; }
.card a {
  display: flex; flex-direction: column; gap: 0.35rem; height: 100%;
  background: var(--card); border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: 6px 6px 0 var(--amber); padding: 1.25rem 1.3rem 1.15rem;
  text-decoration: none; transition: transform 0.12s, box-shadow 0.12s;
}
.card a:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--amber); }
.card-icon { width: 44px; height: 44px; color: var(--ink); margin-bottom: 0.35rem; }
.card-icon svg { width: 100%; height: 100%; display: block; }
.card-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pencil); }
.card-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.card-desc { color: var(--pencil); font-size: 0.95rem; flex: 1; }
.card-go { font-weight: 700; font-size: 0.95rem; margin-top: 0.4rem; }

.card-soon {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--line); border-radius: 6px; padding: 1.5rem; min-height: 180px;
  color: var(--pencil); background: rgba(255, 255, 255, 0.45);
}
.no-results { color: var(--pencil); margin-top: 1rem; }

/* Ad slot placeholder */
.ad-slot {
  min-height: 90px; margin: 2.5rem 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;
}

/* Why */
.why { margin: 3rem 0; }
.why h2 { border-top: 2px solid var(--ink); padding-top: 1rem; margin-bottom: 1.2rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .why-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.why-list li { display: grid; gap: 0.35rem; border-left: 3px solid var(--amber); padding-left: 0.9rem; }
.why-list span { color: var(--pencil); }

/* FAQ */
.faq { max-width: 46rem; margin: 3rem 0; }
.faq h2 { margin-bottom: 1rem; }
.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); }

/* Footer */
.foot { padding: 2rem 0 3rem; border-top: 2px solid var(--ink); color: var(--pencil); font-size: 0.9rem; display: flex; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot strong { color: var(--ink); font-family: var(--serif); font-weight: 400; }

/* Páginas de texto (privacidad, contacto) */
.doc { max-width: 46rem; padding: 1.5rem 0 3rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.doc .updated { color: var(--pencil); font-size: 0.9rem; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.4rem; }
.mail-box {
  display: inline-block; background: var(--card); border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: 6px 6px 0 var(--amber); padding: 1rem 1.3rem; font-size: 1.15rem; font-weight: 700;
  margin: 0.5rem 0 1.5rem; overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card a { transition: none; }
  .card a:hover { transform: none; }
}

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