@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Inter+Tight:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #e0e1da;
  --ink: #23272c;
  --muted: rgba(35,39,44,0.45);
  --line: rgba(35,39,44,0.12);
  --line-strong: #23272c;
  --field-bg: #e0e1da;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 70px 6vw 40px;
}

/* ---- Header ---- */
.lang-switch { display: none; }

header.brand {
  text-align: left;
  margin-bottom: 56px;
}
header.brand img.logo {
  height: 34px;
  margin-bottom: 26px;
}
.aps-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}
header.brand h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 18px;
  color: var(--ink);
}
header.brand h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--muted);
}
.aps-rule { display: none; }
header.brand p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(35,39,44,0.7);
  letter-spacing: -0.02em;
  max-width: 480px;
  margin: 0;
}

/* ---- Section blocks ---- */
section.block {
  margin-bottom: 44px;
}
section.block h2 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
  padding: 0;
  border: none;
  display: block;
}
section.block > h2 + .field,
section.block .field:first-of-type {
  border-top: 1px solid var(--line);
}

/* ---- Fields ---- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field {
  background: var(--field-bg);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.field label.q {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.field .hint {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin: 4px 0 10px;
}

input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
textarea { resize: none; min-height: 80px; }
input::placeholder, textarea::placeholder { color: rgba(35,39,44,0.28); font-weight: 500; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

select {
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
select option {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
}

.choices label, .radio-row label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
}
.choices input, .radio-row input { width: auto; accent-color: var(--ink); }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Detail blocks toggled by JS ---- */
.detail-block {
  display: none;
  background: rgba(35,39,44,0.03);
  border-left: 2px solid var(--ink);
  padding: 6px 20px 6px;
  margin: 10px 0 20px;
}
.detail-block.is-visible { display: block; }

/* ---- Button ---- */
.submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
button.submit {
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 16px 26px;
  cursor: pointer;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s ease, opacity .2s ease;
}
button.submit::after {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E") no-repeat center / contain;
}
button.submit:hover { opacity: 0.85; }
.submit-row button.submit {
  width: auto;
  padding: 14px 24px;
  margin-top: 0;
}

footer.brand-footer {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
}

/* ---- Admin ---- */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 6vw 22px;
  border-bottom: 1px solid var(--line);
}
.admin-header img.logo { height: 22px; display: block; margin-bottom: 8px; }
.admin-header h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}
.admin-header a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: opacity .2s;
}
.admin-header a:hover { opacity: 0.6; }

table.leads {
  width: 100%;
  border-collapse: collapse;
  background: var(--field-bg);
}
table.leads th, table.leads td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
}
table.leads th {
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
table.leads tr:last-child td { border-bottom: none; }
table.leads a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  font-weight: 600;
}
table.leads a:hover { text-decoration-color: var(--ink); }

.badge {
  display: inline-block;
  padding: 4px 11px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border-radius: 20px;
}
.badge.nuevo { background: var(--ink); color: var(--bg); }
.badge.cotizado { background: #d9c9a3; color: #4a3c1f; }
.badge.ganado { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.badge.perdido { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.login-box {
  max-width: 380px;
  margin: 120px auto;
  background: var(--field-bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 48px 40px;
  text-align: center;
}
.login-box img.logo { height: 28px; margin-bottom: 26px; }
.login-box h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.login-box .field { text-align: left; background: transparent; border: none; padding: 0 0 22px; }
.login-box p { font-family: 'Inter', sans-serif; font-size: 12px; }

.quote-box {
  background: var(--ink);
  color: var(--bg);
  padding: 28px 26px;
  border-radius: 10px;
}
.quote-box table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; font-size: 13px; }
.quote-box td { padding: 8px 0; border-bottom: 1px solid rgba(224,225,218,0.15); font-weight: 400; }
.quote-box tr:last-child td { border-bottom: none; }
.quote-box td:last-child { text-align: right; }
.quote-total {
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--bg);
  margin-top: 14px;
}
.quote-box p {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: -0.01em;
  color: rgba(224,225,218,0.6);
  line-height: 1.7;
}

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

.two-col section.block h2 { margin-bottom: 20px; }
.two-col .field { margin-bottom: 0; }
.two-col section.block p { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 400; color: rgba(35,39,44,0.7); line-height: 1.8; margin: 0 0 6px; }
.two-col section.block p strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .wrap { padding: 50px 20px 40px; }
}
