:root {
  --bg: #a2672d;
  --bg-page: #fff8f1;
  --bg-soft: #fff8f1;
  --ink: #5b4d43;
  --ink-strong: #3d322c;
  --line: rgba(255, 255, 255, 0.35);
  --field-bg: #fff8f1;
  --warn: #862000;
  --white: #ffffff;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Montserrat", sans-serif;
  background: var(--bg-page);
  color: var(--white);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.form-shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.75rem 1.35rem 1.75rem;
  background: var(--bg);
}

.form-title {
  margin: 0 0 1rem;
  color: var(--warm);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-align: center;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--bg);
}

.field select,
.field input,
.field textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--field-bg);
  color: var(--ink-strong);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.55rem 0.65rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border:1px solid var(--bg);
}

.field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 248, 241, 0.35);
}

.fields-contacto {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
  animation: rise 0.28s ease;
}

.notice {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 248, 241, 0.95);
  color: var(--warn);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  animation: rise 0.28s ease;
}

.form-error {
  margin: 0;
  color: #ffe0d4;
  font-size: 0.8rem;
  font-weight: 500;
}

.form-error.is-visible {
  margin-bottom: 0.75rem;
}

.btn-enviar {
  align-self: flex-start;
  margin-top: 0.15rem;
  border: 1px solid #000;
  border-radius: 999px;
  background: #000;
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-enviar:hover {
  background: var(--bg);
  color: var(--white);
  border-color: var(--white);
}

.btn-link {
  display: inline-block;
  margin-top: 1.25rem;
}

.thanks {
  text-align: center;
}

.thanks-text {
  margin: 0 auto;
  max-width: 18rem;
  color: var(--bg-soft);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.is-hidden {
  display: none !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
