body { font-family: Arial, sans-serif; padding: 20px; max-width: 960px; margin: auto; }
h1, h2 { color: #f05a1a; }
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
}
  .cabecera {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f05a1a;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  .logo {
    height: 60px;
  }

  .contacto {
    text-align: right;
    font-size: 12px;
    color: #333;
  }

  .contacto strong {
    color: #f05a1a;
  }

.step {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.step.active {
    max-height: none;
    opacity: 1;
    pointer-events: auto;
}

.form-row { display: flex; flex-wrap: wrap; gap: 5px; }
.form-group { flex: 1; min-width: 40%; margin-bottom: 5px; }
label { display: block; font-weight: bold; margin-bottom: 5px; }
input[type="text"], input[type="email"],input[type="url"],textarea, select {
    width: 100%; padding: 10px; font-size: 14px; box-sizing: border-box;
}
input[type="checkbox"]:checked {
  accent-color: #28a745; /* Verde */
}
textarea { resize: vertical; min-height: 80px; }
.sortable-list textarea{min-height: 30px; padding: 5px; color: #6e0084;}
.buttons { margin-top: 10px; }
button {
    padding: 10px 10px; background-color: #f05a1a; color: white;
    border: none; border-radius: 4px; cursor: pointer; margin-right: 10px;
}
button:hover { background-color: #ad0c0c; }
.note { font-size: 13px; color: #555; margin-top: -5px; margin-bottom: 10px; }


/*mostrar los campos ocultos*/

.toggle-target {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.7s ease;
}

.toggle-target.active {
   max-height: none; 
    opacity: 1;
}

/*CAMPOS DINÁMICOS*/
.campo-dinamico {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.campo-dinamico select,
.campo-dinamico input {
  flex: 1;
  min-width: 0;
}

.btn-eliminar {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

/*Listado ordenable*/

.sortable-list, .sortable-list li { list-style: none; padding: 0; margin: 0; }
.sortable-list li {
  display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #ddd;
}
.sortable-list .handle { cursor: grab; font-size: 1.4em; }
.sortable-list li input {
  flex: 1;          /* Ocupa todo el espacio restante */
  min-width: 0;     /* Para evitar overflow en flexbox */
  padding: 6px;
  font-size: 14px;
}
.btn-delete {
  background: none; border: none; cursor: pointer; font-size: 1em; padding: 4px;
.btn-up,
.btn-down {   
 
  border: none;
  cursor: pointer;
  font-size: 1em;
  padding: 2px;
}
}
.btn-up:hover, .btn-down:hover { 
  opacity: 1;
  color: #000000;
  background-color:#f05a1a;  }
.btn-delete { color: #e74c3c; }
.btn-delete:hover { color: #c0392b; }

.bloque-resumen {
  background: #f8f8f8;
  border: 1px solid #999999;
  border-left: 4px solid #f05a1a;
  padding: 1em;
  margin-bottom: 1em;
}
.bloque-resumen h3 {
  margin-top: 0;
  margin-bottom: 0;
  color: #f05a1a;
}
.bloque-resumen ul {
  padding-left: 1.2em;
}
.resumen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-editar {
  background-color: #f05a1a;
  color: white;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 0.9em;
  float:right;
}

.btn-editar:hover {
  background-color: #d44c0f;
}
.btn-volver-resumen {
  background-color: #00c9a7; /* verde agua */
  color: white;
  font-weight: bold;
  padding: 8px 16px;
  margin-top: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  gap: 6px;

  display:none;
  margin-bottom:10px;
}

.btn-volver-resumen .flecha {
  font-size: 1.2em;
}
.disclaimer-resumen{
  padding: 10px; 
  border-radius: 6px;
  border: 1px solid red ;
  border-left: 4px solid red;
}
input.completado,
select.completado,
textarea.completado {
  border: 2px solid #4CAF50;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%234CAF50" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M9 16.2l-3.5-3.5L4 14.2l5 5 12-12-1.4-1.4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px;
}
.login-formulario-cliente {
    max-width: 420px;
    margin-top: 20px;
}

.login-formulario-cliente .form-group {
    margin-bottom: 15px;
    min-width: 100%;
}

.login-formulario-cliente button {
    margin-top: 5px;
}