/* ============================================================
   MOTOR-ONBOARDING.CSS
   Extiende motor.css (el usado en c1-c5) en vez de sustituirlo.
   Todo lo de aquí abajo, hasta el separador, es EXACTAMENTE
   motor.css sin tocar una línea. Cambiar un color o un radio de
   borde aquí se refleja también en los tests c1-c5, y viceversa
   si algún día unificáis ambos ficheros en uno solo servido desde
   un sitio común.
   ============================================================ */

body {
  font-family: Inter, Arial, sans-serif;
  background: #f6f4ee;
  margin: 0;
  padding: 0;
  color: #071b3a;
}

.container {
  max-width: 760px;
  margin: 60px auto;
  background: #ffffff;
  padding: 44px;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(20, 30, 60, 0.10);
}

.brand {
  font-weight: 700;
  color: #c99313;
  margin-bottom: 20px;
}

.progress {
  height: 8px;
  background: #e8e2d6;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 18px;
}

#progressBar {
  height: 100%;
  width: 0;
  background: #c99313;
  transition: width 0.3s ease;
}

.counter {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 28px;
}

h1 {
  font-size: 34px;
  margin-bottom: 12px;
}

h2 {
  font-size: 26px;
}

p {
  color: #5f6678;
  font-size: 17px;
  line-height: 1.5;
}

.option {
  display: block;
  width: 100%;
  padding: 17px 18px;
  margin: 12px 0;
  background: #ffffff;
  border: 1px solid #ddd6c8;
  border-radius: 14px;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  color: #071b3a;
}

.option:hover,
.option.selected {
  background: #f6f1e7;
  border-color: #c99313;
}

.nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.nav button,
button[type="submit"] {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  cursor: pointer;
  border: none;
}

.back {
  background: #f3f4f6;
  color: #071b3a;
}

.next,
button[type="submit"] {
  background: #071b3a;
  color: white;
}

input {
  width: 100%;
  padding: 16px;
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid #ddd6c8;
  font-size: 16px;
  box-sizing: border-box;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .container {
    margin: 20px;
    padding: 28px;
  }

  h1 {
    font-size: 28px;
  }
}

.relayable-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-azul,
.btn-dorado {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
}

.btn-azul {
  background: #071b3a;
  color: white;
}

.btn-dorado {
  background: #c99313;
  color: white;
}

.btn-azul:hover,
.btn-dorado:hover {
  opacity: 0.9;
}

/* ============================================================
   AMPLIACIONES PARA EL ONBOARDING
   Nada de lo anterior se toca. Lo de aquí abajo es lo que el
   onboarding necesita y c1-c5 nunca necesitó: campos de texto
   largo, etiquetas con marca de obligatorio, avisos de estado,
   confidencialidad, y el wizard de pasos ocultos/visibles.
   Reutiliza `.option`, `.nav`, `.back`, `.next`, `.counter`,
   `.container`, `.brand`, `.progress`/`#progressBar` tal cual
   están arriba — no se duplican con nombres nuevos.
   ============================================================ */

textarea,
select {
  width: 100%;
  padding: 16px;
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid #ddd6c8;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
  background: #ffffff;
  color: #071b3a;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.field-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin: 20px 0 8px;
  color: #071b3a;
}

.required-mark {
  color: #b3261e;
  margin-left: 3px;
}

.field-note {
  color: #6b7280;
  font-size: 13px;
  margin-top: -6px;
  margin-bottom: 8px;
}

/* Variante de .option para preguntas con descripción junto a la
   opción (ej. "B2C — vendes directamente al consumidor final") */
.option .option-desc {
  color: #6b7280;
  font-weight: 400;
}

.confidential-box {
  background: #fbf3e3;
  border: 1px solid #c99313;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14px;
  color: #071b3a;
  margin-bottom: 28px;
}

/* Wizard de pasos: cada pregunta o bloque vive en su propio
   contenedor .step, oculto salvo el que tenga .active. Sustituye
   al re-render de una sola pregunta que usa motor.js en c1-c5 */
.step {
  display: none;
}

.step.active {
  display: block;
}

#statusMsg {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
}

#statusMsg.ok {
  display: block;
  background: #e8f5e9;
  color: #1b5e20;
}

#statusMsg.err {
  display: block;
  background: #fdecea;
  color: #611a15;
}

#loadingMsg {
  color: #6b7280;
  font-size: 14px;
  margin-top: 12px;
  display: none;
}

#loadingMsg.visible {
  display: block;
}

/* Filas de "sitio + enlace" y similares (multi-fila con dos
   columnas de ancho distinto) */
.fila-doble {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
}

.fila-doble input {
  margin: 0;
}

.boton-anadir {
  margin-top: 10px;
  background: none;
  border: 1px dashed #c99313;
  color: #071b3a;
  font-weight: 600;
  font-size: 13px;
  padding: 9px;
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
}
