@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

:root {
  --ink: #010101;
  --paper: #f1f1f1;
  --accent: #ff4d01;
  --accent-ink: #010101;
  --line: #d8d8d8;
  --muted: #6b6b6b;
  --card: #ffffff;
  --gray: #a6a6a6;
  --radius: 20px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.04em;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 100px;
}

header.brand {
  text-align: center;
  margin-bottom: 40px;
}

header.brand img.logo {
  height: 44px;
  margin-bottom: 18px;
}

header.brand h1 {
  font-size: 30px;
  font-weight: 800;
  margin: 6px 0 10px;
  letter-spacing: -0.04em;
}

header.brand p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

section.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin-bottom: 20px;
}

section.block h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

.field label.q {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.field .hint {
  color: var(--muted);
  font-size: 13px;
  margin: -4px 0 8px;
}

input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  letter-spacing: -0.02em;
  background: #fff;
  color: var(--ink);
}

textarea { resize: vertical; min-height: 80px; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

.choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 15px;
  cursor: pointer;
}

.choices input { width: auto; accent-color: var(--accent); }

.radio-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.radio-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
}
.radio-row input { width: auto; accent-color: var(--accent); }

button.submit {
  width: 100%;
  padding: 17px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity .15s ease;
}
button.submit:hover { opacity: 0.85; }

footer.brand-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 30px;
  letter-spacing: -0.02em;
}

/* Admin */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 20px;
}
.admin-header img.logo { height: 26px; display: block; margin-bottom: 6px; }
.admin-header a { color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600; }

table.leads {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table.leads th, table.leads td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
table.leads th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}
table.leads tr:last-child td { border-bottom: none; }
table.leads a { color: var(--accent); text-decoration: none; font-weight: 700; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.badge.nuevo { background: #010101; color: #fff; }
.badge.cotizado { background: #ff4d01; color: #010101; }
.badge.ganado { background: #010101; color: #ff4d01; }
.badge.perdido { background: #eeeeee; color: #6b6b6b; }

.login-box {
  max-width: 360px;
  margin: 100px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.login-box img.logo { height: 32px; margin-bottom: 20px; }
.login-box h2 { font-weight: 800; letter-spacing: -0.04em; }
.login-box .field { text-align: left; }

.quote-box {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
}
.quote-box table { width: 100%; border-collapse: collapse; font-size: 14px; }
.quote-box td { padding: 7px 0; border-bottom: 1px solid #2a2a2a; }
.quote-box tr:last-child td { border-bottom: none; }
.quote-box td:last-child { text-align: right; }
.quote-total { font-size: 22px; font-weight: 800; color: var(--accent); margin-top: 14px; letter-spacing: -0.03em; }
.quote-box p { color: #b5b5b5; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
