:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #1c2430;
  --muted: #5c6a7a;
  --accent: #0b6e4f;
  --accent-soft: #e5f4ef;
  --line: #e3e8ee;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }

header.site { text-align: center; margin-bottom: 8px; }
header.site .brand { font-size: 0.95rem; color: var(--muted); letter-spacing: 0.04em; }

h1 { font-size: 1.7rem; line-height: 1.25; margin: 12px 0 8px; }
.subtitle { color: var(--muted); margin: 0 0 24px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}

label { display: block; font-weight: 600; margin: 14px 0 6px; }
select, input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.presets button {
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.result { margin-top: 18px; }
.result .big { font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.result table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.result td { padding: 8px 4px; border-top: 1px solid var(--line); }
.result td:last-child { text-align: right; font-weight: 600; }

.note { font-size: 0.88rem; color: var(--muted); }

h2 { margin-top: 36px; font-size: 1.25rem; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 8px 0; background: var(--card); }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 2px; color: var(--muted); }

footer { margin-top: 48px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 16px; }
footer a { color: var(--muted); }

.ad-slot { display: none; min-height: 90px; } /* se activa con AdSense */
.affiliate { margin-top: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; }
