:root {
  --primary: #0f172a;      /* fondo principal */
  --secondary: #ff0000;    /* acento: errores de formulario */
  --blue: #2563eb;         /* foco y hover de enlaces */
  --teal: #0d9488;         /* mensaje de éxito */
  --text: #ffffff;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --field: #1e2537;
  --border: #2d3548;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--primary);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; }
a:hover { color: var(--blue); }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 64px);
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}
.logo {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { color: var(--text); }

.btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: #e2e8f0; color: var(--primary); }
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Home */
.hero { padding-top: clamp(80px, 18vh, 170px); }
.hero h1 {
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hero h1 strong { font-weight: 800; display: block; }

.intro {
  padding-top: clamp(60px, 16vh, 150px);
  padding-bottom: 80px;
  max-width: 1080px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.intro .lead {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 26px;
}
.intro p:not(.lead):not(.eyebrow) {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 950px;
}

/* Talk to us */
.contact {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 80px;
  text-align: center;
}
.contact h1 {
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.contact .sub { color: var(--muted); margin: 8px 0 32px; }

form { text-align: left; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
label span { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
}
input { height: 40px; }
textarea { min-height: 86px; resize: vertical; }
::placeholder { color: var(--subtle); }
input:focus, textarea:focus { border-color: var(--blue); }
.field.invalid input { border-color: var(--secondary); }
.error { color: var(--secondary); font-size: 13px; margin-top: 6px; display: none; }
.field.invalid .error { display: block; }

form .btn { width: 100%; padding: 12px; font-size: 15px; margin-top: 2px; }
.legal {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
}
.legal a { font-weight: 700; color: var(--text); white-space: nowrap; }
.legal a:hover { color: var(--blue); }

.status { margin-top: 16px; text-align: center; font-size: 14px; display: none; }
.status.ok { display: block; color: var(--teal); font-weight: 700; }
.status.fail { display: block; color: var(--secondary); }

/* Privacy */
.policy {
  max-width: 980px;
  padding-top: 32px;
  padding-bottom: 80px;
  font-size: 15px;
}
.policy h1 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.policy .updated { font-size: 12px; color: var(--subtle); margin: 6px 0 22px; }
.policy h2 { font-size: 18px; font-weight: 800; margin: 26px 0 6px; }
.policy p { margin-bottom: 10px; color: #e2e8f0; }
.policy ul { padding-left: 18px; margin-bottom: 10px; color: #e2e8f0; }
.policy li { margin-bottom: 4px; }

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .logo { font-size: 24px; }
}
