/* ==========================================================================
   Herramientas IronPower — styles.css
   Paleta de marca: negro + azul IronPower (#1155CC), tipografía con fuerza
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Archivo+Black&display=swap');

:root {
  --bg: #ffffff;
  --ink: #0b0c0e;
  --ink-elev: #16181c;
  --card: #ffffff;
  --border: #e1e4ea;
  --text: #14161a;
  --text-dim: #5b616b;
  --on-ink-dim: #9aa0ab;
  --accent: #1155cc;
  --accent-dim: #0d3f99;
  --accent-contrast: #ffffff;
  --ok: #1a9f57;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --maxw: 880px;
  --display: 'Archivo Black', 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header (negro, tipo marca) ---------- */
.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  max-width: 1100px;
}
.logo {
  font-family: var(--display);
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.25rem; font-size: 0.85rem; font-weight: 600; }
.nav-links a { color: var(--on-ink-dim); }
.nav-links a:hover { color: #fff; text-decoration: none; }

/* ---------- Hero (banda negra) ---------- */
.hero {
  background: var(--ink);
  padding: clamp(2.25rem, 6vw, 4rem) 0 2.5rem;
  border-bottom: 1px solid #232629;
}
.hero .wrap { max-width: 1100px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 0.6rem;
  line-height: 1.05;
}
.hero p.subtitle {
  color: var(--on-ink-dim);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0;
}

/* ---------- Tool card ---------- */
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 1.75rem 0 1.5rem;
  box-shadow: 0 12px 32px -22px rgba(17, 85, 204, 0.3);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.82rem; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.field input, .field select {
  background: #f4f6fa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field.full { grid-column: 1 / -1; }
.radio-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f4f6fa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
}
.radio-row input { accent-color: var(--accent); }
.radio-row label:has(input:checked) { color: var(--text); border-color: var(--accent); background: #eaf0fc; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--accent-dim); }

/* ---------- Result zone ---------- */
.result {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  display: none;
}
.result.is-visible { display: block; }
.result-headline {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.result-sub { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 1rem; }
.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.macro-pill {
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
}
.macro-pill .val { font-size: 1.3rem; font-weight: 800; display: block; color: #fff; }
.macro-pill .lbl { font-size: 0.75rem; color: var(--on-ink-dim); text-transform: uppercase; letter-spacing: 0.03em; }

table.pct-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
table.pct-table th, table.pct-table td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
table.pct-table th { color: var(--text-dim); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.03em; }
table.pct-table tr.is-target { color: var(--accent); font-weight: 800; }

/* ---------- Privacy badge / limits ---------- */
.privacy-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 1rem;
}
.privacy-badge svg { flex: none; width: 16px; height: 16px; color: var(--ok); }
.disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--accent);
  background: #eef3fc;
}

/* ---------- Ad slots ---------- */
.ad-slot {
  min-height: 90px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2rem 0;
  background: #f4f6fa;
}

/* ---------- Content sections ---------- */
.content-section { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.content-section h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 2.25rem 0 0.85rem;
}
.content-section p { color: var(--text-dim); }

details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::before { content: "+ "; color: var(--accent); }
details.faq-item[open] summary::before { content: "– "; }
details.faq-item p { margin: 0.6rem 0 0; }

/* ---------- Tool cards on homepage ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.tool-link-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.tool-link-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(17, 85, 204, 0.4);
}
.tool-link-card h3 { margin: 0.5rem 0 0.35rem; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.tool-link-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 3px solid var(--accent);
  margin-top: 3rem;
  padding: 2rem 0;
  background: var(--ink);
}
.site-footer .wrap {
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--on-ink-dim);
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--on-ink-dim); }
.footer-links a:hover { color: #fff; }

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