:root {
  --bg: #17181b;
  --surface: #202226;
  --ink: #f2f1ec;
  --soft: #d0d1cc;
  --muted: #a3a7ad;
  --line: #34373d;
  --accent: #94d2b4;
  --accent-ink: #10231a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
main { flex: 1; padding-bottom: 72px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(23, 24, 27, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.top-row { display: flex; align-items: center; height: 64px; }
.brand { color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 800; letter-spacing: .16em; font-size: 18px; }
.brand small { font-weight: 500; letter-spacing: .2em; color: var(--muted); font-size: 11px; margin-left: 6px; }

.hero { padding: 80px 0 56px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(48px, 9vw, 88px); line-height: 1; letter-spacing: -.035em; font-weight: 800; }
.rule { display: block; width: 56px; height: 3px; background: var(--accent); margin: 26px 0; border-radius: 2px; }
.lead { margin: 0; font-size: 20px; color: var(--soft); max-width: 640px; }

.feature-card {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit;
}
.feature-card:hover { border-color: #4a4e55; }
.feature-card:hover .btn { filter: brightness(1.06); }
.feature-card img { border-right: 1px solid var(--line); }
.feature-body { padding: 28px 32px; }
.feature-body h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.015em; line-height: 1.15; }
.feature-body p:not(.eyebrow) { color: var(--soft); margin: 0 0 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}

.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
.foot p { margin: 0; }

@media (max-width: 820px) {
  .hero { padding: 48px 0 36px; }
  .lead { font-size: 18px; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card img { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-body { padding: 22px 20px; }
  .btn { width: 100%; }
}

/* tarjeta de la calculadora */
.tool-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 28px 32px;
  background: linear-gradient(135deg, #1d2a24 0%, #1a221f 100%); border: 1px solid #2f4a3e; border-radius: 16px; text-decoration: none; color: inherit; }
.tool-card:hover { border-color: var(--accent); }
.tool-card:hover .btn { filter: brightness(1.06); }
.tool-card h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.015em; line-height: 1.15; }
.tool-card p:not(.eyebrow) { color: var(--soft); margin: 0; }
.tool-card .btn { flex: none; }
@media (max-width: 820px) { .tool-card { flex-direction: column; align-items: stretch; padding: 22px 20px; } }

/* formulario «Conéctese con la Junta» */
[hidden] { display: none !important; }
a { color: var(--accent); }
.join { max-width: 640px; margin: -16px 0 64px; scroll-margin-top: 80px; }
.join-form { margin-top: 0; }
.join h2 { margin: 0 0 4px; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.join-text > p { margin: 12px 0 0; color: var(--soft); font-size: 16px; }
.join-text > p b { color: var(--ink); }
.list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 9px; }
.list li { display: flex; gap: 10px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.list li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
.join-form > p.cta { margin: 26px 0 12px; font-size: 18px; font-weight: 800; color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.field { margin: 0 0 12px; }
.join label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.join label .opt { color: var(--muted); font-weight: 500; }
.join input[type=text], .join input[type=email], .join input[type=tel] {
  width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); padding: 0 12px; font: inherit; font-size: 16px;
}
.join input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.join [aria-invalid=true] { border-color: #ff9b8f !important; }
.err { color: #ff9b8f; font-size: 13px; margin: 6px 0 0; }
.err:empty { display: none; }
.form-err { text-align: center; }
.consent { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 2px 0 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin: 0 0 12px; min-height: 65px; }
.join .btn { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; }
.join .btn:disabled { opacity: .6; cursor: progress; }
.alt { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.thanks { border-color: var(--accent); }
.thanks:focus { outline: none; }
.thanks p { margin: 10px 0 0; color: var(--soft); }
.thanks .thanks-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.privacy { font-size: 12px; color: var(--muted); margin-top: 14px; }
.privacy summary { cursor: pointer; }
.privacy p { margin: 10px 0 0; line-height: 1.5; }
@media (max-width: 820px) { .join { margin: -8px 0 48px; } .card { padding: 16px; } }

/* computadora: texto a la izquierda, formulario a la derecha */
@media (min-width: 900px) {
  .hero { padding-bottom: 48px; }
  .join { max-width: none; margin: 0 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: start; }
  .join h2 { font-size: 30px; }
  .join-text > p, .list li { font-size: 17px; }
  .join-form > p.cta { margin-top: 0; }
  .join-form { position: sticky; top: 88px; }
}

/* espacio entre el contenido y el pie (.wrap anulaba el padding de main) */
main.wrap { padding-bottom: 80px; }
@media (max-width: 820px) { main.wrap { padding-bottom: 56px; } }
