/* ──────────────────────────────────────────────────────────────
   Estilos de las páginas de /herramientas/*.
   Tokens IDÉNTICOS a landing-reel-ai.html: mismo sistema, no uno parecido.

   Va en un archivo aparte y no copiado dentro de cada página —como sí hace
   marketing/blog-*.html— porque acá son cuatro páginas: duplicar ~1100 líneas
   de CSS cuatro veces es otra escala de problema. Además el navegador lo
   cachea una vez y sirve para las cuatro, que es justo lo que mide Core Web
   Vitals cuando alguien navega entre ellas.
   ────────────────────────────────────────────────────────────── */

:root {
  --ink-1: #0F172A; --ink-2: #334155; --ink-3: #64748B; --ink-4: #94A3B8;
  --bg: #FAFAF7; --bg-pure: #FFFFFF; --bg-soft: #EFF6FF; --border: #E2E8F0;
  --blue: #004DFF; --blue-dark: #003ECC; --sky: #0EA5E9;
  --green: #22C55E;
  --radius-md: 14px; --radius-lg: 18px; --radius-xl: 22px;
  --shadow-sm: 0 4px 16px rgba(15,23,42,0.06);
  --shadow-md: 0 10px 32px rgba(15,23,42,0.08);
  --section-y: clamp(56px, 7vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.55;
  color: var(--ink-1); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ── Barra superior ─────────────────────────────────────────── */
.top {
  border-bottom: 1px solid var(--border); background: rgba(250,250,247,0.9);
  backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10;
}
.top-in {
  max-width: 860px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.top a.marca { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink-1); font-weight: 800; }
.top a.marca img { height: 26px; width: auto; display: block; }

/* ── Migas: le dicen a Google (y al lector) dónde está parado ── */
.migas { font-size: 0.82rem; color: var(--ink-3); padding: 20px 0 0; }
.migas a { color: var(--ink-3); text-decoration: none; }
.migas a:hover { color: var(--blue); text-decoration: underline; }

/* ── Encabezado ─────────────────────────────────────────────── */
header.hero { padding: 28px 0 var(--section-y); }
h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance;
  margin-bottom: 18px;
}
.entrada { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.entrada strong { color: var(--ink-1); }

/* ── Secciones ──────────────────────────────────────────────── */
section { padding-bottom: var(--section-y); }
h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 16px; text-wrap: balance;
}
h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 7px; }
p { color: var(--ink-2); margin-bottom: 15px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink-1); font-weight: 700; }

ul.lista { list-style: none; display: grid; gap: 13px; margin: 4px 0 20px; }
ul.lista li {
  color: var(--ink-2); padding-left: 27px; position: relative; max-width: 68ch;
}
ul.lista li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 15px; height: 9px; border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}

/* ── Pasos ──────────────────────────────────────────────────── */
ol.pasos { list-style: none; counter-reset: p; display: grid; gap: 20px; }
ol.pasos li { counter-increment: p; padding-left: 48px; position: relative; }
ol.pasos li::before {
  content: counter(p); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-pure); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

/* ── FAQ ────────────────────────────────────────────────────── */
details.faq {
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
details.faq summary {
  font-weight: 800; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq .cuerpo { padding-top: 11px; color: var(--ink-2); max-width: 68ch; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
  background: var(--blue); border-radius: var(--radius-xl);
  padding: 36px 32px; text-align: center; color: #fff;
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,0.88); margin: 0 auto 22px; max-width: 52ch; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: var(--radius-md);
  background: #fff; color: var(--blue);
  font-weight: 800; font-size: 1rem; text-decoration: none;
  box-shadow: var(--shadow-md);
}
.btn:hover { background: #F1F5F9; }
.cta .fino { font-size: 0.83rem; color: rgba(255,255,255,0.78); margin: 14px 0 0; }

/* ── Otras herramientas: enlaza el silo entre sí ────────────── */
.otras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.otras a {
  display: block; padding: 18px 20px; text-decoration: none;
  background: var(--bg-pure); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--ink-1);
  transition: border-color 0.15s, transform 0.15s;
}
.otras a:hover { border-color: var(--blue); transform: translateY(-2px); }
.otras a span { display: block; font-size: 0.86rem; color: var(--ink-3); margin-top: 4px; font-weight: 400; }
.otras a b { font-weight: 800; }

/* ── Pie ────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 26px 0 40px;
  font-size: 0.86rem; color: var(--ink-3);
}
footer a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .otras a { transition: none; }
}
