/* ==========================================================================
   Ubso — estilos del formulario de contacto con doble consentimiento.
   Usa la misma paleta y tipografía que el sitio (Kumbh Sans).
   ========================================================================== */

.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ubso-form {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  text-align: left;
}

.ubso-field { display: grid; gap: .4rem; }

.ubso-field label {
  font-weight: 600;
  font-size: .9rem;
  color: #111114;
}

.ubso-field input,
.ubso-field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid #d5d5dc;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: .95rem;
  color: #111114;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ubso-field input:focus,
.ubso-field textarea:focus {
  outline: none;
  border-color: #111114;
  box-shadow: 0 0 0 3px rgba(17, 17, 20, .08);
}

.ubso-field textarea { resize: vertical; min-height: 120px; }

.ubso-hint {
  font-size: .8rem;
  line-height: 1.45;
  color: #5c5c66;
  margin: 0;
}

/* --- Bloque de consentimientos ------------------------------------------- */

.ubso-consents {
  border: 1px solid #e2e2e8;
  border-radius: 14px;
  padding: 1rem 1.1rem 1.1rem;
  background: #fafafb;
  margin: .5rem 0 0;
}

.ubso-consents legend {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5c5c66;
  padding: 0 .4rem;
}

.ubso-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem .65rem;
  align-items: start;
  padding: .6rem 0;
}

.ubso-check + .ubso-check { border-top: 1px dashed #e2e2e8; }

.ubso-check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  accent-color: #111114;
  cursor: pointer;
  flex: none;
}

.ubso-check label {
  font-size: .9rem;
  line-height: 1.5;
  color: #111114;
  cursor: pointer;
  grid-column: 2;
}

.ubso-check label a {
  color: #111114;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ubso-check label a:hover { opacity: .75; }

.ubso-check .ubso-hint { grid-column: 2; }

.ubso-req { color: #b00020; font-weight: 700; }

.ubso-audit-note {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid #e2e2e8;
  font-size: .76rem;
}

.ubso-check input:invalid:not(:checked) { outline: none; }

/* Honeypot: invisible para personas, visible para bots */
.ubso-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Envío --------------------------------------------------------------- */

.ubso-submit { margin-top: .5rem; justify-self: start; }
.ubso-submit[disabled] { opacity: .6; cursor: not-allowed; }

.ubso-alt {
  font-size: .85rem;
  color: #5c5c66;
  margin: 0;
}

.ubso-mail {
  color: #111114;
  font-weight: 600;
  text-decoration: underline;
}

.ubso-status {
  min-height: 1.4rem;
  font-size: .88rem;
  line-height: 1.45;
  margin: 0;
}

.ubso-status.is-ok { color: #166534; }
.ubso-status.is-error { color: #b00020; }

@media (max-width: 480px) {
  .ubso-consents { padding: .9rem .85rem 1rem; }
  .ubso-check label { font-size: .86rem; }
}

/* --- Páginas legales ----------------------------------------------------- */

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 7rem 1.25rem 5rem;
  color: #111114;
}

.legal-wrap h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .6rem;
  letter-spacing: -.02em;
}

.legal-meta {
  font-size: .85rem;
  color: #5c5c66;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e2e8;
}

.legal-wrap h2 {
  font-size: 1.3rem;
  margin: 2.4rem 0 .7rem;
  letter-spacing: -.01em;
}

.legal-wrap h3 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }

.legal-wrap p,
.legal-wrap li {
  font-size: .95rem;
  line-height: 1.7;
  color: #26262c;
}

.legal-wrap ul, .legal-wrap ol { padding-left: 1.3rem; margin: .6rem 0; }
.legal-wrap li { margin: .3rem 0; }

.legal-wrap a { color: #111114; text-decoration: underline; text-underline-offset: 2px; }

.legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .86rem;
}

.legal-wrap th,
.legal-wrap td {
  border: 1px solid #e2e2e8;
  padding: .6rem .7rem;
  text-align: left;
  vertical-align: top;
}

.legal-wrap th { background: #f5f5f7; font-weight: 600; }

.legal-wrap blockquote,
.legal-wrap em { color: #5c5c66; }

.legal-wrap hr { border: none; border-top: 1px solid #e2e2e8; margin: 2.5rem 0 1.5rem; }

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: .85rem;
  font-weight: 600;
  color: #111114;
  text-decoration: none;
}

.legal-lang { display: flex; gap: .75rem; font-size: .82rem; margin-top: 1rem; }
.legal-lang a { color: #5c5c66; text-decoration: none; }
.legal-lang a[aria-current="true"] { color: #111114; font-weight: 700; }
