/* contacto.vtm.news — base.css
 * Estilos generales del subdominio. Responsive, accesible, sin frameworks.
 * Paleta alineada con branding emails: accent #f5b800, dark #3f3f3f.
 *
 * Las clases del formulario las genera inc/form_renderer.php:
 *   #lead-form, .field, .field--<tipo>, .req, .hp
 */

:root {
  --accent:        #f5b800;
  --accent-dark:   #d9a300;
  --dark:          #3f3f3f;
  --text:          #2f2f2f;
  --muted:         #6b6a64;
  --bg:            #ffffff;
  --bg-h:          #93a219;
  --bg-soft:       #f7f5f0;
  --border:        #e3e0d8;
  --ok:            #2e7d32;
  --err:           #c62828;
  --radius:        8px;
  --shadow:        0 2px 12px rgba(0,0,0,0.06);
  --font:          system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-soft);
}

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

/* ── HEADER ────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-h);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.site-header .logo {
  max-height: 48px;
  width: auto;
  display: block;
}
.site-header .logo-link { display: inline-block; }

/* ── MAIN ──────────────────────────────────────────────────────────── */
.site-main { padding: 40px 0 60px; }

.hero {
  text-align: center;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark);
  margin: 0 0 8px;
}
.hero .lede {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ── FORMULARIO ────────────────────────────────────────────────────── */
.form-wrap {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

#lead-form .field {
  margin-bottom: 18px;
}
#lead-form .field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
  font-size: 0.95rem;
}
#lead-form .req { color: var(--err); margin-left: 2px; }

#lead-form input[type="text"],
#lead-form input[type="email"],
#lead-form input[type="tel"],
#lead-form input[type="number"],
#lead-form select,
#lead-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}

#lead-form input:focus,
#lead-form select:focus,
#lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,184,0,0.15);
}

#lead-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* Honeypot — invisible para humanos */
#lead-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile widget */
#lead-form .field--turnstile {
  min-height: 65px;
}

/* Consentimiento */
#lead-form .field--consent label {
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  cursor: pointer;
}
#lead-form .field--consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
#lead-form .field--consent a { color: var(--accent-dark); text-decoration: underline; }

/* Botón submit */
#lead-form .field--submit {
  margin-top: 8px;
  text-align: right;
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .05s;
}
.btn--primary {
  background: var(--accent);
  color: var(--dark);
}
.btn--primary:hover { background: var(--accent-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ── STATUS BOX (gracias/error) ────────────────────────────────────── */
.status-box {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 30px;
  text-align: center;
  max-width: 520px;
  margin: 30px auto;
}
.status-box h1 {
  margin: 12px 0 14px;
  color: var(--dark);
}
.status-box p { color: var(--text); margin: 8px 0; }
.status-box .status-actions { margin-top: 26px; }

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto;
}
.status-box--ok .status-icon { background: var(--ok); }
.status-box--err .status-icon { background: var(--err); }

/* ── FOOTER ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #d9d7d0;
  padding: 24px 0;
  font-size: 0.88rem;
  text-align: center;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal-links a { margin: 0 2px; }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .form-wrap { padding: 20px 18px; }
  #lead-form .field--submit { text-align: center; }
  #lead-form .field--submit .btn { width: 100%; }
  .status-box { padding: 30px 20px; }
}
